joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f291
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x48a460]
xor eax, ebp
mov dword [ebp + 0x194], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1a0]
mov esi, 0x102
xor ebx, ebx
push esi
lea eax, [ebp + 0x92]
push ebx
push eax
mov dword [ebp - 0x80], 1
mov word [ebp + 0x90], bx
call fcn.0044b3e0
push esi
lea eax, [ebp - 0x72]
push ebx
push eax
mov word [ebp - 0x74], bx
call fcn.0044b3e0
add esp, 0x18
cmp edi, ebx
je 0x41f3a8
cmp dword [ebp + 0x1a4], ebx
jle 0x41f3a8
add esi, 2
push esi
lea eax, [ebp + 0x90]
push eax
push 0x22
push 0x46e900
mov byte [edi], bl
call fcn.0041e7fe
push esi
lea eax, [ebp - 0x74]
push eax
push 5
push str.___E
call fcn.0041e7fe
lea eax, [ebp + 0x90]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0041f014
mov eax, dword [eax]
add esp, 0x28
lea ecx, [ebp - 0x7c]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ecx, dword [ebp - 0x78]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004010b0
cmp esi, ebx
jne 0x41f3a8
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0041f014
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp + 0x1a4]
push ecx
push edi
lea ecx, [ebp - 0x80]
push ecx
push ebx
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x78]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004010b0
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
neg eax
sbb eax, eax
not eax
and eax, edi
jmp 0x41f3aa
xor eax, eax
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044b821
add ebp, 0x198
leave
ret
Function at 0x41f3c2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x48a460]
xor eax, ebp
mov dword [ebp + 0x194], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1a0]
mov esi, 0x102
xor ebx, ebx
push esi
lea eax, [ebp + 0x92]
push ebx
push eax
mov dword [ebp - 0x80], 1
mov word [ebp + 0x90], bx
call fcn.0044b3e0
push esi
lea eax, [ebp - 0x72]
push ebx
push eax
mov word [ebp - 0x74], bx
call fcn.0044b3e0
add esp, 0x18
cmp edi, ebx
je 0x41f4f9
cmp dword [ebp + 0x1a4], ebx
jle 0x41f4f9
add esi, 2
push esi
lea eax, [ebp + 0x90]
push eax
push 0x22
push 0x46e900
mov byte [edi], bl
call fcn.0041e7fe
push esi
lea eax, [ebp - 0x74]
push eax
push 3
push 0x46e924
call fcn.0041e7fe
lea eax, [ebp + 0x90]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0041f014
mov eax, dword [eax]
add esp, 0x28
lea ecx, [ebp - 0x7c]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ecx, dword [ebp - 0x78]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004010b0
cmp esi, ebx
jne 0x41f4f9
mov eax, dword [ebp + 0x1a4]
inc eax
push eax
call fcn.004279df
mov esi, eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0041f014
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp + 0x1a4]
push ecx
push esi
lea ecx, [ebp - 0x80]
push ecx
push ebx
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x78]
add ecx, 0xfffffff0
mov ebx, eax
call fcn.004010b0
push edi
push esi
call fcn.0041e9fb
push esi
call fcn.004279da
add esp, 0xc
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
neg eax
sbb eax, eax
not eax
and eax, edi
jmp 0x41f4fb
xor eax, eax
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044b821
add ebp, 0x198
leave
ret
Function at 0x41f6e2
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 4
xor ebx, ebx
cmp dword [ebp + 8], ebx
pop edi
mov dword [ebp - 0x14], edi
je 0x41f827
cmp dword [ebp + 0xc], ebx
je 0x41f827
mov eax, dword [ebp + 0x10]
movzx ecx, word [eax]
movzx edx, word [eax + 2]
imul ecx, ecx, 0xc
movzx eax, word [eax + 6]
push dword [ebp + 8]
lea esi, [ecx + edx - 1]
imul esi, esi, 0x1e
add esi, eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041f014
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp + 8]
push ecx
push 0x2001b
push ebx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
mov dword [ebp - 8], eax
call fcn.004010b0
cmp dword [ebp - 8], ebx
jne 0x41f827
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x10], edi
call fcn.0041f014
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
mov dword [ebp - 8], eax
call fcn.004010b0
cmp dword [ebp - 8], ebx
jne 0x41f82e
mov eax, dword [ebp - 4]
push 0x64
xor edx, edx
pop ecx
div ecx
mov ebx, edx
lea ecx, [ebx - 1]
cmp ecx, 9
ja 0x41f819
mov ecx, esi
sub ecx, eax
jne 0x41f7c4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x41f829
test ecx, ecx
jle 0x41f7d0
sub ebx, ecx
jns 0x41f7d1
xor ebx, ebx
jmp 0x41f7d1
dec ebx
push dword [ebp + 0xc]
imul esi, esi, 0x64
lea eax, [ebp - 0xc]
add esi, ebx
push eax
mov dword [ebp - 4], esi
call fcn.0041f014
pop ecx
pop ecx
push edi
lea ecx, [ebp - 4]
push ecx
push edi
push 0
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.004010b0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
ja 0x41f7c0
call fcn.0041f5fc
jmp 0x41f7c0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0041f5fc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp + 0xc]
imul esi, esi, 0x64
lea eax, [ebp - 0xc]
add esi, 0xa
push eax
mov dword [ebp - 4], esi
call fcn.0041f014
pop ecx
pop ecx
push edi
lea ecx, [ebp - 4]
push ecx
push edi
push ebx
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.004010b0
push 0xa
pop eax
jmp 0x41f829
Function at 0x4264bf
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x5c]
push eax
lea edi, [esi + 0x58]
push edi
call fcn.0041ce61
mov ecx, esi
call fcn.004263d0
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42659d
push ebx
push 1
xor ebx, ebx
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
mov dword [ebp - 0xc], eax
je 0x426516
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x426516
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [edi]
push ebx
mov dword [ebp - 4], eax
call fcn.0044b230
and dword [ebp - 8], 0
test eax, eax
pop ecx
mov dword [ebp - 0x10], eax
jle 0x42657a
mov eax, dword [ebp - 8]
movsx eax, byte [eax + ebx]
push 0
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x140]
test al, al
je 0x42656f
push dword [ebp - 0xc]
mov eax, dword [esi]
push dword [ebp - 4]
mov ecx, esi
call dword [eax + 0x150]
inc dword [ebp - 4]
mov eax, dword [esi + 0x68]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax - 0xc]
je 0x42657a
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jl 0x426533
push dword [esi + 0x68]
mov ecx, esi
mov byte [esi + 0x62], 0
mov byte [esi + 0x63], 1
call fcn.00430347
mov eax, dword [edi]
push 0
push eax
push eax
mov ecx, esi
mov dword [esi + 0x5c], eax
call fcn.00409b86
pop ebx
pop edi
pop esi
leave
ret

Function at 0x426ef0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
ret
Function at 0x428361
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x428381
cmp dword [edi + 0x54], 0
jne 0x428381
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004293d6
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00428328
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x42de97
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x42ded0
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00426482
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00409c07
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x42f580
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x46a175
mov ecx, edi
call fcn.00401a3e
cmp dword [esi + 0x4c], 0
push dword [esp + 0xc]
jne 0x42f5d3
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x42f5e6
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.00426482
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00409c07
jmp 0x42f5e6
mov ecx, esi
call fcn.00430220
test eax, eax
je 0x42f5e6
push edi
mov ecx, eax
call fcn.0042de97
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
pop edi
pop esi
ret 8

Function at 0x42facd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x42fb10
call fcn.004293d6
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42fb10
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42fb2b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0042f684
test ebx, ebx
mov esi, eax
je 0x42fb29
test edi, edi
je 0x42fb29
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4308ff
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x466811
call fcn.0044b830
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x430924
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x430970
call fcn.0042953a
push eax
lea ecx, [ebp - 0x10]
call fcn.00401522
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042845e
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004010b0
mov eax, esi
call fcn.0044b908
ret 8

Function at 0x43271e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.004293d6
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x432749
xor eax, eax
jmp 0x4327ed
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x432742
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x432742
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004279af
mov edi, eax
xor eax, eax
cmp word [esi + 6], ax
pop ecx
jbe 0x43279e
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x43278d
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.00431544
push edi
mov ebx, eax
call fcn.004279da
test ebx, ebx
pop ecx
je 0x4327e0
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.00431c07
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00431cb9
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4
Function at 0x43a654
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x43a69a
call fcn.004293d6
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x43a69a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x43a6dd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x43a6c6
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x43a6c6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x43a6da
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x43c5ec
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x43c61a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43c638
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0043c556
jmp 0x43c638
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43c638
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0043c556
test edi, edi
mov eax, edi
jne 0x43c622
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x48d868]
test ecx, ecx
je 0x43c6fb
jmp 0x43c5eb
ret 8

Function at 0x44b821
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48a460]
jne 0x44b82b
repz ret
jmp fcn.004543ac
Function at 0x45c36f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00453dfc
xor ebx, ebx
cmp dword [0x48e59c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x45c444
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x45c3af
xor eax, eax
jmp 0x45c508
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x475b88
push edi
call esi
cmp eax, ebx
je 0x45c3a8
push eax
call fcn.00453d99
mov dword [esp], 0x475b78
push edi
mov dword [0x48e59c], eax
call esi
push eax
call fcn.00453d99
mov dword [esp], 0x475b64
push edi
mov dword [0x48e5a0], eax
call esi
push eax
call fcn.00453d99
mov dword [0x48e5a4], eax
lea eax, [ebp - 8]
push eax
call fcn.004502b1
test eax, eax
pop ecx
pop ecx
je 0x45c412
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0045211c
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x45c444
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00453d99
cmp eax, ebx
pop ecx
mov dword [0x48e5ac], eax
je 0x45c444
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00453d99
pop ecx
mov dword [0x48e5a8], eax
mov eax, dword [0x48e5a8]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x45c4bd
cmp dword [0x48e5ac], esi
je 0x45c4bd
push eax
call fcn.00453e05
pop ecx
call eax
cmp eax, ebx
je 0x45c48a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x48e5ac]
call fcn.00453e05
pop ecx
call eax
test eax, eax
je 0x45c48a
test byte [ebp - 0x18], 1
jne 0x45c4bd
lea eax, [ebp - 0xc]
push eax
call fcn.004502e8
test eax, eax
pop ecx
je 0x45c4a5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0045211c
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x45c4b4
or dword [ebp + 0x10], 0x200000
jmp 0x45c4ee
or dword [ebp + 0x10], 0x40000
jmp 0x45c4ee
mov eax, dword [0x48e5a0]
cmp eax, esi
je 0x45c4ee
push eax
call fcn.00453e05
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x45c4ee
mov eax, dword [0x48e5a4]
cmp eax, esi
je 0x45c4ee
push dword [ebp - 4]
push eax
call fcn.00453e05
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x48e59c]
call fcn.00453e05
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46187a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x48a460]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0046180f
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0044b3e0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4618c9
cmp dword [ebp - 0x1c], 5
jb 0x4618e1
jmp 0x4618dd
cmp dword [ebp - 0x10], 1
jne 0x4618e1
cmp dword [ebp - 0x1c], 4
ja 0x4618dd
jne 0x4618e1
cmp dword [ebp - 0x18], 0
jbe 0x4618e1
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x476c14
call fcn.004616e3
test eax, eax
jge 0x461902
mov byte [0x48bc90], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0044b821
add ebp, 0x78
leave
ret
Function at 0x402003
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004021b3
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x402101
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x4020a4
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4020e7
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x4020bb
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4020d6
test al, 0x40
je 0x4020cd
mov ecx, dword [edi + 0x20]
jmp 0x4020d4
test al, 0x80
je 0x4020e7
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4020e7
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x402073
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x42e150
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x49891b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0048b242
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x42e1d2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00488cc0
mov eax, dword [eax]
push 0x519224
push eax
call fcn.0047b734
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0048b4cd
test bl, bl
je 0x42e1d2
push 0x519224
lea ecx, [esp + 0xc]
call fcn.0048b8a9
push 0x51cd9c
lea ecx, [esp + 0xc]
call fcn.0048b8a9
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x42e20e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0048b4cd
jmp 0x42e2d9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x42e292
lea edx, [esp + 0x7c]
push 0x51cd98
push edx
call fcn.0047b734
add esp, 8
test eax, eax
je 0x42e292
lea eax, [esp + 0x7c]
push 0x51cd94
push eax
call fcn.0047b734
add esp, 8
test eax, eax
je 0x42e292
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x42e222
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0048b4cd
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x42f530
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x42f592
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc