joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10029400
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0x350
mov dword [ebp - 4], 0xff
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
xor ebx, ebx
add esp, 4
cmp esi, ebx
jne 0x1002942d
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
xor al, al
mov edi, esi
mov ecx, 0x350
rep stosb byte es:[edi], al
mov eax, 1
cmp dword [0x1005d144], ebx
jne 0x1002944b
mov dword [0x1005d144], eax
mov edi, dword [ebp + 8]
mov dword [esi + 0x2c4], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x10]
add eax, eax
or ecx, 0xffffffff
add eax, eax
add eax, eax
push ebx
mov byte [esi + 0x174], bl
mov dword [esi + 0x2d4], ebx
mov dword [esi + 0x2d8], ebx
mov dword [esi + 0x178], 0x170c
mov dword [esi + 0x28c], ebx
mov byte [esi + 0x294], bl
mov dword [esi + 0x290], ecx
mov byte [esi + 0x14b], bl
mov dword [esi + 0x15c], ecx
mov dword [esi + 0x29c], ecx
mov byte [esi + 0x2a4], bl
mov dword [esi + 0x298], ebx
mov dword [esi + 0x2a0], ebx
mov dword [esi + 0x184], ebx
mov dword [esi + 0x17c], ecx
mov word [esi + 0x2d0], bx
mov byte [esi + 0x2d2], bl
mov dword [esi + 0x2c0], ebx
mov dword [esi + 8], edi
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x2bc], 0x100292b0
mov byte [esi + 0x32c], cl
mov dword [esi + 0x330], ebx
call dword [sym.imp.WS2_32.dll_htonl]
lea ecx, [ebp - 4]
push ecx
lea edx, [esi + 0x4c]
push edx
mov dword [esi + 0x334], eax
mov dword [esi + 0x2cc], 5
mov dword [esi + 0x2c8], 0x32
mov byte [esi + 0x33c], bl
mov dword [esi + 0x344], 3
mov dword [esi + 0x348], 8
mov byte [esi + 0x34c], bl
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
imul edi, dword [ebp + 0x10]
mov eax, esi
mov dword [esi + 0xc], edi
call fcn.10029370
pop edi
mov dword [esi + 0x2e4], ebx
mov dword [esi + 0x2e0], ebx
mov dword [esi + 0x2dc], ebx
mov dword [esi + 0x2e8], ebx
mov byte [esi + 0x2ec], bl
mov dword [esi + 0x324], ebx
mov dword [esi + 0x328], ebx
mov dword [esi + 0x2d4], ebx
mov dword [esi + 0x2f0], 0x1004efac
mov dword [esi + 0x2f8], 0x100291e0
mov dword [esi + 0x2fc], 0x10029350
mov dword [esi + 0x300], 0x100291f0
mov dword [esi + 0x304], 0x100291e0
mov dword [esi + 0x308], 0x10029290
mov dword [esi + 0x30c], 0x10032ed0
mov dword [esi + 0x320], 0x10029360
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1002cca0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov eax, dword [eax + 0x340]
push esi
push edi
test eax, eax
jne 0x1002ccc0
mov eax, str.unknown
push str.LibVNCServer_0.9.7
push eax
lea ecx, [ebp - 0x214]
push str._s___s_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x214]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002cce4
mov ecx, dword [ebx + 0x75c4]
sub eax, edx
lea edx, [ecx + eax + 0xd]
cmp edx, 0x7530
jbe 0x1002cd2e
push ecx
lea eax, [ebx + 0x94]
push eax
mov eax, ebx
call fcn.10030640
test eax, eax
jns 0x1002cd24
mov esi, ebx
call fcn.10030370
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebx + 0x75c4], 0
mov al, byte [0x1004ef5d]
movsx ecx, al
neg ecx
sbb ecx, ecx
and ecx, 0x302fefc
xor edx, edx
add ecx, 0xfffe0003
test al, al
lea eax, [ebp - 0x214]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], ecx
lea edx, [eax + 1]
je 0x1002cd81
jmp 0x1002cd60
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002cd60
sub eax, edx
lea edx, [eax + 1]
shr edx, 8
inc eax
and edx, 0xff
shl eax, 8
xor edx, eax
mov word [ebp - 0xc], dx
jmp 0x1002cd8f
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002cd81
sub eax, edx
inc eax
mov word [ebp - 0xc], ax
mov ecx, dword [ebx + 0x75c4]
xor eax, eax
lea edi, [ecx + ebx + 0x94]
mov word [ebp - 0xa], ax
lea esi, [ebp - 0x10]
mov ecx, 0xc
rep movsb byte es:[edi], byte [esi]
add dword [ebx + 0x75c4], 0xc
mov edx, dword [ebx + 0x75c4]
lea eax, [ebp - 0x214]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002cdc2
sub eax, esi
lea ecx, [eax + 1]
lea edi, [edx + ebx + 0x94]
lea esi, [ebp - 0x214]
lea eax, [ebp - 0x214]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002cde6
sub eax, edx
inc eax
add dword [ebx + 0x75c4], eax
mov eax, dword [ebx + 0x75c4]
push eax
lea edx, [ebx + 0x94]
push edx
mov eax, ebx
call fcn.10030640
test eax, eax
js 0x1002cd12
pop edi
pop esi
mov dword [ebx + 0x75c4], 0
or al, 0xff
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1002d330
Capabilities:
Get socket status
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [esi]
xor edi, edi
mov dword [ebp - 8], edi
cmp byte [eax + 0x34c], 0xff
mov dword [ebp - 0x14], 0x2400
jne 0x1002d548
mov eax, dword [eax + 0x318]
cmp eax, edi
je 0x1002d36f
push esi
call eax
cmp eax, 0xffffffff
jne 0x1002d548
cmp dword [esi + 0x7624], 0xffffffff
je 0x1002d548
mov ecx, 1
cmp dword [esi + 0x7638], ecx
jne 0x1002d548
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x128], ecx
lea ecx, [ebp - 0x1c]
push ecx
push edi
lea edx, [ebp - 0x128]
push edx
mov dword [ebp - 0x124], eax
push edi
inc eax
push eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x1002d548
mov edi, dword [sym.imp.MSVCRT.dll_malloc]
push 0x2000
call edi
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1002d3f2
push 0x2400
call edi
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x1002d3fb
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0xc], 0
mov ecx, dword [esi + 0x7624]
push 0
lea eax, [ebp - 8]
push eax
push 0x2000
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002d4b4
mov eax, dword [ebp - 8]
cmp eax, 0xffffffff
je 0x1002d4bb
test eax, eax
je 0x1002d4da
cmp dword [esi + 0x7628], 0
jne 0x1002d457
push ebx
push 0
mov edi, eax
push esi
xor eax, eax
mov cl, 5
call fcn.1002ce30
movsx edx, al
mov dword [ebp - 4], edx
jmp 0x1002d4a0
push eax
push ebx
lea eax, [ebp - 0x14]
mov ecx, edi
call fcn.100409e0
mov ecx, dword [ebp - 8]
test eax, eax
jne 0x1002d48b
mov eax, dword [ebp - 0x14]
cmp eax, ecx
jae 0x1002d48b
push edi
push 0
mov edi, eax
push esi
mov eax, 1
mov cl, 5
call fcn.1002ce30
movsx eax, al
mov dword [ebp - 4], eax
jmp 0x1002d4a0
push ebx
push 0
mov edi, ecx
push esi
xor eax, eax
mov cl, 5
call fcn.1002ce30
movsx ecx, al
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, 0x20
jge 0x1002d529
mov edi, dword [ebp - 0x10]
jmp 0x1002d402
mov dword [ebp - 8], 0xffffffff
push 0
push 0
push esi
xor edi, edi
xor eax, eax
mov cl, 7
call fcn.1002ce30
mov edx, dword [esi + 0x7624]
movsx ecx, al
mov dword [ebp - 4], ecx
push edx
jmp 0x1002d4f7
push 0
push 0
push esi
xor edi, edi
xor eax, eax
mov cl, 6
call fcn.1002ce30
movsx edx, al
mov eax, dword [esi + 0x7624]
mov dword [ebp - 4], edx
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push ebx
mov dword [esi + 0x7624], 0xffffffff
mov dword [esi + 0x7638], eax
mov dword [esi + 0x7634], eax
call dword [sym.imp.MSVCRT.dll_free]
mov al, byte [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.MSVCRT.dll_free]
push eax
call esi
add esp, 4
push ebx
call esi
mov al, byte [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or al, 0xff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002f850
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
mov edi, dword [esi + 0x2a0]
xor ebx, ebx
cmp edi, ebx
je 0x1002f93f
cmp byte [edi + 0x29], bl
jne 0x1002f93f
mov ecx, dword [esi + 0x29c]
push ebx
push 0x14
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebx
jle 0x1002f895
movzx ecx, byte [ebp - 0x14]
sub ecx, 4
je 0x1002f8f7
dec ecx
je 0x1002f8a1
pop edi
mov byte [esi + 0x2a4], bl
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x1002f895
cmp byte [0x1004ef5d], bl
je 0x1002f8d7
movzx eax, word [ebp - 0x10]
movzx edx, word [ebp - 0x12]
mov ecx, eax
and ecx, 0xff
shr eax, 8
shl ecx, 8
or ecx, eax
mov eax, edx
and eax, 0xff
shl eax, 8
shr edx, 8
or eax, edx
jmp 0x1002f8df
movzx ecx, word [ebp - 0x10]
movzx eax, word [ebp - 0x12]
mov edx, dword [edi]
push edi
push ecx
mov ecx, dword [edx + 0x300]
push eax
movzx eax, byte [ebp - 0x13]
push eax
call ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 8
jne 0x1002f895
cmp byte [0x1004ef5d], bl
je 0x1002f92c
mov ecx, dword [ebp - 0x10]
mov eax, ecx
mov edx, ecx
shr edx, 0x10
and eax, 0xff0000
or eax, edx
mov edx, ecx
and edx, 0xff00
shl ecx, 0x10
or edx, ecx
shr eax, 8
shl edx, 8
or eax, edx
jmp 0x1002f92f
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
mov edx, dword [ebp - 0x13]
push edi
push eax
mov eax, dword [ecx + 0x2f8]
push edx
call eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002f950
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [esi + 0x28c], 0
push ebx
mov ebx, dword [esi + 0x334]
push edi
jne 0x1002fb32
cmp byte [esi + 0x14b], 0xff
mov edi, 1
mov dword [esi + 0x28c], edi
jne 0x1002f99f
lea eax, [esi + 0x14c]
push eax
mov eax, dword [esi + 0x160]
mov edi, esi
call fcn.10030460
mov dword [esi + 0x15c], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x290]
cmp eax, 0xffffffff
je 0x1002f9f3
push 4
lea ecx, [ebp - 4]
push ecx
push edi
push 6
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x1002fb32
mov edx, dword [esi + 0x290]
mov dword [esi + 0x188], 0
mov dword [esi + 0x18c], edx
mov eax, dword [esi + 0x290]
add dword [esi + 0x188], edi
mov dword [esi + 0x184], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0x174], 0
je 0x1002fa35
push ebx
push 0x170c
call fcn.10030720
mov dword [esi + 0x17c], eax
mov dword [esi + 0x178], 0x170c
mov dword [esi + 0x188], 0
mov dword [esi + 0x18c], eax
mov ecx, dword [esi + 0x17c]
mov dword [esi + 0x184], ecx
jmp 0x1002fa68
mov eax, dword [esi + 0x178]
test eax, eax
jle 0x1002fa6e
push ebx
push eax
call fcn.10030720
mov dword [esi + 0x17c], eax
mov dword [esi + 0x188], 0
mov dword [esi + 0x18c], eax
mov edx, dword [esi + 0x17c]
mov dword [esi + 0x184], edx
add dword [esi + 0x188], edi
mov edx, dword [esi + 0x298]
test edx, edx
je 0x1002fb32
mov dword [ebp - 4], edi
xor al, al
lea edi, [ebp - 0x14]
mov ecx, 0x10
rep stosb byte es:[edi], al
mov eax, 2
push edx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0
push 2
push 2
mov word [ebp - 0x12], ax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
test edi, edi
js 0x1002fadd
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x1002fadd
push 0x10
lea edx, [ebp - 0x14]
push edx
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x1002fae0
or edi, 0xffffffff
mov edx, dword [esi + 0x188]
xor eax, eax
mov dword [esi + 0x29c], edi
test edx, edx
je 0x1002fb04
lea ecx, [esi + 0x18c]
cmp dword [ecx], edi
je 0x1002fb04
inc eax
add ecx, 4
cmp eax, edx
jb 0x1002faf8
cmp eax, edx
jne 0x1002fb1a
cmp edx, 0x40
jae 0x1002fb1a
mov dword [esi + eax*4 + 0x18c], edi
inc dword [esi + 0x188]
mov eax, dword [esi + 0x29c]
mov ecx, dword [esi + 0x184]
cmp eax, ecx
jg 0x1002fb2c
mov eax, ecx
mov dword [esi + 0x184], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10030460
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 4], 1
call fcn.100307c0
mov esi, eax
test esi, esi
jns 0x10030494
mov dword [edi + 0x28c], 2
or eax, 0xffffffff
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 4
lea ecx, [ebp - 4]
push ecx
push 1
push 6
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x100304c5
push esi
mov dword [edi + 0x28c], 2
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ebx, [edi + 0x4c]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
movzx eax, ax
push 0
mov dword [ebp + 8], eax
mov word [ebp - 0xa], ax
push 4
lea eax, [ebp - 0xc]
push eax
mov edx, 5
push esi
mov word [ebp - 0xc], dx
mov byte [ebp - 8], 1
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 4
jne 0x100304a9
push 0
push 1
lea ecx, [ebp - 8]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 1
jne 0x100304a9
movzx eax, word [ebp + 8]
push 0
push eax
push ebx
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, dword [ebp + 8]
jne 0x100304a9
mov edx, dword [edi + 0x188]
xor eax, eax
test edx, edx
je 0x10030543
lea ecx, [edi + 0x18c]
cmp dword [ecx], esi
je 0x10030543
inc eax
add ecx, 4
cmp eax, edx
jb 0x10030537
cmp eax, edx
jne 0x10030559
cmp edx, 0x40
jae 0x10030559
mov dword [edi + eax*4 + 0x18c], esi
inc dword [edi + 0x188]
mov eax, dword [edi + 0x184]
cmp esi, eax
jle 0x10030565
mov eax, esi
mov dword [edi + 0x184], eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10030580
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [eax + 0x14]
test ebx, ebx
jle 0x10030609
mov ecx, dword [ebp + 8]
push 0
push ebx
push ecx
push edi
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jle 0x100305b1
add dword [ebp + 8], esi
sub ebx, esi
jmp 0x10030605
je 0x10030617
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x10030605
cmp eax, 0x2733
jne 0x10030622
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x110]
push eax
push 0
mov ecx, eax
push ecx
lea edx, [edi + 1]
push edx
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], 1
mov dword [ebp - 8], 0x14
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x1003060e
je 0x1003062d
test ebx, ebx
jg 0x10030596
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10030640
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [eax + 0x14]
mov dword [ebp + 0xc], 0
test ebx, ebx
jle 0x100306f8
mov ecx, dword [ebp + 8]
push 0
push ebx
push ecx
push edi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test esi, esi
jle 0x1003067c
add dword [ebp + 8], esi
sub ebx, esi
jmp 0x100306f0
je 0x10030706
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x100306f0
cmp eax, 0x2733
jne 0x10030711
lea edx, [ebp - 8]
push edx
xor esi, esi
push esi
lea eax, [ebp - 0x110]
push eax
push esi
lea ecx, [edi + 1]
push ecx
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], 1
mov dword [ebp - 8], 5
mov dword [ebp - 4], esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, esi
jl 0x100306fd
jne 0x100306ed
mov eax, dword [ebp + 0xc]
add eax, 0x1388
mov dword [ebp + 0xc], eax
cmp eax, 0x4e20
jl 0x100306f0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp + 0xc], esi
test ebx, ebx
jg 0x10030661
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10030720
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
xor al, al
lea edi, [ebp - 0x14]
mov ecx, 0x10
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 8]
mov eax, 2
push ecx
mov dword [ebp - 4], 1
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp + 0xc]
push 0
push 1
push 2
mov word [ebp - 0x12], ax
mov dword [ebp - 0x10], edx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
test esi, esi
js 0x10030789
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10030794
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x10030782
push 5
push esi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
js 0x10030782
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x100307c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, eax
xor al, al
lea edi, [ebp - 0x10]
mov ecx, 0x10
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0xc]
mov eax, 2
push ecx
mov word [ebp - 0x10], ax
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [ebp - 0xe], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0xffffffffffffffff
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_htonl]
cmp dword [ebp - 0xc], eax
jne 0x1003081a
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10030844
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
test ebx, ebx
js 0x10030844
push 0x10
lea edx, [ebp - 0x10]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x10030850
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp + 8]
add edi, 0x164
lea esi, [ebp - 0x10]
mov ecx, 0x10
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10035ce0
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push ebx
push esi
mov esi, dword [edx + 4]
mov edx, eax
shr edx, 4
xor edx, esi
and edx, 0xf0f0f0f
xor esi, edx
shl edx, 4
xor eax, edx
mov edx, eax
shr edx, 0x10
xor edx, esi
and edx, 0xffff
xor esi, edx
shl edx, 0x10
xor eax, edx
mov edx, esi
shr edx, 2
xor edx, eax
and edx, 0x33333333
xor eax, edx
add edx, edx
add edx, edx
xor esi, edx
mov edx, esi
shr edx, 8
xor edx, eax
and edx, 0xff00ff
xor eax, edx
shl edx, 8
xor esi, edx
rol esi, 1
mov edx, esi
xor edx, eax
and edx, 0xaaaaaaaa
xor esi, edx
xor edx, eax
rol edx, 1
push edi
mov ecx, 0x1005e8f8
mov dword [ebp - 4], edx
mov dword [ebp - 8], 8
mov eax, esi
ror eax, 4
xor eax, dword [ecx]
add ecx, 0x10
mov edx, eax
shr edx, 0x18
mov edi, eax
shr edi, 0x10
and edi, 0x3f
and edx, 0x3f
mov edx, dword [edx*4 + 0x1004e5a8]
or edx, dword [edi*4 + 0x1004e7a8]
mov edi, eax
shr edi, 8
and edi, 0x3f
or edx, dword [edi*4 + 0x1004e9a8]
and eax, 0x3f
or edx, dword [eax*4 + 0x1004eba8]
mov eax, dword [ecx - 0xc]
xor eax, esi
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x1004e6a8]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
or edi, dword [ebx*4 + 0x1004e8a8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or edi, dword [ebx*4 + 0x1004eaa8]
and eax, 0x3f
or edi, dword [eax*4 + 0x1004eca8]
or edi, edx
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 4]
xor edi, dword [ebp - 0xc]
mov eax, edi
ror eax, 4
xor eax, dword [ecx - 8]
mov dword [ebp - 4], edi
mov edx, eax
shr edx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and edx, 0x3f
mov edx, dword [edx*4 + 0x1004e5a8]
or edx, dword [ebx*4 + 0x1004e7a8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or edx, dword [ebx*4 + 0x1004e9a8]
and eax, 0x3f
or edx, dword [eax*4 + 0x1004eba8]
mov eax, dword [ecx - 4]
xor eax, edi
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x1004e6a8]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
or edi, dword [ebx*4 + 0x1004e8a8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or edi, dword [ebx*4 + 0x1004eaa8]
and eax, 0x3f
or edi, dword [eax*4 + 0x1004eca8]
or edi, edx
xor esi, edi
dec dword [ebp - 8]
jne 0x10035d63
mov ecx, dword [ebp - 4]
ror esi, 1
mov eax, esi
xor eax, ecx
and eax, 0xaaaaaaaa
xor esi, eax
xor eax, ecx
ror eax, 1
mov ecx, eax
shr ecx, 8
xor ecx, esi
and ecx, 0xff00ff
xor esi, ecx
shl ecx, 8
xor eax, ecx
mov ecx, eax
shr ecx, 2
xor ecx, esi
and ecx, 0x33333333
xor esi, ecx
add ecx, ecx
add ecx, ecx
xor eax, ecx
mov edx, dword [ebp + 8]
mov ecx, esi
shr ecx, 0x10
xor ecx, eax
and ecx, 0xffff
xor eax, ecx
shl ecx, 0x10
xor esi, ecx
mov ecx, esi
shr ecx, 4
xor ecx, eax
and ecx, 0xf0f0f0f
mov edi, ecx
shl edi, 4
xor edi, esi
mov dword [edx], edi
pop edi
xor ecx, eax
pop esi
mov dword [edx + 4], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10038900
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 8], edi
jmp 0x10038913
mov edi, dword [ebp - 8]
mov ebx, dword [esi + 0x3c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub ebx, eax
lea edx, [edi + ecx - 0x106]
mov dword [ebp - 4], ebx
cmp eax, edx
jb 0x1003898d
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x10038961
sub eax, edi
jmp 0x10038963
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x10038952
mov ecx, dword [esi + 0x40]
mov edx, edi
lea ecx, [ecx + edi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x10038980
sub eax, edi
jmp 0x10038982
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x10038971
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x10038a9b
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 4]
mov ebx, ecx
mov dword [ebp - 0xc], eax
cmp ebx, edx
jbe 0x100389b3
mov ebx, edx
test ebx, ebx
je 0x100389e8
mov edx, dword [edi + 0x1c]
sub ecx, ebx
mov dword [edi + 4], ecx
cmp dword [edx + 0x18], 1
jne 0x100389d6
mov eax, dword [edi]
mov ecx, dword [edi + 0x30]
push ebx
call fcn.10043360
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
push ebx
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov ebx, dword [esi + 0x74]
cmp ebx, 3
jb 0x10038a10
mov edx, dword [esi + 0x6c]
add edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x10038a24
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x10038910
mov eax, dword [esi + 0x16c0]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jae 0x10038a9b
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp eax, edi
jae 0x10038a6a
sub ecx, edi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x10038a4b
mov ebx, 0x102
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
add ebx, edi
pop edi
mov dword [esi + 0x16c0], ebx
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [edi + 0x102]
cmp eax, edx
jae 0x10038a9b
sub edi, eax
add edi, 0x102
sub ecx, eax
cmp edi, ecx
jbe 0x10038a84
mov edi, ecx
mov ecx, dword [esi + 0x38]
push edi
add ecx, eax
push 0
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100441b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor eax, 0xffffffff
test ecx, ecx
mov esi, dword [ebp + 8]
je 0x100441d9
xor al, byte [esi]
movzx edx, al
shr eax, 8
mov edx, dword [edx*4 + section..data]
inc esi
xor eax, edx
dec ecx
jne 0x100441c4
xor eax, 0xffffffff
pop esi
leave
ret 0xc