joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415660
Capabilities:
Create process on windows
Enumerate processes
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43611b
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x45a6d0]
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]
push 0
push 2
mov dword [ebp - 0x2f8], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [ebp - 0x2f4]
push eax
push edi
mov dword [ebp - 0x2f4], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4156e5
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push ebx
lea ecx, [ebp - 0x2d0]
push ecx
call esi
test eax, eax
je 0x41570a
lea edx, [ebp - 0x2f4]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4156c5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
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.0041b4d6
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2ec]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, 0xffffffff
je 0x41572c
push str.OpenProcess_SUCCESS__
jmp 0x415731
push str.OpenProcess_failed__
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, eax
test esi, esi
je 0x415753
push str.KILL_SUCCESS__
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x41579a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
push 0x7e
push ecx
lea edx, [ebp - 0x8e]
push edx
mov ebx, eax
mov word [ebp - 0x90], cx
call fcn.00426cd0
push ebx
push str.kill_fail__d
lea edx, [ebp - 0x90]
call fcn.00404770
add esp, 0x14
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ebx, dword [ebp - 0x2f8]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x41586e
mov eax, str.taskkill__F__T__IM
lea ecx, [ebp - 0xac]
call fcn.00408fc0
mov eax, ebx
mov dword [ebp - 4], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4157c1
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [ebp - 0xac]
call fcn.004162d0
mov eax, dword [ebp - 0xac]
mov ebx, 8
cmp dword [ebp - 0x98], ebx
jae 0x4157f7
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0xc8]
push ecx
call sym.jsService.exe_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_KpBase::ws2s_wchar_t_const__
mov edi, 0x10
add esp, 8
cmp dword [eax + 0x14], edi
jb 0x415813
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
cmp dword [ebp - 0xb4], edi
jb 0x415835
mov edx, dword [ebp - 0xc8]
push edx
call fcn.0041bfc5
add esp, 4
cmp esi, 0x20
jge 0x415857
mov eax, dword [ebp - 0xac]
cmp dword [ebp - 0x98], ebx
jae 0x41584e
lea eax, [ebp - 0xac]
push eax
call fcn.0041d484
add esp, 4
cmp dword [ebp - 0x98], ebx
jb 0x41586e
mov eax, dword [ebp - 0xac]
push eax
call fcn.0041bfc5
add esp, 4
mov eax, esi
jmp 0x4156ee
Function at 0x415bb0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x698
mov eax, dword [0x45a6d0]
xor eax, esp
mov dword [esp + 0x694], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x415ca2
push 0x100
lea ecx, [esp + 0x19c]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x415ca2
lea edx, [esp + 0x198]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x415ca2
push 0x3ff
lea eax, [esp + 0x29d]
push 0
push eax
mov byte [esp + 0x2a4], 0
call fcn.00426cd0
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
add esp, 0xc
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
lea edx, [esp + 0x298]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x415c51
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [esp + 0x298]
lea edx, [eax + 1]
jmp 0x415c70
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x415c70
sub eax, edx
push eax
lea ecx, [esp + 0x29c]
push ecx
mov ecx, edi
call fcn.004028b2
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x694]
xor ecx, esp
call fcn.0041b4d6
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x69c]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0041b4d6
mov esp, ebp
pop ebp
ret

Function at 0x4167d0
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push edi
mov dword [ebp - 4], edi
call esi
cmp eax, 0x7a
jne 0x416809
mov ecx, dword [ebp - 4]
push ecx
call fcn.0041bc6b
mov edi, eax
add esp, 4
test edi, edi
je 0x416868
push 0
lea edx, [ebp - 4]
push edx
push edi
call esi
test eax, eax
je 0x416825
test edi, edi
je 0x41681a
push edi
call fcn.0041bc31
add esp, 4
mov eax, dword [0x463e54]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi]
mov eax, dword [0x463e54]
xor esi, esi
test ecx, ecx
je 0x416886
lea edx, [edi + 4]
cmp dword [edx], 0
jne 0x41683e
test eax, eax
je 0x41684c
inc esi
add edx, 0x38
cmp esi, ecx
jb 0x416835
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x38
call fcn.0041bc6b
add esp, 4
mov dword [0x463e54], eax
test eax, eax
jne 0x416870
push edi
call fcn.0041bc31
add esp, 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [esi*8]
sub ecx, esi
lea esi, [edi + ecx*8 + 4]
mov ecx, 0xe
mov edi, eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4174e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436d33
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x45a6d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x2c]
push esi
push eax
call sym.jsService.exe_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_KpBase::ws2s_wchar_t_const__
add esp, 8
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 0x10
jb 0x417526
mov edi, dword [eax]
jmp 0x417528
mov edi, eax
mov ecx, dword [sym.jsService.exe_class_FileLogger__FileLogger::m_pThis]
cmp ecx, ebx
jne 0x417560
push 0x15c
call fcn.0041c0fb
add esp, 4
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x417553
mov ecx, eax
call sym.jsService.exe_private:_void___thiscall_FileLogger::constructor_void_
jmp 0x417555
xor eax, eax
mov ecx, eax
mov byte [ebp - 4], bl
mov dword [sym.jsService.exe_class_FileLogger__FileLogger::m_pThis], ecx
push edi
call sym.jsService.exe_public:_void___thiscall_FileLogger::addLog_char_const__
cmp dword [ebp - 0x18], 0x10
jb 0x417578
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0041bfc5
add esp, 4
push 0x3c
lea edx, [ebp - 0x6c]
push ebx
push edx
call fcn.00426cd0
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x6c], 0x3c
mov dword [ebp - 0x5c], 0x452dd4
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x68], 0x40
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp - 0x34]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b4d6
mov esp, ebp
pop ebp
ret
Function at 0x418890
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, eax
test edi, edi
je 0x4189eb
lea ecx, [edi*8]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
lea edx, [ecx + ecx]
lea ecx, [edi*8]
sub ecx, edx
sub ecx, 2
je 0x4188dc
sub ecx, 2
jne 0x4188df
add eax, 2
jmp 0x4188df
add eax, 3
inc eax
cmp dword [ebx], eax
jae 0x4188f2
pop edi
mov dword [ebx], eax
pop esi
mov eax, 0xfffffff0
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov eax, 0x55555556
imul edi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*2]
xor edx, edx
test eax, eax
jle 0x418986
lea edx, [eax - 1]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
inc edx
lea eax, [edx + edx*2]
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
movzx eax, byte [esi]
movzx edx, byte [esi + 1]
movzx edi, byte [esi + 2]
mov ebx, eax
sar ebx, 2
and ebx, 0x3f
mov bl, byte [ebx + 0x452fd0]
mov byte [ecx], bl
mov ebx, edx
shl eax, 4
sar ebx, 4
add ebx, eax
and ebx, 0x3f
movzx eax, byte [ebx + 0x452fd0]
mov byte [ecx + 1], al
mov eax, edi
sar eax, 6
lea edx, [eax + edx*4]
and edx, 0x3f
movzx eax, byte [edx + 0x452fd0]
mov byte [ecx + 2], al
and edi, 0x3f
mov dl, byte [edi + 0x452fd0]
mov byte [ecx + 3], dl
add esi, 3
add ecx, 4
dec dword [ebp - 4]
jne 0x418922
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 8]
cmp edx, edi
jge 0x4189de
movzx eax, byte [esi]
inc edx
cmp edx, edi
jge 0x418998
movzx esi, byte [esi + 1]
jmp 0x41899a
xor esi, esi
mov ebx, eax
sar ebx, 2
and ebx, 0x3f
mov bl, byte [ebx + 0x452fd0]
mov byte [ecx], bl
mov ebx, esi
sar ebx, 4
shl eax, 4
add ebx, eax
and ebx, 0x3f
mov al, byte [ebx + 0x452fd0]
mov byte [ecx + 1], al
cmp edx, edi
jge 0x4189d3
and esi, 0xf
mov dl, byte [esi*4 + 0x452fd0]
mov byte [ecx + 2], dl
jmp 0x4189d7
mov byte [ecx + 2], 0x3d
add ecx, 3
mov byte [ecx], 0x3d
inc ecx
mov edx, dword [ebp + 0x10]
mov eax, ecx
sub eax, dword [ebp + 0xc]
mov dword [edx], eax
mov byte [ecx], 0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418a00
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, eax
xor ebx, ebx
xor esi, esi
xor edx, edx
test edi, edi
jle 0x418b33
mov dword [ebp - 4], edi
lea ebx, [ebx]
cmp dword [ebp - 4], 2
mov eax, dword [ebp + 8]
jl 0x418a42
movzx ecx, byte [edx + eax]
cmp ecx, 0x2f72
jne 0x418a42
movzx ecx, byte [edx + eax + 1]
cmp ecx, 0x2f6e
je 0x418a73
mov al, byte [edx + eax]
movzx ecx, al
cmp ecx, 0x2f6e
je 0x418a73
cmp al, 0x3d
jne 0x418a5a
inc esi
cmp esi, 2
jg 0x418aa5
cmp al, 0x7f
ja 0x418aa5
mov cl, byte [ecx + 0x453010]
cmp cl, 0x7f
je 0x418aa5
cmp cl, 0x40
jae 0x418a72
test esi, esi
jne 0x418aa5
inc ebx
dec dword [ebp - 4]
inc edx
cmp edx, edi
jl 0x418a20
mov dword [ebp - 4], edx
test ebx, ebx
je 0x418b33
mov ecx, dword [ebp + 0x10]
lea eax, [ebx + ebx*2]
lea eax, [eax + eax + 7]
sar eax, 3
cmp dword [ecx], eax
jae 0x418ab1
pop edi
pop esi
mov dword [ecx], eax
mov eax, 0xfffffff0
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xffffffee
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
xor ecx, ecx
xor edi, edi
mov ebx, 3
test edx, edx
jle 0x418b2b
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
cmp eax, 0x2f72
je 0x418b20
cmp eax, 0x2f6e
je 0x418b20
mov al, byte [eax + 0x453010]
xor edx, edx
cmp al, 0x40
sete dl
movzx eax, al
and eax, 0x3f
shl ecx, 6
inc edi
sub ebx, edx
or ecx, eax
cmp edi, 4
jne 0x418b1d
xor edi, edi
test ebx, ebx
jle 0x418b03
mov edx, ecx
shr edx, 0x10
mov byte [esi], dl
inc esi
cmp ebx, 1
jle 0x418b10
mov eax, ecx
shr eax, 8
mov byte [esi], al
inc esi
mov edx, dword [ebp - 4]
cmp ebx, 2
jle 0x418b20
mov byte [esi], cl
inc esi
jmp 0x418b20
mov edx, dword [ebp - 4]
inc dword [ebp + 8]
dec edx
mov dword [ebp - 4], edx
test edx, edx
jg 0x418ac1
sub esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x418b40
Capabilities:
Hash data with md5

Disassembly:
mov eax, ecx
xor ecx, ecx
mov byte [eax + 0x68], cl
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x418b70
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
xor eax, eax
mov byte [esi + 0x68], al
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
mov ecx, esi
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
call sym.jsService.exe_private:_void___thiscall_MD5::update_unsigned_char_const___unsigned_int_
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x418bc0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push esi
mov esi, ecx
mov byte [esi + 0x68], al
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x418bfa
mov eax, dword [eax]
push ecx
push eax
mov ecx, esi
call sym.jsService.exe_private:_void___thiscall_MD5::update_unsigned_char_const___unsigned_int_
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x418c10
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push esi
mov esi, ecx
mov byte [esi + 0x68], al
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 8]
push eax
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
call sym.jsService.exe_public:_void___thiscall_MD5::update_class_std::basic_ifstream_char__struct_std::char_traits_char____
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x418c70
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x41a310
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
push edi
lea edi, [eax + 2]
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x41a320
mov ecx, dword [ecx + 4]
sub eax, edi
sar eax, 1
inc eax
push eax
mov eax, dword [ebp + 8]
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
pop ebp
ret 8

Function at 0x41a3e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x13f8
call fcn.0042e430
mov eax, dword [0x45a6d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
lea edx, [ebp - 0x13f4]
push edx
lea edx, [ebp - 0x13f0]
push edx
lea edx, [ebp - 0x13f8]
push edx
push 0
push eax
mov eax, dword [ecx + 4]
push eax
mov dword [ebp - 0x13f4], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41a468
lea eax, [ebp - 0x13f0]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41a437
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x13f0]
call fcn.00409320
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b4d6
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0041b4d6
mov esp, ebp
pop ebp
ret 8
Function at 0x41a480
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435f5b
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x45a6d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, ecx
xor ecx, ecx
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
mov word [ebp - 0x234], cx
lea edx, [ebp - 0x234]
mov dword [ebp - 4], ecx
push edx
mov ecx, edi
call sym.jsService.exe_public:_int___thiscall_CRegistry::GetSubKey_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____
test eax, eax
je 0x41a5b0
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x238], 0
jae 0x41a510
lea eax, [ebp - 0x234]
mov edx, dword [edi + 4]
lea ecx, [ebp - 0x238]
push ecx
push 0xf003f
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41a591
lea eax, [ebp - 0x240]
push eax
mov eax, dword [ebp - 0x238]
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x244]
push edx
push 0
push esi
push eax
mov dword [ebp - 0x240], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41a591
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41a570
mov esi, dword [ebp - 0x23c]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
call fcn.00409320
cmp dword [ebp - 0x220], 8
jb 0x41a5a9
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.0041bfc5
add esp, 4
mov eax, 1
jmp 0x41a5ca
cmp dword [ebp - 0x220], 8
jb 0x41a5c8
mov edx, dword [ebp - 0x234]
push edx
call fcn.0041bfc5
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b4d6
mov esp, ebp
pop ebp
ret 8

Function at 0x41a5f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x45a6d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov eax, 0x43c02c
mov edi, ecx
mov dword [ebp - 0x210], 0x104
call fcn.00409320
mov edx, dword [edi + 8]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x20c]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41a686
inc dword [edi + 8]
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41a654
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
call fcn.00409320
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b4d6
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov dword [edi + 8], 0
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0041b4d6
mov esp, ebp
pop ebp
ret 4

Function at 0x41b4d6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45a6d0]
jne 0x41b4e0
repz ret
jmp fcn.00420a9b
Function at 0x4285dd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x428604
call fcn.004207f3
mov dword [eax], esi
call fcn.004207e0
push 0x16
pop esi
mov dword [eax], esi
call fcn.00421cfd
mov eax, esi
jmp 0x428659
test dword [ebp + 0xc], 0xfffffff9
jne 0x4285ea
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x428631
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00420806
pop ecx
call fcn.004207e0
mov eax, dword [eax]
jmp 0x428659
test al, 0x10
jne 0x428657
test al, 1
je 0x428657
test byte [ebp + 0xc], 2
je 0x428657
call fcn.004207f3
mov dword [eax], 5
call fcn.004207e0
mov dword [eax], 0xd
jmp 0x428628
xor eax, eax
pop esi
pop ebp
ret

Function at 0x42d6ac
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45a6d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004215be
and dword [ebp - 0x14], 0
cmp dword [0x4636b8], 0
mov dword [ebp - 0x18], eax
jne 0x42d75f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42d807
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43aa40
push ebx
call edi
test eax, eax
je 0x42d807
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4636b8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4636bc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4636c0], eax
call edi
push eax
call esi
mov dword [0x4636c8], eax
test eax, eax
je 0x42d75f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4636c4], eax
mov eax, dword [0x4636c4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42d7b8
cmp dword [0x4636c8], ecx
je 0x42d7b8
push eax
call esi
push dword [0x4636c8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42d7b8
test ebx, ebx
je 0x42d7b8
call edi
test eax, eax
je 0x42d7af
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42d7af
test byte [ebp - 8], 1
jne 0x42d7b8
or dword [ebp + 0x10], 0x200000
jmp 0x42d7eb
mov eax, dword [0x4636bc]
cmp eax, dword [ebp - 0x18]
je 0x42d7eb
push eax
call esi
test eax, eax
je 0x42d7eb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42d7eb
mov eax, dword [0x4636c0]
cmp eax, dword [ebp - 0x18]
je 0x42d7eb
push eax
call esi
test eax, eax
je 0x42d7eb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4636b8]
call esi
test eax, eax
je 0x42d807
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42d809
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041b4d6
leave
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401090
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ebp, esp
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40330c], eax
mov eax, dword [ebp + 4]
mov dword [0x403159], eax
xor eax, eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x4010bb
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x403159]
mov dword [ebp - 0x48], eax
mov eax, 0x402291
mov dword [ebp - 0x54], eax
mov ecx, 0x403206
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0
push 0
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
xor ecx, ecx
push ecx
push dword [0x403159]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.bananas
push eax
mov eax, str.secondclass
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x403358], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403358]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x401179
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x40116b
mov esp, ebp
ret