joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d320
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
push 0x38
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
mov dword [esp + 0x10], 0x3c
call fcn.00456ba0
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], ecx
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x40d3ba
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d391
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d3b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop esi
add esp, 0x3c
ret 0xc
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x48], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push edx
call esi
cmp dword [esp + 0x44], 0x103
jne 0x40d3ff
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x48]
push eax
push ecx
call esi
push 0x1f4
call edi
cmp dword [esp + 0x48], 0x103
je 0x40d3e1
pop edi
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d41f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d43f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
pop esi
add esp, 0x3c
ret 0xc
Function at 0x40da90
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x48d4a9
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0x1bc], eax
push ebp
push esi
push edi
mov eax, dword [0x4ada68]
xor eax, esp
push eax
lea eax, [esp + 0x1d0]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1e0]
xor esi, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1d8], esi
call fcn.00436fa8
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40daf8
push 0x80004005
call fcn.00405de0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x1d8], 1
mov ecx, dword [esp + 0x1e4]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.0040bc00
mov byte [esp + 0x1d8], 2
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
call fcn.00403280
mov byte [esp + 0x1d8], 3
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 1
jge 0x40db5b
lea edx, [esp + 0x1e4]
push edx
lea ecx, [esp + 0x18]
call fcn.00402b00
lea eax, [esp + 0x3c]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edx, dword [esp + 0x14]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x40db8c
push esi
lea ecx, [esp + 0x18]
call fcn.004030c0
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, esi
jne 0x40dbab
mov ecx, dword [esp + 0x1e4]
push ecx
push str.Cant_resolve__s_r_n
lea edx, [esp + 0x20]
push edx
jmp 0x40dbc4
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push 0x49a59c
lea eax, [esp + 0x20]
push eax
call fcn.0040b660
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov edi, dword [esp + 0x18]
add edi, 0xfffffff0
push edi
call fcn.00405d50
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x1dc], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
add esp, 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc10
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x1c]
call fcn.0040bd70
or edx, 0xffffffff
lea ecx, [edi + 0xc]
mov byte [esp + 0x1d8], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc3a
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov dword [esp + 0x1d8], 0xffffffff
mov eax, dword [esp + 0x1e4]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x1d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1bc]
xor ecx, esp
call fcn.0044fdb2
add esp, 0x1cc
ret
Function at 0x40e4c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1460
call fcn.00454d40
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0x145c], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0
mov dword [esp + 0x10], eax
call fcn.00423a40
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
add esp, 4
push 0
push 0x20
lea ecx, [esp + 0x1160]
push ecx
push 0
call esi
test eax, eax
je 0x40e51f
push 0
lea edx, [esp + 0x115c]
push 0
push edx
call fcn.00423b00
add esp, 0xc
push 1
call fcn.00423a40
add esp, 4
push 0
push 0x21
lea eax, [esp + 0x1160]
push eax
push 0
call esi
test eax, eax
je 0x40e551
push 0
lea ecx, [esp + 0x115c]
push 0
push ecx
call fcn.00423b00
add esp, 0xc
push 0x1ff
lea edx, [esp + 0x1265]
push 0
push edx
mov byte [esp + 0x126c], 0
call fcn.00456ba0
add esp, 0xc
push 0xb4
lea eax, [esp + 0x10a4]
push 0
push eax
mov dword [esp + 0xa4], 0
call fcn.00456ba0
add esp, 0xc
mov esi, str.IDS_DELETE_TEMP_FILE
mov ecx, str.CheckRes
call fcn.00420e20
lea edx, [esp + 0x10a0]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x40e5a8
xor eax, eax
jmp 0x40e5c0
mov cl, byte [esp + eax + 0x10a0]
mov byte [esp + eax + 0x9c], cl
inc eax
test cl, cl
jne 0x40e5c0
lea eax, [esp + 0x1260]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e5e0
lea edi, [esp + 0x9c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40e5f1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call fcn.0041cab0
mov ecx, dword [esp + 0x1468]
add esp, 4
pop edi
pop esi
xor ecx, esp
call fcn.0044fdb2
mov esp, ebp
pop ebp
ret 4
Function at 0x40f190
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x48d3b6
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push edi
mov eax, dword [0x4ada68]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
xor ebx, ebx
push 0x103
lea eax, [esp + 0x25]
push ebx
mov dword [esp + 0x20], ebx
push eax
mov byte [esp + 0x2c], bl
call fcn.00456ba0
add esp, 0xc
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0x104
mov dword [esp + 0x1c], ebx
call fcn.00403280
push 0x49a814
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], ebx
call fcn.00403280
mov byte [esp + 0x130], 1
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x14]
call fcn.00402c40
mov eax, dword [esp + 0xc]
cmp dword [eax - 4], 1
jle 0x40f24a
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x10]
call fcn.00403000
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x14]
push edx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
je 0x40f289
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push 0x20119
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
cmp eax, ebx
je 0x40f289
push 0x49a277
jmp 0x40f2e6
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
push ebx
push str.DisplayVersion
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x40f2e1
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x49a277
mov ecx, esi
call fcn.00403280
mov byte [esp + 0x130], bl
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40f308
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00403280
mov byte [esp + 0x130], bl
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f314
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x130], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f33f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.0044fdb2
add esp, 0x128
ret
Function at 0x40f370
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x48d363
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push edi
mov eax, dword [0x4ada68]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
push 0x103
lea eax, [esp + 0x21]
push ebx
mov dword [esp + 0x134], ebx
push eax
mov byte [esp + 0x28], bl
call fcn.00456ba0
add esp, 0xc
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0x104
mov dword [esp + 0x18], ebx
call fcn.00403280
mov byte [esp + 0x12c], 1
mov eax, dword [esp + 0x134]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x14]
call fcn.00402c40
mov eax, dword [esp + 0xc]
cmp dword [eax - 4], 1
jle 0x40f41f
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x10]
call fcn.00403000
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x10]
push edx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
je 0x40f45e
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push 0x20119
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
cmp eax, ebx
je 0x40f45e
push 0x49a277
jmp 0x40f4bb
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push 0x49a82c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x40f4b6
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x49a277
mov ecx, esi
call fcn.00403280
mov byte [esp + 0x12c], bl
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40f4dd
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00403280
mov byte [esp + 0x12c], bl
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f4e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x12c], 0xffffffff
mov eax, dword [esp + 0x134]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f517
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0044fdb2
add esp, 0x124
ret 4
Function at 0x40f550
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x48d363
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push edi
mov eax, dword [0x4ada68]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
push 0x103
lea eax, [esp + 0x21]
push ebx
mov dword [esp + 0x134], ebx
push eax
mov byte [esp + 0x28], bl
call fcn.00456ba0
add esp, 0xc
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0x104
mov dword [esp + 0x18], ebx
call fcn.00403280
mov byte [esp + 0x12c], 1
mov eax, dword [esp + 0x134]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x14]
call fcn.00402c40
mov eax, dword [esp + 0xc]
cmp dword [eax - 4], 1
jle 0x40f5ff
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x10]
call fcn.00403000
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x10]
push edx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
je 0x40f63e
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push 0x20119
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
cmp eax, ebx
je 0x40f63e
push 0x49a277
jmp 0x40f69b
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push str.DisplayVersion
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x40f696
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x49a277
mov ecx, esi
call fcn.00403280
mov byte [esp + 0x12c], bl
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40f6bd
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00403280
mov byte [esp + 0x12c], bl
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f6c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x12c], 0xffffffff
mov eax, dword [esp + 0x134]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f6f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.0044fdb2
add esp, 0x124
ret 4
Function at 0x416890
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b5b0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4ada68]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0xf0000000
push 1
xor ebx, ebx
push 0x49abb0
push ebx
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov dword [ebp - 0x24], eax
cmp eax, ebx
jne 0x416907
push ebx
push ebx
push 0x49abcc
call fcn.0043d6ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4a51b4
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x28], eax
call fcn.00456eab
xor eax, eax
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1b], eax
mov word [ebp - 0x17], ax
mov byte [ebp - 0x15], al
mov eax, dword [ebp - 0x20]
push 8
push eax
mov byte [ebp - 0x1c], bl
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, ebx
jne 0x41695d
push ebx
push ebx
push 0x49ac00
call fcn.0043d6ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x4a51b4
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp - 0x2c], eax
call fcn.00456eab
mov eax, 0x416958
ret
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x41696c
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044fdb2
mov esp, ebp
pop ebp
ret
Function at 0x417860
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x48cdf0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4ada68]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
push 0x49a277
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.00403280
push 0x207
lea eax, [ebp + 1]
push ebx
mov dword [ebp - 4], ebx
push eax
mov byte [ebp], bl
call fcn.00456ba0
add esp, 0xc
push 5
push str.CLSID
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], 0x208
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 1
call fcn.00403170
call fcn.00436fa8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x417902
push 0x80004005
call fcn.00405de0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x20], eax
push esi
lea ecx, [ebp - 0x20]
push str._sInprocServer32
push ecx
mov byte [ebp - 4], 2
call fcn.0040b660
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax - 0xc]
add esp, 0xc
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00402c40
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
or ecx, eax
jge 0x417955
push ebx
lea ecx, [ebp - 0x14]
call fcn.004030c0
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x417983
push 0x4a512c
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x28], eax
call fcn.00456eab
lea edx, [ebp - 0x24]
push edx
mov edx, dword [ebp - 0x1c]
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x38]
push ecx
push ebx
push 0x49a277
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, ebx
je 0x4179b9
push 0x4a512c
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x34], esi
call fcn.00456eab
lea eax, [ebp]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4179c0
sub eax, edx
cmp eax, 3
jb 0x417a07
cmp dword [ebp - 0x24], 1
jb 0x417a07
lea ecx, [ebp]
push ecx
call fcn.00420720
mov ecx, 2
add esp, 4
cmp eax, ecx
je 0x4179fd
push 0x4a512c
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], ecx
call fcn.00456eab
lea ecx, [ebp - 0x20]
call fcn.00405e20
jmp 0x417a2b
mov eax, 0xd
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x30], eax
push 0x4a512c
lea eax, [ebp - 0x30]
push eax
call fcn.00456eab
mov eax, 0x417a26
ret
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x417a39
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
call fcn.00405e20
xor eax, eax
cmp esi, ebx
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0044fdb2
add ebp, 0x20c
mov esp, ebp
pop ebp
ret
Function at 0x417ff0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48bb68
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
mov eax, dword [0x4ada68]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
push 0x44
lea eax, [esp + 0x20]
push 0
push eax
mov dword [esp + 0x80], 0
call fcn.00456ba0
mov edx, dword [esp + 0x88]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0x44
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, dword [edx - 4]
add esp, 0xc
or ecx, eax
jge 0x418072
push 0
lea ecx, [esp + 0x80]
call fcn.004030c0
mov edx, dword [esp + 0x7c]
lea ecx, [esp + 0xc]
push ecx
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4180d2
mov dword [esp + 0x74], 0xffffffff
mov eax, dword [esp + 0x7c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4180bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x70
ret 4
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
mov dword [esp + 0x74], 0xffffffff
mov eax, dword [esp + 0x7c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41811b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x70
ret 4
Function at 0x418550
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xd4]
sub esp, 0xc
push ebx
push esi
push edi
push ecx
lea ecx, [esp + 0x14]
call fcn.0043bc8f
mov esi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov edi, 0x100
cmp dword [esi + 4], edi
jne 0x4185a9
push 0x74
call ebx
test ax, ax
jge 0x4185a9
cmp dword [esp + 0x14], 0
je 0x41859e
mov edx, dword [esp + 0x10]
push edx
push 0
call fcn.0043b3a0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x418621
cmp dword [esi + 4], edi
jne 0x418621
push 0x4f
call ebx
test ax, ax
jl 0x41858b
cmp dword [esi + 4], edi
jne 0x418621
push 0x50
call ebx
test ax, ax
jge 0x4185f5
cmp dword [esp + 0x14], 0
je 0x4185ea
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.0043b3a0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esi + 4], edi
jne 0x418621
push 0x4e
call ebx
test ax, ax
jge 0x418621
cmp dword [esp + 0x14], 0
je 0x418616
mov ecx, dword [esp + 0x10]
push ecx
push 0
call fcn.0043b3a0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esi + 8], 8
je 0x41858b
cmp dword [esp + 0x14], 0
je 0x41863e
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.0043b3a0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x418d30
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push ebx
push edi
mov ebx, eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x418d48
pop edi
pop ebx
pop ecx
ret
push esi
push edi
call fcn.00430336
mov esi, eax
add esp, 4
test esi, esi
je 0x418dd6
push edi
push 0
push esi
call fcn.00456ba0
add esp, 0xc
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x418dcd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x418dcd
push edi
push eax
push esi
call fcn.00458df0
mov eax, dword [esp + 0x20]
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
test ebx, ebx
je 0x418dcd
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
push esi
push ebx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
test eax, eax
jne 0x418ddd
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0043032b
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
cmp edi, dword [esp + 0x10]
jne 0x418dce
call fcn.0043032b
add esp, 4
pop esi
pop edi
mov eax, 1
pop ebx
pop ecx
ret