joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e430
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x3c]
push 0x10
push 0x81da
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
cmp eax, 0xffffffff
jne 0x42e45a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x42e49f
or eax, 0xffffffff
ret 4
mov edx, dword [esp + 4]
mov eax, dword [esi + 0x3c]
push edi
push 0x10
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov edi, eax
test edi, edi
jne 0x42e48d
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x34]
push 0x10
push ecx
push 0x81da
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, edi
pop edi
ret 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x42e49c
xor edi, edi
mov eax, edi
pop edi
ret 4
Function at 0x430210
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x4879e8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b1784]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x34]
xor edi, edi
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x30]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push eax
mov dword [esp + 0x44], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x43030c
call fcn.004164a0
test eax, eax
jl 0x4302f6
lea ecx, [esp + 0x1c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
jne 0x43029a
call fcn.004164a0
test eax, eax
jl 0x4302eb
mov esi, dword [esp + 0x18]
cmp esi, 0x5c
jb 0x4302eb
push esi
call fcn.00460f82
add esp, 4
mov ecx, eax
lea edx, [esp + 0x14]
mov dword [ebp], eax
call fcn.00434ae0
mov ecx, dword [ebp]
cmp dword [ecx], 0x7d1ea609
jne 0x4302d8
mov ebx, dword [ecx + 0x48]
push esi
mov dword [ecx + 0x48], 0
call fcn.004351d0
add esp, 4
cmp eax, ebx
je 0x430317
mov edx, dword [ebp]
push edx
call fcn.0046a201
add esp, 4
mov dword [ebp], 0
test edi, edi
je 0x4302f6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov edi, eax
mov dword [esp + 0x14], edi
jmp 0x430276
test edi, edi
je 0x430322
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x434b60
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x4b1784]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov ebx, 1
test byte [0x4bf310], bl
mov dword [esp + 4], 0
jne 0x434bb4
mov eax, dword [0x4bb38c]
mov edx, dword [eax + 0xc]
or dword [0x4bf310], ebx
mov ecx, 0x4bb38c
call edx
add eax, 0x10
push 0x48e0d0
mov dword [0x4bf30c], eax
call fcn.0046928a
add esp, 4
mov eax, dword [0x4bf30c]
cmp dword [eax - 0xc], 0
jne 0x434c11
push 0x20a
lea ecx, [esp + 0xe]
push 0
push ecx
mov word [esp + 0x14], 0
call fcn.0046ea20
add esp, 0xc
push ebx
push 0x25
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x434bf1
sub eax, edx
sar eax, 1
lea ecx, [esp + 8]
mov ebx, eax
push ecx
mov eax, 0x4bf30c
call fcn.00415d80
mov eax, dword [0x4bf30c]
add eax, 0xfffffff0
call fcn.00415d10
mov ecx, dword [esp + 0x214]
add eax, 0x10
pop ebx
mov dword [esi], eax
xor ecx, esp
mov eax, esi
call fcn.00469efd
add esp, 0x214
ret

Function at 0x434c40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x4b1784]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov ebx, 1
test byte [0x4bf308], bl
mov dword [esp + 4], 0
jne 0x434c94
mov eax, dword [0x4bb38c]
mov edx, dword [eax + 0xc]
or dword [0x4bf308], ebx
mov ecx, 0x4bb38c
call edx
add eax, 0x10
push 0x48e100
mov dword [0x4bf304], eax
call fcn.0046928a
add esp, 4
mov eax, dword [0x4bf304]
cmp dword [eax - 0xc], 0
jne 0x434cf1
push 0x20a
lea ecx, [esp + 0xe]
push 0
push ecx
mov word [esp + 0x14], 0
call fcn.0046ea20
add esp, 0xc
push ebx
push 0x24
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x434cd1
sub eax, edx
sar eax, 1
lea ecx, [esp + 8]
mov ebx, eax
push ecx
mov eax, 0x4bf304
call fcn.00415d80
mov eax, dword [0x4bf304]
add eax, 0xfffffff0
call fcn.00415d10
mov ecx, dword [esp + 0x214]
add eax, 0x10
pop ebx
mov dword [esi], eax
xor ecx, esp
mov eax, esi
call fcn.00469efd
add esp, 0x214
ret
Function at 0x4351d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
push ebp
mov ebp, dword [esp + 8]
je 0x435303
test ebp, ebp
jle 0x435303
push esi
or esi, 0xffffffff
cmp ebp, 8
jl 0x4352d4
push edi
mov edi, ebp
shr edi, 3
mov eax, edi
neg eax
lea ebp, [ebp + eax*8]
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x498998]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x498998]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x498998]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x498998]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x498998]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x498998]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x498998]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x498998]
add ecx, 1
sub edi, 1
mov esi, eax
jne 0x435200
pop edi
test ebp, ebp
je 0x4352fc
jmp 0x4352e0
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x498998]
add ecx, 1
sub ebp, 1
jne 0x4352e0
mov eax, esi
pop esi
not eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x435310
Capabilities:
Get file version info

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebp
push esi
xor ebp, ebp
push ebp
push ebx
mov word [eax], bp
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebp
jne 0x435336
pop esi
pop ebp
add esp, 8
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push esi
call fcn.00460f82
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x435352
pop edi
pop esi
mov eax, 8
pop ebp
add esp, 8
ret
push edi
push esi
push ebp
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4353be
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0x492c00
push edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4353be
mov eax, dword [esp + 0xc]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
mov eax, dword [esp + 0x20]
push ecx
push edx
push str._d._d._d._d
push 0x7e
push eax
call fcn.0046a972
add esp, 0x1c
push edi
call fcn.0046a201
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov ebp, eax
call fcn.0046a201
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
Function at 0x4353e0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x178
mov eax, dword [0x4b1784]
xor eax, esp
mov dword [esp + 0x174], eax
push ebx
push ebp
mov ebp, dword [esp + 0x184]
push esi
push edi
mov ebx, ecx
push ebp
call fcn.00435310
add esp, 4
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x435435
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x435543
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x18]
push eax
push 0x40
lea ecx, [esp + 0x14c]
push ecx
push esi
mov edi, 0xb
call ebx
test eax, eax
je 0x435541
cmp dword [esp + 0x14], 0x40
jne 0x435541
cmp word [esp + 0x140], 0x5a4d
jne 0x435541
mov edx, dword [esp + 0x17c]
push 0
push 0
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x18]
push eax
push 0xf8
lea ecx, [esp + 0x54]
push ecx
push esi
call ebx
test eax, eax
je 0x435541
cmp dword [esp + 0x14], 0xf8
jne 0x435541
cmp dword [esp + 0x48], 0x4550
jne 0x435541
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4354c7
sub eax, edx
mov edx, dword [esp + 0x50]
sar eax, 1
mov ebx, eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], 0
call fcn.0046b421
mov esi, eax
mov ecx, 9
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x48]
push ecx
add edx, 1
push edx
add eax, 0x76c
push eax
mov ecx, 0x7e
push str.__04d__02d__02d__02d:_02d:_02d
sub ecx, ebx
push ecx
lea edx, [ebp + ebx*2]
push edx
call fcn.0046a972
add esp, 0x28
xor edi, edi
mov eax, edi
mov ecx, dword [esp + 0x184]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00469efd
add esp, 0x178
ret
Function at 0x435560
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x4b1784]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push pe_nt_image_headers32
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0046ea20
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call esi
test eax, eax
jne 0x4355d1
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x114
call esi
test eax, eax
jne 0x4355d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00469efd
add esp, 0x120
ret
mov eax, dword [esp + 0x14]
sub eax, 0
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 8]
mov ecx, str.Unknow_system
je 0x4356fe
sub eax, 1
je 0x435680
sub eax, 1
jne 0x435703
cmp esi, 4
ja 0x43560c
mov ecx, str.Microsoft_Windows_NT
jmp 0x435703
cmp esi, 5
jne 0x435668
mov edx, dword [esp + 0xc]
test edx, edx
jne 0x43565c
mov ecx, str.Microsoft_Windows_2000
lea eax, [esp + 0x18]
push ebx
movzx ebx, word [esp + 0x14]
push ebx
push edx
push esi
push eax
mov eax, dword [esp + 0x13c]
push ecx
push str._s__s__Build__d._d._d_
push eax
push edi
call fcn.0046a972
mov ecx, dword [esp + 0x144]
add esp, 0x20
pop ebx
pop esi
xor ecx, esp
xor eax, eax
call fcn.00469efd
add esp, 0x120
ret
cmp edx, 1
jne 0x43561e
mov ecx, str.Microsoft_Windows_XP
jmp 0x43561e
cmp esi, 6
jne 0x435703
mov edx, dword [esp + 0xc]
test edx, edx
jne 0x43561e
mov ecx, str.Microsoft_Windows_Vista
jmp 0x43561e
cmp esi, 4
jne 0x4356f7
test edx, edx
jne 0x4356b8
mov ax, word [esp + 0x1a]
cmp ax, 0x43
je 0x4356a9
cmp ax, 0x42
je 0x4356a9
mov ecx, str.Microsoft_Windows_95
mov eax, 0x4992cc
jmp 0x435622
mov ecx, str.Microsoft_Windows_95_OSR2
mov eax, 0x4992cc
jmp 0x435622
cmp edx, 0xa
jne 0x4356e3
cmp word [esp + 0x1a], 0x41
jne 0x4356d4
mov ecx, str.Microsoft_Windows_98_SE
mov eax, 0x4992cc
jmp 0x435622
mov ecx, str.Microsoft_Windows_98
mov eax, 0x4992cc
jmp 0x435622
cmp edx, 0x5a
jne 0x4356f7
mov ecx, str.Microsoft_Windows_Me
mov eax, 0x4992cc
jmp 0x435622
mov ecx, str.Microsoft_Windows_Me_later
jmp 0x435703
mov ecx, str.Microsoft_Win32s
cmp esi, 4
ja 0x43561e
mov eax, 0x4992cc
jmp 0x435622
Function at 0x435720
Capabilities:
Create udp socket
Initialize winsock library
Resolve dns
Send data
Send data on socket

Disassembly:
sub esp, 0x1a8
mov eax, dword [0x4b1784]
xor eax, esp
mov dword [esp + 0x1a4], eax
push ebx
push ebp
mov ebp, dword [esp + 0x1b4]
mov ebx, ecx
cmp ebx, 0x5a0
push esi
push edi
jbe 0x43574e
mov ebx, 0x5a0
lea eax, [esp + 0x20]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x4357e8
push str.stat.qq.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x4357e1
xor eax, eax
push 0x26b0
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov word [esp + 0x22], ax
mov word [esp + 0x14], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
mov edx, dword [esi + 0xc]
xor ecx, ecx
cmp dword [edx], ecx
jne 0x4357c2
mov eax, edx
add eax, 4
add ecx, 1
cmp dword [eax], 0
je 0x4357b7
mov ecx, dword [edx + ecx*4]
mov eax, dword [ecx]
test eax, eax
mov dword [esp + 0x14], eax
je 0x4357e1
push 0x10
lea edx, [esp + 0x14]
push edx
push 0
push ebx
push ebp
push edi
call dword [sym.imp.WS2_32.dll_sendto]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x1b4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00469efd
add esp, 0x1a8
ret

Function at 0x435810
Capabilities:
Get common file path

Disassembly:
sub esp, 0x808
mov eax, dword [0x4b1784]
xor eax, esp
mov dword [esp + 0x804], eax
push ebx
push edi
push 0x802
lea eax, [esp + 0xe]
push 0
push eax
mov word [esp + 0x14], 0
call fcn.0046ea20
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
lea eax, [esp + 8]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x435860
sub eax, edx
sar eax, 1
lea edx, [esp + 8]
mov ebx, eax
push edx
mov eax, esi
call fcn.00415d80
mov ecx, dword [esp + 0x80c]
xor eax, eax
test edi, edi
pop edi
setge al
pop ebx
xor ecx, esp
call fcn.00469efd
add esp, 0x808
ret
Function at 0x435df0
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x17c
mov eax, dword [0x4b1784]
xor eax, esp
mov dword [esp + 0x178], eax
mov eax, dword [esp + 0x180]
push ebp
lea edx, [esp + 8]
push edx
push 0x40
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x140]
push eax
push ebx
push esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], 0
call edi
cmp dword [esp + 8], 0x40
jne 0x435f05
cmp word [esp + 0x138], 0x5a4d
jne 0x435f05
mov ecx, dword [esp + 0x174]
lea edx, [esp + 8]
push edx
push 0xf8
lea eax, [esp + 0x20]
push eax
lea ebp, [ebx + ecx]
push ebp
push esi
mov dword [esp + 0x1c], 0
call edi
cmp dword [esp + 8], 0xf8
jne 0x435f05
cmp dword [esp + 0x18], 0x4550
jne 0x435f05
cmp word [esp + 0x1c], 0x14c
jne 0x435f05
cmp word [esp + 0x30], 0x10b
jne 0x435f05
add ebp, 0xf8
cmp word [esp + 0x1e], 0
mov dword [esp + 0xc], 0
jbe 0x435f05
lea ecx, [esp + 8]
push ecx
push 0x28
lea edx, [esp + 0x118]
push edx
push ebp
push esi
mov dword [esp + 0x1c], 0
call edi
cmp dword [esp + 8], 0x28
jne 0x435f05
mov eax, dword [esp + 0x11c]
test eax, eax
je 0x435f05
mov ecx, dword [esp + 0x134]
and ecx, 0x20000020
cmp ecx, 0x20000020
je 0x435f1d
mov eax, dword [esp + 0xc]
movzx edx, word [esp + 0x1e]
add eax, 1
cmp eax, edx
mov dword [esp + 0xc], eax
jb 0x435eaf
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x178]
xor ecx, esp
call fcn.00469efd
add esp, 0x17c
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x120]
add eax, ebx
mov dword [ecx], eax
mov ecx, dword [esp + 0x10]
add eax, edx
mov dword [ecx], eax
mov ecx, dword [esp + 0x17c]
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00469efd
add esp, 0x17c
ret
Function at 0x438710
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x4b1784]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
mov dword [ebp - 0x814], ebx
mov dword [ebp - 0x820], edi
call dword [0x4b0084]
lea esi, [edi + 0x202]
test esi, esi
mov dword [ebp - 0x81c], eax
jne 0x438754
mov dword [ebp - 0x818], esi
jmp 0x4387b2
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jg 0x4387a4
lea ebx, [eax + eax]
mov eax, ebx
call fcn.004770b0
mov edi, esp
test edi, edi
je 0x43879e
mov eax, dword [ebp - 0x81c]
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push esi
push 0
push eax
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [ebp - 0x814]
neg eax
sbb eax, eax
and eax, edi
jmp 0x4387a6
mov ebx, dword [ebp - 0x814]
xor eax, eax
mov edi, dword [ebp - 0x820]
mov dword [ebp - 0x818], eax
add edi, 0x102
je 0x43880a
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jg 0x43880a
lea ebx, [eax + eax]
mov eax, ebx
call fcn.004770b0
mov esi, esp
test esi, esi
je 0x438804
mov ecx, dword [ebp - 0x81c]
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push ecx
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [ebp - 0x814]
neg eax
sbb eax, eax
and eax, esi
jmp 0x43880c
mov ebx, dword [ebp - 0x814]
xor eax, eax
mov edx, dword [ebp - 0x818]
push edx
mov edi, eax
lea esi, [ebp - 0x810]
call fcn.00438400
mov eax, dword [ebp - 0x410]
mov edx, dword [ebx]
push 0
push eax
mov ecx, esi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x4388b7
push 0x3ff
lea eax, [ebp - 0x407]
push 0
push eax
mov byte [ebp - 0x408], 0
call fcn.0046ea20
mov edx, dword [ebx]
add esp, 0xc
push 0
push 0x400
lea ecx, [ebp - 0x408]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 2
jge 0x438891
mov esi, dword [ebx]
test esi, esi
mov edi, 0xffffffa2
je 0x43888d
push 1
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
jmp 0x4388d2
xor eax, eax
cmp byte [ebp - 0x407], al
sete al
test eax, eax
je 0x4388b0
mov eax, dword [ebp - 0x820]
push eax
mov ecx, ebx
call fcn.004384c0
jmp 0x4388d8
mov eax, 0xffffffa5
jmp 0x4388d8
mov esi, dword [ebx]
test esi, esi
je 0x4388cd
push 1
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffa1
mov dword [ebx], 0xffffffff
lea esp, [ebp - 0x830]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00469efd
mov esp, ebp
pop ebp
ret
Function at 0x4388f0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x414
mov eax, dword [0x4b1784]
xor eax, esp
mov dword [esp + 0x40c], eax
push ebp
push edi
push 0
push 4
lea eax, [esp + 0x14]
mov edi, ecx
mov ecx, dword [esi]
push eax
push ecx
mov byte [esp + 0x1c], 5
mov byte [esp + 0x1d], 2
mov byte [esp + 0x1e], 0
mov byte [esp + 0x1f], 2
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x4389f3
push 0x3ff
lea edx, [esp + 0x15]
push 0
push edx
mov byte [esp + 0x1c], 0
call fcn.0046ea20
mov ecx, dword [esi]
add esp, 0xc
push 0
push 0x400
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 2
jge 0x43898b
mov edi, dword [esi]
test edi, edi
mov ebp, 0xffffffa2
je 0x438984
push 1
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebp
jmp 0x438a0e
mov al, byte [esp + 0x11]
test al, al
je 0x4389b7
cmp al, 2
jne 0x4389d6
mov edx, edi
mov ecx, esi
call fcn.00438710
pop edi
pop ebp
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.00469efd
add esp, 0x414
ret
push edi
mov ecx, esi
call fcn.004384c0
pop edi
pop ebp
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.00469efd
add esp, 0x414
ret
mov edi, dword [esi]
test edi, edi
je 0x4389ec
push 1
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffa3
jmp 0x438a0e
mov edi, dword [esi]
test edi, edi
je 0x438a09
push 1
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffa1
mov ecx, dword [esp + 0x414]
pop edi
pop ebp
xor ecx, esp
mov dword [esi], 0xffffffff
call fcn.00469efd
add esp, 0x414
ret
Function at 0x438a30
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4b1784]
xor eax, esp
mov dword [esp + 0x18], eax
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
call dword [0x4b0084]
cmp word [ebx], 0
je 0x438b4b
cmp word [ebx + 0x100], 0
je 0x438b4b
cmp word [ebx + 0x282], 0
je 0x438b4b
cmp word [ebx + 0x382], 0
je 0x438b4b
mov esi, dword [ebp]
cmp esi, 0xffffffff
je 0x438a93
call fcn.00439310
mov dword [ebp], 0xffffffff
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebp], eax
jne 0x438ac0
mov eax, 0xffffff9d
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00469efd
add esp, 0x1c
ret 4
mov esi, eax
call fcn.00439330
movzx eax, word [ebx + 0x100]
push eax
mov ecx, ebx
lea edi, [esp + 0x18]
call fcn.00437b90
add esp, 4
test eax, eax
jne 0x438b32
mov edx, dword [ebp]
push 0x10
mov ecx, edi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x438b19
mov ecx, ebx
mov esi, ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
call fcn.004388f0
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00469efd
add esp, 0x1c
ret 4
mov eax, 0xffffffa0
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00469efd
add esp, 0x1c
ret 4
mov eax, 0xffffff9f
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00469efd
add esp, 0x1c
ret 4
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 0xffffff9c
call fcn.00469efd
add esp, 0x1c
ret 4
Function at 0x439270
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x14
mov eax, dword [0x4b1784]
xor eax, esp
mov dword [esp + 0x10], eax
xor eax, eax
push ebx
push ebp
mov dword [esp + 0xa], eax
mov dword [esp + 0xe], eax
mov dword [esp + 0x12], eax
mov word [esp + 0x16], ax
mov eax, dword [esp + 0x20]
push eax
xor ebp, ebp
mov word [esp + 0xc], 2
call dword [sym.imp.WS2_32.dll_htons]
test esi, esi
mov word [esp + 0xa], ax
jne 0x4392b4
xor ebx, ebx
jmp 0x4392e6
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ebx, eax
test ebx, ebx
je 0x4392c6
cmp ebx, 0xffffffff
jne 0x4392e6
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4392da
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov ebx, dword [edx]
jmp 0x4392e6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
test ebp, ebp
jne 0x4392ff
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [edi], eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
mov eax, ebp
mov ecx, dword [esp + 0x18]
pop ebp
pop ebx
xor ecx, esp
call fcn.00469efd
add esp, 0x14
ret

Function at 0x439330
Capabilities:
Set socket configuration

Disassembly:
sub esp, 8
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, 0x1388
push 4
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0x1005
push 0xffff
push esi
call edi
cmp dword [esp + 4], 0
je 0x439376
push 4
lea ecx, [esp + 8]
push ecx
push 0x1006
push 0xffff
push esi
call edi
xor eax, eax
pop edi
add esp, 8
ret