joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e4e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49afb8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x4ce4e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
xor esi, esi
mov ecx, section..data
mov dword [ebp - 0x18], esi
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
lea edi, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.0042e280
test eax, eax
je 0x42e642
mov edi, dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42e642
push ecx
lea eax, [edi - 0x10]
mov dword [ebp - 0x20], esp
mov esi, esp
push eax
call fcn.00401530
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea esi, [ebp - 0x20]
call fcn.0040a2b0
mov byte [ebp - 4], 1
mov edi, dword [eax]
mov eax, dword [ebx]
sub eax, 0x10
mov dword [ebp - 0x24], esp
mov esi, esp
push eax
call fcn.00401530
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea esi, [ebp - 0x1c]
call fcn.0040a2b0
add esp, 4
xor ecx, ecx
test edi, edi
setne cl
mov byte [ebp - 4], 2
test ecx, ecx
jne 0x42e5a8
push 0x80004005
call fcn.00401a50
mov eax, dword [eax]
push edi
push eax
call fcn.0047499c
add esp, 8
test eax, eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
setne byte [ebp - 0xd]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e5dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e600
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0xd], 0
je 0x42e642
mov eax, dword [ebx]
push ecx
sub eax, 0x10
mov dword [ebp - 0x24], esp
mov esi, esp
push eax
call fcn.00401530
lea ecx, [ebp - 0x14]
add esp, 4
add eax, 0x10
push ecx
mov dword [esi], eax
call fcn.0040db80
add esp, 8
test eax, eax
je 0x42e642
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x18], 1
call fcn.0040d420
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e668
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x431360
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4ce4e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00478ba0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0xc
push str.C:iResearchDYTDYT.exe
call esi
cmp eax, 0xffffffff
je 0x4313bc
test al, 0x10
jne 0x4313bc
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004739b2
mov esp, ebp
pop ebp
ret
push edi
push 0x4b06e0
lea ecx, [ebp - 0x214]
call fcn.00401ba0
push 0x104
lea edx, [ebp - 0x210]
push 0
push edx
call fcn.00478ba0
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0xc
push 0
push 2
lea eax, [ebp - 0x210]
push eax
push 0
call edi
mov ecx, dword [ebp - 0x214]
push ecx
lea edx, [ebp - 0x210]
push 0x105
push edx
call fcn.00474d4c
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call esi
cmp eax, 0xffffffff
je 0x431425
test al, 0x10
je 0x431477
push 0x104
lea ecx, [ebp - 0x210]
push 0
push ecx
call fcn.00478ba0
add esp, 0xc
push 0
push 0x17
lea edx, [ebp - 0x210]
push edx
push 0
call edi
mov eax, dword [ebp - 0x214]
push eax
lea ecx, [ebp - 0x210]
push 0x105
push ecx
call fcn.00474d4c
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
call esi
cmp eax, 0xffffffff
je 0x4314ae
test al, 0x10
jne 0x4314ae
mov eax, dword [ebp - 0x214]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431499
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004739b2
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x214]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4314d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004739b2
mov esp, ebp
pop ebp
ret
Function at 0x4314f0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4ce4e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00478ba0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0xc
push str.C:iResearchYJTYJT.exe
call esi
cmp eax, 0xffffffff
je 0x43154c
test al, 0x10
jne 0x43154c
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004739b2
mov esp, ebp
pop ebp
ret
push edi
push 0x4b0738
lea ecx, [ebp - 0x214]
call fcn.00401ba0
push 0x104
lea edx, [ebp - 0x210]
push 0
push edx
call fcn.00478ba0
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0xc
push 0
push 2
lea eax, [ebp - 0x210]
push eax
push 0
call edi
mov ecx, dword [ebp - 0x214]
push ecx
lea edx, [ebp - 0x210]
push 0x105
push edx
call fcn.00474d4c
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call esi
cmp eax, 0xffffffff
je 0x4315b5
test al, 0x10
je 0x431607
push 0x104
lea ecx, [ebp - 0x210]
push 0
push ecx
call fcn.00478ba0
add esp, 0xc
push 0
push 0x17
lea edx, [ebp - 0x210]
push edx
push 0
call edi
mov eax, dword [ebp - 0x214]
push eax
lea ecx, [ebp - 0x210]
push 0x105
push ecx
call fcn.00474d4c
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
call esi
cmp eax, 0xffffffff
je 0x43163e
test al, 0x10
jne 0x43163e
mov eax, dword [ebp - 0x214]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431629
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004739b2
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x214]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431660
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004739b2
mov esp, ebp
pop ebp
ret

Function at 0x432b00
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [eax], 0x1571
mov dword [eax + 0x9c0], 1
push ebx
mov ecx, dword [eax + 0x9c0]
mov edx, dword [eax + ecx*4 - 4]
mov ebx, edx
shr ebx, 0x1e
xor ebx, edx
imul ebx, ebx, 0x6c078965
add ebx, ecx
mov dword [eax + ecx*4], ebx
inc dword [eax + 0x9c0]
cmp dword [eax + 0x9c0], 0x270
jb 0x432b11
pop ebx
ret
Function at 0x432ba0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x498228
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4ce4e0]
xor eax, esp
mov dword [esp + 0x28], eax
push edi
mov eax, dword [0x4ce4e0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
push 0x4b0c54
push str._dev_urandom
mov dword [esp + 0x30], 5
call fcn.00476b38
add esp, 8
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x40], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
cmp eax, 5
jl 0x432c1b
lea edi, [esp + 0x14]
call fcn.0043c320
xor eax, eax
mov dword [esp + 0x28], eax
mov ecx, dword [esp + eax*4 + 0x14]
inc eax
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x28], eax
push edx
xor eax, eax
push eax
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00434fe0
add esp, 0x10
test dword [esi], 0x80000000
mov dword [esi + 0x9c0], 0x270
jne 0x432c69
mov eax, 1
cmp dword [esi + eax*4], 0
jne 0x432c69
inc eax
cmp eax, 0x270
jb 0x432c55
mov dword [esi], 0x80000000
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x432c7a
push eax
call fcn.00476a08
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004739b2
mov esp, ebp
pop ebp
ret
Function at 0x434680
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
sub edi, ebx
jne 0x43469a
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push esi
cmp edi, 0xffffffff
jne 0x4346b1
mov esi, dword [ebp + 8]
call fcn.004355d0
pop esi
pop edi
add eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
jbe 0x434724
xor ecx, ecx
lea eax, [edi + 1]
xor edx, edx
div ecx
mov esi, dword [ebp + 8]
mov dword [ebp + 0x10], ecx
mov ebx, 1
mov dword [ebp - 4], eax
lea ebx, [ebx]
cmp dword [ebp - 4], ebx
jae 0x434700
mov byte [ebp - 8], 0
mov edx, dword [ebp - 8]
push edx
push edi
push 0
push esi
call fcn.00434680
add esp, 0x10
cmp eax, 0xffffffff
ja 0x4346d0
cmp eax, edi
ja 0x4346d0
add eax, dword [ebp + 0xc]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004355d0
imul eax, ebx
add dword [ebp + 0x10], eax
mov eax, edi
sub eax, ebx
inc eax
neg ebx
cmp ebx, eax
je 0x43471a
xor ebx, ebx
jmp 0x434700
mov eax, dword [ebp + 0x10]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
xor edx, edx
lea ecx, [edi + 1]
div ecx
mov ebx, eax
cmp edx, edi
jne 0x434735
inc ebx
mov esi, dword [ebp + 8]
jmp 0x434740
cmp dword [esi + 0x9c0], 0x270
jne 0x434753
mov ecx, esi
call fcn.004368d0
mov eax, dword [esi + 0x9c0]
mov ecx, dword [esi + eax*4]
inc eax
mov edx, ecx
shr edx, 0xb
xor ecx, edx
mov dword [esi + 0x9c0], eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov edx, ecx
and edx, 0xffffdf8c
shl edx, 0xf
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
xor edx, edx
div ebx
cmp eax, edi
ja 0x434740
add eax, dword [ebp + 0xc]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43ae70
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49393b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4ce4e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00472aa4
push 4
mov dword [ebp - 4], 0
call fcn.00473cad
mov edi, eax
add esp, 4
test edi, edi
je 0x43aeec
call fcn.00472db4
mov dword [edi], eax
call fcn.00472b73
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00472a65
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x43aee2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00472a8d
jmp 0x43aeee
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x43c320
Capabilities:
Hash data using sha1
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x4ce4e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x4d9720]
mov edx, dword [0x4d9724]
mov eax, dword [0x4d971c]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [0x4d972c]
push esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], eax
mov eax, dword [0x4d9728]
lea edx, [ebp - 0xc]
mov dword [ebp - 0x10], ecx
push edx
lea ecx, [ebp - 0x20]
lea esi, [ebp - 0x80]
mov dword [ebp - 0x80], 0x67452301
mov dword [ebp - 0x7c], 0xefcdab89
mov dword [ebp - 0x78], 0x98badcfe
mov dword [ebp - 0x74], 0x10325476
mov dword [ebp - 0x70], 0xc3d2e1f0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x84], 0x4d971c
mov dword [ebp - 0x14], eax
call fcn.0043bbb0
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x84]
call fcn.0043bbb0
push 0
call fcn.00474e50
add esp, 4
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
call fcn.0043bbb0
call fcn.004743f1
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
call fcn.0043bbb0
call fcn.00476e0f
mov dword [ebp - 0x18], eax
call fcn.00476e0f
mov dword [ebp - 0x14], eax
call fcn.00476e0f
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.0043bbb0
mov eax, dword [edi + 0x18]
test eax, eax
je 0x43c42b
push eax
push 0x14
lea ecx, [ebp - 0x20]
push 1
push ecx
call fcn.00476de0
add esp, 0x10
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 0x20]
lea esi, [ebp - 0x80]
call fcn.0043bbb0
push 4
call fcn.00473cad
lea ecx, [eax + 4]
add esp, 4
push ecx
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.0043bbb0
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 0x10]
call fcn.0043bbb0
mov eax, dword [ebp - 0x10]
push eax
call fcn.004739a7
add esp, 4
lea ecx, [edi + 0x14]
push ecx
mov ecx, edi
call fcn.0043bbb0
lea edx, [ebp - 0x20]
push edx
call fcn.0043c160
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x20]
xor dword [eax], ecx
xor dword [edi], ecx
mov ecx, dword [ebp - 0x1c]
xor dword [eax + 4], ecx
xor dword [edi + 4], ecx
mov ecx, dword [ebp - 0x18]
xor dword [eax + 8], ecx
xor dword [edi + 8], ecx
mov ecx, dword [ebp - 0x14]
xor dword [eax + 0xc], ecx
xor dword [edi + 0xc], ecx
mov ecx, dword [ebp - 0x10]
xor dword [eax + 0x10], ecx
xor dword [edi + 0x10], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004739b2
mov esp, ebp
pop ebp
ret
Function at 0x43ca10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4ce4e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ecx]
mov eax, dword [ebp + 8]
mov eax, dword [eax*4 + 0x4a94a8]
lea edx, [ebp - 0x214]
push edx
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x43ca9e
push 0x208
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00478ba0
mov ecx, dword [ebp - 0x214]
add esp, 0xc
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x210]
push eax
push 0
push ecx
mov dword [ebp - 0x218], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x43caae
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004739b2
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.004739b2
mov esp, ebp
pop ebp
ret
Function at 0x43d8c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x43d8e6
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 4]
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0
push str.DisplayName
mov esi, 1
push edx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 0
call edi
cmp eax, 2
jne 0x43d92d
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
test eax, eax
jne 0x43d985
cmp dword [ebp - 0xc], esi
jne 0x43d9ab
mov eax, dword [ebp - 8]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00472957
mov esi, eax
mov eax, dword [ebp - 8]
inc eax
push eax
push 0
push esi
call fcn.00478ba0
mov eax, dword [ebp - 4]
add esp, 0x10
lea ecx, [ebp - 8]
push ecx
push esi
lea edx, [ebp - 0xc]
push edx
push 0
push str.DisplayName
push eax
call edi
push esi
test eax, eax
je 0x43d99a
call fcn.00474dc1
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
call fcn.00401b50
push esi
call fcn.00474dc1
add esp, 4
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x43f1d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4960b8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4ce4e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x43f20c
xor eax, eax
jmp 0x43f391
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x43f235
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x43f235
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 1]
mov dword [edi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x43f391
cmp dword [edi + 0x54], 0
je 0x43f38e
mov ecx, dword [edi + 0x10]
lea edx, [edi + 0x48]
cmp dword [ecx], edx
jne 0x43f25d
mov edx, dword [edi + 0x3c]
mov eax, dword [edi + 0x40]
mov dword [ecx], edx
mov ecx, dword [edi + 0x20]
mov dword [ecx], eax
mov edx, dword [edi + 0x30]
sub eax, eax
mov dword [edx], eax
cmp dword [edi + 0x44], 0
jne 0x43f283
mov edi, dword [edi + 0x54]
movsx eax, bl
push edi
push eax
call fcn.0047741a
add esp, 8
cmp eax, 0xffffffff
je 0x43f38e
mov eax, ebx
jmp 0x43f391
lea esi, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
call fcn.00440610
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
jmp 0x43f2a0
mov edx, eax
cmp ebx, 0x10
jae 0x43f2ac
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push edx
push eax
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x2d]
push edx
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x14]
call eax
test eax, eax
js 0x43f386
cmp eax, 1
jg 0x43f340
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x43f2ec
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, ecx
je 0x43f315
cmp ebx, 0x10
jae 0x43f2fb
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00477db5
add esp, 0x10
cmp esi, eax
jne 0x43f386
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x2d]
mov byte [edi + 0x49], 1
cmp dword [ebp - 0x38], edx
jne 0x43f379
test esi, esi
jne 0x43f2a0
cmp dword [ebp - 0x1c], 0x20
jae 0x43f386
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.00438cd0
jmp 0x43f295
cmp eax, 3
jne 0x43f386
mov edi, dword [edi + 0x54]
movsx eax, byte [ebp - 0x2d]
push edi
push eax
call fcn.0047741a
add esp, 8
cmp eax, 0xffffffff
je 0x43f36a
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.00405f90
mov eax, esi
jmp 0x43f391
lea ecx, [ebp - 0x2c]
or esi, 0xffffffff
call fcn.00405f90
mov eax, esi
jmp 0x43f391
lea ecx, [ebp - 0x2c]
call fcn.00405f90
mov eax, dword [ebp + 8]
jmp 0x43f391
lea ecx, [ebp - 0x2c]
call fcn.00405f90
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004739b2
mov esp, ebp
pop ebp
ret 4
Function at 0x43fbd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4960b8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4ce4e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, 0xffff
mov edi, ecx
cmp ax, si
jne 0x43fc11
xor eax, eax
jmp 0x43fd97
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x43fc3d
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x43fc3d
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 2]
mov dword [edi], ecx
mov word [eax], si
mov ax, si
jmp 0x43fd97
cmp dword [edi + 0x54], 0
je 0x43fd92
mov ecx, dword [edi + 0x10]
lea edx, [edi + 0x48]
cmp dword [ecx], edx
jne 0x43fc67
mov edx, dword [edi + 0x3c]
mov eax, dword [edi + 0x40]
mov dword [ecx], edx
mov ecx, dword [edi + 0x20]
mov dword [ecx], eax
mov edx, dword [edi + 0x30]
sub eax, eax
sar eax, 1
mov dword [edx], eax
cmp dword [edi + 0x44], 0
jne 0x43fc92
mov edi, dword [edi + 0x54]
push edi
push esi
call fcn.0047769d
mov ecx, 0xffff
add esp, 8
cmp ax, cx
movzx eax, si
jne 0x43fd97
mov eax, ecx
jmp 0x43fd97
movzx edx, si
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x30], edx
call fcn.00440610
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
lea ecx, [ecx]
mov edx, eax
cmp ebx, 0x10
jae 0x43fcbc
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
mov ebx, dword [ebp - 0x1c]
add ebx, edx
push ebx
push eax
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp - 0x2e]
push edx
mov edx, dword [esi + 0x14]
lea eax, [ebp - 0x30]
push eax
lea eax, [edi + 0x4c]
push eax
call edx
test eax, eax
js 0x43fd8a
cmp eax, 1
jg 0x43fd52
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x43fcfe
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, ecx
je 0x43fd27
cmp ebx, 0x10
jae 0x43fd0d
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00477db5
add esp, 0x10
cmp esi, eax
jne 0x43fd8a
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x30]
mov byte [edi + 0x4a], 1
cmp dword [ebp - 0x38], edx
jne 0x43fd7c
test esi, esi
jne 0x43fcb0
cmp dword [ebp - 0x1c], 0x20
jae 0x43fd8a
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.00438cd0
jmp 0x43fca7
cmp eax, 3
jne 0x43fd8a
mov eax, dword [edi + 0x54]
mov ecx, dword [ebp - 0x30]
call fcn.0043d8a0
movzx esi, word [ebp + 8]
test al, al
jne 0x43fd6f
mov esi, 0xffff
lea ecx, [ebp - 0x2c]
call fcn.00405f90
mov ax, si
jmp 0x43fd97
lea ecx, [ebp - 0x2c]
call fcn.00405f90
mov ax, word [ebp + 8]
jmp 0x43fd97
lea ecx, [ebp - 0x2c]
call fcn.00405f90
mov eax, 0xffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004739b2
mov esp, ebp
pop ebp
ret 4