joyce8/EMBER2024-capa huggingface dataset:
Function at 0x59a200
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x80
push ebx
push ebp
mov ebp, dword [esp + 0x8c]
push esi
push eax
push ebp
mov esi, dword [ebp + eax*4 + 0x1a4]
call fcn.0059a6b0
add esp, 8
push 0
push dword [esp + 0xa0]
push dword [esp + 0xa0]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0xa0]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x59a2a7
push edi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x59a274
pop edi
pop esi
pop ebp
mov dword [ebx], 0x51
xor eax, eax
pop ebx
add esp, 0x80
ret
push pe_nt_image_headers32
lea eax, [esp + 0x14]
push eax
push edi
call fcn.005b3fc0
push eax
push str.Send_failure:__s
push dword [ebp]
call fcn.00599eb0
mov eax, dword [ebp]
add esp, 0x18
mov dword [eax + 0xc54], edi
mov eax, esi
mov dword [ebx], 0x37
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret

Function at 0x59a6b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 8]
mov eax, ecx
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
shl eax, 4
mov ebp, dword [ebx + ecx*4 + 0x1a4]
lea esi, [ebx + 0x1c8]
add esi, eax
mov eax, dword [ebx + 0x2c0]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x59a766
cmp dword [ebx + ecx*4 + 0x1b8], 0x59a130
jne 0x59a766
cmp dword [esi], 0
je 0x59a6fc
test edi, edi
je 0x59a766
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.005a21c0
add esp, 0x10
cmp eax, 0xffffffff
je 0x59a766
test al, 1
je 0x59a766
cmp dword [esi], 0
jne 0x59a74f
mov eax, dword [ebx]
mov eax, dword [eax + 0x8d0]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x6ac038]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x59a74f
pop edi
mov dword [esi + 4], eax
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x59a766
add dword [esi + 8], eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x5a1020
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
push ebx
mov ebx, dword [esp + 0x190]
cmp dword [ebx + 0x90], 3
jne 0x5a11f8
cmp byte [ebx + 0x289], 0
push ebp
push esi
push edi
jne 0x5a11ec
cmp byte [ebx + 0x2a1], 0
jne 0x5a11ec
mov esi, dword [esp + 0x1a0]
lea eax, [esp + 0x10]
mov ebp, dword [ebx]
push eax
lea eax, [esp + 0x11c]
mov dword [esp + 0x14], pe_nt_image_headers32
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x5a10b4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x18]
push pe_nt_image_headers32
push eax
push esi
call fcn.005b3fc0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebp
call fcn.00599eb0
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x188
ret
push pe_nt_image_headers32
lea eax, [esp + 0x9c]
mov dword [esp + 0x18], pe_nt_image_headers32
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x9c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x5a111e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x18]
push pe_nt_image_headers32
push eax
push esi
call fcn.005b3fc0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebp
call fcn.00599eb0
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x188
ret
lea eax, [ebx + 0x138]
push eax
lea esi, [ebx + 0x10a]
push esi
push dword [esp + 0x18]
lea eax, [esp + 0x124]
push eax
call fcn.005a0440
add esp, 0x10
test al, al
jne 0x5a117f
mov esi, dword [sym.imp.MSVCRT.dll__errno]
call esi
mov edi, eax
call esi
mov esi, eax
lea eax, [esp + 0x18]
push pe_nt_image_headers32
push eax
push dword [edi]
call fcn.005b3fc0
push eax
push dword [esi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.00599eb0
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x188
ret
lea edi, [ebx + 0x5c]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x16c]
push eax
lea eax, [ebx + 0x13c]
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0xa4]
movsw word es:[edi], word [esi]
push eax
call fcn.005a0440
add esp, 0x10
test al, al
jne 0x5a11ec
mov esi, dword [sym.imp.MSVCRT.dll__errno]
call esi
mov edi, eax
call esi
mov esi, eax
lea eax, [esp + 0x18]
push pe_nt_image_headers32
push eax
push dword [edi]
call fcn.005b3fc0
push eax
push dword [esi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.00599eb0
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x188
ret
push ebx
call fcn.005a0d00
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x188
ret
Function at 0x5a1b50
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
xor eax, eax
push edi
mov edi, dword [esp + 0x20]
push 4
cmp byte [esi + 0xa9f], al
setne al
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x5a1b9a
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00599f70
add esp, 0xc
pop edi
pop esi
add esp, 0x10
ret
push dword [esi + 0xa3c]
mov dword [esp + 0x10], 1
call fcn.005a03c0
push dword [esi + 0xa40]
imul eax, eax, 0x3e8
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], eax
call fcn.005a03c0
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x24]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x5a1c11
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.00599f70
add esp, 0x10
pop edi
pop esi
add esp, 0x10
ret

Function at 0x5a1c20
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x84
mov eax, dword [esp + 0x88]
push esi
push 4
mov dword [esp + 8], 1
mov esi, dword [eax]
lea eax, [esp + 8]
push eax
push 1
push 6
push dword [esp + 0xa0]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x5a1c81
push pe_nt_image_headers32
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.005b3fc0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00599f70
add esp, 0x18
pop esi
add esp, 0x84
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00599f70
add esp, 8
pop esi
add esp, 0x84
ret
Function at 0x5ac9b0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1000
call fcn.004f6760
push dword [esp + 0x1004]
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x5ac9fd
push 0x1000
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x5ac9fd
lea eax, [esp]
push eax
call dword [0x6ac044]
add esp, 4
add esp, 0x1000
ret
xor eax, eax
add esp, 0x1000
ret
Function at 0x5b34a0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebp
xor ebp, ebp
mov dword [esp + 4], ebp
mov dword [eax], ebp
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x5b3633
push ebx
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x5b361d
push esi
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x5b34ef
lea ebx, [eax + 0xe]
jmp 0x5b34fb
cmp eax, 0x17
jne 0x5b35aa
lea ebx, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x5b35aa
mov eax, dword [edi + 0x10]
test eax, eax
je 0x5b35aa
cmp eax, ebx
jb 0x5b35aa
push 0x20
call dword [0x6ac038]
mov esi, eax
add esp, 4
test esi, esi
je 0x5b3612
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push ebx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x6ac038]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x5b3601
push ebx
push dword [edi + 0x18]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x5b3595
push eax
call dword [0x6ac044]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x5b35e7
test ebp, ebp
jne 0x5b359b
mov ebp, esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5b35a6
mov dword [eax + 0x1c], esi
mov dword [esp + 0x10], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x5b34e2
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop esi
test eax, eax
je 0x5b35c9
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x5b3619
push ebp
call fcn.005b3460
mov eax, dword [esp + 0x2c]
add esp, 4
xor ebp, ebp
mov dword [eax], ebp
mov eax, ebx
pop edi
pop ebx
pop ebp
add esp, 0xc
ret
push dword [esi + 0x18]
mov ebx, 8
call dword [0x6ac03c]
push esi
call dword [0x6ac03c]
add esp, 8
jmp 0x5b35b9
push esi
mov ebx, 8
call dword [0x6ac03c]
add esp, 4
jmp 0x5b35b9
mov ebx, 8
jmp 0x5b35b9
test ebp, ebp
jne 0x5b3629
mov ebx, 0x2af9
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], ebp
mov eax, ebx
pop ebx
pop ebp
add esp, 0xc
ret
Function at 0x5b7c70
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x30
push esi
mov esi, dword [sym.imp.WS2_32.dll_socket]
push edi
push 6
push 1
push 2
mov dword [esp + 0x18], 0x10
mov dword [esp + 0x14], 1
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x5b7ca2
pop edi
or eax, eax
pop esi
add esp, 0x30
ret
xor eax, eax
mov dword [esp + 0x10], eax
push ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, 2
push 0x7f000001
mov word [esp + 0x18], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x18], eax
xor eax, eax
push 4
mov word [esp + 0x1a], ax
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push edi
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x5b7e37
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x5b7e37
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x5b7e37
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x5b7e37
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x5b7e37
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x5b7e37
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x5b7e37
push ebx
push 0x5dadc8
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.005ab5f0
lea esi, [esp + 0x34]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x5b7da4
push 0
sub esi, ecx
lea eax, [esp + 0x28]
push esi
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x5b7e37
push 0
push 0xc
lea eax, [esp + 0x38]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jne 0x5b7e37
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
sub esi, 4
jb 0x5b7df5
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x5b7dfa
add ecx, 4
add edx, 4
sub esi, 4
jae 0x5b7de4
cmp esi, 0xfffffffc
je 0x5b7e27
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x5b7e37
cmp esi, 0xfffffffd
je 0x5b7e27
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x5b7e37
cmp esi, 0xfffffffe
je 0x5b7e27
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x5b7e37
cmp esi, 0xffffffff
je 0x5b7e27
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x5b7e37
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x30
ret
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push edi
call esi
push dword [ebx]
call esi
push dword [ebx + 4]
call esi
pop ebx
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x30
ret
Function at 0x5c2f4a
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x6b2b24], 0
push ebx
push esi
mov esi, 0x6b2b2c
jne 0x5c2f76
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x6b2b44], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x6b2b24], 1
push dword [0x6b2b44]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x5c3013
push 0x14
push 8
push dword [0x6aef98]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x5c303d
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x6b2b28]
test eax, eax
je 0x5c2fb8
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x6b2b28], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x5c3042
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x6b2b44]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x6aef98]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x5c303d
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8
Function at 0x401d40
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
inc ebx
and esi, 0x40
dec edx
inc esi
or edx, 0xe2
imul eax
add edi, 0x28
bswap esi
inc ebx
bswap ebx
not edx
bswap edi
mov edi, 0x24
rol edx, 0x54
neg ebx
and eax, 0xee
add ebx, 0xb2
sub esi, 0xc7
add edx, 0xa5
and eax, 0x1f
or ebx, 0x17
dec esi
inc eax
rol eax, 0xca
imul esi
mov edi, 0x23
mov edx, 0x30
and ebx, 0xcc
sbb edi, 0x12
imul esi
or esi, 0x62
or esi, 0x8b
sbb ebx, 0x51
add ebx, 0x9f
not eax
rcl edx, 0xb2
sub eax, 0x39
mov ebx, 0xb4
neg edi
dec edi
rcl edi, 7
sbb edi, 0x5c
rcl eax, 0x6f
and eax, 0x7f
imul edi
sub eax, 0x20
mov edx, 0xdd
neg edi
imul edi
mov esi, 0xe4
xor ecx, ecx
xor edi, edi
or edi, 0x5d
neg esi
inc eax
rcl esi, 0x82
dec edi
not ebx
inc edx
not eax
bswap ebx
or eax, 0x25
rol edi, 0x5f
sub eax, 0x5b
inc ebx
or esi, 0xde
imul ebx
inc edx
inc edx
mov eax, 0xc2
neg edi
or edx, 0xdc
imul edx
dec ebx
add esi, 0xdc
sub edx, 0x6b
imul esi
add esi, 0xd3
neg edi
rcl esi, 0xdd
sbb ebx, 0xfc
neg edi
neg edx
add eax, 0x4b
ror edx, 0x35
neg ebx
imul eax
bswap esi
bswap ebx
rol edx, 0xe
rcl ebx, 0xb
dec ebx
rol edx, 0x59
imul ebx
ror ebx, 0xef
and eax, 0xd9
imul eax
imul ebx
and edx, 0x44
bswap edi
imul edi
add edi, 0x7e
mov ecx, dword [ebp + 0xc]
dec edx
rcr edx, 0x3f
sub edx, 0xc4
dec edx
inc esi
add esi, 0x23
sub ebx, 0x42
and edx, 0x34
inc edi
inc edi
inc ebx
dec ebx
inc ebx
not edi
or ebx, 0x85
imul edx
rcr esi, 0xb6
bswap ebx
neg esi
neg ebx
rol edx, 0x7b
not ebx
inc edx
not edx
or esi, 0x95
inc edx
or eax, 0x79
not esi
or esi, 0x1b
or eax, 0x18
sub edx, 0x8b
and eax, 0x72
bswap esi
dec edx
inc ebx
add edx, 0x5d
ror eax, 0xbf
rcl edx, 0xcf
neg eax
rol edi, 0xcb
neg esi
bswap edx
dec ebx
dec edx
imul edx
dec edi
not edi
bswap esi
rcl edi, 0x1e
imul esi
mov edi, dword [ebp + 8]
mov esi, ebx
xor ebx, ebx
mov ebx, esi
not byte [edi]
mov esi, ebx
xor eax, esi
xor eax, eax
xor ebx, esi
xor esi, esi
mov esi, esi
mov ebx, eax
xor esi, ebx
xor esi, esi
add byte [edi], 0x79
xor eax, eax
xor esi, ebx
mov eax, eax
mov ebx, eax
mov ebx, ebx
xor ebx, esi
mov eax, esi
mov eax, ebx
xor esi, esi
sub byte [edi], 0x30
mov eax, ebx
xor ebx, ebx
xor esi, ebx
xor ebx, eax
xor ebx, esi
xor eax, ebx
mov esi, ebx
mov esi, eax
xor eax, ebx
imul byte [edi]
inc edi
loop 0x401eed
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407444
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x438694]
jne 0x40744e
repz ret
jmp fcn.0040be26
Function at 0x40d62d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040a3ef
and dword [ebp - 4], 0
cmp dword [0x439c14], 0
mov ebx, eax
jne 0x40d6de
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d78f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40d78f
push eax
call fcn.0040a37d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x439c14], eax
call esi
push eax
call fcn.0040a37d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x439c18], eax
call esi
push eax
call fcn.0040a37d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x439c1c], eax
call esi
push eax
call fcn.0040a37d
pop ecx
mov dword [0x439c24], eax
test eax, eax
je 0x40d6de
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040a37d
pop ecx
mov dword [0x439c20], eax
mov eax, dword [0x439c20]
cmp eax, ebx
je 0x40d736
cmp dword [0x439c24], ebx
je 0x40d736
push eax
call fcn.0040a3f8
push dword [0x439c24]
mov esi, eax
call fcn.0040a3f8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d736
test edi, edi
je 0x40d736
call esi
test eax, eax
je 0x40d72d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d72d
test byte [ebp - 0xc], 1
jne 0x40d736
or dword [ebp + 0x10], 0x200000
jmp 0x40d76f
mov eax, dword [0x439c18]
cmp eax, ebx
je 0x40d76f
push eax
call fcn.0040a3f8
pop ecx
test eax, eax
je 0x40d76f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d76f
mov eax, dword [0x439c1c]
cmp eax, ebx
je 0x40d76f
push eax
call fcn.0040a3f8
pop ecx
test eax, eax
je 0x40d76f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x439c14]
call fcn.0040a3f8
pop ecx
test eax, eax
je 0x40d78f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d791
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408947
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
or ecx, edi
call fcn.00408976
add edi, edi
add ecx, edi
xor dword [ebx], esi
mov ecx, ecx
or edi, edi
inc ebx
sub edi, 0x530c42eb
mov ecx, 0xb714bcab
cmp ebx, edx
jne fcn.00408947
add ecx, ecx
sub ecx, edi
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 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6a
nop
sub eax, 0x403d10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x43f8a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section._4354048
lea edi, [esi - 0x26000]
push edi
or ebp, 0xffffffff
jmp 0x43f8c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43f8c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43f8b8
mov eax, 1
add ebx, ebx
jne 0x43f8db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43f8d0
jne 0x43f8ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43f8d0
xor ecx, ecx
sub eax, 3
jb 0x43f900
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43f972
mov ebp, eax
add ebx, ebx
jne 0x43f90b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43f918
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43f93c
inc ecx
add ebx, ebx
jne 0x43f928
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43f91d
jne 0x43f939
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43f91d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43f95c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43f94d
jmp 0x43f8be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43f95c
add edi, ecx
jmp 0x43f8be
pop esi
mov edi, esi
mov ecx, 0x124b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43f97a
cmp byte [edi], 7
jne 0x43f97a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x43f97f
lea edi, [esi + 0x3d000]
mov eax, dword [edi]
or eax, eax
je 0x43f9f7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x401e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4029c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43f9ac
mov ecx, edi
jns 0x43f9db
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x402a0]
or eax, eax
je 0x43f9f1
mov dword [ebx], eax
add ebx, 4
jmp 0x43f9c9
call dword [esi + 0x402a4]
popal
jmp 0x422f76
Function at 0x406390
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x42aaab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x40465c
call fcn.00406ff1
push 4
mov dword [esp + 0x18], 0
call fcn.00407db0
mov edi, eax
add esp, 4
test edi, edi
je 0x406404
push ebx
call fcn.00406ec9
mov dword [edi], eax
call fcn.00406c88
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00406fb2
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4063f8
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00406fda
pop ebx
jmp 0x406406
xor edi, edi
mov dword [esi + 0x38], 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
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 ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x408821
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e658]
jne 0x40882b
repz ret
jmp fcn.0040d27c