joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4093f0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4560eb
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.00407fe0
mov eax, dword [esp + 0x14]
mov ebx, 8
cmp dword [esp + 0x28], ebx
mov dword [esp + 0x240], edi
jae 0x409469
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.004090b0
test eax, eax
jne 0x409489
cmp dword [esp + 0x28], ebx
jb 0x409513
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x40950b
push 0x206
lea edx, [esp + 0x32]
push edi
push edx
mov word [esp + 0x38], di
call fcn.004133a0
add esp, 0xc
cmp dword [esi + 0xe8], ebx
jb 0x4094b1
mov eax, dword [esi + 0xd4]
jmp 0x4094b7
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 0x4094e0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esi + 0x98]
call fcn.004082e0
cmp dword [esp + 0x28], ebx
jb 0x409513
mov edx, dword [esp + 0x14]
push edx
call fcn.0041387e
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.00413385
add esp, 0x234
ret
Function at 0x409540
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x45612b
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.00407fe0
mov eax, dword [esp + 0x18]
mov ebp, 8
cmp dword [esp + 0x2c], ebp
mov dword [esp + 0x44c], ebx
jae 0x4095ba
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.004090b0
test eax, eax
jne 0x4095da
cmp dword [esp + 0x2c], ebp
jb 0x4096e6
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x4096de
push 0x206
lea edx, [esp + 0x36]
push ebx
push edx
mov word [esp + 0x3c], bx
call fcn.004133a0
push 0x206
lea eax, [esp + 0x24a]
push ebx
push eax
mov word [esp + 0x250], bx
call fcn.004133a0
add esp, 0x18
cmp dword [esi + 0xe8], ebp
jb 0x40961d
mov eax, dword [esi + 0xd4]
jmp 0x409623
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 0x409655
mov eax, dword [esi + 0xd4]
jmp 0x40965b
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 0x409681
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esi + 0xec]
call fcn.004082e0
lea eax, [esp + 0x238]
lea edx, [eax + 2]
jmp 0x4096b0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4096b0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x23c]
push ecx
lea ecx, [esi + 0x108]
call fcn.004082e0
cmp dword [esp + 0x2c], ebp
jb 0x4096e6
mov edx, dword [esp + 0x18]
push edx
call fcn.0041387e
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.00413385
add esp, 0x43c
ret
Function at 0x40a390
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 0x40a3aa
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 0x40a402
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 0x40b040
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 0x40b050
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.004123a4
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 0x40b085
xor edi, edi
test ebp, ebp
mov byte [esp + 0x10], 1
jl 0x40b0ec
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp word [esi + edi*2], 0x5c
jne 0x40b0cc
push esi
mov word [esi + edi*2], 0
call ebx
test eax, eax
jne 0x40b0c6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40b0e6
mov word [esi + edi*2], 0x5c
add edi, 1
cmp edi, ebp
jle 0x40b0a6
pop ebx
push esi
call fcn.00413f39
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.00413f39
movzx eax, byte [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
ret

Function at 0x40b1c0
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.004133a0
xor eax, eax
push esi
lea ecx, [esp + 0x68]
push 0x4578ac
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.00413e8d
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 0x40b252
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.00413385
add esp, 0x828
ret
Function at 0x40b440
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.004135f6
add esp, 8
test eax, eax
je 0x40b48f
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.00413385
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.004133a0
add esp, 0xc
test esi, esi
jne 0x40b4d4
push edi
lea ecx, [esp + 0x10]
push str._s.del
push ecx
call fcn.00413e8d
add esp, 0xc
jmp 0x40b4e8
push esi
push edi
lea edx, [esp + 0x14]
push str._s.del_d
push edx
call fcn.00413e8d
add esp, 0x10
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b50c
lea ecx, [esp + 0xc]
push ecx
call ebx
test eax, eax
jne 0x40b50c
cmp esi, 0xa
jge 0x40b529
add esi, 1
jmp 0x40b4a0
lea edx, [esp + 0xc]
push edx
push edi
call fcn.004144f2
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.00413385
add esp, 0x20c
ret

Function at 0x40b550
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 0x40b684
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call ebp
test eax, eax
jne 0x40b683
push esi
push edi
xor edi, edi
push 0x206
lea eax, [esp + 0x21e]
push edi
push eax
mov word [esp + 0x224], di
call fcn.004133a0
push 0x206
lea ecx, [esp + 0x432]
push edi
push ecx
mov word [esp + 0x438], di
call fcn.004133a0
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.0040b270
add esp, 8
xor esi, esi
push 0x206
lea ecx, [esp + 0x16]
push edi
push ecx
mov word [esp + 0x1c], di
call fcn.004133a0
add esp, 0xc
cmp esi, edi
lea edx, [esp + 0x218]
lea eax, [esp + 0x420]
lea ecx, [esp + 0x10]
jne 0x40b630
push edx
push eax
push str._s_s.del
push ecx
call fcn.00413e8d
add esp, 0x10
jmp 0x40b641
push esi
push edx
push eax
push str._s_s.del_d
push ecx
call fcn.00413e8d
add esp, 0x14
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b665
lea eax, [esp + 0x10]
push eax
call ebp
cmp eax, edi
jne 0x40b665
cmp esi, 0xa
jge 0x40b681
add esi, 1
jmp 0x40b5f0
lea ecx, [esp + 0x10]
push ecx
push ebx
call fcn.004144f2
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.00413385
add esp, 0x61c
ret
Function at 0x40b720
Capabilities:
Create process on windows

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

Function at 0x40bb50
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 0x40c9a0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x45646b
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.00413dd9
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x1c], 0
je 0x40c9e9
mov ecx, eax
call fcn.0040c5d0
jmp 0x40c9eb
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 0x40ca00
sub ecx, ebp
push ecx
push edi
lea ecx, [eax + 8]
call fcn.00407f10
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.00407f10
lea ecx, [esi + 0x14]
push ecx
push 0
push esi
push 0x40c980
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x18], eax
je 0x40ca5c
cmp eax, 0xffffffff
je 0x40ca5c
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 0x413385
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x464380]
jne 0x41338f
repz ret
jmp fcn.0041b40f
Function at 0x424f58
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00418fcb
xor ebx, ebx
cmp dword [0x4688a8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x42502d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x424f98
xor eax, eax
jmp 0x4250f1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x424f91
push eax
call fcn.00418f68
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4688a8], eax
call esi
push eax
call fcn.00418f68
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4688ac], eax
call esi
push eax
call fcn.00418f68
mov dword [0x4688b0], eax
lea eax, [ebp - 8]
push eax
call fcn.00418b04
test eax, eax
pop ecx
pop ecx
je 0x424ffb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00413c90
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x42502d
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00418f68
cmp eax, ebx
pop ecx
mov dword [0x4688b8], eax
je 0x42502d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00418f68
pop ecx
mov dword [0x4688b4], eax
mov eax, dword [0x4688b4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4250a6
cmp dword [0x4688b8], esi
je 0x4250a6
push eax
call fcn.00418fd4
pop ecx
call eax
cmp eax, ebx
je 0x425073
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4688b8]
call fcn.00418fd4
pop ecx
call eax
test eax, eax
je 0x425073
test byte [ebp - 0x18], 1
jne 0x4250a6
lea eax, [ebp - 0xc]
push eax
call fcn.00418b3b
test eax, eax
pop ecx
je 0x42508e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00413c90
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x42509d
or dword [ebp + 0x10], 0x200000
jmp 0x4250d7
or dword [ebp + 0x10], 0x40000
jmp 0x4250d7
mov eax, dword [0x4688ac]
cmp eax, esi
je 0x4250d7
push eax
call fcn.00418fd4
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4250d7
mov eax, dword [0x4688b0]
cmp eax, esi
je 0x4250d7
push dword [ebp - 4]
push eax
call fcn.00418fd4
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4688a8]
call fcn.00418fd4
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42b6f0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x464380]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x42b740
mov ax, word [esp]
cmp al, 2
jne 0x42b73a
cmp ah, al
jne 0x42b73a
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00413385
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.00413385
add esp, 0x194
ret
Function at 0x4371a0
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 0x4371d2
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 0x437320
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x43733b
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 0x43736f
cmp eax, 2
jg 0x43736f
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x45b134]
push 2
push edx
call fcn.00412c7c
mov eax, dword [esi + 0xf0]
push eax
push 1
push edi
push ebx
call fcn.00412c7c
add esp, 0x20
xor eax, eax
ret

Function at 0x437680
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 0x4376fd
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x4376d4
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.0043b580
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.00437500
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 0x437ec0
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 0x437ffb
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 0x437f3c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.0043b580
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.00437500
add esp, 0x18
jmp 0x438004
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 0x437f7c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.0043b580
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.00437500
add esp, 0x18
jmp 0x438004
lea ebx, [ebp + 0xcc]
lea edi, [ebp + 0x9e]
lea esi, [esp + 0x18]
call fcn.00437e80
test eax, eax
jne 0x437fba
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0043b580
mov ecx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.00437500
add esp, 0x18
jmp 0x438004
lea ebx, [ebp + 0x100]
lea edi, [ebp + 0xd0]
lea esi, [esp + 0x98]
call fcn.00437e80
test eax, eax
jne 0x437ffb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0043b580
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.00437500
add esp, 0x18
jmp 0x438004
push ebp
call fcn.00437e20
add esp, 4
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00413385
add esp, 0x10c
ret

Function at 0x438020
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 0x438063
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0043b580
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00437470
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00437470
add esp, 8
pop esi
pop ecx
ret

Function at 0x438080
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 0x4380c9
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x4380e1
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 0x4380f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x530]
cmp eax, 0xffffffff
je 0x438149
mov ecx, dword [ecx + 0x524]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x438149
mov ecx, dword [esp + 8]
test ecx, ecx
mov eax, dword [eax]
je 0x43811c
mov dword [ecx], eax
cmp dword [eax + 0x148], 0
push esi
mov esi, dword [eax + 0x130]
jne 0x438140
push 2
push 1
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x438145
or eax, 0xffffffff
pop esi
ret
mov eax, esi
pop esi
ret
or eax, 0xffffffff
ret
Function at 0x439b90
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 0x439c34
cmp word [ecx + 8], 2
push ebx
push ebp
push edi
jne 0x439c05
cmp word [ecx + 0xa], 4
jne 0x439c05
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x439c05
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.00439b20
test eax, eax
mov dword [esi], eax
je 0x439c28
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x439be0
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x24]
push 0x400
push ecx
push 0x401
push edx
call fcn.00421b08
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.0x439c44.11001
jmp dword [eax*4 + 0x439c68]
mov eax, 0x2af9
pop esi
ret 0x18
mov eax, 0x2afa
pop esi
ret 0x18
mov eax, 0x2afb
pop esi
ret 0x18