joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e35
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x40f070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x24a]
push esi
push eax
mov word [ebp - 0x24c], si
call sub.msvcrt.dll_memset
push 0x34000
push esi
mov esi, 0x47ad40
push esi
call sub.msvcrt.dll_memset
mov dword [ebp - 0x250], esi
mov esi, dword [sym.imp.msvcrt.dll__wcslwr]
add esp, 0x18
mov dword [ebp - 0x254], 0x43
mov dword [ebp - 0x258], 0x1a
mov ebx, str.e:_vsd
mov edi, 0x104
push dword [ebp - 0x254]
lea eax, [ebp - 0x24]
push 0x401854
push 0x10
push eax
call fcn.00405fc2
push dword [ebp - 0x254]
lea eax, [ebp - 0x44]
push 0x40184c
push 0x10
push eax
call fcn.00405fc2
add esp, 0x20
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
mov dword [ebp - 0x25c], eax
je 0x402efd
cmp eax, 3
je 0x402efd
cmp eax, 6
je 0x402efd
cmp eax, 4
jne 0x402f8d
push 0x1000
push dword [ebp - 0x250]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
push ebx
lea eax, [ebp - 0x24c]
push edi
push eax
call fcn.00406065
push 0x401848
lea eax, [ebp - 0x24c]
push edi
push eax
call fcn.00405fe3
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x24c]
push edi
push eax
call fcn.00405fe3
push dword [ebp - 0x250]
call esi
push str.DeviceGWDiskGWDisk
call esi
push ebx
call esi
push str.DeviceGWDiskGWDisk
push dword [ebp - 0x250]
call dword [sym.imp.msvcrt.dll_wcsstr]
add esp, 0x38
test eax, eax
jne 0x402f8d
push ebx
push dword [ebp - 0x250]
call dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
jne 0x402f8d
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.004038b8
cmp dword [ebp - 0x25c], 5
jne 0x402fab
push 0x1000
push dword [ebp - 0x250]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
inc dword [ebp - 0x254]
add dword [ebp - 0x250], 0x2000
dec dword [ebp - 0x258]
jne 0x402ea6
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405a18
leave
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00405a40
mov eax, dword [0x40f070]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x2004], 0
push esi
mov esi, dword [ebp + 8]
push 0x1ffe
lea eax, [ebp - 0x2002]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2004]
push eax
push esi
call fcn.0040308f
test eax, eax
je 0x40389e
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40389e
push esi
lea eax, [ebp - 0x2004]
push eax
call fcn.0040378d
test eax, eax
je 0x40389e
xor eax, eax
inc eax
jmp 0x4038a4
push esi
call fcn.004035df
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00405a18
leave
ret 4
Function at 0x403c36
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call esi
cmp eax, 0xffffffff
je 0x403c50
xor eax, eax
jmp 0x403c9e
push edi
mov edi, dword [ebp + 0x18]
push edi
call esi
cmp eax, 0xffffffff
je 0x403c6c
push edi
push 0x1000
push dword [ebp + 0x10]
call fcn.00402300
jmp 0x403c9a
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0xb]
cmp eax, 2
je 0x403c86
cmp eax, 3
je 0x403c86
cmp eax, 5
je 0x403c86
xor eax, eax
jmp 0x403c9d
push edi
push 0x1000
push dword [ebp + 0x10]
call fcn.00402300
push edi
call fcn.00403904
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x403ca8
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x201c
call fcn.00405a40
mov eax, dword [0x40f070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x2008], eax
xor eax, eax
push 0x1ffe
push eax
mov dword [ebp - 0x2018], eax
mov word [ebp - 0x2004], ax
lea eax, [ebp - 0x2002]
push eax
mov dword [ebp - 0x201c], edi
mov dword [ebp - 0x2010], ebx
call sub.msvcrt.dll_memset
mov eax, dword [esi + 0x14]
add esp, 0xc
push ebx
mov dword [ebp - 0x2014], eax
movzx eax, byte [esi + 0xb]
mov esi, dword [esi + 8]
mov ebx, 0x1000
push ebx
push edi
mov dword [ebp - 0x200c], eax
and esi, 0xffffff
call fcn.00402300
push dword [ebp - 0x2008]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call edi
and eax, 0x10
push eax
lea eax, [ebp - 0x2004]
push eax
push dword [ebp - 0x2008]
call fcn.00403260
test ebx, esi
je 0x403d61
mov dword [ebp - 0x2018], 1
push dword [ebp - 0x2010]
call edi
cmp eax, 0xffffffff
push dword [ebp - 0x2008]
je 0x403de6
call edi
cmp eax, 0xffffffff
je 0x403de2
push dword [ebp - 0x2008]
call edi
test al, 0x10
je 0x403de2
xor esi, esi
test byte [ebp - 0x2014], 1
jne 0x403dcf
inc esi
xor edi, edi
cmp dword [ebp - 0x2018], edi
je 0x403dcf
lea eax, [ebp - 0x2004]
push eax
call fcn.00403904
push edi
push 2
push 2
push edi
push 1
push 0xc0000000
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x403dcf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405a18
leave
ret 0x14
xor esi, esi
jmp 0x403d92
call edi
cmp eax, 0xffffffff
je 0x403e7e
lea eax, [ebp - 0x2004]
push eax
call edi
cmp eax, 0xffffffff
jne 0x403e7e
test byte [ebp - 0x2014], 0x16
jne 0x403e32
test dword [ebp - 0x2014], 0x10100
jne 0x403e32
xor esi, esi
cmp dword [ebp - 0x2018], esi
jne 0x403e32
push dword [ebp - 0x2008]
push ebx
push dword [ebp - 0x201c]
call fcn.00402300
jmp 0x403dcf
cmp dword [ebp - 0x200c], 2
je 0x403eec
push dword [ebp - 0x2010]
call fcn.00403904
push dword [ebp - 0x2008]
call edi
test al, 0x10
je 0x403e63
push 0
push dword [ebp - 0x2010]
call fcn.004038b8
xor esi, esi
inc esi
push esi
push dword [ebp - 0x2010]
push dword [ebp - 0x2008]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x403d93
and esi, 1
push esi
lea eax, [ebp - 0x2004]
push eax
push dword [ebp - 0x2008]
call fcn.00403260
lea eax, [ebp - 0x2004]
push eax
call edi
cmp eax, 0xffffffff
je 0x403ed1
cmp dword [ebp - 0x200c], 2
je 0x403ec1
cmp dword [ebp - 0x200c], 3
je 0x403ec1
cmp dword [ebp - 0x200c], 5
jne 0x403de2
push dword [ebp - 0x2010]
call fcn.00403904
jmp 0x403de2
cmp dword [ebp - 0x200c], 2
jb 0x403eec
cmp dword [ebp - 0x200c], 3
jbe 0x403ec1
cmp dword [ebp - 0x200c], 5
je 0x403ec1
xor esi, esi
jmp 0x403dcf
Function at 0x404197
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
push edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov ecx, dword [edi + 0xc]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], 7
mov dword [esi + 0x14], 0x6018
mov dword [esi + 0x18], eax
cmp dword [ebx + 0xc], 1
jne 0x4041e2
push eax
push edi
push ebx
call fcn.00403bf7
test eax, eax
je 0x4042bb
cmp dword [ebx + 0xc], 3
jne 0x4041f9
push 0
push edi
push ebx
call fcn.00403c20
test eax, eax
je 0x4042bb
cmp dword [ebx + 0xc], 4
jne 0x404210
push 0
push edi
push ebx
call fcn.00403bce
test eax, eax
je 0x4042bb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x40f030
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 8]
push eax
push 0x40f050
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
ja 0x404250
mov ecx, dword [ebp - 0x10]
jb 0x404256
cmp ecx, dword [ebp - 8]
jb 0x404256
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
cmp eax, dword [ebx + 0x201c]
ja 0x40426d
jb 0x404268
cmp ecx, dword [ebx + 0x2018]
jae 0x40426d
xor eax, eax
inc eax
jmp 0x40426f
xor eax, eax
xor ecx, ecx
cmp eax, ecx
mov dword [esi], ecx
mov edx, dword [edi + 8]
mov dword [esi + 8], edx
mov edx, dword [edi + 0xc]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 7
mov dword [esi + 0x14], 0x6018
mov dword [esi + 0x18], ecx
je 0x40429b
mov dword [esi + 0x18], 1
cmp dword [0x446a10], ecx
je 0x4042bb
push dword [esi + 0x18]
push dword [0x446a0c]
push 0x4019b8
push 5
call fcn.00402ca2
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4047ea
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x6004
call fcn.00405a40
mov eax, dword [0x40f070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x1ffe
xor edi, edi
push esi
lea eax, [ebp - 0x2002]
push edi
push eax
mov word [ebp - 0x2004], di
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x6002]
push edi
push eax
mov word [ebp - 0x6004], di
call sub.msvcrt.dll_memset
push esi
lea eax, [ebp - 0x4002]
push edi
push eax
mov word [ebp - 0x4004], di
call sub.msvcrt.dll_memset
add esp, 0x24
cmp ebx, edi
je 0x404908
lea eax, [ebp - 0x6004]
push eax
push ebx
call fcn.004031c0
test eax, eax
je 0x404908
mov esi, dword [sym.imp.msvcrt.dll__wcslwr]
push ebx
call esi
mov edi, str.DeviceGWDiskGWDisk
push edi
call esi
push edi
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
add esp, 0x10
test eax, eax
je 0x404908
lea eax, [ebp - 0x4004]
push eax
push ebx
call fcn.0040301c
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x4004]
push eax
call esi
cmp eax, 0xffffffff
je 0x404908
lea eax, [ebp - 0x4004]
push eax
call esi
and eax, 0x10
push eax
lea eax, [ebp - 0x2004]
push eax
lea eax, [ebp - 0x4004]
push eax
call fcn.00403260
test eax, eax
je 0x404908
lea eax, [ebp - 0x2004]
push eax
call fcn.00403904
push 0
push 2
push 2
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x404908
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405a18
leave
ret 4
Function at 0x4064c0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x4064d3
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4064cf
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x406500
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x40653f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x406535
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x406541
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x406525
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x423b47
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x423b75
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x423b93
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00423ab1
jmp 0x423b93
mov eax, dword [esi + 0x14]
test eax, eax
je 0x423b93
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00423ab1
test edi, edi
mov eax, edi
jne 0x423b7d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x438c24]
test ecx, ecx
je 0x423c46
jmp 0x423b46
ret 8

Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
mov ecx, 0x39b531dc
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x7ccb01e7
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4022d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4022e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402324
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402320
lea ebx, [ebx]
cmp esi, eax
jae 0x402324
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402310
cmp esi, eax
jb 0x40232a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402740
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp method.CAboutDlg.virtual_312
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x423abd
cmp dword [edi + 0x54], 0
jne 0x423abd
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0042184d
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00423a64
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

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

Disassembly:
sub esp, 0x18
mov eax, dword [0x47617c]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
mov ecx, dword [esp + 0x20]
jne 0x405b71
or eax, eax
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0043e577
add esp, 0x18
ret 8
push edi
lea edx, [esp + 8]
push edx
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x30]
push 0
push edx
push ecx
push eax
mov dword [esp + 0x20], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp edi, 0xffffffff
mov dword [esi + 8], eax
jne 0x405bb8
or eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0043e577
add esp, 0x18
ret 8
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0043e577
add esp, 0x18
ret 8
Function at 0x405bd0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x47617c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [0x477560]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], eax
xor eax, eax
test ebx, ebx
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
jne 0x405c07
xor edi, edi
jmp 0x405c36
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x405c1c
xor edi, edi
jmp 0x405c36
lea edi, [eax + eax]
mov eax, edi
call fcn.0043f3a0
mov ecx, dword [ebp - 8]
mov eax, esp
push ecx
push edi
push ebx
push eax
call fcn.00405ab0
mov edi, eax
push edi
mov word [esi], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
jne 0x405c5f
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x405c88
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 2], ax
mov eax, 1
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e577
mov esp, ebp
pop ebp
ret 0xc
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
jmp 0x405c72

Function at 0x406070
Capabilities:
Connect socket

Disassembly:
sub esp, 0x14
mov eax, dword [0x47617c]
xor eax, esp
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push esi
mov esi, ecx
lea ecx, [esp + 4]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00405bd0
test eax, eax
je 0x4060b9
mov edx, dword [esi + 4]
push 0x10
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x4060de
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0043e577
add esp, 0x14
ret 8
push 0x1388
mov ecx, esi
call fcn.00405b00
mov ecx, dword [esp + 0x14]
pop esi
xor ecx, esp
mov eax, 1
call fcn.0043e577
add esp, 0x14
ret 8

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

Disassembly:
sub esp, 0x14
mov eax, dword [0x47617c]
xor eax, esp
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x20]
mov esi, ecx
lea ecx, [esp + 8]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00405bd0
test eax, eax
mov eax, dword [esi + 4]
jne 0x406153
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
jmp 0x406177
mov edx, dword [esp + 0x24]
push 0x10
lea ecx, [esp + 0xc]
push ecx
push 0
push edx
push edi
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x40617a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 8], eax
or eax, 0xffffffff
mov ecx, dword [esp + 0x18]
pop edi
pop esi
xor ecx, esp
call fcn.0043e577
add esp, 0x14
ret 0x10
Function at 0x406190
Capabilities:
Create udp socket

Disassembly:
push 0xffffffffffffffff
push 0x458c28
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x47617c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi + 4], 0xffffffff
push 0
push 2
push 2
mov dword [esp + 0x20], 0
mov dword [esi], vtable.CSocketClient.0
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x40620f
push 0
push 0
mov ecx, esi
call fcn.00405ca0
test eax, eax
je 0x40620f
push 0x2710
mov ecx, esi
call fcn.00405b00
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 8], eax
mov dword [esi + 4], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x40f9d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
push esi
push 0
push edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
push eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x2c]
push eax
push 1
lea ecx, [esp + 0x20]
push ecx
push edx
mov dword [esp + 0x38], 0
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
jne 0x40fa50
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x40fa50
call esi
push eax
push str.WSARecvFrom_failed:__d_n
call fcn.0043fa2d
add eax, 0x40
push eax
call fcn.0043f8de
add esp, 0xc
or eax, 0xffffffff
pop esi
add esp, 8
ret 0x18
xor eax, eax
pop esi
add esp, 8
ret 0x18

Function at 0x40fa60
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [ecx + 0x10718]
cmp eax, 2
push esi
jne 0x40faad
xor eax, eax
mov edx, dword [esp + 8]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push eax
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40faa7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.SetTtl:_setsockopt_failed:__d_n
call fcn.0043fa2d
add eax, 0x40
push eax
call fcn.0043f8de
add esp, 0xc
mov eax, esi
pop esi
ret 8
cmp eax, 0x17
jne 0x40fab9
mov eax, 0x29
jmp 0x40fa6e
or esi, 0xffffffff
jmp 0x40fa8a

Function at 0x40fc90
Capabilities:
Resolve dns

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x1c], ecx
je 0x40fd34
cmp word [ecx + 8], 2
push ebx
push ebp
push edi
jne 0x40fd05
cmp word [ecx + 0xa], 4
jne 0x40fd05
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x40fd05
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
lea esp, [esp]
mov edx, dword [eax]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebx
push ebp
call fcn.0040fc20
test eax, eax
mov dword [esi], eax
je 0x40fd28
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x40fce0
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x24]
push 0x400
push ecx
push 0x401
push edx
call fcn.0043fe4b
add esp, 0x10
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret 0x18
pop edi
pop ebp
pop ebx
mov eax, 8
pop esi
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x40fd44.11001
jmp dword [eax*4 + 0x40fd68]
mov eax, 0x2af9
pop esi
ret 0x18
mov eax, 0x2afa
pop esi
ret 0x18
mov eax, 0x2afb
pop esi
ret 0x18
Function at 0x4105a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x47617c]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x4777ac], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x40fff0
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x4102e0
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.0040ffa0
je 0x410612
movzx eax, word [esp + 0x234]
mov eax, dword [eax*8 + 0x474470]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.0043e577
add esp, 0x230
ret 4
push 0x104
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x41070f
push ebx
push ebp
push esi
push edi
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.0043fbfb
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.00440198
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x41068d
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x4106d4
push esi
call ebp
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.0043fbfb
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.00440198
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x41070b
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x41073f
xor edi, edi
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
test eax, eax
mov dword [esp + edi*8 + 0x14], eax
je 0x41073f
add edi, 1
cmp edi, 3
jl 0x4106d6
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x474470], edx
mov dword [0x474478], eax
mov dword [fcn.0040ffa0], ecx
pop edi
pop esi
pop ebp
pop ebx
movzx edx, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
mov eax, dword [edx*8 + 0x474470]
xor ecx, esp
mov dword [0x4777ac], 1
call fcn.0043e577
add esp, 0x230
ret 4
push esi
call ebp
jmp 0x41070b