joyce8/EMBER2024-capa huggingface dataset:
Function at 0x549e50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x585478
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
push 0x549ae0
push 0x5f7a00
call fcn.00549ce0
mov eax, dword [0x5f7a04]
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x20], 0
je 0x549ebc
jmp 0x549eb0
cmp dword [esi + 0x14], 0
jne 0x549f1e
cmp dword [esi + 0x10], 0
jne 0x549f24
push 0x549ae0
push 0x5f7a00
call fcn.00549ce0
mov eax, dword [0x5f7a04]
add esp, 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
mov dword [esp + 0x20], 0xffffffff
je 0x549f0a
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x549f0a
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esi + 0x10], 0
je 0x549f64
mov ebx, dword [esi + 0x10]
mov ecx, dword [ebx + 4]
mov dword [esi + 0x10], ecx
mov ecx, dword [ebx]
test ecx, ecx
je 0x549f52
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x549f24
cmp dword [esi + 0x14], 0
je 0x549eb6
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x549f89
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x549fba
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x549fba
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x549fba
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x549f6e
jmp 0x549eb0
Function at 0x54a070
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 0x10
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 8]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x549fe0
push 0
push 0
call fcn.00565c54
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x54a0b0
lea ecx, [esp + 8]
call fcn.00549a20
push 0x5ceb74
lea edx, [esp + 0xc]
push edx
call fcn.0056b0df
mov eax, dword [edi + 8]
push esi
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [edi + 8]
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
je 0x54a0d9
cmp eax, 0xffffffff
je 0x54a0d9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
mov edx, dword [edi + 8]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop edi
pop ebx
add esp, 0x10
ret
Function at 0x54ae6f
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x5eb3c0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x54aeb0
cmp byte [ebp - 0x194], 2
jne 0x54aeaa
cmp byte [ebp - 0x193], 2
je 0x54aeb3
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00564207
leave
ret

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

Disassembly:
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x552b90
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x552cb1
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x552cd1
push dword [esi + 0xf4]
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x552d0a
cmp eax, 2
jg 0x552d0a
push dword [esi + 0xf0]
imul eax, eax, 3
push 1
add eax, 0x5a3b20
push 2
push eax
call fcn.0056d5e4
push dword [esi + 0xf0]
push 1
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.0056d5e4
add esp, 0x20
xor eax, eax
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x12c]
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
and dword [edi], 0
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x552f42
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x552f1c
and dword [ebp + 8], 0
mov dword [edi], 0x51
jmp 0x552f41
push ebx
push esi
call fcn.0055c081
push eax
push str.Send_failure:__s
push dword [esi]
call fcn.00552e3c
mov eax, dword [esi]
mov dword [eax + 0x855c], ebx
add esp, 0x14
mov dword [edi], 0x37
pop ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret
Function at 0x5535f1
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x5eb3c0]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
mov esi, dword [ebp + 0x98]
cmp dword [esi + 0x198], 0
mov ebx, dword [esi]
push edi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], ebx
jne 0x55370e
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x9c]
mov edi, 0x80
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x55366e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.0055c081
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.00552e3c
add esp, 0x18
jmp 0x553715
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x9c]
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x5536a1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.0055c081
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x553660
lea edi, [esi + 0xc8]
lea ebx, [esi + 0x9a]
lea esi, [ebp - 0x74]
call fcn.005535b8
test eax, eax
jne 0x5536d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.0055c081
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x80]
jmp 0x553661
mov eax, dword [ebp - 0x78]
lea edi, [eax + 0xfc]
lea ebx, [eax + 0xcc]
lea esi, [ebp + 0xc]
call fcn.005535b8
test eax, eax
jne 0x55370b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.0055c081
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x5536d1
mov esi, dword [ebp - 0x78]
push esi
call fcn.00553569
pop ecx
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00564207
add ebp, 0x90
leave
ret

Function at 0x55372d
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x308]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push 6
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x553772
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0055c081
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00552dc9
add esp, 0x14
jmp 0x55377f
push str.TCP_NODELAY_set_n
push esi
call fcn.00552dc9
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x553bd6
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x520]
cmp eax, 0xffffffff
push esi
je 0x553c29
mov ecx, dword [ecx + 0x514]
mov ecx, dword [ecx]
lea eax, [ecx + eax*4]
cmp dword [eax], 0
je 0x553c29
mov ecx, dword [ebp + 0xc]
test ecx, ecx
mov eax, dword [eax]
je 0x553c03
mov dword [ecx], eax
cmp dword [eax + 0x144], 0
mov esi, dword [eax + 0x12c]
jne 0x553c29
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x553c29
mov eax, esi
jmp 0x553c2c
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x554cfe
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
and dword [eax], 0
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
mov dword [ebp - 8], eax
jne 0x554e70
push esi
mov esi, dword [ebp - 0x10]
test esi, esi
mov dword [ebp - 0xc], esi
je 0x554e55
push ebx
push edi
jmp 0x554d46
mov esi, dword [ebp - 0xc]
cmp dword [esi + 4], 2
jne 0x554de9
cmp dword [esi + 0x18], 0
je 0x554de9
mov eax, dword [esi + 0x10]
test eax, eax
jbe 0x554de9
push 0x10
pop edi
cmp eax, edi
jb 0x554de9
push 0x20
call dword [0x5eb248]
mov ebx, eax
xor eax, eax
cmp ebx, eax
pop ecx
je 0x554df9
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov ecx, dword [esi + 0xc]
push edi
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x1c], eax
call dword [0x5eb248]
test eax, eax
pop ecx
mov dword [ebx + 0x18], eax
je 0x554e02
mov esi, dword [esi + 0x18]
mov edi, eax
mov eax, dword [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x554dd0
push eax
call dword [0x5eb254]
test eax, eax
pop ecx
mov dword [ebx + 0x14], eax
je 0x554e12
cmp dword [ebp - 4], 0
jne 0x554dd9
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x554de3
mov dword [eax + 0x1c], ebx
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x14], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
mov dword [ebp - 0xc], esi
jne 0x554d43
jmp 0x554e2b
mov dword [ebp - 8], 8
jmp 0x554e2b
push ebx
mov dword [ebp - 8], 8
call dword [0x5eb24c]
jmp 0x554e2a
push dword [ebx + 0x18]
mov dword [ebp - 8], 8
call dword [0x5eb24c]
push ebx
call dword [0x5eb24c]
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 0x10], esi
pop edi
pop ebx
je 0x554e3d
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], esi
je 0x554e50
push dword [ebp - 4]
call fcn.00554cc2
pop ecx
mov dword [ebp - 4], esi
jmp 0x554e64
cmp dword [ebp - 4], esi
jne 0x554e64
mov eax, 0x2af9
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
pop esi
leave
ret
Function at 0x5551c2
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x48
push 1
mov ebx, eax
mov edi, ecx
call dword [0x5eb258]
mov esi, eax
xor eax, eax
cmp esi, eax
pop ecx
pop ecx
mov dword [ebp - 4], 0xc
mov dword [edi + 0x3ac], esi
je 0x555274
mov dword [edi + 0x3a4], eax
mov dword [edi + 0x3a8], eax
mov dword [edi + 0x3a0], eax
mov dword [edi + 0x39c], ebx
or dword [esi + 4], 0xffffffff
push ebx
push dword [ebp + 8]
mov dword [esi], eax
lea eax, [esi + 0x10]
call fcn.0055507e
test eax, eax
pop ecx
pop ecx
je 0x555274
lea ebx, [edi + 0x398]
push dword [ebx]
call fcn.0054b55d
push dword [ebp + 8]
call dword [0x5eb254]
test eax, eax
pop ecx
pop ecx
mov dword [ebx], eax
je 0x555274
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x555274
lea eax, [esi + 0x10]
push eax
push 0x5550f2
call fcn.0055c8a9
test eax, eax
pop ecx
pop ecx
mov dword [esi], eax
jne 0x55528e
call fcn.00569af2
mov eax, dword [eax]
mov dword [ebp - 4], eax
add edi, 0x398
push edi
call fcn.00555170
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x555291
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x558de8
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x31c
push ebx
mov ebx, dword [ebp + 0x78]
push esi
mov esi, dword [ebp + 0x74]
xor edx, edx
push edi
xor edi, edi
cmp esi, 0xffffffff
mov dword [ebp + 0x64], edx
mov dword [ebp + 0x68], edx
jne 0x558e1c
cmp ebx, esi
jne 0x558e1c
mov eax, dword [ebp + 0x7c]
call fcn.00558dc9
jmp 0x558fb9
cmp dword [ebp + 0x7c], edx
jle 0x558e31
mov edi, dword [ebp + 0x7c]
call fcn.0055a3ae
mov dword [ebp + 0x68], edx
mov dword [ebp + 0x64], eax
xor edx, edx
xor eax, eax
or ecx, 0xffffffff
inc eax
cmp esi, ecx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0x1ac], edx
je 0x558e61
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], eax
mov ecx, esi
cmp ebx, 0xffffffff
mov dword [ebp - 0x2b0], edx
je 0x558eb8
mov dword [ebp - 0x2b0], eax
xor eax, eax
cmp dword [ebp - 0xa8], edx
mov dword [ebp - 0x2ac], ebx
jbe 0x558e94
cmp dword [ebp + eax*4 - 0xa4], ebx
je 0x558e94
inc eax
cmp eax, dword [ebp - 0xa8]
jb 0x558e82
cmp eax, dword [ebp - 0xa8]
jne 0x558eb2
cmp dword [ebp - 0xa8], 0x40
jae 0x558eb2
mov dword [ebp + eax*4 - 0xa4], ebx
inc dword [ebp - 0xa8]
cmp ebx, ecx
jbe 0x558eb8
mov ecx, ebx
cmp dword [ebp + 0x7c], edx
jge 0x558ec1
xor ebx, ebx
jmp 0x558ec4
lea ebx, [ebp + 0x5c]
lea esi, [ecx + 1]
xor eax, eax
cmp dword [ebp + 0x7c], eax
jle 0x558ee3
mov eax, edi
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp + 0x60], edx
jmp 0x558ee8
jne 0x558eeb
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x5c], eax
push ebx
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x1ac]
push eax
push esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x558f44
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x558f1e
cmp eax, 0x2714
jne 0x558f48
cmp dword [ebp + 0x7c], 0
jle 0x558ec7
push dword [ebp + 0x68]
push dword [ebp + 0x64]
call fcn.0055a3ae
push edx
push eax
call fcn.0055a3c4
mov edi, dword [ebp + 0x7c]
sub edi, eax
add esp, 0x10
test edi, edi
jg 0x558ec7
jmp 0x558f48
test eax, eax
jge 0x558f4d
or eax, 0xffffffff
jmp 0x558fb9
jne 0x558f53
xor eax, eax
jmp 0x558fb9
xor esi, esi
cmp dword [ebp + 0x74], 0xffffffff
je 0x558f85
lea eax, [ebp - 0x1ac]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x558f6f
inc esi
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x558f85
or esi, 4
cmp dword [ebp + 0x78], 0xffffffff
je 0x558fb7
lea eax, [ebp - 0x2b0]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x558fa1
or esi, 2
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x558fb7
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x55af06
Capabilities:
Parse pe header

Disassembly:
movsx eax, byte [esp + 4]
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x55af13
jmp dword [eax*4 + 0x55af6e]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
mov al, byte [esp + 4]
ret

Function at 0x55cc59
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
push ebx
xor ebx, ebx
cmp dword [eax + 4], 2
push edi
sete bl
test ebx, ebx
je 0x55cc7d
push dword [eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [esi + 0xc]
jmp 0x55ccae
cmp dword [esi + 8], 0
jne 0x55cc9e
push 0x5b2bb8
push dword [eax + 8]
call fcn.00567c99
test eax, eax
pop ecx
pop ecx
mov dword [esi + 8], eax
jne 0x55cc9e
or eax, 0xffffffff
jmp 0x55ccd4
push dword [esi + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.0056815e
mov edi, eax
add esp, 0x10
test edi, edi
je 0x55ccbc
cmp edi, dword [ebp + 0xc]
jbe 0x55ccd2
test ebx, ebx
jne 0x55cccc
push dword [esi + 8]
call fcn.005654d0
and dword [esi + 8], ebx
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop ebx
pop ebp
ret
Function at 0x564207
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5eb3c0]
jne 0x564211
repz ret
jmp fcn.005700a9

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x56509c
call fcn.00569b05
mov dword [eax], esi
call fcn.00569af2
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00565f83
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x565078
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5650cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00569b18
pop ecx
call fcn.00569af2
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x5650f2
test al, 1
je 0x5650f2
test byte [esp + 0xc], 2
je 0x5650f2
call fcn.00569b05
mov dword [eax], 5
call fcn.00569af2
mov dword [eax], 0xd
jmp 0x5650c2
xor eax, eax
pop esi
ret
Function at 0x567ec2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x567eff
cmp dword [ebp + 0x14], edi
je 0x567eff
cmp ecx, edi
jne 0x567f06
call fcn.00569af2
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00565f83
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x567f1a
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x567f3b
cmp ebx, 0xffffffff
je 0x567f2a
push ebx
push edi
push ecx
call fcn.005695a0
add esp, 0xc
cmp esi, edi
je 0x567ee7
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x567ee7
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x567f57
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x567f5e
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x56804f
test word [esi + 0xc], 0x10c
je 0x567fb2
mov eax, dword [esi + 4]
test eax, eax
je 0x567fb2
jl 0x5680b0
cmp ebx, eax
mov edi, ebx
jb 0x567f83
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x568057
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.005667e4
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x568047
cmp ebx, dword [ebp - 0xc]
jb 0x56801f
cmp dword [ebp - 0xc], 0
je 0x567fdc
mov ecx, bind
xor edx, edx
cmp ebx, ecx
jbe 0x567fd1
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x567fd8
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x567fe7
mov eax, bind
cmp ebx, eax
ja 0x567fe7
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x568083
push eax
push dword [ebp - 8]
push esi
call fcn.0056fd3e
pop ecx
push eax
call fcn.0057875c
add esp, 0xc
test eax, eax
je 0x5680c2
cmp eax, 0xffffffff
je 0x5680b0
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x568047
push esi
call fcn.0057807b
cmp eax, 0xffffffff
pop ecx
je 0x5680b4
cmp dword [ebp - 4], 0
je 0x568083
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x567f66
mov eax, dword [ebp + 0x14]
jmp 0x567f01
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x56806e
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.005695a0
add esp, 0xc
call fcn.00569af2
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x567ef7
cmp dword [ebp + 0xc], 0xffffffff
je 0x568099
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.005695a0
add esp, 0xc
call fcn.00569af2
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x567ef7
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x567f01
or dword [esi + 0xc], 0x10
jmp 0x5680b4
Function at 0x576989
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x5ec1c0]
je 0x5769a4
inc edi
cmp edi, 0x17
jb 0x576995
cmp edi, 0x17
jae 0x576b24
push ebp
push 3
call fcn.00580008
cmp eax, 1
pop ecx
je 0x576af0
push 3
call fcn.00580008
test eax, eax
pop ecx
jne 0x5769d8
cmp dword [0x5eb3b4], 1
je 0x576af0
cmp ebx, 0xfc
je 0x576b23
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x5f8088
push ebp
call fcn.005676a0
add esp, 0xc
test eax, eax
je 0x576a0e
push esi
push esi
push esi
push esi
push esi
call fcn.00565e87
add esp, 0x14
push 0x104
mov esi, 0x5f80a1
push esi
push 0
mov byte [0x5f81a5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x576a52
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.005676a0
add esp, 0xc
test eax, eax
je 0x576a52
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00565e87
add esp, 0x14
push esi
call fcn.0056ac10
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x576a97
push esi
call fcn.0056ac10
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x5f839c
push 0x5a813c
sub ecx, eax
push ecx
push eax
call fcn.00579d33
add esp, 0x14
test eax, eax
je 0x576a97
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00565e87
add esp, 0x14
jmp 0x576a99
xor esi, esi
push 0x5a8138
push ebx
push ebp
call fcn.0057b8fd
add esp, 0xc
test eax, eax
je 0x576ab9
push esi
push esi
push esi
push esi
push esi
call fcn.00565e87
add esp, 0x14
push dword [edi*8 + 0x5ec1c4]
push ebx
push ebp
call fcn.0057b8fd
add esp, 0xc
test eax, eax
je 0x576adb
push esi
push esi
push esi
push esi
push esi
call fcn.00565e87
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0057fe4b
add esp, 0xc
jmp 0x576b23
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x576b23
cmp ebp, 0xffffffff
je 0x576b23
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x5ec1c4]
push dword [esi]
call fcn.0056ac10
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret