joyce8/EMBER2024-capa huggingface dataset:
Function at 0x8f315
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], edi
cmp esi, edi
jne 0x8f33b
xor eax, eax
jmp 0x8f424
push 0x10
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.0008ee2a
add esp, 0xc
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_htons]
push 2
mov word [ebp - 0x16], ax
pop eax
push edi
xor edi, edi
inc edi
push edi
push eax
mov word [ebp - 0x18], ax
mov dword [ebp - 0x14], esi
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x8f382
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, esi
jmp 0x8f424
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ioctlsocket]
lea eax, [ebp + 8]
push eax
push 0x8004667e
push esi
mov dword [ebp + 8], edi
call ebx
cmp eax, 0xffffffff
jne 0x8f3aa
or edi, eax
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
jmp 0x8f423
push 0x10
lea eax, [ebp - 0x18]
push eax
push esi
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x220], edi
call dword [sym.imp.WS2_32.dll_connect]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x220]
push eax
xor edi, edi
push edi
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x8f421
lea eax, [ebp - 0x11c]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x8f39f
lea eax, [ebp + 8]
push eax
push 0x8004667e
push esi
mov dword [ebp + 8], edi
call ebx
push dword [ebp + 0x10]
push esi
call fcn.0008f26d
pop ecx
pop ecx
mov eax, esi
jmp 0x8f423
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.WS2_32.dll_recv]
push edi
push dword [ebp + 0x14]
xor edi, edi
push dword [ebp + 0x10]
push ebx
jmp 0x8f473
cmp eax, 0x2746
je 0x8f47c
add edi, eax
cmp edi, dword [ebp + 0x10]
jge 0x8f47c
push dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
sub eax, edi
push eax
lea eax, [edi + ebx]
push eax
push dword [ebp + 8]
call esi
test eax, eax
jg 0x8f458
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40a1da
Capabilities:
Encode data using xor

Disassembly:
xchg ecx, eax
imul edx, dword [edx - 0x2a], 0x66dda4d1
in al, dx
test eax, 0x2befd6ca
invalid
Function at 0x429e7a
Capabilities:
Encode data using xor

Disassembly:
pop edx
popfd
mov dword [0x65ab6290], eax
cmp ch, cl
add bh, byte [edx]
inc ebx
shr byte [ecx - 0x44cd0c12], 0xd3
test eax, 0x3e328648
mov ebp, 0xff65d645
mov dword [0x8903251], eax
dec esi
xor al, 0xb9
inc edi
popfd
adc dword [ecx + esi*8], esi
loopne 0x429e81
iretd
Function at 0x43cb4a
Capabilities:
Encode data using xor

Disassembly:
sbb ebx, dword [edi - 0x66]
stosd dword es:[edi], eax
sbb byte [ebp - 0x518c6767], bh
mov dl, 0x10
and ah, byte [esi + 0x26]
sub bl, 0x2f
pop ebx
retf 0x4266
movsd dword es:[edi], dword [esi]
dec edx
mov dword [0x2d87471e], eax
inc edx
mov dh, 0xab
xchg ebp, eax
scasd eax, dword es:[edi]
jg 0x43cae0
lea ecx, [ebx - 0x1e]
salc
sbb dl, ah
fisttp word [edi + 0x1b]
add bl, byte [0xd741bdd5]
jbe 0x43cbb1
and eax, 0x4e84a233
dec esi
sub byte [edx + 1], bh
xchg edx, eax
inc eax
inc ecx
aam 0xa7
rol ebx, 0x12
push edi
in al, dx
xor dl, byte [ebp - 0x5568d23e]
sti
movups xmmword [edi - 0x16], xmm3
mov esp, 0x2a129dfc
popfd
jge 0x43cb6d
push 0xe84867db
test dword [eax + esi*8 + 0x11], ebx
rcr byte [ebx + esi*8 - 0x35], 1
mov ebx, 0xbdabca20
invalid
mov al, 0x5a
aad 0x6b
and byte [edx + 0x2d], al
mov ebp, 0xdf799db0
cmp ebx, dword [ebp - 0x50]
wait
cmp al, 0xbe
push ebx
std
mov eax, dword [0x527168b6]
push edx
lds edi, [edx + esi*8]
mov ebp, 0x919bee5b
rcl dword [edx + 0x2ca14d13], cl
rol dword ds:[edi - 0x1c], 1
invalid
Function at 0x47dbfa
Capabilities:
Encode data using xor

Disassembly:
call 0x49967af3
xchg dh, ch
stc
xor bh, ah
xor ch, dh
push eax
test dword [edx - 0x2394a52a], eax
insd dword es:[edi], dx
xchg ecx, eax
out 0xe0, al
mov esp, dword [eax]
mov ch, 0xe0
cmp ecx, dword [ecx]
hlt
and dword [ebp + 0x7885b96f], 0x60396b47
out 0x3d, al
in eax, 0x5d
mov edi, 0x86e130e4
inc ebp
mov al, 0x67
xor esp, ebx
inc edi
mov bh, 0x72
cmc
jbe 0x47dbc5
pushal
sbb edi, dword [ebx + esi]
std
sbb bl, byte [eax - 0x4b]
dec ebx
in al, 0xc8
sub edx, eax
movsd dword es:[edi], dword [esi]
aas
push esp
add eax, 0xb8646b8e
jnp 0x47db9a
pushal
les esi, [ecx]
cmp byte [eax + 0x34317837], dl
xor eax, dword [ebp - 0x7a449e70]
nop
popal
invalid
test dword [esi + 0x64], edi
popal
mov ebx, 0x62647e85
mov bl, 0x30
mov eax, dword [0xc231e434]
bound esi, qword [ebx - 0x1bcb5ed0]
xor edx, eax
ja 0x47dc5e
cmpsb byte [esi], byte es:[edi]
aad 0x15
xchg esi, eax
nop
loop 0x47dbb9
lea esp, [ebx + 0x19d3a5e5]
cwde
inc eax
ret 0xdda7
test ch, dh
or al, 0xb3
inc eax
std
push 0x549d40e1
cli
mov dword [0xa687446c], eax
loope 0x47dcd2
adc eax, 0x8b84adcc
push ecx
invalid
mov al, byte [0x26618007]
jmp 0x49e36f20
Function at 0x47fd4a
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0xf78ae574]
retf
jne 0x47fcd5
push esi
aas
outsd dx, dword [esi]
xor eax, 0x519d8388
out dx, eax
xchg ecx, eax
xchg esi, eax
cmp ebx, ebp
xor byte [eax], cl
insd dword es:[edi], dx
in al, dx
push es
in al, 0x11
mov dword [0x65616069], eax
mov ecx, 0x80e32ca3
pushal
popal
mov ecx, 0x80e32ca3
mov ebx, edx
in eax, 0x5d
jnp 0x47fd63
lodsd eax, dword [esi]
mov eax, 0xe06bd4c7
xor al, 0x60
salc
sub edi, edi
xchg ebp, eax
push ebp
push ebp
salc
cmp dword [eax + 0x24657b5d], edx
sbb eax, 0x51378499
sub eax, 0x4600b47b
rcr al, 0xd
adc byte [ecx + 0x5e], dl
fld qword [ebp + 0x1ca13713]
jae 0x47fce4
mov dword [0x38745d28], eax
arpl word [eax + 0x74], si
clc
out 0x39, eax
dec ebp
and dword [ebp + 0x75], esi
fnstenv [eax + 0x75]
jo 0x47fdc1
jo 0x47fdc1
fld qword [ecx - 0xf]
jns 0x47fd46
and byte [ecx - 0x7f], al
mov ch, 0x18
push ss
jae 0x47fdb5
jns 0x47fcfd
mov al, byte [0xff047065]
cmp al, 0x20
call dword [ecx]
dec eax
setg dh
aaa
mov ebp, 0xba08c134
xchg esp, eax
shl edi, 0x3e
call 0x6d9afe05
idiv byte [eax + edx*4]
insb byte es:[edi], dx
nop
imul esi, dword [edi + 0x11551171], 0x453a35f0
and dh, dl
push eax
les edx, [esi + 0x5f708fdb]
or dword [edx], edx
in eax, dx
add ah, byte [edx - 0x6e]
pop ebp
xor esi, dword [eax]
ror ebx, 1
aas
mov edi, 0x23b095c3
mov al, 0xef
xchg ecx, eax
jne 0x47fdeb
mov byte [esi], dh
xchg edi, eax
in eax, 0xd
inc ecx
fadd st(7), st(0)
popal
cmp eax, 0xe5953f5e
inc edi
xor edi, ebx
adc bl, byte [esi + 0x46]
push eax
int1
xchg al, al
xor bh, byte [0x7530cdff]
xchg byte [esi + 0x51bba3f5], dl
add eax, 0x41ae0df0
adc al, byte [eax]
dec ebp
xor byte [ebp - 0x7a], dh
xchg esi, eax
cmc
mov dword [0xf00551bb], eax
or eax, 0x1241ae
push ecx
loop 0x47fe52
or eax, 0xb506a183
rol edi, cl
sbb byte [edi - 0x5d], ch
rol dword [eax], 1
ret
invalid
sbb bh, dh
clc
mov dh, 0x83
hlt
add ecx, edx
push ebx
mov cl, 0xec
mov bh, dh
or al, 0x7b
into
mov edx, 0x90d49533
dec ebp
in eax, dx
or esi, dword [edi - 0xe]
mov eax, 0x604e7993
and ebp, dword [edi - 0x31]
mov edi, 0x795f2d8b
out 0x1b, al
sub eax, 0x1be6795f
std
inc eax
or eax, 0x8e95213e
mov bl, 0x9e
lahf
and dword ds:[ebp - 0x60614c72], edx
xlatb
mov cl, 0xb7
sbb al, 0xd6
insd dword es:[edi], dx
cmpsd dword [esi], dword es:[edi]
jo 0x47fea3
and eax, 0x601f108d
stosd dword es:[edi], eax
xchg esi, eax
jp 0x47fe1a
out 0xf7, al
mov dl, 0x33
popfd
pop ss
and edx, dword [ecx]
jecxz 0x47fe70
or esp, ecx
add al, 0xec
mov ebx, dword [edi - 0x26309ad2]
mov dword [0xc1ba46c1], eax
dec ecx
mov dl, 0xc7
and dword [eax], edx
xchg esi, eax
rol bh, 0x6f
xchg byte [0xf827b8da], bh
inc ebp
imul dword [0xde851ed7]
mov dl, 0x10
fild qword [edi + 0x72986c21]
and byte [esi + 0x34], ch
push esp
push esp
jb 0x47fe78
iretd
call 0x1d48e58c
inc edx
mov byte [0xbf34eb5a], al
lahf
scasb al, byte es:[edi]
rcr dword [0x1f48dec4], 1
pop eax
test al, 0x10
invalid
Function at 0x4b0e8a
Capabilities:
Encode data using xor

Disassembly:
and esi, ebx
inc eax
inc eax
inc ebx
mov dword [0x99463fba], eax
pop esp
pop edx
mov al, byte [0x2d9743b8]
sti
xor ecx, dword [ecx + edx]
mov ebx, 0x68e43213
aaa
shl byte [esi - 0x4162ef25], 1
add dword [eax + 0x31], edx
inc ecx
jle 0x4b0e8b
jl 0x4b0ec2
retf 0x68c6
stc
cld
lodsd eax, dword [esi]
xor dword [0xb310be5], esi
imul edx, dword [edx + 0x1cfed8ef], 0x86ada9e0
cmc
push esi
test eax, 0xf989bea5
xchg ebx, eax
aaa
in al, dx
test al, 0x1a
cmpsd dword [esi], dword es:[edi]
inc esp
sar byte ss:[ecx], 1
mov al, byte [0x6daf303e]
loope 0x4b0e93
push ds
mov ch, 0xdc
dec ecx
and dword [eax], esp
mov dl, 0xa9
aas
add esp, esi
cdq
mov edx, 0xc41f09a
push ebx
test byte [ebp - 0x1faf55ce], bh
invalid

Function at 0x4bb139
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c23d0
cmp edx, dword [eax]
je 0x4bb15b
add eax, 8
inc ecx
cmp eax, 0x4c2460
jl 0x4bb14c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c23d0]
jne 0x4bb289
mov eax, dword [0x4c6d54]
cmp eax, 1
je 0x4bb263
test eax, eax
jne 0x4bb18c
cmp dword [0x4c22fc], 1
je 0x4bb263
cmp edx, 0xfc
je 0x4bb289
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb1c3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bbb20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bbfb0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb206
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bbfb0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c0734
push edi
call fcn.004bde80
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bbb20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bbb30
lea eax, [ebp - 0xa0]
push 0x4c0714
push eax
call fcn.004bbb30
push dword [esi + 0x4c23d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bbb30
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bddf4
add esp, 0x2c
pop edi
jmp 0x4bb289
lea eax, [ebp + 8]
lea esi, [esi + 0x4c23d4]
push 0
push eax
push dword [esi]
call fcn.004bbfb0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x29c1440
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push edi
xor edi, edi
xor eax, eax
mov dword [ebp + eax*4 - 0x400], eax
inc eax
cmp eax, 0x100
jb 0x29c1450
mov ebx, 2
lea ecx, [ebp - 0x3fc]
lea ebx, [ebx]
xor edx, edx
lea eax, [ebx - 2]
div dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
add ecx, 0x10
movzx esi, byte [edx + eax]
add esi, dword [ecx - 0x14]
mov al, byte [ecx - 0x14]
add esi, edi
movzx eax, al
and esi, 0xff
mov edx, dword [ebp + esi*4 - 0x400]
mov dword [ecx - 0x14], edx
mov dword [ebp + esi*4 - 0x400], eax
xor edx, edx
lea eax, [ebx - 1]
div dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
movzx edi, byte [edx + eax]
add edi, dword [ecx - 0x10]
mov al, byte [ecx - 0x10]
add edi, esi
movzx eax, al
and edi, 0xff
mov edx, dword [ebp + edi*4 - 0x400]
mov dword [ecx - 0x10], edx
mov dword [ebp + edi*4 - 0x400], eax
xor edx, edx
mov eax, ebx
div dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
movzx esi, byte [edx + eax]
add esi, dword [ecx - 0xc]
mov al, byte [ecx - 0xc]
add esi, edi
movzx eax, al
and esi, 0xff
mov edx, dword [ebp + esi*4 - 0x400]
mov dword [ecx - 0xc], edx
mov dword [ebp + esi*4 - 0x400], eax
xor edx, edx
lea eax, [ebx + 1]
div dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
add ebx, 4
movzx edi, byte [edx + eax]
add edi, dword [ecx - 8]
mov al, byte [ecx - 8]
add edi, esi
and edi, 0xff
mov edx, dword [ebp + edi*4 - 0x400]
mov dword [ecx - 8], edx
movzx eax, al
lea edx, [ebx - 2]
mov dword [ebp + edi*4 - 0x400], eax
cmp edx, 0x100
jb 0x29c1470
mov eax, dword [ebp + 8]
xor ecx, ecx
xor edx, edx
xor esi, esi
cmp dword [ebp + 0x10], ecx
jbe 0x29c15b7
jmp 0x29c1560
inc edx
and edx, 0xff
mov edi, dword [ebp + edx*4 - 0x400]
mov bl, byte [ebp + edx*4 - 0x400]
add edi, esi
and edi, 0xff
mov esi, edi
mov edi, dword [ebp + esi*4 - 0x400]
mov dword [ebp + edx*4 - 0x400], edi
movzx edi, bl
mov dword [ebp + esi*4 - 0x400], edi
mov ebx, dword [ebp + edx*4 - 0x400]
add ebx, edi
and ebx, 0xff
movzx ebx, byte [ebp + ebx*4 - 0x400]
xor byte [ecx + eax], bl
inc ecx
cmp ecx, dword [ebp + 0x10]
jb 0x29c1560
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x29c1c50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x29d7138]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x29c1c7e
push 0x29d1410
push 0x29d13f4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.029c3750
cmp eax, ebx
je 0x29c1cd0
mov cl, byte [ebp + 0x14]
xor edx, edx
test cl, cl
setne dl
push ebx
movzx ecx, cl
push 0x80
add edx, 2
push edx
mov edx, dword [ebp + 8]
neg ecx
sbb ecx, ecx
push 0
and ecx, 0xc0000004
push 2
add ecx, 0x40000000
push ecx
push edx
call eax
mov esi, eax
cmp esi, 0xffffffff
je 0x29c1cdf
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push 0
lea eax, [ebp - 4]
push eax
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov bl, al
jmp 0x29c1cd3
mov esi, dword [ebp - 4]
cmp esi, 0xffffffff
je 0x29c1cdf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
or eax, 0xffffffff
xor ecx, ecx
test edx, edx
jbe 0x29c1e91
push esi
mov esi, dword [ebp + 8]
push edi
movzx edi, byte [ecx + esi]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + section..data]
inc ecx
cmp ecx, edx
jb 0x29c1e74
pop edi
pop esi
not eax
pop ebp
ret
Function at 0x29c2220
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5a8
push esi
xor esi, esi
push 0x3ff
lea eax, [ebp - 0x417]
push esi
push eax
mov dword [ebp - 4], esi
mov byte [ebp - 0x418], 0
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x5a8]
push ecx
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x29c2391
push str.i.root_servers.org
call fcn.029c9300
add esp, 4
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0x29c2391
push edi
mov edx, 2
push 0x50
mov word [ebp - 0x14], dx
call sub.WS2_32.dll_htons
push 6
push 1
push 2
mov word [ebp - 0x12], ax
call sub.WS2_32.dll_socket
mov edi, eax
cmp edi, 0xffffffff
je 0x29c2398
push 0x10
lea eax, [ebp - 0x14]
push eax
push edi
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
je 0x29c2398
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
push eax
call main
add esp, 4
mov edi, edi
call fcn.029c3870
cdq
mov ecx, 0x1a
idiv ecx
inc esi
add dl, 0x61
cmp esi, 0x400
mov byte [ebp + esi - 0x419], dl
jl 0x29c22d0
mov byte [ebp - 0x18], 0
call ebx
mov edx, eax
mov eax, 0x10624dd3
mul edx
mov esi, edx
shr esi, 6
add esi, 0xa
call ebx
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
cmp edx, esi
jae 0x29c2362
lea esp, [esp]
mov eax, dword [0x2a0a43c]
push 0
push 0x400
test eax, eax
je 0x29c233c
lea edx, [ebp - 0x418]
push edx
push edi
call eax
jmp 0x29c2349
lea eax, [ebp - 0x418]
push eax
push edi
call sub.WS2_32.dll_send
test eax, eax
jle 0x29c2350
add dword [ebp - 4], eax
call ebx
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
cmp edx, esi
jb 0x29c2320
push edi
call sub.WS2_32.dll_closesocket
mov eax, dword [ebp - 4]
cdq
and edx, 0x3ff
add eax, edx
mov ecx, eax
sar ecx, 0xa
mov eax, 0x66666667
imul ecx
sar edx, 2
pop ebx
mov eax, edx
shr eax, 0x1f
pop edi
add eax, edx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x29c2810
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
xor eax, eax
push 0x18e
push eax
lea ecx, [ebp - 0x18e]
push ecx
mov word [ebp - 0x190], ax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea edx, [ebp - 0x190]
push edx
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x29c286b
cmp byte [ebp - 0x190], 2
jne 0x29c286b
mov eax, dword [ebp - 0x190]
shr eax, 8
cmp al, 2
jne 0x29c286b
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x29c2880
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
xor edi, edi
push 8
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call fcn.029c2460
mov esi, eax
add esp, 4
cmp esi, edi
je 0x29c29cf
push 4
call fcn.029c2460
add esp, 4
mov dword [esi + 4], eax
cmp eax, edi
je 0x29c29cf
mov edi, dword [ebp + 8]
push edi
call sub.WS2_32.dll_inet_addr
mov ebx, eax
cmp ebx, 0xffffffff
je 0x29c2914
test ebx, ebx
je 0x29c2914
push 4
call fcn.029c2460
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x29c29cf
push 4
call fcn.029c2460
mov ecx, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi]
add esp, 4
cmp dword [eax], 0
je 0x29c29cf
mov edx, dword [eax]
mov dword [edx], ebx
mov eax, dword [esi + 4]
mov dword [eax], 1
mov dword [ebp - 4], 1
jmp 0x29c29cf
mov eax, dword [0x29d7144]
push 0
test eax, eax
je 0x29c292e
lea ecx, [ebp - 8]
push ecx
push 0
push 8
push 1
push edi
call eax
jmp 0x29c293e
lea edx, [ebp - 8]
push edx
push 0
push 8
push 1
push edi
call sub.DNSAPI.dll_DnsQuery_A
test eax, eax
jne 0x29c29cf
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push edi
push ecx
call sub.MSVCRT.dll__strcmpi
add esp, 8
test eax, eax
jne 0x29c29cf
mov edi, dword [ebp - 8]
test edi, edi
je 0x29c29e6
mov ebx, 1
cmp word [edi + 8], bx
jne 0x29c29c0
mov edx, dword [esi + 4]
mov eax, dword [edx]
mov edx, dword [esi]
lea ecx, [eax*4 + 4]
push ecx
push edx
call fcn.029c2490
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x29c29c8
push 4
call fcn.029c2460
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov ecx, dword [esi]
mov dword [ecx + edx*4], eax
mov edx, dword [esi + 4]
mov eax, dword [edx]
mov ecx, dword [esi]
lea eax, [ecx + eax*4]
add esp, 4
cmp dword [eax], 0
je 0x29c29c8
mov edx, dword [eax]
mov eax, dword [edi + 0x18]
mov dword [edx], eax
mov eax, dword [esi + 4]
add dword [eax], ebx
mov dword [ebp - 4], ebx
mov edi, dword [edi]
test edi, edi
jne 0x29c2965
jmp 0x29c29cf
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x29c29de
push 1
push eax
call sub.DNSAPI.dll_DnsFree
mov eax, dword [ebp - 4]
cmp eax, 1
je 0x29c2a24
test esi, esi
je 0x29c2a1a
mov ecx, dword [esi + 4]
xor edi, edi
cmp dword [ecx], edi
jbe 0x29c2a09
mov edx, dword [esi]
mov eax, dword [edx + edi*4]
push eax
call fcn.029c24a0
mov ecx, dword [esi + 4]
inc edi
add esp, 4
cmp edi, dword [ecx]
jb 0x29c29f3
mov edx, dword [esi]
push edx
call fcn.029c24a0
push esi
call fcn.029c24a0
add esp, 8
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x29c2a30
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
xor esi, esi
push eax
xor edi, edi
mov dword [ebp - 8], esi
call sub.WS2_32.dll_htons
movzx ecx, ax
xor eax, eax
xor edx, edx
push 0x44
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edi
mov word [ebp - 0x1c], dx
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov word [ebp - 0xe], ax
call fcn.029c2460
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x29c2b5e
push 6
push 1
push 2
mov dword [ebx], 0xffffffff
mov dword [ebx + 4], edi
call sub.WS2_32.dll_socket
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x29c2ab3
call sub.WS2_32.dll_WSAGetLastError
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call fcn.029c24a0
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push ecx
call fcn.029c2880
mov esi, dword [ebp - 4]
add esp, 8
cmp eax, 1
jne 0x29c2b22
mov edx, dword [esi + 4]
cmp dword [edx], edi
jbe 0x29c2b22
mov eax, 2
mov word [ebp - 0x1c], ax
mov ecx, dword [esi]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx]
mov cx, word [ebp - 0xc]
push eax
mov dword [ebp - 0x18], eax
mov word [ebp - 0x1a], cx
call sub.WS2_32.dll_inet_ntoa
mov eax, dword [ebx]
push 0x10
lea edx, [ebp - 0x1c]
push edx
push eax
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x29c2b1b
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esi + 4]
inc edi
cmp edi, dword [ecx]
jb 0x29c2ad2
jmp 0x29c2b22
mov dword [ebp - 8], 1
test esi, esi
je 0x29c2b57
mov edx, dword [esi + 4]
xor edi, edi
cmp dword [edx], edi
jbe 0x29c2b46
nop
mov eax, dword [esi]
mov ecx, dword [eax + edi*4]
push ecx
call fcn.029c24a0
mov edx, dword [esi + 4]
inc edi
add esp, 4
cmp edi, dword [edx]
jb 0x29c2b30
mov eax, dword [esi]
push eax
call fcn.029c24a0
push esi
call fcn.029c24a0
add esp, 8
mov esi, dword [ebp - 8]
test esi, esi
jne 0x29c2b70
push ebx
call fcn.029c24a0
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
pop edi
mov eax, esi
pop esi
mov dword [ecx], ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x29c2de0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
not eax
test ecx, ecx
je 0x29c2e0f
mov edx, dword [ebp + 0xc]
push esi
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x29d76c8]
dec ecx
inc edx
test ecx, ecx
jne 0x29c2df3
pop esi
not eax
pop ebp
ret