joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51ecb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x144
mov eax, dword [0x644904]
mov ecx, dword [0x64581c]
push ebx
mov dword [esp + 0x144], eax
mov eax, dword [0x645800]
cmp eax, ecx
push esi
push edi
jne 0x51ed69
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0xc]
mov byte [esp + 0x18], 0
xor eax, eax
mov ecx, 0x4a
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add ebx, 0xc
mov ecx, ebx
stosb byte es:[edi], al
call dword [edx]
mov ecx, pe_nt_image_headers32
mov esi, eax
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
nop
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
xor byte [esp + esi + 0x18], al
inc esi
cmp esi, 0x100
jl 0x51ed10
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push 0xe8
push eax
mov byte [esp + 0x110], 0
call fcn.00575d00
add esp, 0x10
test al, al
je 0x51ed69
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
dec edx
neg edx
sbb edx, edx
push ecx
mov ecx, dword [0x64577c]
add edx, 7
push edx
call fcn.0048db90
mov ecx, dword [esp + 0x14c]
mov eax, 2
call fcn.005c8895
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x642a10]
mov word [0x6462c8], ax
inc eax
mov dword [0x642a10], eax
mov eax, dword [0x642a0c]
mov word [0x6462ca], ax
inc eax
push esi
push edi
mov dword [0x642a0c], eax
mov edi, ecx
mov byte [0x6462c4], 8
mov byte [0x6462c5], 0
mov word [0x6462c6], 0
xor eax, eax
mov cl, al
add cl, 0x20
mov byte [eax + 0x6462d1], cl
inc eax
cmp eax, 0x20
jl 0x524123
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [0x6462cd], eax
mov ecx, 0x6462c4
xor eax, eax
mov edx, 0x16
jmp 0x524150
movzx esi, word [ecx]
add eax, esi
add ecx, 2
dec edx
jne 0x524150
mov dl, byte [ecx]
mov dword [ebp - 4], 0
mov byte [ebp - 4], dl
movzx ecx, word [ebp - 4]
add eax, ecx
mov ecx, eax
sar ecx, 0x10
and eax, 0xffff
add ecx, eax
mov eax, dword [ebp + 0xc]
push 0x10
push eax
mov edx, ecx
push 0
sar edx, 0x10
push 0x2d
add edx, ecx
mov ecx, dword [ebp + 8]
push 0x6462c4
not edx
push ecx
mov word [0x6462c6], dx
call dword [sym.imp.ws2_32.dll_sendto]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5241b5
push 0x6107e0
mov ecx, edi
call fcn.00524060
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x524260
Capabilities:
Create raw socket
Get socket status
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x403c
call fcn.005c8bb0
mov eax, dword [0x644904]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, ecx
push eax
mov dword [edi], eax
call dword [sym.imp.user32.dll_IsWindow]
test eax, eax
jne 0x52429f
push 0x61082c
push 0x1b
push 0x610820
call dword [sym.imp.tengine.dll_void___cdecl_tThrowAssertException_char_const___int__char_const__]
add esp, 0xc
mov ebx, 1
push ebx
push 3
push 2
call dword [sym.imp.ws2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5242c0
push 0x610814
jmp 0x5243fa
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ws2_32.dll_gethostbyname]
xor ecx, ecx
cmp eax, ecx
jne 0x52430b
mov eax, dword [edi]
mov esi, dword [sym.imp.user32.dll_SendMessageA]
lea edx, [ebp - 0x28]
push edx
push ecx
push 0x400
push eax
mov dword [ebp - 0x28], 0xffffffff
call esi
mov ecx, dword [edi]
push 0
push 0
push 0x501
push ecx
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
call fcn.005c8895
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov edx, dword [eax]
cmp dword [ebp + 8], ecx
mov dword [ebp - 0x10], edx
mov word [ebp - 0x14], 2
mov word [ebp - 0x12], cx
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ecx
jbe 0x5243ce
lea eax, [ebp - 0x14]
push eax
push esi
mov ecx, edi
call fcn.005240e0
lea ecx, [ebp - 0x38]
push ecx
push 0
push 0
lea edx, [ebp - 0x403c]
push edx
push ebx
mov dword [ebp - 0x403c], ebx
mov dword [ebp - 0x4038], esi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], 0
call dword [sym.imp.ws2_32.dll_select]
cmp eax, 0xffffffff
je 0x5243b0
test eax, eax
je 0x5243a0
lea eax, [ebp + 0x13]
push eax
lea ecx, [ebp - 0x24]
push ecx
push esi
mov ecx, edi
call fcn.005241c0
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, dword [ebp - 0x2c]
sub eax, ebx
add ecx, eax
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp + 0xc], eax
mov ebx, 1
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 8]
inc eax
cmp eax, ecx
mov dword [ebp - 0x30], eax
jb 0x524331
jmp 0x5243bc
push 0x610808
mov ecx, edi
call fcn.00524060
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x5243ce
mov eax, dword [ebp - 0x2c]
cdq
idiv ecx
mov dword [ebp - 0x28], eax
jmp 0x5243d5
mov dword [ebp - 0x28], 0xffffffff
mov eax, dword [edi]
lea edx, [ebp - 0x28]
push edx
push 2
push 0x400
push eax
call dword [sym.imp.user32.dll_SendMessageA]
push esi
call dword [sym.imp.ws2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x524401
push 0x6107f8
mov ecx, edi
call fcn.00524060
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.005c8895
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5498d0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
push 0x302
push 0x400
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.user32.dll_SetRect]
mov ecx, dword [0x645468]
push 0
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.user32.dll_GetWindowLongA]
push eax
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.user32.dll_AdjustWindowRect]
push 0
lea eax, [esp + 0x28]
push eax
push 0
push 0x30
call dword [sym.imp.user32.dll_SystemParametersInfoA]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
mov ecx, edx
mov ebx, esi
sub ecx, eax
sub ebx, edi
cmp ebx, ecx
jle 0x5499f2
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
sub ebx, ebp
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x10], ebx
sub ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x10]
cmp ebp, ebx
jle 0x5499f2
sub eax, edx
sub eax, edi
add eax, esi
mov edi, dword [esp + 0x20]
cdq
sub eax, edx
mov ebp, dword [esp + 0x30]
sar eax, 1
xor edx, edx
test eax, eax
setl dl
dec edx
and edx, eax
mov eax, dword [esp + 0x18]
sub eax, edi
mov esi, edx
sub eax, dword [esp + 0x28]
add eax, ebp
cdq
sub eax, edx
sar eax, 1
xor edx, edx
test eax, eax
setl dl
mov ebp, ecx
dec edx
and edx, eax
cmp ecx, 0x400
mov edi, edx
jg 0x5499ab
mov ebp, 0x500
cmp ebx, 0x2d0
jg 0x5499b8
mov ebx, 0x2d0
mov eax, dword [0x645468]
push 9
push eax
call dword [sym.imp.user32.dll_ShowWindow]
mov ecx, dword [0x645468]
push 1
push ebx
push ebp
push edi
push esi
push ecx
call dword [sym.imp.user32.dll_MoveWindow]
push 0
push 0
push 0x232
call fcn.004917d0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edx, dword [0x645468]
push 3
push edx
call dword [sym.imp.user32.dll_ShowWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret

Function at 0x54a2a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x644904]
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
push edi
mov dword [esp + 0x110], eax
lea eax, [esp + 4]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
mov edi, dword [esp + 0x120]
mov byte [edi], 0
jne 0x54a320
mov edx, dword [esp + 4]
push esi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push edx
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.advapi32.dll_RegQueryValueA]
mov esi, eax
test esi, esi
jne 0x54a31d
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcpy]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x110]
pop edi
call fcn.005c8895
add esp, 0x110
ret 0xc
Function at 0x54a340
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x644904]
push esi
mov dword [esp + 0x210], eax
lea eax, [esp + 8]
push eax
push 0x613ffc
push 0x80000000
mov esi, ecx
call fcn.0054a2a0
test eax, eax
jne 0x54a43e
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcat]
push 0x613fe8
lea ecx, [esp + 0x10]
push ecx
call ebx
lea edx, [esp + 0xc]
push edx
mov eax, edx
push eax
push 0x80000000
mov ecx, esi
call fcn.0054a2a0
test eax, eax
jne 0x54a423
push edi
mov edi, dword [sym.imp.msvcr71.dll_strstr]
lea ecx, [esp + 0x10]
push 0x613fe0
push ecx
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x54a3e2
lea edx, [esp + 0x10]
push 0x613fdc
push edx
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x54a3e2
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlen]
lea esi, [esp + eax + 0xf]
jmp 0x54a3e5
mov byte [esi], 0
push 0x5f9120
push esi
call ebx
mov ecx, dword [esp + 0x220]
push ecx
push esi
call ebx
mov edx, dword [esp + 0x224]
push edx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
pop edi
pop ebx
pop esi
mov ecx, dword [esp + 0x20c]
call fcn.005c8895
add esp, 0x210
ret 8
mov eax, dword [esp + 8]
pop ebx
pop esi
mov ecx, dword [esp + 0x20c]
call fcn.005c8895
add esp, 0x210
ret 8
mov ecx, dword [esp + 0x210]
mov eax, dword [esp + 4]
pop esi
call fcn.005c8895
add esp, 0x210
ret 8
Function at 0x563500
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x37c
mov eax, dword [0x644904]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x380], eax
mov eax, dword [esi + 0xa0]
cmp eax, 3
push edi
je 0x563531
cmp eax, 2
jne 0x5636b5
mov eax, dword [esi + 0xa8]
xor ebx, ebx
cmp eax, ebx
jne 0x5636b5
xor eax, eax
mov byte [esp + 0x68], bl
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x69]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0x6c]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea ecx, [esp + 0x68]
push ecx
call dword [sym.imp.shlwapi.dll_PathRemoveFileSpecA]
xor eax, eax
mov byte [esp + 0x170], bl
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x171]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea edx, [esp + 0x6c]
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x178]
push eax
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
push 0x615144
lea ecx, [esp + 0x174]
push ecx
call dword [sym.imp.shlwapi.dll_PathAppendA]
mov edx, dword [0x645468]
xor eax, eax
mov byte [esp + 0x278], bl
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x279]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
stosb byte es:[edi], al
lea eax, [esp + 0x174]
push eax
push 0x615134
lea ecx, [esp + 0x284]
push 0x104
push ecx
call dword [sym.imp.msvcr71.dll__snprintf]
add esp, 0x14
lea edx, [esp + 0x68]
push edx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x70]
push eax
push ebx
push 0x4000000
push ebx
push ebx
push ebx
lea ecx, [esp + 0x298]
push ecx
push ebx
mov dword [esi + 0xa8], ebx
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x74], 1
mov word [esp + 0x78], 5
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
je 0x5636b5
mov edx, dword [0x645468]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.user32.dll_GetWindowLongA]
or eax, 0x2000000
push eax
mov eax, dword [0x645468]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.user32.dll_SetWindowLongA]
mov edx, dword [esi + 0xa0]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0xa8], ecx
mov dword [esi + 0xac], edx
mov dword [esi + 0xa0], 4
mov ecx, dword [esp + 0x384]
call fcn.005c8895
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
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, pe_nt_image_headers32
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