joyce8/EMBER2024-capa huggingface dataset:
Function at 0x574270
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x57433d
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
add eax, 0xffffd8e2
cmp eax, 0x4f
ja case.0x5742af.10015
movzx edx, byte [eax + 0x57436c]
jmp dword [edx*4 + 0x574344]
push 0x104
push 0x61600c
jmp 0x57432c
push 0x104
push 0x616000
jmp 0x57432c
push 0x104
push 0x616038
jmp 0x57432c
push 0x104
push 0x615fe0
jmp 0x57432c
push 0x104
push 0x61602c
jmp 0x57432c
push 0x104
push 0x6160f8
jmp 0x57432c
push 0x104
push 0x6160dc
jmp 0x57432c
push 0x104
push 0x6160ec
jmp 0x57432c
push 0x104
push 0x616020
jmp 0x57432c
push 0x104
push 0x5f21c8
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
xor eax, eax
ret
mov eax, 1
ret
Function at 0x5743c0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push esi
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.ws2_32.dll_send]
mov esi, eax
cmp esi, 0xffffffff
jne 0x574637
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
add eax, 0xffffd8ec
cmp eax, 0x59
ja case.0x574401.10005
movzx ecx, byte [eax + 0x57468c]
jmp dword [ecx*4 + 0x57463c]
push 0x104
push 0x61600c
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x616000
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x616154
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x6160c0
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x615fe0
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x616038
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x6160f8
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x615fc8
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x6160ec
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x616020
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x6160cc
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x616144
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x616068
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, 0xffffff9c
pop esi
ret
push 0x104
push 0x616138
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x616128
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x61602c
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x616118
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x616108
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x616078
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x5f21c8
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
Function at 0x5746f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push esi
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.ws2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5748fb
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
add eax, 0xffffd8ec
cmp eax, 0x59
ja case.0x574731.10005
movzx ecx, byte [eax + 0x574944]
jmp dword [ecx*4 + 0x574900]
push 0x104
push 0x61600c
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x616000
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x616038
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x6160ec
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x6160c0
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x615fe0
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x6160f8
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x616020
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x6160cc
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x616144
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
mov eax, 0xffffff9c
pop esi
ret
push 0x104
push 0x616138
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x61602c
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x616118
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x616078
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x616108
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x5f21c8
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret

Function at 0x574ac0
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x574b4f
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
add eax, 0xffffd8e2
cmp eax, 0x4f
ja case.0x574af1.10015
movzx eax, byte [eax + 0x574b70]
jmp dword [eax*4 + 0x574b58]
push 0x104
push 0x61600c
jmp 0x574b3e
push 0x104
push 0x616000
jmp 0x574b3e
push 0x104
push 0x615fe0
jmp 0x574b3e
push 0x104
push 0x616020
jmp 0x574b3e
push 0x104
push 0x616038
jmp 0x574b3e
push 0x104
push 0x5f21c8
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
xor eax, eax
ret
mov eax, 1
ret
Function at 0x574c20
Capabilities:
Get socket status

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push esi
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.ws2_32.dll_select]
mov esi, eax
cmp esi, 0xffffffff
jne 0x574d49
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
add eax, 0xffffd8ec
cmp eax, 0x59
ja case.0x574c66.10005
movzx edx, byte [eax + 0x574d70]
jmp dword [edx*4 + 0x574d50]
push 0x104
push 0x61600c
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x616038
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x616000
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x61602c
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x6160c0
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x615fe0
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x616020
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x104
push 0x5f21c8
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
mov eax, esi
pop esi
ret
Function at 0x575b00
Capabilities:
Enumerate process modules
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x616220
push 0x5c8ae8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x244
mov eax, dword [0x644904]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x24c], ecx
cmp dword [ebp + 0xc], 0x10
ja 0x575c86
mov dl, byte [eax]
neg dl
sbb edx, edx
and edx, eax
push edx
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
je 0x575c86
mov dword [ebp - 0x240], 0x224
mov ecx, 0x88
xor eax, eax
lea edi, [ebp - 0x23c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x248], eax
push eax
push 8
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x575bc8
lea eax, [ebp - 0x240]
push eax
push esi
call sub.kernel32.dll_Module32First
test eax, eax
je 0x575bc8
cmp dword [ebp - 0x224], ebx
je 0x575bbc
lea ecx, [ebp - 0x240]
push ecx
push esi
call sub.kernel32.dll_Module32Next
test eax, eax
jne 0x575ba1
jmp 0x575bc8
mov edx, dword [ebp - 0x22c]
mov dword [ebp - 0x248], edx
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x248]
test eax, eax
je 0x575c86
xor edi, edi
mov ebx, dword [sym.imp.kernel32.dll_GetCurrentProcess]
mov dword [ebp - 0x250], edi
cmp edi, dword [ebp + 0xc]
jae 0x575c86
mov eax, dword [ebp - 0x24c]
mov esi, dword [eax + edi*4]
and esi, 0xffffff
mov ecx, eax
mov dl, byte [ecx + edi*4 + 3]
mov byte [ebp - 0x241], dl
call ebx
push eax
call dword [sym.imp.kernel32.dll_SuspendThread]
mov dword [ebp - 4], 0
push 0
push 1
lea eax, [ebp - 0x241]
push eax
mov ecx, dword [ebp - 0x248]
add esi, ecx
push esi
call ebx
push eax
call dword [sym.imp.kernel32.dll_WriteProcessMemory]
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x254], eax
mov dword [ebp - 4], 0xffffffff
call ebx
push eax
call dword [sym.imp.kernel32.dll_ResumeThread]
inc edi
jmp 0x575be5
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.005c8895
mov esp, ebp
pop ebp
ret

Function at 0x576b20
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
test edi, edi
jle 0x576b66
push ebx
push esi
mov esi, dword [esp + 0x10]
jmp 0x576b40
mov bl, byte [eax + esi]
imul ecx, ecx, 0x343fd
add ecx, 0x269ec3
mov edx, ecx
shr edx, 0x10
add dl, 2
xor dl, bl
xor dl, 0x26
mov byte [eax + esi], dl
inc eax
cmp eax, edi
jl 0x576b40
pop esi
pop ebx
pop edi
ret
Function at 0x576ca0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x644904]
xor eax, ebp
push edi
mov dword [esp + 0x12c], eax
xor eax, eax
mov byte [esp + 0x20], 0
mov ecx, 0x40
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push 0x6186b4
push eax
call fcn.00576b70
mov ecx, dword [eax + 0x18]
add esp, 8
cmp ecx, 0x10
jb 0x576cef
mov eax, dword [eax + 4]
jmp 0x576cf2
add eax, 4
push 0x104
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
lea ecx, [esp + 4]
call dword [sym.imp.msvcp71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov cl, byte [esp + 0x20]
xor eax, eax
cmp cl, 0x31
mov ecx, dword [esp + 0x12c]
sete al
xor ecx, ebp
pop edi
call fcn.005c8895
mov esp, ebp
pop ebp
ret

Function at 0x576d30
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x404
mov eax, dword [0x644904]
xor eax, esp
mov dword [esp + 0x400], eax
call fcn.00576ca0
test al, al
je 0x576d92
push edi
xor eax, eax
mov byte [esp + 4], 0
mov ecx, 0xff
lea edi, [esp + 5]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x40c]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x410]
push eax
push ecx
lea edx, [esp + 0xc]
push 0x400
push edx
call dword [sym.imp.msvcr71.dll__vsnprintf]
add esp, 0x10
lea eax, [esp + 4]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
pop edi
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.005c8895
add esp, 0x404
ret

Function at 0x576ff0
Capabilities:
Terminate thread

Disassembly:
push ecx
mov eax, dword [0x646a28]
test eax, eax
je 0x57703b
lea ecx, [esp]
push ecx
push eax
mov dword [esp + 8], 0
call dword [sym.imp.kernel32.dll_GetExitCodeThread]
cmp dword [esp], 0x103
jne 0x577025
mov edx, dword [0x646a28]
push 0
push edx
call dword [sym.imp.kernel32.dll_TerminateThread]
mov eax, dword [0x646a28]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [0x646a28], 0
mov ecx, 0x646a60
call fcn.00578530
pop ecx
ret
Function at 0x5777b0
Capabilities:
Create thread
Resolve dns
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
mov eax, dword [0x644904]
xor eax, ebp
mov dword [esp + 0x84], eax
cmp dword [ebp + 0xc], 0x78
push esi
mov esi, dword [ebp + 8]
push edi
jb 0x577a12
push 0x78
lea eax, [esp + 0x14]
push 0x78
mov ecx, 0x1e
lea edi, [esp + 0x18]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00576b20
lea ecx, [esp + 0x1c]
push 0x74
push ecx
call fcn.005780e0
mov ecx, dword [esp + 0x98]
add esp, 0x14
cmp eax, ecx
je 0x57782d
push 0x618788
call fcn.00576d30
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, ebp
call fcn.005c8895
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0x17], 1
jne 0x577883
lea edx, [esp + 0x18]
push edx
call sub.ws2_32.dll_gethostbyname
test eax, eax
je 0x57785d
mov eax, dword [eax + 0xc]
test eax, eax
je 0x57785d
mov eax, dword [eax]
test eax, eax
je 0x57785d
mov eax, dword [eax]
push eax
call sub.ws2_32.dll_htonl
mov dword [esp + 0x10], eax
jmp 0x577887
lea ecx, [esp + 0x18]
push ecx
push 0x618780
call fcn.00576d30
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, ebp
call fcn.005c8895
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
mov cl, byte [esp + 0x16]
test cl, cl
je 0x5778c1
mov edx, dword [0x646a3c]
xor edx, eax
test edx, 0xffffff00
jne 0x5778c1
push eax
push 0x618778
call fcn.00576d30
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, ebp
call fcn.005c8895
mov esp, ebp
pop ebp
ret
call dword [sym.imp.msvcr71.dll_rand]
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [esp + 8], edx
fild dword [esp + 8]
movzx edx, byte [esp + 0x38]
mov dword [esp + 8], edx
fmul dword [0x618774]
fild dword [esp + 8]
fld st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x577924
fild dword [esp + 8]
sub esp, 0x10
fstp qword [esp + 8]
fstp qword [esp]
push 0x618768
call fcn.00576d30
add esp, 0x14
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, ebp
call fcn.005c8895
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0xc]
fstp st(0)
push eax
push 0x44
push 0
push 0x577620
push 0
push 0
call dword [sym.imp.msvcr71.dll__beginthreadex]
mov esi, eax
add esp, 0x18
test esi, esi
je 0x577a12
call fcn.00576ff0
mov dword [0x646a28], esi
mov ecx, 0x1e
lea esi, [esp + 0x10]
mov edi, 0x6467a0
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.winmm.dll_timeGetTime]
mov dword [0x646a2c], eax
call fcn.005775e0
movzx esi, byte [0x6467c9]
call fcn.00577790
movzx ecx, byte [0x6467ca]
sub ecx, esi
mov dword [esp + 8], ecx
fimul dword [esp + 8]
call fcn.005c8914
add eax, esi
cmp eax, 0xff
mov dword [0x646a30], eax
jbe 0x5779b0
mov eax, 0xff
mov dword [0x646a30], eax
push eax
push 0x618760
call fcn.00576d30
movzx esi, byte [0x6467cb]
add esp, 8
call fcn.00577790
movzx edx, byte [0x6467cc]
sub edx, esi
mov dword [esp + 8], edx
fimul dword [esp + 8]
call fcn.005c8914
add eax, esi
cmp eax, 0xff
mov dword [0x646a34], eax
jbe 0x5779f8
mov eax, 0xff
mov dword [0x646a34], eax
push eax
push 0x618754
call fcn.00576d30
mov eax, dword [0x646a28]
add esp, 8
push eax
call dword [sym.imp.kernel32.dll_ResumeThread]
mov ecx, dword [esp + 0x8c]
pop edi
xor ecx, ebp
pop esi
call fcn.005c8895
mov esp, ebp
pop ebp
ret
Function at 0x5780e0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x578123
mov edx, dword [esp + 0xc]
test edx, edx
je 0x578123
or eax, 0xffffffff
xor ecx, ecx
test edx, edx
jbe 0x578125
push ebx
push edi
lea esp, [esp]
movzx edi, byte [ecx + esi]
mov ebx, eax
and ebx, 0xff
xor edi, ebx
mov ebx, dword [edi*4 + 0x643388]
shr eax, 8
xor eax, ebx
inc ecx
cmp ecx, edx
jb 0x578100
pop edi
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x5783b0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov al, byte [esi + 0x38]
mov ecx, dword [esi + 0x34]
test al, al
push edi
mov eax, 0x10
je 0x5784cd
cmp ecx, eax
jb 0x5783d3
mov ecx, dword [esi + 0x20]
jmp 0x5783d6
lea ecx, [esi + 0x20]
cmp dword [esi + 0x18], eax
jb 0x5783e0
mov eax, dword [esi + 4]
jmp 0x5783e3
lea eax, [esi + 4]
mov edi, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x18]
push ecx
push eax
push edi
push 0x6188b0
push ebp
call dword [sym.imp.msvcr71.dll_sprintf]
mov eax, edi
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x578403
mov ecx, dword [esi + 0x30]
sub eax, edx
add ecx, dword [esi + 0x14]
push ebx
lea ebx, [ecx + eax + 0x3c]
cmp dword [esi + 0x34], 0x10
mov dword [esp + 0x14], ebx
jb 0x578426
mov esi, dword [esi + 0x20]
jmp 0x578429
add esi, 0x20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
xor esi, esi
cmp edi, esi
je 0x578522
cmp edi, 0xffffffff
je 0x578522
push esi
push edi
call dword [sym.imp.kernel32.dll_GetFileSize]
push esi
lea edx, [esp + 0x28]
push edx
push 0x400
add ebx, ebp
mov ebp, dword [sym.imp.kernel32.dll_ReadFile]
push ebx
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], esi
call ebp
test eax, eax
je 0x5784a9
mov eax, dword [esp + 0x24]
test eax, eax
jbe 0x5784a9
cmp esi, dword [esp + 0x10]
ja 0x5784a9
push 0
add esi, eax
lea eax, [esp + 0x28]
push eax
push 0x400
lea ecx, [esi + ebx]
push ecx
push edi
call ebp
test eax, eax
jne 0x578482
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
add esi, edx
push edi
mov word [esi + eax], 0xa0d
call dword [sym.imp.kernel32.dll_CloseHandle]
pop ebx
pop ebp
pop edi
lea eax, [esi + 2]
pop esi
add esp, 8
ret 0xc
cmp ecx, eax
jb 0x5784d6
mov ecx, dword [esi + 0x20]
jmp 0x5784d9
lea ecx, [esi + 0x20]
cmp dword [esi + 0x18], eax
jb 0x5784e3
mov eax, dword [esi + 4]
jmp 0x5784e6
lea eax, [esi + 4]
mov edi, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
push eax
push edi
push 0x618874
push ecx
call dword [sym.imp.msvcr71.dll_sprintf]
mov eax, edi
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x578505
mov ecx, dword [esi + 0x14]
sub eax, edx
mov edx, dword [esi + 0x30]
add edx, ecx
pop edi
lea eax, [edx + eax + 0x31]
pop esi
add esp, 8
ret 0xc
mov eax, ebx
pop ebx
pop ebp
pop edi
pop esi
add esp, 8
ret 0xc
Function at 0x5786d0
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e0b70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [ecx + 0xc]
push ebx
xor edx, edx
cmp eax, edx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], edx
jne 0x578718
push 0x63837c
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x618908
call sub.msvcr71.dll__CxxThrowException
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
push edx
push ecx
push eax
call dword [sym.imp.wininet.dll_InternetReadFile]
test eax, eax
jne 0x578778
push 0x63837c
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], 0x6188f4
call sub.msvcr71.dll__CxxThrowException
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.wininet.dll_InternetCloseHandle]
mov dword [esi + 0xc], 0
mov eax, 0x578778
ret
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x578f10
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [ecx + 0x90]
xor edx, edx
test eax, eax
mov dword [esp + 4], ecx
mov dword [esp], edx
jbe 0x578fb8
mov eax, dword [ecx + 0x8c]
push ebx
mov ebx, dword [eax]
cmp ebx, eax
je 0x578fb1
push ebp
mov ebp, dword [sym.imp.kernel32.dll_CreateFileA]
push esi
push edi
mov eax, dword [ebx + 8]
cmp byte [eax + 0x38], 0
je 0x578f90
cmp dword [eax + 0x34], 0x10
jb 0x578f54
mov eax, dword [eax + 0x20]
jmp 0x578f57
add eax, 0x20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call ebp
mov edi, eax
push 0
push edi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov esi, eax
push edi
add esi, 0x1800
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
jmp 0x578f95
mov esi, 0x2000
mov ebx, dword [ebx]
mov eax, dword [ecx + 0x8c]
add edx, esi
cmp ebx, eax
mov dword [esp + 0x10], edx
jne 0x578f40
pop edi
pop esi
pop ebp
mov eax, edx
pop ebx
add esp, 8
ret
mov eax, edx
pop ebx
add esp, 8
ret
mov eax, edx
add esp, 8
ret
Function at 0x581320
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x70]
test eax, eax
je 0x581342
mov ecx, dword [esp + 0xc]
mov dword [eax + 0x44], ecx
mov edx, dword [esi + 0x70]
push 1
add edx, 4
push edx
call dword [sym.imp.msvcr71.dll_longjmp]
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x10]
mov byte [esi + 6], al
mov edx, dword [ecx + 0x58]
test edx, edx
je 0x581363
push eax
call fcn.005812a0
mov edx, dword [esi + 0x10]
push esi
call dword [edx + 0x58]
add esp, 8
push 1
call dword [sym.imp.msvcr71.dll_exit]
int3
Function at 0x586640
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
mov eax, ebx
shr eax, 5
push ebp
push esi
mov esi, dword [esp + 0x14]
inc eax
cmp ebx, eax
push edi
mov edx, ebx
mov ecx, ebx
jb 0x58667b
lea ebx, [ebx]
movzx edi, byte [esi + ecx - 1]
mov ebp, edx
shl ebp, 5
add edi, ebp
mov ebp, edx
shr ebp, 2
add edi, ebp
sub ecx, eax
xor edx, edi
cmp ecx, eax
jae 0x586660
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x5866ab
cmp dword [eax + 0xc], ebx
jne 0x5866a5
mov ecx, ebx
lea edi, [eax + 0x10]
xor ebp, ebp
repe cmpsb byte [esi], byte es:[edi]
je 0x5866bf
mov esi, dword [esp + 0x18]
mov eax, dword [eax]
test eax, eax
jne 0x586691
mov eax, dword [esp + 0x14]
push edx
push esi
push eax
call fcn.00586590
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret
mov cl, byte [eax + 5]
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 0x10]
movzx edx, byte [edx + 0x14]
xor ebx, ebx
mov bl, cl
not edx
and ebx, 3
test bl, dl
je 0x5866ba
pop edi
pop esi
xor cl, 3
pop ebp
mov byte [eax + 5], cl
pop ebx
ret