joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4090a0
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
sub esp, 0x874
mov eax, dword [0x464380]
xor eax, esp
mov dword [esp + 0x870], eax
push ebx
push esi
mov esi, dword [esp + 0x880]
push edi
push esi
lea eax, [esp + 0x678]
push str._s.
push eax
mov dword [esp + 0x1c], ecx
call fcn.00413d0d
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x678]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
xor edi, edi
cmp ebx, 0xffffffff
mov dword [esp + 0xc], edi
je 0x409208
push ebp
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x409207
cmp word [esp + 0x44], 0x2e
je 0x409103
mov ax, word [esp + 0x46]
cmp ax, di
je 0x409103
cmp ax, 0x2e
jne 0x409136
cmp word [esp + 0x48], di
je 0x409103
test byte [esp + 0x18], 0x10
je 0x409103
push 0x206
lea ecx, [esp + 0x26e]
push edi
push ecx
mov word [esp + 0x274], di
call fcn.00413220
push 0x206
lea edx, [esp + 0x482]
push edi
push edx
mov word [esp + 0x488], di
call fcn.00413220
add esp, 0x18
xor eax, eax
jmp 0x409180
movzx ecx, word [eax + str.DongFangInfo.ini]
mov word [esp + eax + 0x470], cx
add eax, 2
cmp cx, di
jne 0x409180
lea eax, [esp + 0x470]
push eax
lea ecx, [esp + 0x48]
push ecx
push esi
lea edx, [esp + 0x274]
push 0x457508
push edx
call fcn.00413d0d
add esp, 0x14
lea eax, [esp + 0x268]
push eax
call ebp
test eax, eax
je 0x409103
lea eax, [esp + 0x268]
mov dword [esp + 0x10], 1
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4091e0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x26c]
push ecx
mov ecx, dword [esp + 0x1c]
add ecx, 0xd0
call fcn.00408320
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x87c]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00413205
add esp, 0x874
ret 4
Function at 0x409420
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x455f6b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x464380]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push esi
push edi
mov eax, dword [0x464380]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
push 0xffffffffffffffff
push edi
lea eax, [esi + 0x44]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], di
call fcn.00408020
mov eax, dword [esp + 0x14]
mov ebx, 8
cmp dword [esp + 0x28], ebx
mov dword [esp + 0x240], edi
jae 0x409499
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.004090a0
test eax, eax
jne 0x4094b9
cmp dword [esp + 0x28], ebx
jb 0x409543
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x40953b
push 0x206
lea edx, [esp + 0x32]
push edi
push edx
mov word [esp + 0x38], di
call fcn.00413220
add esp, 0xc
cmp dword [esi + 0xe8], ebx
jb 0x4094e1
mov eax, dword [esi + 0xd4]
jmp 0x4094e7
lea eax, [esi + 0xd4]
push eax
push 0x104
lea eax, [esp + 0x34]
push eax
push 0x457504
push str.Spreader
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x2c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x409510
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esi + 0x98]
call fcn.00408320
cmp dword [esp + 0x28], ebx
jb 0x409543
mov edx, dword [esp + 0x14]
push edx
call fcn.004136fe
add esp, 4
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00413205
add esp, 0x234
ret
Function at 0x409570
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x455fab
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x464380]
xor eax, esp
mov dword [esp + 0x42c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x464380]
xor eax, esp
push eax
lea eax, [esp + 0x444]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push 0xffffffffffffffff
push ebx
lea eax, [esi + 0x60]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
call fcn.00408020
mov eax, dword [esp + 0x18]
mov ebp, 8
cmp dword [esp + 0x2c], ebp
mov dword [esp + 0x44c], ebx
jae 0x4095ea
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.004090a0
test eax, eax
jne 0x40960a
cmp dword [esp + 0x2c], ebp
jb 0x409716
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x40970e
push 0x206
lea edx, [esp + 0x36]
push ebx
push edx
mov word [esp + 0x3c], bx
call fcn.00413220
push 0x206
lea eax, [esp + 0x24a]
push ebx
push eax
mov word [esp + 0x250], bx
call fcn.00413220
add esp, 0x18
cmp dword [esi + 0xe8], ebp
jb 0x40964d
mov eax, dword [esi + 0xd4]
jmp 0x409653
lea eax, [esi + 0xd4]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
push 0x104
lea ecx, [esp + 0x38]
push ecx
push 0x457504
push 0x457590
push str.AppUpdate
call edi
cmp dword [esi + 0xe8], ebp
jb 0x409685
mov eax, dword [esi + 0xd4]
jmp 0x40968b
lea eax, [esi + 0xd4]
push eax
push 0x104
lea edx, [esp + 0x240]
push edx
push 0x457504
push str.MinVer
push str.AppUpdate
call edi
lea eax, [esp + 0x30]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4096b1
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esi + 0xec]
call fcn.00408320
lea eax, [esp + 0x238]
lea edx, [eax + 2]
jmp 0x4096e0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4096e0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x23c]
push ecx
lea ecx, [esi + 0x108]
call fcn.00408320
cmp dword [esp + 0x2c], ebp
jb 0x409716
mov edx, dword [esp + 0x18]
push edx
call fcn.004136fe
add esp, 4
mov ecx, dword [esp + 0x444]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x42c]
xor ecx, esp
call fcn.00413205
add esp, 0x43c
ret
Function at 0x40a3c0
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
push 0x4576f8
mov esi, ecx
call ebx
test eax, eax
mov dword [esi], eax
jne 0x40a3da
pop esi
pop ebx
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNativeSystemInfo
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi]
push str.IsWow64Process
push eax
call edi
mov ecx, dword [esi]
push str.Wow64DisableWow64FsRedirection
push ecx
mov dword [esi + 0xc], eax
call edi
mov edx, dword [esi]
push str.Wow64RevertWow64FsRedirection
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi]
push str.GetSystemWow64DirectoryW
push eax
call edi
push str.advapi32.dll
mov dword [esi + 0x10], eax
call ebx
test eax, eax
mov dword [esi + 4], eax
jne 0x40a432
pop edi
pop esi
pop ebx
ret
push str.Wow64RevertWow64FsRedirection
push eax
call edi
mov ecx, dword [esi + 4]
push str.Wow64RevertWow64FsRedirection
push ecx
mov dword [esi + 0x20], eax
call edi
pop edi
mov dword [esi + 0x1c], eax
pop esi
mov eax, 1
pop ebx
ret
Function at 0x40aeb0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40aec0
sub eax, edx
sar eax, 1
mov ebp, eax
xor ecx, ecx
lea eax, [ebp + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412224
mov esi, eax
mov edx, esi
add esp, 4
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40aef5
xor edi, edi
test ebp, ebp
mov byte [esp + 0x10], 1
jl 0x40af5c
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp word [esi + edi*2], 0x5c
jne 0x40af3c
push esi
mov word [esi + edi*2], 0
call ebx
test eax, eax
jne 0x40af36
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40af56
mov word [esi + edi*2], 0x5c
add edi, 1
cmp edi, ebp
jle 0x40af16
pop ebx
push esi
call fcn.00413db9
movzx eax, byte [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
ret
mov byte [esp + 0x14], 0
pop ebx
push esi
call fcn.00413db9
movzx eax, byte [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
ret

Function at 0x40b030
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x828
mov eax, dword [0x464380]
xor eax, esp
mov dword [esp + 0x824], eax
push esi
mov esi, dword [esp + 0x830]
push 0x44
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00413220
xor eax, eax
push esi
lea ecx, [esp + 0x68]
push 0x45789c
push ecx
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.00413d0d
add esp, 0x18
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [esp + 0x78]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40b0c2
mov edx, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
mov ecx, dword [esp + 0x828]
pop esi
xor ecx, esp
call fcn.00413205
add esp, 0x828
ret
Function at 0x40b2b0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x464380]
xor eax, esp
mov dword [esp + 0x208], eax
push edi
mov edi, dword [esp + 0x214]
push str..del
push edi
call fcn.00413476
add esp, 8
test eax, eax
je 0x40b2ff
push 5
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00413205
add esp, 0x20c
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
xor esi, esi
lea esp, [esp]
push 0x206
lea eax, [esp + 0x12]
push 0
push eax
mov word [esp + 0x18], 0
call fcn.00413220
add esp, 0xc
test esi, esi
jne 0x40b344
push edi
lea ecx, [esp + 0x10]
push str._s.del
push ecx
call fcn.00413d0d
add esp, 0xc
jmp 0x40b358
push esi
push edi
lea edx, [esp + 0x14]
push str._s.del_d
push edx
call fcn.00413d0d
add esp, 0x10
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b37c
lea ecx, [esp + 0xc]
push ecx
call ebx
test eax, eax
jne 0x40b37c
cmp esi, 0xa
jge 0x40b399
add esi, 1
jmp 0x40b310
lea edx, [esp + 0xc]
push edx
push edi
call fcn.00414372
add esp, 8
push 5
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [esp + 0x214]
pop esi
pop ebx
pop edi
xor ecx, esp
call fcn.00413205
add esp, 0x20c
ret

Function at 0x40b3c0
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
sub esp, 0x61c
mov eax, dword [0x464380]
xor eax, esp
mov dword [esp + 0x618], eax
push ebx
mov ebx, dword [esp + 0x624]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b4f4
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call ebp
test eax, eax
jne 0x40b4f3
push esi
push edi
xor edi, edi
push 0x206
lea eax, [esp + 0x21e]
push edi
push eax
mov word [esp + 0x224], di
call fcn.00413220
push 0x206
lea ecx, [esp + 0x432]
push edi
push ecx
mov word [esp + 0x438], di
call fcn.00413220
add esp, 0x18
lea edx, [esp + 0x420]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x218]
push eax
push ebx
call fcn.0040b0e0
add esp, 8
xor esi, esi
push 0x206
lea ecx, [esp + 0x16]
push edi
push ecx
mov word [esp + 0x1c], di
call fcn.00413220
add esp, 0xc
cmp esi, edi
lea edx, [esp + 0x218]
lea eax, [esp + 0x420]
lea ecx, [esp + 0x10]
jne 0x40b4a0
push edx
push eax
push str._s_s.del
push ecx
call fcn.00413d0d
add esp, 0x10
jmp 0x40b4b1
push esi
push edx
push eax
push str._s_s.del_d
push ecx
call fcn.00413d0d
add esp, 0x14
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b4d5
lea eax, [esp + 0x10]
push eax
call ebp
cmp eax, edi
jne 0x40b4d5
cmp esi, 0xa
jge 0x40b4f1
add esi, 1
jmp 0x40b460
lea ecx, [esp + 0x10]
push ecx
push ebx
call fcn.00414372
add esp, 8
push 5
push edi
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x61c]
pop ebx
xor ecx, esp
call fcn.00413205
add esp, 0x61c
ret
Function at 0x40b590
Capabilities:
Create process on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
lea edx, [eax + 2]
jmp 0x40b5a0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b5a0
sub eax, edx
sar eax, 1
je 0x40b5d3
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x40b5d3
push esi
call fcn.0040b030
add esp, 4
pop esi
pop ecx
ret

Function at 0x40b9c0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
push 1
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov eax, esi
mov dword [esi + 4], ecx
pop esi
ret 4

Function at 0x40c820
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4562db
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x464380]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
push 0x54
call fcn.00413c59
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x1c], 0
je 0x40c869
mov ecx, eax
call fcn.0040c450
jmp 0x40c86b
xor eax, eax
mov edi, dword [esp + 0x24]
mov ecx, edi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esi + 0x78], eax
lea ebp, [ecx + 1]
nop
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x40c880
sub ecx, ebp
push ecx
push edi
lea ecx, [eax + 8]
call fcn.00407f50
mov eax, dword [esi + 0x78]
mov dword [eax + 4], 0
mov ecx, dword [esi + 0x78]
push 9
push str.GET_test1
add ecx, 0x34
call fcn.00407f50
lea ecx, [esi + 0x14]
push ecx
push 0
push esi
push 0x40c800
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x18], eax
je 0x40c8dc
cmp eax, 0xffffffff
je 0x40c8dc
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 4

Function at 0x413205
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x464380]
jne 0x41320f
repz ret
jmp fcn.0041b28f
Function at 0x437010
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x437042
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x437190
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x4371ab
mov edx, dword [esi + 0xf4]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x4371df
cmp eax, 2
jg 0x4371df
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x45b124]
push 2
push edx
call fcn.00412afc
mov eax, dword [esi + 0xf0]
push eax
push 1
push edi
push ebx
call fcn.00412afc
add esp, 0x20
xor eax, eax
ret

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

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + eax*4 + 0x130]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebx], 0
jne 0x43756d
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x437544
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.0043b3f0
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.00437370
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x856c], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x437d30
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x464380]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
mov ebp, dword [esp + 0x118]
cmp dword [ebp + 0x19c], 0
push esi
push edi
mov edi, dword [ebp]
mov dword [esp + 0x14], edi
jne 0x437e6b
mov esi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x437dac
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.0043b3f0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.00437370
add esp, 0x18
jmp 0x437e74
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x9c]
push eax
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x437dec
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.0043b3f0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.00437370
add esp, 0x18
jmp 0x437e74
lea ebx, [ebp + 0xcc]
lea edi, [ebp + 0x9e]
lea esi, [esp + 0x18]
call fcn.00437cf0
test eax, eax
jne 0x437e2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0043b3f0
mov ecx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.00437370
add esp, 0x18
jmp 0x437e74
lea ebx, [ebp + 0x100]
lea edi, [ebp + 0xd0]
lea esi, [esp + 0x98]
call fcn.00437cf0
test eax, eax
jne 0x437e6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0043b3f0
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.00437370
add esp, 0x18
jmp 0x437e74
push ebp
call fcn.00437c90
add esp, 4
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00413205
add esp, 0x10c
ret

Function at 0x437e90
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x314]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x437ed3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0043b3f0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004372e0
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004372e0
add esp, 8
pop esi
pop ecx
ret

Function at 0x437ef0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0x1001
push 0xffff
push esi
mov dword [esp + 0x1c], 0x4020
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x437f39
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x437f51
push 4
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
add esp, 0xc
ret
Function at 0x437f60
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x530]
cmp eax, 0xffffffff
je 0x437fb9
mov ecx, dword [ecx + 0x524]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x437fb9
mov ecx, dword [esp + 8]
test ecx, ecx
mov eax, dword [eax]
je 0x437f8c
mov dword [ecx], eax
cmp dword [eax + 0x148], 0
push esi
mov esi, dword [eax + 0x130]
jne 0x437fb0
push 2
push 1
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x437fb5
or eax, 0xffffffff
pop esi
ret
mov eax, esi
pop esi
ret
or eax, 0xffffffff
ret
Function at 0x439a00
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 0x439aa4
cmp word [ecx + 8], 2
push ebx
push ebp
push edi
jne 0x439a75
cmp word [ecx + 0xa], 4
jne 0x439a75
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x439a75
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.00439990
test eax, eax
mov dword [esi], eax
je 0x439a98
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x439a50
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x24]
push 0x400
push ecx
push 0x401
push edx
call fcn.00421938
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.0x439ab4.11001
jmp dword [eax*4 + 0x439ad8]
mov eax, 0x2af9
pop esi
ret 0x18
mov eax, 0x2afa
pop esi
ret 0x18
mov eax, 0x2afb
pop esi
ret 0x18
Function at 0x43a310
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x464380]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x46893c], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x439d60
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x43a050
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.00439d10
je 0x43a382
movzx eax, word [esp + 0x234]
mov eax, dword [eax*8 + 0x465604]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.00413205
add esp, 0x230
ret 4
push 0x104
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x43a47f
push ebx
push ebp
push esi
push edi
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.0041c295
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.004218c7
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 0x43a3fd
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x43a444
push esi
call ebp
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.0041c295
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.004218c7
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x43a47b
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x43a4af
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 0x43a4af
add edi, 1
cmp edi, 3
jl 0x43a446
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x465604], edx
mov dword [0x46560c], eax
mov dword [fcn.00439d10], ecx
pop edi
pop esi
pop ebp
pop ebx
movzx edx, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
mov eax, dword [edx*8 + 0x465604]
xor ecx, esp
mov dword [0x46893c], 1
call fcn.00413205
add esp, 0x230
ret 4
push esi
call ebp
jmp 0x43a47b

Function at 0x43aa10
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.00454ef2
add esp, 0x18
test eax, eax
je 0x43aa33
cmp eax, 0xffffffff
jne 0x43aa35
xor eax, eax
ret
Function at 0x441220
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x45b068
push ecx
call fcn.004372e0
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.004403c0
test eax, eax
jne 0x441250
mov eax, esi
jmp fcn.00440850
ret