joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d657
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x40d699
call fcn.00410310
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x40d699
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x40d690
xor eax, eax
jmp 0x40d6a1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0040d6a7
pop edi
pop esi
pop ebx
ret 4

Function at 0x4109ec
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 0x410a1a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x410a38
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00410952
jmp 0x410a38
mov eax, dword [esi + 0x14]
test eax, eax
je 0x410a38
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00410952
test edi, edi
mov eax, edi
jne 0x410a22
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x404230
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x800
mov ebx, ecx
mov dword [ebp - 4], 0x800
call fcn.00409ff4
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
add esp, 4
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
call esi
cmp eax, 0x6f
jne 0x40427b
push edi
call fcn.0040af54
push dword [ebp - 4]
call fcn.00409ff4
add esp, 8
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
call esi
test eax, eax
jne 0x404325
mov esi, edi
test esi, esi
je 0x4042e5
movzx eax, byte [esi + 0x199]
xor eax, 0xf6
push eax
movzx eax, byte [esi + 0x198]
xor eax, 0xe5
push eax
movzx eax, byte [esi + 0x197]
xor eax, 0xd4
push eax
movzx eax, byte [esi + 0x196]
xor eax, 0xc3
push eax
movzx eax, byte [esi + 0x195]
xor eax, 0xb2
push eax
movzx eax, byte [esi + 0x194]
xor eax, 0xa1
push eax
push str._02X_02X_02X_02X_02X_02X
push ebx
call fcn.0040b142
add esp, 0x20
cmp byte [esi + 0x194], 0
jne 0x404325
cmp byte [esi + 0x195], 0
jne 0x404325
cmp byte [esi + 0x196], 0
jne 0x404325
cmp byte [esi + 0x197], 0
jne 0x404325
cmp byte [esi + 0x198], 0
jne 0x404325
cmp byte [esi + 0x199], 0
jne 0x404325
mov esi, dword [esi]
test esi, esi
jne 0x404289
test edi, edi
je 0x404332
push edi
call fcn.0040af54
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404340
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43eb8d
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x4508e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14c], 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov dword [ebp - 0x154], esi
mov byte [esi], 0
mov dword [ebp - 4], 0
push str.Shell32.dll
mov dword [ebp - 0x14c], 1
xor bl, bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x404459
push str.SHGetKnownFolderPath
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40444e
lea ecx, [ebp - 0x150]
push ecx
push 0
push 0xa000
push 0x4402f8
call eax
test eax, eax
setns bl
test bl, bl
je 0x40444e
push dword [ebp - 0x150]
lea ecx, [ebp - 0x130]
call fcn.00405810
lea edx, [ebp - 0x130]
lea ecx, [ebp - 0x148]
mov dword [ebp - 4], 1
call fcn.00404180
push eax
mov ecx, esi
call fcn.00401e00
cmp dword [ebp - 0x134], 0x10
jb 0x404433
push dword [ebp - 0x148]
call fcn.0040af83
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x11c], 8
jb 0x40444e
push dword [ebp - 0x130]
call fcn.0040af83
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test bl, bl
jne 0x4044a8
lea eax, [ebp - 0x118]
push eax
push 0
push 0
push 0x8005
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x4044a8
cmp byte [ebp - 0x118], 0
jne 0x404482
xor ecx, ecx
jmp 0x404499
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
jmp 0x404490
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404490
sub ecx, edx
push ecx
lea eax, [ebp - 0x118]
push eax
mov ecx, esi
call fcn.00403760
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040a11d
mov esp, ebp
pop ebp
ret
Function at 0x406980
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43ebe8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4508e0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x4508e0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x406ad4
cmp byte [ebx + 0x45], 0
je 0x406ad4
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4069e0
xor al, al
jmp 0x406ad6
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
cmp ecx, 0x10
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x406a20
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0x1c]
cmovae edi, dword [esp + 0x1c]
lea esi, [esp + 0x1c]
cmovae esi, dword [esp + 0x1c]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x406a61
dec eax
je 0x406a65
sub eax, 2
je 0x406abb
xor bl, bl
jmp 0x406abd
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ecx, 0x10
lea eax, [esp + 0x18]
cmovae eax, edx
sub esi, eax
je 0x406a9c
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [esp + 0x20]
cmovae eax, edx
push 1
push eax
call fcn.0040c050
add esp, 0x10
cmp esi, eax
jne 0x406a5d
cmp byte [ebx + 0x45], 0
je 0x406abb
test esi, esi
jne 0x406a20
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.00402db0
jmp 0x406a20
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x406ad0
push dword [esp + 0x18]
call fcn.0040af83
add esp, 4
mov al, bl
jmp 0x406ad6
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0040a11d
mov esp, ebp
pop ebp
ret
Function at 0x424ac6
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00413612
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x424afe
xor eax, eax
jmp 0x424b2a
cmp esi, dword [ebp - 4]
je 0x424b27
cmp dword [ebp + 0xc], 0
je 0x424b27
push dword [edi + 0x9c]
call fcn.004246d4
push dword [edi + 0x9c]
mov esi, eax
call fcn.00410a46
pop ecx
pop ecx
cmp esi, eax
je 0x424afa
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x424ef0
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4508e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0040f0bb
mov dword [ebp - 0x14], eax
cmp dword [0x460238], edi
jne 0x424fe1
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x424f6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4250c1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4250c1
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4250c1
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x460238], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x46023c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x460240], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x460248], eax
test eax, eax
je 0x424fde
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x460244], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x425006
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x424ff9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x42501b
push 4
pop eax
jmp 0x4250c3
cmp dword [ebp - 0x14], edi
je 0x42501b
push dword [0x460238]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x425000
mov eax, dword [0x460244]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x425079
cmp dword [0x460248], esi
je 0x425079
push eax
call ebx
push dword [0x460248]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x425079
test eax, eax
je 0x425079
call ecx
test eax, eax
je 0x42506e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x42506e
test byte [ebp - 8], 1
jne 0x425079
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4250a9
mov eax, dword [0x46023c]
cmp eax, esi
je 0x4250a6
push eax
call ebx
test eax, eax
je 0x4250a6
call eax
mov edi, eax
test edi, edi
je 0x4250a6
mov eax, dword [0x460240]
cmp eax, esi
je 0x4250a6
push eax
call ebx
test eax, eax
je 0x4250a6
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x460238]
call ebx
test eax, eax
je 0x4250c1
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4250c3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a11d
leave
ret
Function at 0x4381d0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x9eb4
call fcn.00426080
mov eax, dword [0x4508e0]
xor eax, esp
mov dword [esp + 0x9eb0], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
movzx ecx, cx
push ecx
push eax
push str.udp:___s:_d
mov ebx, edx
push 0xffffffffffffffff
lea edx, [esp + 0x4f08]
push 0x100
push edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], eax
call fcn.0040b123
lea eax, [esp + 0x4f10]
push 0
push eax
mov byte [esp + 0x5017], 0
call fcn.00439e50
mov edi, eax
add esp, 0x20
test edi, edi
js 0x438396
mov dword [esp + 0x48], 0x64
mov dword [esp + 0x4c], 0x18
mov dword [esp + 0x20], 0
lea eax, [esp + 0x38]
push eax
push edi
mov edx, 3
mov ecx, ebx
call fcn.00437d90
add esp, 8
test eax, eax
js 0x43837b
lea ecx, [esp + 0x30]
push ecx
push 0
lea esi, [ebx + 0x2c]
push 0
mov dword [esi], 0
push esi
lea edx, [edi + 1]
mov dword [ebx + 0x30], edi
inc dword [esi]
push edx
mov dword [esp + 0x44], 2
mov dword [esp + 0x48], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x43837b
push esi
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x43837b
push 0
push 0x4ebc
lea eax, [esp + 0x5000]
push eax
push edi
call fcn.00439fb0
mov esi, eax
add esp, 0x10
test esi, esi
jle 0x43837b
mov eax, dword [ebx]
lea ecx, [esp + 0x4ff8]
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x38]
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], edx
push ecx
lea edx, [esp + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [eax + 4]
push edx
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], 0x4ebc
call fcn.0043d3f0
add esp, 0x10
test eax, eax
js 0x438396
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x4ff8]
push eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x20], edx
lea edx, [esp + 0x20]
push edx
push ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], 0x4ebc
call fcn.0043d3f0
add esp, 0x10
test eax, eax
js 0x438396
mov edx, dword [ebx + 0x134]
cmp edx, dword [esp + 0x44]
jne 0x43837b
mov eax, 4
cmp ax, word [esp + 0x3e]
je 0x4383ae
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, 3
jl 0x438258
push edi
call fcn.00439e40
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x9eb0]
xor ecx, esp
call fcn.0040a11d
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
push ecx
lea ebx, [esp + 0x4c]
call fcn.00437f00
push edi
mov esi, eax
call fcn.00439e40
mov ecx, dword [esp + 0x9ec4]
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0040a11d
mov esp, ebp
pop ebp
ret
Function at 0x439320
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, 0x9d7c
call fcn.00426080
mov eax, dword [0x4508e0]
xor eax, esp
mov dword [esp + 0x9d78], eax
mov ecx, dword [ebx]
push 0
push 0x4ebc
lea eax, [esp + 0x4ec4]
push eax
push ecx
call fcn.00439fb0
add esp, 0x10
test eax, eax
jg 0x43936e
or eax, 0xffffffff
mov ecx, dword [esp + 0x9d78]
xor ecx, esp
call fcn.0040a11d
add esp, 0x9d7c
ret
mov ecx, dword [esi]
lea edx, [esp]
push edx
push eax
lea eax, [esp + 0x4ec4]
push eax
push ecx
call fcn.00437d00
add esp, 0x10
test eax, eax
js 0x439356
movzx eax, word [esp + 6]
sub eax, 2
je 0x4393e0
sub eax, 2
jne 0x43940e
push edi
push esi
lea edi, [esp + 8]
mov eax, ebx
call fcn.004391f0
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [ebx + 4]
imul edx, edx, 0xeb4
add edx, dword [esi + 0x18]
push eax
push ecx
push edx
call fcn.00402480
add esp, 0x14
pop edi
xor eax, eax
mov ecx, dword [esp + 0x9d78]
xor ecx, esp
call fcn.0040a11d
add esp, 0x9d7c
ret
push ebx
lea edx, [esp + 4]
mov ecx, esi
call fcn.00439120
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [ebx + 4]
imul eax, eax, 0xeb4
add eax, dword [esi + 0x18]
push ecx
push edx
push eax
call fcn.00402480
add esp, 0x14
mov ecx, dword [esp + 0x9d78]
xor ecx, esp
xor eax, eax
call fcn.0040a11d
add esp, 0x9d7c
ret
Function at 0x4395f0
Capabilities:
Get socket status

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, eax
xor ebx, ebx
push edi
mov dword [esi + 0x138], ebx
mov dword [esi + 4], 8
cmp dword [esi + 0x10], ebx
jle 0x439666
mov dword [esp + 0x10], ebx
xor ebp, ebp
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x14]
add eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x439641
test dl, dl
je 0x43963d
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x439641
add ecx, 2
add eax, 2
test dl, dl
jne 0x439621
xor eax, eax
jmp 0x439646
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
sete cl
add dword [esp + 0x10], 0xeb4
inc ebx
add ebp, 0x24
lea ecx, [ecx + ecx + 2]
mov dword [edi + ebp - 0x1c], ecx
cmp ebx, dword [esi + 0x10]
jl 0x439613
lea eax, [esi + 0x1c]
push 0
push eax
call fcn.0043a4b0
add esp, 8
mov ecx, esi
call fcn.00438730
test eax, eax
jne 0x43976b
lea edi, [esi + 0x2c]
push esi
call fcn.00438e60
push esi
call fcn.00438fe0
lea eax, [esi + 0x1c]
push 0
push eax
call fcn.0043a4b0
add esp, 0x10
cmp dword [esi + 0x10], 0
mov dword [edi], 0
mov dword [esp + 0x10], 0
jle 0x4396f9
xor edx, edx
mov ebp, dword [edi]
xor eax, eax
test ebp, ebp
je 0x4396d3
mov ecx, dword [esi + 0x14]
mov ebx, dword [edx + ecx]
lea ecx, [esi + 0x30]
cmp dword [ecx], ebx
je 0x4396d3
inc eax
add ecx, 4
cmp eax, ebp
jb 0x4396c7
cmp eax, ebp
jne 0x4396e8
cmp ebp, 0x40
jae 0x4396e8
mov ecx, dword [esi + 0x14]
mov ecx, dword [edx + ecx]
mov dword [esi + eax*4 + 0x30], ecx
inc dword [edi]
mov eax, dword [esp + 0x10]
inc eax
add edx, 0x24
mov dword [esp + 0x10], eax
cmp eax, dword [esi + 0x10]
jl 0x4396b6
mov eax, dword [esi + 0x130]
lea edx, [esp + 0x14]
push edx
xor ebp, ebp
push ebp
push ebp
push edi
inc eax
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], 0x2710
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x43975c
mov dword [esp + 0x10], ebp
cmp dword [esi + 0x10], ebp
jle 0x43975c
lea ebx, [ebx]
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx + ebp]
push edi
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x43974b
mov ebx, dword [esi + 0x14]
add ebx, ebp
call fcn.00439320
mov eax, dword [esp + 0x10]
inc eax
add ebp, 0x24
mov dword [esp + 0x10], eax
cmp eax, dword [esi + 0x10]
jl 0x439730
mov ecx, esi
call fcn.00438730
test eax, eax
je 0x439686
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x439a70
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x84
mov eax, dword [0x4508e0]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
xor eax, eax
mov dword [ebp], eax
push esi
mov esi, dword [esp + 0x94]
mov dword [ebp + 4], eax
mov dword [ebp + 8], eax
push edi
mov dword [ebp + 0xc], eax
mov eax, 2
push 0x3a
push esi
mov word [ebp], ax
call fcn.00437b10
mov edi, eax
add esp, 8
test edi, edi
je 0x439af5
mov ebx, edi
sub ebx, esi
cmp ebx, 0x80
jge 0x439b6a
push ebx
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.0040c510
inc edi
add esp, 0xc
mov byte [esp + ebx + 0x10], 0
test edi, edi
je 0x439b22
push edi
call fcn.00430b0d
add esp, 4
movzx eax, ax
jmp 0x439b24
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x439b00
sub eax, edx
cmp eax, 0x80
jae 0x439b6a
lea edx, [esp + 0x10]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x439b18
xor eax, eax
push eax
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 0x10]
push str.1234567890.
push edx
mov word [ebp + 2], ax
call fcn.0043d490
lea ecx, [esp + 0x18]
add esp, 8
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x439b48
sub ecx, esi
cmp eax, ecx
jne 0x439b6f
add ebp, 4
lea eax, [esp + 0x10]
push ebp
push eax
call fcn.00439fc0
add esp, 8
test eax, eax
jne 0x439b88
or eax, 0xffffffff
jmp 0x439b8a
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x439b6a
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp + 4], ecx
xor eax, eax
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040a11d
add esp, 0x84
ret
Function at 0x439fa0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
jmp 0x43a220
sub esp, 0x110
mov eax, dword [0x4508e0]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
mov ebx, dword [esp + 0x11c]
push esi
mov esi, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x12c]
test edi, edi
je 0x43a2c7
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 1
lea ecx, [esp + 0xc]
cmp edi, 0xffffffff
jne 0x43a269
xor ecx, ecx
jmp 0x43a292
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0xc], eax
imul eax, eax, 0x3e8
mov edx, edi
sub edx, eax
imul edx, edx, 0x3e8
mov dword [esp + 0x10], edx
push ecx
push 0
lea eax, [esp + 0x1c]
push eax
push 0
lea ecx, [esi + 1]
push ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x43a2c5
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0040a11d
add esp, 0x110
ret
je 0x43a323
mov edx, dword [esp + 0x128]
push 0
push edx
push ebx
push esi
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x43a33d
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x43a312
call esi
cmp eax, 0x2733
je 0x43a312
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0040a11d
add esp, 0x110
ret
test edi, edi
je 0x43a323
push 0x30d40
call fcn.0043a510
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0040a11d
add esp, 0x110
ret
jne 0x43a344
mov eax, 0xfffffffd
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040a11d
add esp, 0x110
ret
Function at 0x439fb0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
jmp 0x43a360
sub esp, 0x110
mov eax, dword [0x4508e0]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
mov ebx, dword [esp + 0x11c]
push esi
mov esi, dword [esp + 0x11c]
push edi
mov edi, dword [esp + 0x12c]
test edi, edi
je 0x43a417
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 1
lea ecx, [esp + 0xc]
cmp edi, 0xffffffff
jne 0x43a3ad
xor ecx, ecx
jmp 0x43a3d6
mov eax, 0x10624dd3
imul edi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0xc], eax
imul eax, eax, 0x3e8
mov edx, edi
sub edx, eax
imul edx, edx, 0x3e8
mov dword [esp + 0x10], edx
push ecx
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esi + 1]
push ecx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jns 0x43a415
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2714
pop edi
neg eax
pop esi
sbb eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0040a11d
add esp, 0x110
ret
je 0x43a473
mov edx, dword [esp + 0x128]
push 0
push edx
push ebx
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jns 0x43a48d
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x43a462
call esi
cmp eax, 0x2733
je 0x43a462
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0040a11d
add esp, 0x110
ret
test edi, edi
je 0x43a473
push 0x186a0
call fcn.0043a510
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0040a11d
add esp, 0x110
ret
jne 0x43a494
mov eax, 0xfffffffd
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040a11d
add esp, 0x110
ret

Function at 0x439ff0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4508e0]
xor eax, esp
mov dword [esp + 0x190], eax
movzx ecx, byte [esp + 0x19c]
movzx edx, byte [esp + 0x198]
shl cx, 8
lea eax, [esp]
push eax
or cx, dx
movzx eax, cx
push eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0040a11d
add esp, 0x194
ret

Function at 0x43a050
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
ret

Function at 0x43a060
Capabilities:
Create udp socket

Disassembly:
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
ret