joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415d10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe000]
push edi
or ebp, 0xffffffff
jmp 0x415d32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x415d39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x415d28
mov eax, 1
add ebx, ebx
jne 0x415d4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x415d40
jne 0x415d5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x415d40
xor ecx, ecx
sub eax, 3
jb 0x415d70
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x415de2
mov ebp, eax
add ebx, ebx
jne 0x415d7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x415d88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x415dac
inc ecx
add ebx, ebx
jne 0x415d98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x415d8d
jne 0x415da9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x415d8d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x415dcc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x415dbd
jmp 0x415d2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x415dcc
add edi, ecx
jmp 0x415d2e
pop esi
mov edi, esi
mov ecx, 0x197
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x415dea
cmp byte [edi], 9
jne 0x415dea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x415def
lea edi, [esi + 0x13000]
mov eax, dword [edi]
or eax, eax
je 0x415e5e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x197d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x19844]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x415e1c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1984c]
or eax, eax
je 0x415e58
mov dword [ebx], eax
add ebx, 4
jmp 0x415e39
call dword [esi + 0x19848]
mov ebp, dword [esi + 0x19850]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x415e92
sub esp, 0xffffff80
jmp 0x402540
Function at 0x402e70
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58fbc8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5f9e74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
cmp byte [edx], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jne 0x402eb6
xor ecx, ecx
jmp 0x402ec9
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402ec0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00402140
push 1
push 3
push 0x5d3568
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.004034e0
mov esi, eax
test esi, esi
jle 0x402f5f
push esi
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.00403280
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0057242c
add esp, 8
test eax, eax
je 0x402f2e
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.005724ef
add esp, 4
push 1
lea eax, [esi + 1]
mov byte [ebp - 0x44], 0x5c
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x40]
call fcn.004034e0
mov esi, eax
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x402f5b
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004023e0
test esi, esi
jg 0x402ef1
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x402f74
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004023e0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret
Function at 0x404340
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp byte [edi + 4], 0
je 0x40437f
mov eax, dword [edi + 8]
test eax, eax
je 0x40437f
push esi
push eax
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.0057379c
push dword [edi + 8]
mov esi, eax
call fcn.005724c4
add esp, 0x14
or ecx, 0xffffffff
test eax, eax
cmovne esi, ecx
mov eax, esi
pop esi
pop edi
pop ebp
ret 8
xor eax, eax
pop edi
pop ebp
ret 8

Function at 0x404390
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp byte [edi + 4], 0
je 0x4043cf
mov eax, dword [edi + 8]
test eax, eax
je 0x4043cf
push esi
push eax
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.00572f8f
push dword [edi + 8]
mov esi, eax
call fcn.005724c4
add esp, 0x14
or ecx, 0xffffffff
test eax, eax
cmovne esi, ecx
mov eax, esi
pop esi
pop edi
pop ebp
ret 8
xor eax, eax
pop edi
pop ebp
ret 8

Function at 0x404bb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5f9e74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x34]
push edi
push eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x28]
push eax
movzx eax, word [ebp - 0x2a]
push eax
movzx eax, word [ebp - 0x2c]
push eax
movzx eax, word [ebp - 0x2e]
push eax
movzx eax, word [ebp - 0x32]
push eax
movzx eax, word [ebp - 0x34]
push eax
push str.__d__d__d__d:_d:_d_6_
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.00404840
add esp, 0x24
lea ebx, [edi + 0x24]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x24]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404c13
push dword [edi + 0x20]
sub eax, edx
push eax
lea eax, [ebp - 0x24]
push 1
push eax
call fcn.00572f8f
push dword [edi + 0x20]
push dword [ebp + 0xc]
push 1
push esi
call fcn.00572f8f
push dword [edi + 0x20]
mov esi, eax
call fcn.00577bee
add esp, 0x24
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 8

Function at 0x404f70
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x5fa850], 0xffffffff
push esi
mov esi, ecx
jne 0x404f9a
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
cmp dword [ebp - 0x10], 1
sete al
mov dword [0x5fa850], eax
push 0
push 0
push 0
push 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0x10
mov dword [esi], eax
call fcn.00427083
add esp, 4
mov dword [esi + 8], eax
cmp dword [0x5fa850], 0
xorps xmm0, xmm0
movups xmmword [eax], xmm0
jne 0x404fe8
push 0xfa0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405090
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 8], 0xffffffff
je 0x4050d4
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 0xc], eax
test eax, eax
je 0x4050d4
push 0x3f
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x4050dd
mov eax, dword [esi + 0xc]
mov byte [esi + 4], 1
test eax, eax
je 0x4050d4
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 0xc], 0
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 4]
mov byte [esi + 4], 0
push eax
push 0
push esi
push 0x405300
push 0
push 0
call fcn.00577ea6
add esp, 0x18
mov dword [esi + 0x10], eax
test eax, eax
je 0x4050bb
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5f9e74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
xorps xmm0, xmm0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 2
movups xmmword [ebp - 0x14], xmm0
push eax
mov word [ebp - 0x14], cx
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 0xc]
push edi
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 0x10

Function at 0x405270
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5f9e74]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push edi
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 0
push eax
push dword [ecx + 8]
mov dword [ebp - 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
push dword [ebp - 0x14]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [edx], 0
jne 0x4052c9
xor eax, eax
jmp 0x4052d9
lea edi, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4052d0
sub eax, edi
push eax
push edx
mov ecx, esi
call fcn.00402140
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 4

Function at 0x405450
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
mov edi, edx
xor esi, esi
mov ebx, ecx
mov eax, 0xff
test edi, edi
jle 0x40547a
movsx edx, byte [esi + ebx]
inc esi
xor edx, eax
shr eax, 8
movzx ecx, dl
xor eax, dword [ecx*4 + 0x5d39e8]
cmp esi, edi
jl 0x405462
pop edi
pop esi
pop ebx
ret
Function at 0x406120
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
mov byte [esi + 0x18], 1
cmp eax, 0xffffffff
je 0x406170
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esi + 0x10]
mov dword [esi + 8], 0xffffffff
mov byte [esi + 4], 1
test eax, eax
je 0x40615b
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x406170
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
mov byte [esi + 0x18], 8
mov byte [esi + 0x20], 0
cmp eax, 0xffffffff
je 0x4061a7
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esi + 0xc]
mov dword [esi + 8], 0xffffffff
mov byte [esi + 4], 1
test eax, eax
je 0x4061a7
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 0xc], 0
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp eax, 6
push eax
setne cl
inc ecx
push ecx
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x4061d0
mov byte [esi + 0x18], 2
mov al, 1
pop esi
pop ebp
ret 8
xor al, al
pop esi
pop ebp
ret 8

Function at 0x4061e0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov al, byte [esi + 0x18]
cmp al, 1
je 0x40622a
cmp al, 8
je 0x40622a
mov eax, dword [esi + 8]
mov byte [esi + 0x18], 5
cmp eax, 0xffffffff
je 0x406226
push 0x10
push dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40621b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x406226
mov byte [esi + 0x18], 6
mov al, 1
pop esi
pop ebp
ret 4
mov byte [esi + 0x18], 7
xor al, al
pop esi
pop ebp
ret 4

Function at 0x406240
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x406289
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esi + 0x10]
mov dword [esi + 8], 0xffffffff
mov byte [esi + 4], 1
test eax, eax
je 0x406274
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x406289
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 0xc], 0
mov byte [esi + 0x18], 8
mov byte [esi + 0x20], 0
pop esi
ret
Function at 0x4062a0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
jne 0x4062c7
mov eax, dword [esi + 0x14]
mov byte [esi + 0x20], 1
test eax, eax
je 0x406327
push dword [esi + 0x1c]
push 1
push esi
call eax
add esp, 0xc
pop esi
pop ebp
ret 4
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x40630d
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esi + 0x10]
mov dword [esi + 8], 0xffffffff
mov byte [esi + 4], 1
test eax, eax
je 0x4062f8
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40630d
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 0xc], 0
mov eax, dword [esi + 0x14]
mov byte [esi + 0x18], 8
mov byte [esi + 0x20], 0
test eax, eax
je 0x406327
push dword [esi + 0x1c]
push 8
push esi
call eax
add esp, 0xc
pop esi
pop ebp
ret 4

Function at 0x406330
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
jne 0x406353
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4063b3
push dword [esi + 0x1c]
push 2
push esi
call eax
add esp, 0xc
pop esi
pop ebp
ret 4
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x406399
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esi + 0x10]
mov dword [esi + 8], 0xffffffff
mov byte [esi + 4], 1
test eax, eax
je 0x406384
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x406399
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 0xc], 0
mov eax, dword [esi + 0x14]
mov byte [esi + 0x18], 8
mov byte [esi + 0x20], 0
test eax, eax
je 0x4063b3
push dword [esi + 0x1c]
push 8
push esi
call eax
add esp, 0xc
pop esi
pop ebp
ret 4

Function at 0x4063c0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
jne 0x4063e3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x406443
push dword [esi + 0x1c]
push 3
push esi
call eax
add esp, 0xc
pop esi
pop ebp
ret 4
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x406429
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esi + 0x10]
mov dword [esi + 8], 0xffffffff
mov byte [esi + 4], 1
test eax, eax
je 0x406414
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x406429
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 0xc], 0
mov eax, dword [esi + 0x14]
mov byte [esi + 0x18], 8
mov byte [esi + 0x20], 0
test eax, eax
je 0x406443
push dword [esi + 0x1c]
push 8
push esi
call eax
add esp, 0xc
pop esi
pop ebp
ret 4
Function at 0x406470
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x4064b9
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esi + 0x10]
mov dword [esi + 8], 0xffffffff
mov byte [esi + 4], 1
test eax, eax
je 0x4064a4
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4064b9
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 0xc], 0
mov eax, dword [esi + 0x14]
mov byte [esi + 0x18], 8
mov byte [esi + 0x20], 0
test eax, eax
je 0x4064d3
push dword [esi + 0x1c]
push 8
push esi
call eax
add esp, 0xc
pop esi
ret 4

Function at 0x406660
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, ecx
push ecx
push 6
lea ecx, [esi + 0x6c]
call fcn.00406120
test al, al
je 0x406708
mov eax, dword [esi + 0x74]
mov dword [ebp - 4], 0x1388
cmp eax, 0xffffffff
je 0x406700
push 4
lea ecx, [ebp - 4]
push ecx
push 0x1006
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
setne al
test al, al
je 0x406700
mov eax, dword [esi + 0x74]
mov dword [ebp - 4], 0x1388
cmp eax, 0xffffffff
je 0x406700
push 4
lea ecx, [ebp - 4]
push ecx
push 0x1005
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
setne al
test al, al
je 0x406700
cmp dword [esi + 0x20], 0x10
lea ecx, [esi + 0xc]
jb 0x4066e6
mov ecx, dword [ecx]
movzx eax, word [esi + 2]
push eax
push ecx
lea ecx, [esi + 0x6c]
call fcn.004096c0
test al, al
je 0x406700
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [esi + 0x6c]
call fcn.00406240
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58fe48
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5f9e74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 4
push str.GET
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00402140
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.00406c70
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406e90
push 2
push 0x5d5d34
lea ecx, [ebp - 0x28]
call fcn.004035e0
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [esi + 0x74]
cmovae edx, eax
cmp esi, 0xffffffff
jne 0x4067bc
or esi, esi
jmp 0x4067d1
push 0
push dword [ebp - 0x18]
push edx
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp - 0x14]
mov esi, eax
mov eax, dword [ebp - 0x28]
cmp ecx, 0x10
jb 0x4067e1
inc ecx
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004023e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407380
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
test eax, eax
je 0x4073e5
cmp byte [ebp + 0xc], 0
mov dword [edi + 0x18], eax
je 0x4073ed
push esi
mov dword [eax + 8], 1
lea esi, [edi + 0x104]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push esi
push 0
push edi
push 0x407440
push 0
push 0
call fcn.00577ea6
add esp, 0x18
mov dword [esi + 4], eax
pop esi
test eax, eax
jne 0x4073f2
mov eax, dword [edi + 0x18]
mov dword [eax + 4], 0xffffffff
mov eax, dword [edi + 0x18]
mov dword [eax + 8], 0xffffffff
mov dword [edi + 0x18], 0
or eax, 0xffffffff
pop edi
pop ebp
ret 8
call fcn.00407460
xor eax, eax
pop edi
pop ebp
ret 8
Function at 0x407ab0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x90]
cmp eax, 0xffffffff
je 0x407b0e
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esi + 0x98]
mov dword [esi + 0x90], 0xffffffff
mov byte [esi + 0x8c], 1
test eax, eax
je 0x407af3
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x98], 0
mov eax, dword [esi + 0x94]
test eax, eax
je 0x407b0e
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 0x94], 0
mov byte [esi + 0xa0], 8
mov byte [esi + 0xa8], 0
mov byte [esi + 0x10], 0
pop esi
ret

Function at 0x4081d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 8], 0
push esi
mov esi, ecx
mov eax, dword [esi]
jne 0x40820b
push 0
call dword [eax + 0x58]
test eax, eax
je 0x4081ee
mov dword [eax + 7], 0
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x18]
call eax
and al, 0xfb
mov ecx, esi
mov byte [ebp + 8], al
mov eax, dword [esi]
push dword [ebp + 8]
call dword [eax + 0x34]
pop esi
pop ebp
ret 4
push ebx
push edi
push 0xb
call dword [eax + 0x58]
mov edi, dword [esi + 0x5e0]
xor edx, edx
sub edi, 0xb
mov ebx, eax
mov ecx, 0xff
test edi, edi
jle 0x408240
movsx eax, byte [edx + ebx]
inc edx
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5d39e8]
cmp edx, edi
jl 0x408228
mov eax, dword [esi]
mov dword [ebp + 8], ecx
mov ecx, esi
push 0
call dword [eax + 0x58]
pop edi
pop ebx
test eax, eax
je 0x408268
lea ecx, [ebp + 8]
mov edx, 4
push 4
push ecx
lea ecx, [eax + 7]
call fcn.00407f20
add esp, 8
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x18]
call eax
or al, 4
mov ecx, esi
mov byte [ebp + 8], al
mov eax, dword [esi]
push dword [ebp + 8]
call dword [eax + 0x34]
pop esi
pop ebp
ret 4
Function at 0x4096c0
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5f9e74]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 0x25], 0
jne 0x40977d
push dword [ebp + 0xc]
mov eax, 2
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
push edi
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x40971f
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40986e
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov al, byte [esi + 0x18]
cmp al, 1
je 0x40986e
cmp al, 8
je 0x40986e
mov eax, dword [esi + 8]
mov byte [esi + 0x18], 5
cmp eax, 0xffffffff
je 0x40986a
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x409765
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40986a
pop edi
mov byte [esi + 0x18], 6
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 8
cmp dword [esi + 0x40], 0x10
lea eax, [esi + 0x2c]
jb 0x409788
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
mov eax, 2
mov word [ebp - 0x14], ax
movzx eax, word [esi + 0x28]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov al, byte [esi + 0x18]
cmp al, 1
je 0x40986e
cmp al, 8
je 0x40986e
mov eax, dword [esi + 8]
mov byte [esi + 0x18], 5
cmp eax, 0xffffffff
je 0x40986a
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4097ec
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40986a
mov al, byte [esi + 0x26]
mov byte [esi + 0x18], 6
cmp al, 5
jne 0x409822
mov ecx, esi
call fcn.00409dd0
test al, al
je 0x40986e
push dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.004098a0
pop edi
mov byte [esi + 0x24], al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 8
cmp al, 3
jne 0x409846
push dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.00409c70
pop edi
mov byte [esi + 0x24], al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 8
cmp al, 4
jne 0x40986e
push dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.00409b20
pop edi
mov byte [esi + 0x24], al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 8
mov byte [esi + 0x18], 7
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.00568e6a
mov esp, ebp
pop ebp
ret 8