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

Disassembly:
mov eax, dword [esi + 0xc]
push ebx
mov ebx, dword [eax]
mov eax, dword [esp + 8]
sub eax, 3
push edi
je 0x527bd2
sub eax, 2
je 0x527b7b
dec eax
je 0x527b54
push str.tftp_rx:_internal_error
push 0x583bf0
push ebx
call fcn.00521d00
add esp, 0xc
jmp 0x527ca8
mov eax, dword [esi + 0x14]
inc eax
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push ebx
mov dword [esi + 0x14], eax
call fcn.00521c20
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
add esp, 0xc
cmp ecx, eax
jle 0x527b86
mov dword [esi + 8], 8
mov dword [esi], 3
jmp 0x527ca8
mov edx, dword [esi + 0x138]
push edx
mov edx, dword [esi + 0x10]
lea eax, [esi + 0xb8]
push eax
push 0
push 4
lea ecx, [esi + 0x348]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_sendto]
test eax, eax
jge 0x527ca8
call fcn.0053fe76
mov eax, dword [eax]
push eax
call fcn.005408a2
push eax
push 0x583bf0
push ebx
call fcn.00521d00
add esp, 0x10
jmp 0x527ca8
xor ecx, ecx
mov cx, word [esi + 0x146]
push ecx
call dword [sym.imp.WSOCK32.dll_ntohs]
movzx edx, word [esi + 0x28]
movzx edi, ax
inc edx
cmp edx, edi
je 0x527c24
push edi
push str.Received_unexpected_DATA_packet_block__d_n
push ebx
call fcn.00521c20
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x1c]
add esp, 0xc
inc edx
mov eax, edx
cmp eax, ecx
mov dword [esi + 0x14], edx
jle 0x527c24
movzx eax, word [esi + 0x28]
inc eax
push eax
push str.tftp_rx:_giving_up_waiting_for_block__d_n
push ebx
call fcn.00521d00
add esp, 0xc
pop edi
pop ebx
ret
push ebp
mov ebp, dword [sym.imp.WSOCK32.dll_htons]
mov word [esi + 0x28], di
push 4
mov dword [esi + 0x14], 0
lea edi, [esi + 0x348]
call ebp
xor ecx, ecx
mov cx, word [esi + 0x28]
mov word [edi], ax
push ecx
call ebp
mov edx, dword [esi + 0x138]
mov ecx, dword [esi + 0x10]
push edx
mov word [esi + 0x34a], ax
lea eax, [esi + 0xb8]
push eax
push 0
push 4
push edi
push ecx
call dword [sym.imp.WSOCK32.dll_sendto]
test eax, eax
pop ebp
jge 0x527c91
call fcn.0053fe76
mov edx, dword [eax]
push edx
call fcn.005408a2
push eax
push 0x583bf0
push ebx
call fcn.00521d00
add esp, 0x10
mov ecx, dword [esi + 0x13c]
xor eax, eax
cmp ecx, 0x204
setl al
lea eax, [eax + eax + 1]
mov dword [esi], eax
movzx eax, word [esi + 0x28]
push 0
cdq
push 0x200
push edx
push eax
call fcn.0053c770
push edx
push eax
push ebx
call fcn.00522e30
add esp, 0xc
pop edi
pop ebx
ret
Function at 0x527cd0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0xc]
push ebx
push ebp
mov ebp, dword [eax]
mov eax, dword [esp + 0xc]
sub eax, 4
push edi
je 0x527d57
dec eax
je 0x527d26
dec eax
je 0x527cff
push str.tftp_tx:_internal_error
push 0x583bf0
push ebp
call fcn.00521d00
add esp, 0xc
jmp 0x527e5a
mov eax, dword [esi + 0x14]
inc eax
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push ebp
mov dword [esi + 0x14], eax
call fcn.00521c20
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x1c]
add esp, 0xc
cmp ecx, eax
jle 0x527d31
mov dword [esi + 8], 8
mov dword [esi], 3
jmp 0x527e5a
mov edx, dword [esi + 0x138]
mov ecx, dword [esi + 0x140]
push edx
lea eax, [esi + 0xb8]
push eax
push 0
add ecx, 4
push ecx
lea edx, [esi + 0x348]
push edx
jmp 0x527e30
xor edx, edx
mov dx, word [esi + 0x146]
push edx
call dword [sym.imp.WSOCK32.dll_ntohs]
movzx ecx, ax
mov ax, word [esi + 0x28]
movzx edx, ax
cmp ecx, edx
je 0x527db5
push edx
push ecx
push str.Received_ACK_for_block__d__expecting__d_n
push ebp
call fcn.00521c20
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x1c]
add esp, 0x10
inc edx
mov eax, edx
cmp eax, ecx
mov dword [esi + 0x14], edx
jle 0x527e78
movzx eax, word [esi + 0x28]
push eax
push str.tftp_tx:_giving_up_waiting_for_block__d_ack
push 0x583bf0
push ebp
call fcn.00521d00
add esp, 0x10
pop edi
pop ebp
pop ebx
ret
mov edi, dword [sym.imp.WSOCK32.dll_htons]
inc eax
push 3
mov word [esi + 0x28], ax
mov dword [esi + 0x14], 0
lea ebx, [esi + 0x348]
call edi
xor ecx, ecx
mov cx, word [esi + 0x28]
mov word [ebx], ax
push ecx
call edi
cmp word [esi + 0x28], 1
mov word [esi + 0x34a], ax
jbe 0x527e01
cmp dword [esi + 0x140], 0x200
jge 0x527e01
pop edi
pop ebp
mov dword [esi], 3
pop ebx
ret
mov edx, dword [esi + 0xc]
lea edi, [esi + 0x140]
push edi
push 0x200
push edx
call fcn.0051c0e0
mov eax, dword [esi + 0x138]
mov edx, dword [edi]
add esp, 0xc
push eax
lea ecx, [esi + 0xb8]
push ecx
push 0
add edx, 4
push edx
push ebx
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.WSOCK32.dll_sendto]
test eax, eax
jge 0x527e5a
call fcn.0053fe76
mov ecx, dword [eax]
push ecx
call fcn.005408a2
push eax
push 0x583bf0
push ebp
call fcn.00521d00
add esp, 0x10
movzx eax, word [esi + 0x28]
push 0
cdq
push 0x200
push edx
push eax
call fcn.0053c770
push edx
push eax
push ebp
call fcn.00522e50
add esp, 0xc
pop edi
pop ebp
pop ebx
ret
Function at 0x527f60
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push ebp
push esi
mov esi, eax
mov eax, dword [esi + 0xc]
mov ebx, dword [eax]
push edi
mov edi, dword [eax + 0x50]
mov al, byte [ebx + 0x188]
test al, al
mov ebp, str.octet
je 0x527f82
mov ebp, str.netascii
cmp ecx, 6
ja case.0x527f8b.1
jmp dword [ecx*4 + 0x528118]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x1c]
inc edx
mov eax, edx
cmp eax, ecx
mov dword [esi + 0x14], edx
jle 0x527fb4
mov dword [esi + 8], 9
pop edi
mov dword [esi], 3
pop esi
pop ebp
pop ebx
ret
mov al, byte [ebx + 0x195]
test al, al
je 0x528018
push 2
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esi + 0x348], ax
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x527fd2
sub eax, edx
push eax
push edi
call fcn.0052d5d0
mov ecx, dword [esi + 0xc]
mov edi, eax
lea eax, [esi + 0x34c]
mov dword [ecx + 0x1fc], eax
mov eax, dword [ebx + 0xa8]
mov ecx, dword [ebx + 0xac]
mov edx, eax
and edx, ecx
add esp, 8
cmp edx, 0xffffffff
je 0x528027
push ecx
push eax
push ebx
call fcn.00522eb0
add esp, 0xc
jmp 0x528027
push 1
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esi + 0x348], ax
push 0
push ebp
push 0
push edi
lea eax, [esi + 0x34a]
push str._s_c_s_c
push eax
call fcn.00520f90
mov eax, edi
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x528046
sub eax, edx
mov edx, eax
mov eax, ebp
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x528056
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx + 0x10]
sub eax, edi
mov edi, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
push edi
push ecx
push 0
lea edx, [eax + edx + 4]
push edx
lea eax, [esi + 0x348]
push eax
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.WSOCK32.dll_sendto]
test eax, eax
jge 0x528112
call fcn.0053fe76
mov ecx, dword [eax]
push ecx
call fcn.005408a2
push eax
push 0x583bf0
push ebx
call fcn.00521d00
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret
push str.Connected_for_transmit
push 0x583bf0
push ebx
call fcn.00521c20
push esi
mov dword [esi], 2
call fcn.00527a20
push 4
call fcn.00527cd0
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
ret
push str.Connected_for_receive
push 0x583bf0
push ebx
call fcn.00521c20
push esi
mov dword [esi], 1
call fcn.00527a20
push 3
call fcn.00527b20
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
ret
push str.tftp_send_first:_internal_error_n
push ebx
call fcn.00521d00
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x529950
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov edx, dword [edi + 0xa0]
mov al, byte [esp + 8]
push esi
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
call dword [sym.imp.WSOCK32.dll_send]
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.00529840
add esp, 4
pop esi
pop ecx
ret
Function at 0x52a100
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x908
mov eax, dword [0x5af710]
push ebx
push ebp
mov ebp, dword [esp + 0x914]
mov ebx, dword [ebp + 0x16c]
push esi
mov esi, dword [ebp]
mov dword [esp + 0x910], eax
mov eax, dword [ebx + 0x1ab0]
push edi
sub eax, dword [ebx + 0x1aac]
add eax, 2
push eax
lea ecx, [ebx + 0x18ac]
push ecx
push 0x3c
mov dword [esp + 0x1c], esi
call fcn.00529c40
mov eax, dword [ebx + 0x1aac]
movzx ecx, byte [eax]
add esp, 0xc
inc eax
cmp ecx, 0x18
mov dword [ebx + 0x1aac], eax
je 0x52a2e5
cmp ecx, 0x23
je 0x52a26e
cmp ecx, 0x27
jne 0x52a361
push 0
push ecx
push 0xfa
push 0xff
push str._c_c_c_c
lea edx, [esp + 0x128]
push 0x800
push edx
call fcn.00520370
mov esi, dword [ebx + 0x18a8]
add esp, 0x1c
test esi, esi
mov edi, 4
je 0x52a21b
lea esp, [esp]
mov edx, dword [esi]
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x52a1b7
sub eax, ebx
lea ebx, [eax + edi + 1]
cmp ebx, 0x7fa
jae 0x52a214
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x98]
push ecx
push str._127_____127s
push edx
call fcn.0053ecb1
lea edx, [esp + 0x24]
push edx
push 1
lea eax, [esp + 0xac]
push eax
push 0
mov ecx, 0x800
push str._c_s_c_s
sub ecx, edi
push ecx
lea edx, [esp + edi + 0x13c]
push edx
call fcn.00520370
add esp, 0x2c
mov edi, ebx
mov esi, dword [esi + 4]
test esi, esi
jne 0x52a1b0
push 0xf0
push 0xff
mov eax, 0x800
push 0x5856c0
sub eax, edi
push eax
lea ecx, [esp + edi + 0x124]
push ecx
call fcn.00520370
mov eax, dword [ebp + 0xa0]
add esp, 0x14
push 0
add edi, 2
push edi
lea edx, [esp + 0x11c]
push edx
push eax
call dword [sym.imp.WSOCK32.dll_send]
add edi, 0xfffffffe
push edi
lea ecx, [esp + 0x11a]
push ecx
jmp 0x52a353
lea ecx, [ebx + 0x1828]
mov eax, ecx
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x52a280
push 0xf0
push 0xff
push ecx
push 0
push 0x23
push 0xfa
push 0xff
push str._c_c_c_c_s_c_c
lea edx, [esp + 0x134]
sub eax, esi
push 0x800
push edx
lea edi, [eax + 6]
call fcn.00520370
mov ecx, dword [ebp + 0xa0]
add esp, 0x28
push 0
push edi
lea eax, [esp + 0x11c]
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_send]
add edi, 0xfffffffe
push edi
lea edx, [esp + 0x11a]
push edx
jmp 0x52a353
lea ecx, [ebx + 0x1808]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x52a2f0
push 0xf0
push 0xff
push ecx
push 0
push 0x18
push 0xfa
push 0xff
sub eax, esi
push str._c_c_c_c_s_c_c
lea edi, [eax + 6]
lea eax, [esp + 0x134]
push 0x800
push eax
call fcn.00520370
mov edx, dword [ebp + 0xa0]
add esp, 0x28
push 0
push edi
lea ecx, [esp + 0x11c]
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_send]
add edi, 0xfffffffe
push edi
lea eax, [esp + 0x11a]
push eax
mov esi, dword [esp + 0x18]
push 0x3e
call fcn.00529c40
add esp, 0xc
mov ecx, dword [esp + 0x914]
pop edi
pop esi
pop ebp
pop ebx
call fcn.0053aaae
add esp, 0x908
ret
Function at 0x52a860
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp + 0x16c]
push esi
xor ebx, ebx
add eax, 0x1408
push edi
mov edi, 0x408
mov dword [esp + 0x14], eax
cmp dword [eax - 0xc00], 1
jne 0x52a908
mov eax, dword [ebp + 0x16c]
mov ecx, dword [edi + eax - 0x400]
sub ecx, 0
je 0x52a8c2
sub ecx, 2
je 0x52a8b3
dec ecx
jne 0x52a908
cmp dword [edi + eax], 0
jne 0x52a908
mov dword [edi + eax], 1
jmp 0x52a908
mov ecx, dword [edi + eax]
dec ecx
jne 0x52a908
mov dword [edi + eax], 0
jmp 0x52a908
push 0
mov dword [edi + eax - 0x400], 2
mov ecx, dword [ebp + 0xa0]
push 3
lea eax, [esp + 0x24]
push eax
push ecx
mov byte [esp + 0x2c], 0xff
mov byte [esp + 0x2d], 0xfb
mov byte [esp + 0x2e], bl
call dword [sym.imp.WSOCK32.dll_send]
mov ecx, dword [ebp]
push str.SENT
mov eax, ebx
mov esi, 0xfb
call fcn.00529840
add esp, 4
mov edx, dword [esp + 0x14]
cmp dword [edx], 1
jne 0x52a9a4
mov eax, dword [ebp + 0x16c]
mov ecx, dword [edi + eax + 0x800]
sub ecx, 0
je 0x52a95e
sub ecx, 2
je 0x52a947
dec ecx
jne 0x52a9a4
mov ecx, dword [edi + eax + 0xc00]
test ecx, ecx
jne 0x52a9a4
mov dword [edi + eax + 0xc00], 1
jmp 0x52a9a4
mov ecx, dword [edi + eax + 0xc00]
dec ecx
jne 0x52a9a4
mov dword [edi + eax + 0xc00], 0
jmp 0x52a9a4
push 0
mov dword [edi + eax + 0x800], 2
mov ecx, dword [ebp + 0xa0]
push 3
lea eax, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x21], 0xfd
mov byte [esp + 0x22], bl
call dword [sym.imp.WSOCK32.dll_send]
mov ecx, dword [ebp]
push str.SENT
mov eax, ebx
mov esi, 0xfd
call fcn.00529840
add esp, 4
mov eax, dword [esp + 0x14]
add edi, 4
add eax, 4
inc ebx
cmp edi, 0x4a8
mov dword [esp + 0x14], eax
jl 0x52a881
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x52d5c0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x5af710]
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.00540d8f
add esp, 4
test eax, eax
mov byte [esp], 0
je 0x52d5a2
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov al, byte [esp]
test al, al
je 0x52d5a2
lea edx, [esp]
push edx
call dword [0x5ae5f4]
add esp, 4
mov ecx, dword [esp + 0x104]
call fcn.0053aaae
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor eax, eax
call fcn.0053aaae
add esp, 0x108
ret
jmp 0x52d540

Function at 0x530900
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x5c
mov eax, dword [0x5af710]
mov edx, dword [esp + 0x64]
push ebx
mov dword [esp + 0x5c], eax
xor ebx, ebx
mov eax, edx
push esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 8], 0x67452301
mov dword [esp + 0xc], 0xefcdab89
mov dword [esp + 0x10], 0x98badcfe
mov dword [esp + 0x14], 0x10325476
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x530941
sub eax, esi
push eax
push edx
lea ebx, [esp + 0x10]
call fcn.00530780
mov eax, dword [esp + 0x70]
push eax
mov ecx, ebx
call fcn.00530840
mov ecx, dword [esp + 0x6c]
add esp, 0xc
pop esi
pop ebx
call fcn.0053aaae
add esp, 0x5c
ret
Function at 0x5324a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x5324f3
call fcn.0055a5f3
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x5324f3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x5324e9
xor eax, eax
jmp 0x53260c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x532523
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x532523
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x532609
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x532550
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0050d570
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x532609
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x532599
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x532599
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x532593
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0050d570
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x5325f9
and dword [ebp + 0xc], 0
jmp 0x5325f9
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x5325f9
push 0xc
call fcn.0055044f
mov esi, eax
test esi, esi
pop ecx
je 0x5325db
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x5325dd
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x5325f4
push dword [ebp - 8]
call fcn.0054fed3
jmp 0x5325f9
call fcn.0054feaa
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x53255e
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x53a75f
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0053aa40
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x53a7fa
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x5b41d0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x53a7fa
cmp eax, 1
je 0x53a81b
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x53a7fa
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x53a7c7
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x53a7f6
xor eax, eax
inc eax
jmp 0x53a83a
cmp edi, eax
jae 0x53a7fe
xor eax, eax
jmp 0x53a83a
cmp eax, esi
jae 0x53a805
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x5b41d0]
jmp 0x53a81e
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x53e023
Capabilities:
Terminate process

Disassembly:
push 8
push 0x58aa20
call fcn.0053bda8
push 8
call fcn.00541a8d
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x5b4210], esi
jne 0x53e057
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x5b420c], esi
mov al, byte [ebp + 0x10]
mov byte [0x5b4208], al
cmp dword [ebp + 0xc], edi
jne 0x53e0a1
cmp dword [0x5b5cb0], edi
je 0x53e091
mov eax, dword [0x5b5cac]
sub eax, 4
mov dword [0x5b5cac], eax
cmp eax, dword [0x5b5cb0]
jb 0x53e091
mov eax, dword [eax]
cmp eax, edi
je 0x53e072
call eax
jmp 0x53e072
push 0x5ac2b0
mov eax, 0x5ac2a8
call fcn.0053dfa1
pop ecx
push 0x5ac2bc
mov eax, 0x5ac2b4
call fcn.0053dfa1
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x53e0d2
cmp dword [ebp + 0x10], edi
jne 0x53e0e0
mov dword [0x5b4210], esi
push dword [ebp + 8]
call fcn.0053df5f
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x53e0df
push 8
call fcn.005419d8
pop ecx
ret
call fcn.0053bde3
ret

Function at 0x53e126
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x53e146
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0053fe88
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x53e169
test byte [esp + 8], 2
je 0x53e169
call fcn.0053fe76
mov dword [eax], 0xd
call fcn.0053fe7f
mov dword [eax], 5
jmp 0x53e142
xor eax, eax
ret
Function at 0x53e612
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x53e62f
call fcn.0053fe76
mov dword [eax], 0x16
xor eax, eax
jmp 0x53e699
push esi
push 0x8c
push 1
call fcn.00540043
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x53e684
push esi
call fcn.00543324
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x53e662
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x53e57d
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x53e698
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0053a6ee
test ebx, ebx
pop ecx
je 0x53e696
push ebx
call fcn.0053fe88
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x53efef
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x58aa40
call fcn.0053bda8
mov edi, 0x94
mov eax, edi
call fcn.0053aa40
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x5b41d0], ecx
mov eax, dword [esi + 4]
mov dword [0x5b41dc], eax
mov edx, dword [esi + 8]
mov dword [0x5b41e0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x5b41d4], esi
cmp ecx, 2
je 0x53f04f
or esi, 0x8000
mov dword [0x5b41d4], esi
shl eax, 8
add eax, edx
mov dword [0x5b41d8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x53f08a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x53f08a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x53f0a2
cmp eax, 0x20b
je 0x53f08f
mov dword [ebp - 0x1c], esi
jmp 0x53f0b6
cmp dword [ecx + 0x84], 0xe
jbe 0x53f08a
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x53f0b0
cmp dword [ecx + 0x74], 0xe
jbe 0x53f08a
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00541ad8
pop ecx
test eax, eax
jne 0x53f0ca
push 0x1c
call fcn.0053efcb
pop ecx
call fcn.0054351e
test eax, eax
jne 0x53f0db
push 0x10
call fcn.0053efcb
pop ecx
call fcn.00547032
mov dword [ebp - 4], esi
call fcn.00548a46
test eax, eax
jge 0x53f0f4
push 0x1b
call fcn.0053efa6
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x5b5ca4], eax
call fcn.00548924
mov dword [0x5b4244], eax
call fcn.00548882
test eax, eax
jge 0x53f11a
push 8
call fcn.0053efa6
pop ecx
call fcn.0054864f
test eax, eax
jge 0x53f12b
push 9
call fcn.0053efa6
pop ecx
push 1
call fcn.0053dfb9
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x53f141
push eax
call fcn.0053efa6
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.005485f2
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x53f162
movzx eax, word [ebp - 0x40]
jmp 0x53f165
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0054e900
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x53f183
push edi
call fcn.0053e0e6
call fcn.0053e108
jmp 0x53f1b5
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0053bde3
ret