joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472fb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x4ad1dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, dword [eax + 0x3d0]
mov edi, dword [eax]
lea ebx, [esi + 0x15c]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [esi + 0x154]
push 0
add eax, 4
push eax
push dword [ebx]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x473043
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.00431070
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x473076
push str.Received_too_short_packet
push edi
call fcn.00463650
add esp, 8
mov dword [esi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004139c2
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004728d0
movzx eax, ax
add esp, 4
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x473091
jmp dword [eax*4 + 0x4731a8]
cmp edx, 4
jle case.0x473091.4
push ebx
call fcn.004728b0
movzx ecx, word [esi + 0x40]
add esp, 4
inc ecx
cmp cx, ax
jne case.0x473091.4
lea eax, [edx - 4]
push eax
mov eax, dword [ebx]
add eax, 4
push eax
push 1
push dword [ebp - 0x8c]
call fcn.00463410
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x4730f6
push 5
push esi
call fcn.004738a0
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004139c2
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x38], eax
adc dword [edi + 0x3c], edx
push dword [edi + 0x3c]
push dword [edi + 0x38]
push edi
call fcn.0046f600
jmp 0x47316e
push ebx
call fcn.004728b0
movzx eax, ax
mov dword [esi + 8], eax
mov eax, dword [ebx]
add eax, 4
push eax
push 0x49a70c
push edi
call fcn.004636f0
add esp, 0x10
jmp case.0x473091.4
lea eax, [edx - 2]
push eax
mov eax, dword [ebx]
add eax, 2
push eax
push esi
call fcn.00472d30
add esp, 0xc
test eax, eax
je case.0x473091.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004139c2
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x48f024
push edi
call fcn.00463650
add esp, 0xc
push dword [ebp - 0x8c]
call fcn.0046f830
add esp, 4
test eax, eax
je 0x473063
push 5
push esi
call fcn.004738a0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x2a
pop edi
pop esi
pop ebx
call fcn.004139c2
mov esp, ebp
pop ebp
ret
Function at 0x4731c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x10]
mov ebx, dword [eax]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffd
cmp eax, 4
ja case.0x4731dd.4
jmp dword [eax*4 + 0x4733dc]
lea eax, [edi + 0x15c]
push eax
call fcn.004728b0
movzx ecx, ax
add esp, 4
movzx eax, word [edi + 0x40]
inc eax
movzx eax, ax
cmp eax, ecx
je 0x473219
push eax
push ecx
push str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
push ebx
call fcn.004636f0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
lea esi, [edi + 0x160]
mov word [edi + 0x40], cx
push 4
push esi
mov dword [edi + 0x18], 0
call fcn.00472910
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.004728f0
add esp, 0x10
lea eax, [edi + 0xc8]
push dword [edi + 0x148]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x47334f
mov eax, dword [edi + 0x154]
xor ecx, ecx
add eax, 4
cmp dword [edi + 0x14c], eax
lea eax, [edi + 0x38]
push eax
setl cl
lea ecx, [ecx*2 + 1]
mov dword [edi], ecx
call fcn.00439b2a
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
lea esi, [edi + 0x160]
push 4
push esi
mov word [edi + 0x40], ax
mov dword [edi + 0x18], eax
call fcn.00472910
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.004728f0
add esp, 0x10
lea eax, [edi + 0xc8]
push dword [edi + 0x148]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x47334f
lea eax, [edi + 0x38]
mov dword [edi], 1
push eax
call fcn.00439b2a
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
movzx eax, word [edi + 0x40]
inc dword [edi + 0x18]
inc eax
push dword [edi + 0x18]
movzx eax, ax
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push ebx
call fcn.004636f0
mov eax, dword [edi + 0x18]
add esp, 0x10
cmp eax, dword [edi + 0x20]
jle 0x47332b
mov dword [edi + 8], 0xffffff9d
xor eax, eax
mov dword [edi], 3
pop edi
pop esi
pop ebx
pop ebp
ret
push dword [edi + 0x148]
lea eax, [edi + 0xc8]
push eax
push 0
push 4
push dword [edi + 0x160]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x4733b5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [edi + 0x10]
call fcn.00467ec0
push eax
push 0x48f024
push ebx
call fcn.00463650
add esp, 0x14
mov eax, 0x37
pop edi
pop esi
pop ebx
pop ebp
ret
lea esi, [edi + 0x160]
push 5
push esi
call fcn.00472910
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.004728f0
add esp, 0x10
lea eax, [edi + 0xc8]
push dword [edi + 0x148]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [edi], 3
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push str.tftp_rx:_internal_error
push 0x48f024
push ebx
call fcn.00463650
add esp, 0xc
mov eax, 0x47
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4738a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx]
mov eax, dword [eax]
cmp edx, 3
ja case.default.0x4738b2
jmp dword [edx*4 + 0x473908]
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.004733f0
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.004731c0
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00473ab0
push str.TFTP_finished
push 0x49a70c
push eax
call fcn.004636f0
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x48f024
push eax
call fcn.00463650
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x475430
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4ad1dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, dword [eax]
or ebx, 0xffffffff
mov edi, dword [eax + 0x134]
push 1
push 0
push esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x10
call fcn.00463f40
mov ecx, eax
add esp, 0xc
test ecx, ecx
js 0x4754a5
nop
mov eax, 0x3e8
cmp ecx, eax
cmovl eax, ecx
push eax
push 0xffffffffffffffff
push edi
call fcn.004706a0
add esp, 0xc
cmp eax, 0xffffffff
je 0x475559
test eax, eax
jne 0x4754c9
push 1
push eax
push esi
call fcn.00463f40
mov ecx, eax
add esp, 0xc
test ecx, ecx
jns 0x475470
push str.Timeout_while_waiting_for_server_connect
push esi
call fcn.00463650
add esp, 8
mov eax, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004139c2
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4754f4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push edi
mov edi, dword [ebp - 0x1c]
push edi
call fcn.00463c40
add esp, 8
cmp ebx, 0xffffffff
jne 0x47552a
push str.Error_accept__ing_server_connect
push esi
call fcn.00463650
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004139c2
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server_n
push esi
call fcn.004636f0
push 1
push ebx
mov dword [edi + 0x134], ebx
call fcn.0047c990
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004139c2
mov esp, ebp
pop ebp
ret
push str.Error_while_waiting_for_server_connect
push esi
call fcn.00463650
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x1e
pop edi
pop esi
pop ebx
call fcn.004139c2
mov esp, ebp
pop ebp
ret

Function at 0x477820
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
lea eax, [ecx - 0xc8]
mov edx, dword [edi]
cmp eax, 0x64
jb 0x47784f
push str.Couldnt_set_desired_mode
push edx
call fcn.00463650
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebp
ret
cmp ecx, 0xc8
je 0x477866
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edx
call fcn.004636f0
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x47787d
push edi
call fcn.00477360
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x14
jne 0x477891
push edi
call fcn.00476e50
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x15
jne 0x4778a5
push edi
call fcn.004772c0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x16
jne 0x4778b5
push edi
call fcn.00477340
mov esi, eax
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x47a9f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4ad1dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00455410
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x47aa54
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [ebp - 0x108], 0
je 0x47aa54
lea eax, [ebp - 0x108]
push eax
call dword [0x4adc4c]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004139c2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004139c2
mov esp, ebp
pop ebp
ret

Function at 0x47aa70
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047a9f0
Function at 0x47dc00
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret

Function at 0x47e8b0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x4adc40]
mov edi, eax
add esp, 4
test edi, edi
jne 0x47e8dd
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x47e924
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x47e92a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x47e98b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop word [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x47e950
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x47e9b7
mov eax, dword [esi + 4]
push 1
push 0x4a06a4
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x4a06a5
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x47e990
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x47e9e0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x47ea13
push 0x2e
push edi
call fcn.00432820
add esp, 8
test eax, eax
je 0x47ea11
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x47f410
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4ad1dc]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00432360
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jg 0x47f482
cmp dword [ebp - 0x118], 2
jg 0x47f482
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004139c2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004139c2
mov esp, ebp
pop ebp
ret

Function at 0x47f4e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x47f50c
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x47f4fd
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x47f540
cmp dword [esi + 8], 0
jne 0x47f530
push 0x48efd8
push dword [eax + 8]
call fcn.0043c57b
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x47f530
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.0043ca2d
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x47f562
mov eax, dword [esi + 8]
test eax, eax
je 0x47f55c
push eax
call fcn.0043c357
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x483910
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x4b0780], ecx
inc eax
cmp eax, 0x100
jb 0x483912
cmp eax, 0x800
jae 0x4839e3
nop
mov edx, dword [eax*4 + 0x4b0380]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x4b0780]
mov dword [eax*4 + 0x4b0780], edx
inc eax
cmp eax, 0x800
jb 0x4839c0
mov dword [0x4b0758], 0x484780
call fcn.004845b0
mov ecx, dword [0x4b0758]
test eax, eax
mov edx, 0x484820
cmove ecx, edx
mov dword [0x4b0758], ecx
ret
Function at 0x484b00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
xor ebx, ebx
and eax, 7
cmp ecx, 5
jae 0x484b20
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
lea edx, [ecx - 4]
push esi
mov esi, dword [ebp + 8]
push edi
or edi, 0xffffffff
add edx, esi
mov dword [ebp - 4], edx
add esi, ebx
mov dword [ebp + 0xc], esi
cmp esi, edx
jae 0x484b52
nop dword [eax]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x484b4f
inc esi
cmp esi, edx
jb 0x484b40
mov dword [ebp + 0xc], esi
mov ebx, esi
sub ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edi
cmp esi, edx
jae 0x484c7c
cmp ecx, 3
jbe 0x484b92
xor eax, eax
mov cl, byte [esi + 4]
mov edi, ebx
mov dword [ebp - 0x10], edi
test cl, cl
je 0x484bd0
cmp cl, 0xff
je 0x484bd0
mov edx, dword [ebp - 4]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov ecx, 1
or eax, 1
add ebx, ecx
jmp 0x484b34
dec ecx
shl eax, cl
and eax, 7
je 0x484b6a
movzx ecx, byte [eax + 0x4a0934]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x4a092c], 0
mov cl, byte [edx + 4]
je 0x484bba
test cl, cl
je 0x484bba
cmp cl, 0xff
jne 0x484b6a
mov edx, dword [ebp - 4]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov edi, ebx
or eax, 1
inc ebx
jmp 0x484b34
movzx edi, cl
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 2]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 1]
mov esi, dword [ebp + 0x10]
shl edi, 8
or edi, ecx
cmp dword [ebp + 0x18], 0
je 0x484bfe
lea edx, [edi + ebx]
add edx, esi
jmp 0x484c04
mov edx, edi
sub edx, ebx
sub edx, esi
test eax, eax
je 0x484c42
movzx edi, byte [eax + 0x4a0934]
mov ecx, 0x18
shl edi, 3
sub ecx, edi
mov dword [ebp - 0xc], edi
mov edi, edx
shr edi, cl
mov ecx, edi
mov dword [ebp - 8], edi
test cl, cl
je 0x484c2e
cmp cl, 0xff
jne 0x484c42
mov ecx, 0x20
mov edi, 1
sub ecx, dword [ebp - 0xc]
shl edi, cl
dec edi
xor edi, edx
jmp 0x484bf1
mov esi, dword [ebp + 0xc]
mov ecx, edx
mov edi, dword [ebp - 0x10]
shr ecx, 0x18
and cl, 1
dec cl
mov byte [esi + 1], dl
not cl
mov byte [esi + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, edx
mov edx, dword [ebp - 4]
shr ecx, 8
mov byte [esi + 2], cl
mov ecx, 5
mov esi, dword [ebp + 8]
add ebx, ecx
jmp 0x484b34
pop edi
pop esi
cmp ecx, 3
jbe 0x484c91
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0x14]
and eax, 7
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x103da532
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea esp, [esp + 0x30]
je 0x103db8bd
shld dx, di, 3
Function at 0x40a5e0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4763bb
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.00468e9b
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40a662
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046650d
mov eax, dword [eax]
push 0x4941d0
push eax
call fcn.004591d4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00469126
test bl, bl
je 0x40a662
push 0x4941d0
lea ecx, [esp + 0xc]
call fcn.00469502
push 0x497d44
lea ecx, [esp + 0xc]
call fcn.00469502
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 0x40a69e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00469126
jmp 0x40a769
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 0x40a722
lea edx, [esp + 0x7c]
push 0x497d40
push edx
call fcn.004591d4
add esp, 8
test eax, eax
je 0x40a722
lea eax, [esp + 0x7c]
push 0x497d3c
push eax
call fcn.004591d4
add esp, 8
test eax, eax
je 0x40a722
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 0x40a6b2
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.00469126
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 0x40af60
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 0x40afc2
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
Function at 0x40afd0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47643b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x49ec50]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40b108
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40b036
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00469126
xor eax, eax
jmp 0x40b17f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004692af
push esi
lea ecx, [esp + 0xc]
call fcn.0046953e
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40b15d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocStringLen
call fcn.0040af60
test eax, eax
jne 0x40b15d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push SysReAllocStringLen
mov ecx, edi
call fcn.0040af60
test eax, eax
jne 0x40b15d
lea eax, [esp + 0x14]
push 0x497d58
push eax
call fcn.0045a2b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b13c
lea ecx, [esp + 0x14]
push 0x497d54
push ecx
call fcn.0045a230
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b13c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40b13f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046925f
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40b04e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00469126
xor eax, eax
jmp 0x40b17f
mov byte [esi], 0
push 0x497d50
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00469126
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4