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, 0x40
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 0x5241c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x644904]
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0x141
lea edx, [ebp - 0x148]
push edx
push eax
mov dword [ebp - 0x14c], 0x10
call dword [sym.imp.ws2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x524232
push 0x6107ec
mov ecx, esi
call fcn.00524060
mov ecx, dword [ebp + 0x10]
mov dl, byte [ebp - 0x140]
mov eax, dword [ebp - 0x12b]
mov byte [ecx], dl
pop esi
mov ecx, dword [ebp - 4]
call fcn.005c8895
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 0x140]
mov byte [eax], cl
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x12b]
pop esi
call fcn.005c8895
mov esp, ebp
pop ebp
ret 0xc
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 0x500
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 0x500
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 0x530ae0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5dd0ab
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp edi, esi
mov ebx, ecx
jne 0x530b1e
push 0x611a50
push 0x5de
push 0x611a34
call dword [sym.imp.tengine.dll_void___cdecl_tThrowAssertException_char_const___int__char_const__]
add esp, 0xc
mov eax, dword [edi]
mov ecx, dword [eax]
mov edx, dword [edi + 4]
push ecx
push edx
mov ecx, ebx
call fcn.0052eb20
cmp eax, esi
jne 0x530ba1
push 0x64
call fcn.005c8833
add esp, 4
mov dword [ebp + 8], eax
cmp eax, esi
mov dword [ebp - 4], esi
je 0x530b68
mov edx, dword [0x6431c8]
cmp edx, esi
jge 0x530b55
mov edx, 1
mov esi, edx
inc edx
push esi
mov ecx, eax
mov dword [0x6431c8], edx
call fcn.00517690
mov esi, eax
push edi
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.005176e0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebx + 0x30]
mov dword [ebp + 8], eax
call fcn.005301a0
mov dword [eax], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
mov ecx, eax
call fcn.005176e0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x53dd30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dd969
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
mov ebx, ecx
push esi
push edi
xor edi, edi
mov dword [ebx], fcn.0051e930
mov dword [ebp - 0x10], ebx
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], edi
mov dword [ebx + 0x24], edi
mov dword [ebp - 4], edi
mov dword [ebx + 0x3c], edi
mov dword [ebx + 0x40], edi
mov dword [ebx + 0x44], edi
lea esi, [ebx + 0x4c]
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0053c7a0
mov dword [esi + 4], eax
mov byte [eax + 0x1d], 1
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
mov dword [esi + 8], edi
lea ecx, [ebx + 0x5c]
mov byte [ebp - 4], 2
call dword [sym.imp.msvcp71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [ebx + 0x78]
mov byte [ebp - 4], 3
call dword [sym.imp.msvcp71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov esi, dword [ebp + 8]
cmp esi, edi
mov byte [ebp - 4], 4
jne 0x53ddd3
push 0x612600
push 0x23
push 0x6125a0
call dword [sym.imp.tengine.dll_void___cdecl_tThrowAssertException_char_const___int__char_const__]
add esp, 0xc
xor ecx, ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebx + 4], esi
mov dword [ebp - 0x14], ecx
sub esp, 0x24
mov dword [ebx + 0x28], edi
mov edi, esp
mov ecx, 9
lea esi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
lea ecx, [ebx + 0x38]
mov dword [ebx + 8], eax
call fcn.0053d8b0
mov dl, byte [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 0x2c], esi
mov dword [ebx + 0x30], esi
mov dword [ebx + 0xc], esi
mov dword [ebx + 0xa8], esi
mov dword [ebx + 0xac], esi
mov dword [ebx + 0xa4], esi
mov dword [ebx + 0x58], esi
mov dword [ebx + 0xa0], esi
pop edi
mov byte [ebx + 0x49], dl
mov byte [ebx + 0x34], 0
mov byte [ebx + 0x48], 0
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
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 0x2b9
push 0x409
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, 0x409
mov edi, edx
jg 0x5499ab
mov ebp, 0x409
cmp ebx, 0x2b9
jg 0x5499b8
mov ebx, 0x2b9
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, 0x40
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, 0x40
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, 0x40
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 0x567b50
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5dfec5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
or eax, 0xffffffff
push fcn.0042f520
push 0x4dd720
xor ebx, ebx
push 0xa
mov dword [esi + 8], eax
mov word [esi + 0xc], ax
mov word [esi + 0xe], ax
mov word [esi + 0x10], ax
mov word [esi + 0x12], ax
mov word [esi + 0x14], ax
mov dword [esi + 0x18], eax
lea eax, [esi + 0x30]
push 8
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov byte [esi + 0x1c], bl
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], 0x2710
push eax
mov byte [esi + 0x2c], bl
call fcn.005c8a47
push fcn.0042f520
push 0x4dd720
push 5
lea eax, [esi + 0x80]
push 8
push eax
mov dword [esp + 0x28], ebx
call fcn.005c8a47
push fcn.0042f520
push 0x4dd720
push 5
lea eax, [esi + 0xa8]
push 8
push eax
mov byte [esp + 0x28], 1
call fcn.005c8a47
push fcn.0042f520
push 0x4dd720
push 5
lea eax, [esi + 0xd0]
push 8
push eax
mov byte [esp + 0x28], 2
call fcn.005c8a47
push fcn.0042f520
push 0x4dd720
push 6
push 8
lea eax, [esi + 0xf8]
push eax
mov byte [esp + 0x28], 3
call fcn.005c8a47
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x567b67
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5dfec5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
or eax, 0xffffffff
push fcn.0042f520
push 0x4dd720
xor ebx, ebx
push 0xa
mov dword [esi + 8], eax
mov word [esi + 0xc], ax
mov word [esi + 0xe], ax
mov word [esi + 0x10], ax
mov word [esi + 0x12], ax
mov word [esi + 0x14], ax
mov dword [esi + 0x18], eax
lea eax, [esi + 0x30]
push 8
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov byte [esi + 0x1c], bl
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], 0x2710
push eax
mov byte [esi + 0x2c], bl
call fcn.005c8a47
push fcn.0042f520
push 0x4dd720
push 5
lea eax, [esi + 0x80]
push 8
push eax
mov dword [esp + 0x28], ebx
call fcn.005c8a47
push fcn.0042f520
push 0x4dd720
push 5
lea eax, [esi + 0xa8]
push 8
push eax
mov byte [esp + 0x28], 1
call fcn.005c8a47
push fcn.0042f520
push 0x4dd720
push 5
lea eax, [esi + 0xd0]
push 8
push eax
mov byte [esp + 0x28], 2
call fcn.005c8a47
push fcn.0042f520
push 0x4dd720
push 6
push 8
lea eax, [esi + 0xf8]
push eax
mov byte [esp + 0x28], 3
call fcn.005c8a47
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x56ee50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x644904]
mov ecx, dword [0x64581c]
mov dword [ebp - 4], eax
mov eax, dword [0x645800]
cmp eax, ecx
jne 0x56ef15
push ebx
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0xc]
push esi
push edi
mov byte [ebp - 0x130], 0
xor eax, eax
mov ecx, 0x4a
lea edi, [ebp - 0x12f]
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, 0x40
mov esi, eax
lea edi, [ebp - 0x130]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
mov edi, edi
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
xor byte [ebp + esi - 0x130], al
inc esi
cmp esi, 0x100
jl 0x56eeb0
lea ecx, [ebp - 0x134]
push ecx
lea edx, [ebp - 0x138]
push edx
lea eax, [ebp - 0x130]
push 0xe8
push eax
mov byte [ebp - 0x48], 0
call fcn.00575d00
add esp, 0x10
test al, al
pop edi
pop esi
pop ebx
je 0x56ef15
mov edx, dword [ebp - 0x134]
mov ecx, dword [ebp - 0x138]
dec edx
neg edx
sbb edx, edx
push ecx
mov ecx, dword [0x64577c]
add edx, 7
push edx
call fcn.0048db90
mov ecx, dword [ebp - 4]
mov eax, 2
call fcn.005c8895
mov esp, ebp
pop ebp
ret
Function at 0x5723a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5e08c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi], 0x615ef0
mov dword [esp + 8], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esp + 0x14], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esi + 0x38]
mov byte [esp + 0x1c], 1
call fcn.00572050
mov al, byte [esp + 0x20]
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
mov edx, dword [esp + 0x1c]
mov byte [esi + 0x64], al
lea eax, [esi + 0x65]
mov dword [esi + 4], edx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x60], 0xffffffff
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov byte [eax], bl
je 0x572430
push ecx
push 0x5ebcc4
push 0x20
push eax
call dword [sym.imp.msvcr71.dll__snprintf]
add esp, 0x10
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x573150
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebp
push edi
push 0x5fd408
push eax
mov ebp, ecx
call dword [sym.imp.msvcr71.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x573174
pop edi
xor al, al
pop ebp
ret 8
push ebx
push esi
mov esi, dword [sym.imp.msvcr71.dll_fseek]
push 2
push 0
push edi
call esi
push edi
call dword [sym.imp.msvcr71.dll_ftell]
push 0
push 0
push edi
mov ebx, eax
call esi
lea ecx, [ebx + 1]
push ecx
call fcn.005c8858
push edi
push ebx
mov esi, eax
push 1
push esi
call dword [sym.imp.msvcr71.dll_fread]
push edi
mov byte [esi + ebx], 0
call dword [sym.imp.msvcr71.dll_fclose]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
add esp, 0x34
push edx
push eax
lea ecx, [esi + ebx + 1]
push ecx
push esi
mov ecx, ebp
call fcn.00573010
push esi
mov bl, al
call sub.msvcr71.dll_void___cdecl_operator_delete___void__
add esp, 4
pop esi
mov al, bl
pop ebx
pop edi
pop ebp
ret 8

Function at 0x573780
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov dword [ecx], 0x615f88
jmp fcn.005736d0

Function at 0x573ee0
Capabilities:
Connect socket

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_connect]
cmp eax, 0xffffffff
jne 0x57401c
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
add eax, 0xffffd8ec
cmp eax, 0x59
ja case.0x573f19.10005
movzx eax, byte [eax + 0x57406c]
jmp dword [eax*4 + 0x574024]
push 0x104
push 0x61600c
jmp 0x57400b
push 0x104
push 0x616000
jmp 0x57400b
push 0x104
push 0x616058
jmp 0x57400b
push 0x104
push 0x6160c0
jmp 0x57400b
push 0x104
push 0x615fe0
jmp 0x57400b
push 0x104
push 0x6160b4
jmp 0x57400b
push 0x104
push 0x616044
jmp 0x57400b
push 0x104
push 0x615ff0
jmp 0x57400b
push 0x104
push 0x6160a4
jmp 0x57400b
push 0x104
push 0x616038
jmp 0x57400b
push 0x104
push 0x61602c
jmp 0x57400b
push 0x104
push 0x616098
jmp 0x57400b
push 0x104
push 0x616088
jmp 0x57400b
push 0x104
push 0x615fc8
jmp 0x57400b
push 0x104
push 0x616020
jmp 0x57400b
push 0x104
push 0x616078
jmp 0x57400b
push 0x104
push 0x616068
jmp 0x57400b
push 0x104
push 0x5f21c8
push 0x646580
call dword [sym.imp.msvcr71.dll_strncpy]
add esp, 0xc
xor eax, eax
ret
mov eax, 1
ret