joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ca50
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x1000ca7d
xor ecx, ecx
jmp 0x1000ca89
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
push esi
mov esi, ecx
test ecx, ecx
je 0x1000cb3d
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
mov eax, dword [esi]
cmp dword [esp + 0x10], eax
jne 0x1000cab0
mov dword [esp + 0xc], esi
jmp 0x1000cb10
push eax
push 1
push 0x40
call edi
test eax, eax
jne 0x1000cb09
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1000cafc
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call ebp
test eax, eax
je 0x1000cb10
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1000cb10
push 0x10051060
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1000cb10
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x1000cb33
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x1000caa2
mov eax, dword [esp + 0xc]
pop edi
pop ebp
test eax, eax
jne 0x1000cb51
mov ecx, dword [ebx]
add ecx, 8
call fcn.1000cc90
test eax, eax
je 0x1000cb51
mov edx, dword [esp + 8]
mov dword [eax], edx
pop esi
add esp, 8
ret

Function at 0x1000cb60
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x1001bfdb
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100541b0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.1000e5e0
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x14], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x1000cbf8
push 0x10051e58
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.1000e0ab
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8

Function at 0x1000d1af
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100541b0]
jne 0x1000d1b9
repz ret
jmp fcn.1000f51d
Function at 0x1001864d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1000f7ca
and dword [ebp - 4], 0
cmp dword [0x10056280], 0
mov ebx, eax
jne 0x100186fe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100187af
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100187af
push eax
call fcn.1000f758
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10056280], eax
call esi
push eax
call fcn.1000f758
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10056284], eax
call esi
push eax
call fcn.1000f758
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10056288], eax
call esi
push eax
call fcn.1000f758
pop ecx
mov dword [0x10056290], eax
test eax, eax
je 0x100186fe
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000f758
pop ecx
mov dword [0x1005628c], eax
mov eax, dword [0x1005628c]
cmp eax, ebx
je 0x10018756
cmp dword [0x10056290], ebx
je 0x10018756
push eax
call fcn.1000f7d3
push dword [0x10056290]
mov esi, eax
call fcn.1000f7d3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10018756
test edi, edi
je 0x10018756
call esi
test eax, eax
je 0x1001874d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001874d
test byte [ebp - 0xc], 1
jne 0x10018756
or dword [ebp + 0x10], 0x200000
jmp 0x1001878f
mov eax, dword [0x10056284]
cmp eax, ebx
je 0x1001878f
push eax
call fcn.1000f7d3
pop ecx
test eax, eax
je 0x1001878f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1001878f
mov eax, dword [0x10056288]
cmp eax, ebx
je 0x1001878f
push eax
call fcn.1000f7d3
pop ecx
test eax, eax
je 0x1001878f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10056280]
call fcn.1000f7d3
pop ecx
test eax, eax
je 0x100187af
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100187b1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401100
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0x64616f4d
cmp dword [0x459ad0], 0
je 0x401134
cmp dword [0x459ad4], 0
jne 0x401210
xor ebx, ebx
mov edi, dword fs:[ebx + 0x30]
mov edi, dword [edi + 0xc]
mov eax, dword [edi + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov edi, eax
add edi, dword [eax + 0x3c]
mov edx, dword [edi + 0x78]
add edx, eax
mov edi, dword [edx + 0x20]
add edi, eax
push ebp
mov ebp, ebx
mov esi, dword [edi + ebp*4]
add esi, eax
inc ebp
push ebx
push ecx
mov ecx, 0x64616f4e
dec ecx
dec ecx
dec ecx
mov ebx, ecx
pop ecx
add ebx, 1
cmp dword [esi], ebx
pop ebx
jne 0x401159
push ebx
pushal
or ch, ch
sbb ax, 0x2a
popal
mov ebx, 0x41797262
sub ebx, 2
add ebx, 1
cmp dword [esi + 8], ebx
pop ebx
jne 0x401159
mov edi, dword [edx + 0x24]
add edi, eax
mov bp, word [edi + ebp*2]
mov edi, dword [edx + 0x1c]
add edi, eax
sub ebp, 1
mov edi, dword [edi + ebp*4]
add edi, eax
pop ebp
mov dword [0x459ad0], edi
xor ebx, ebx
mov edi, dword fs:[ebx + 0x30]
mov edi, dword [edi + 0xc]
mov eax, dword [edi + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov edi, eax
add edi, dword [eax + 0x3c]
mov edx, dword [edi + 0x78]
add edx, eax
mov edi, dword [edx + 0x20]
add edi, eax
push ebp
mov ebp, ebx
mov esi, dword [edi + ebp*4]
add esi, eax
inc ebp
push eax
mov eax, 0x50746546
add eax, 1
cmp dword [esi], eax
pop eax
jne 0x4011d0
push ebx
mov ebx, 0x73736571
add ebx, 1
cmp dword [esi + 0xa], ebx
pop ebx
jne 0x4011d0
mov edi, dword [edx + 0x24]
add edi, eax
mov bp, word [edi + ebp*2]
mov edi, dword [edx + 0x1c]
add edi, eax
sub ebp, 1
mov edi, dword [edi + ebp*4]
add edi, eax
pop ebp
mov dword [0x459ad4], edi
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [0x459ad0]
call eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [0x459ad4]
call eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4029d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42638d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x458bc4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00402210
add esp, 4
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00402b00
add esp, 8
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.00401cd0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00403d50
mov dword [ebp - 0x20], 0x402390
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
push 0
lea ecx, [ebp - 0x14]
call fcn.004044c0
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push 0
push 0
call fcn.0041070b
add esp, 0x18
mov edx, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x402a6f
lea ecx, [ebp - 0x14]
call fcn.00407d00
jmp 0x402a80
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
push 6
call fcn.004084cd
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00403d50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x409af9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x409b1a
jl 0x409b11
test edi, edi
jne 0x409b1a
xor eax, eax
xor edx, edx
jmp 0x409bdb
cmp dword [ebx + 0x38], 0
je 0x409b2f
push eax
push edi
push dword [ebp + 8]
call fcn.00409be1
jmp 0x409bdb
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x409b76
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x409b76
cmp eax, edi
jb 0x409b50
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040b3d0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x409b7c
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x409bd0
mov ecx, ebx
call fcn.0040936e
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x409bbb
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00411cab
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x409bd0
jmp 0x409b8e
test edx, edx
je 0x409bd0
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00411cab
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x409cd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x409cf2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00409db5
jmp 0x409db0
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x409d18
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x409d1d
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov eax, ecx
cdq
mov dword [ebp - 4], eax
mov ecx, edx
mov dword [ebp - 8], ecx
test edi, edi
jl 0x409d7d
jg 0x409d32
test esi, esi
je 0x409d7d
test ecx, ecx
jl 0x409d78
jg 0x409d3c
test eax, eax
je 0x409d78
cmp edi, ecx
jg 0x409d4e
jl 0x409d46
cmp esi, eax
jae 0x409d4e
mov eax, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0x10]
call fcn.0040b3d0
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [ebp - 8]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x409d80
mov ecx, dword [ebp + 8]
jmp 0x409d8a
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x409da4
jg 0x409d8a
test esi, esi
je 0x409da4
cmp dword [ebx + 0x4c], 0
je 0x409da4
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00412317
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40b079
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40b0b8
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40b0b8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40b0b8
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40b0b8
cmp dword [ecx + 0x74], 0xe
jbe 0x40b0b8
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41aeb3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041ad29

Function at 0x425ab0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x425add
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x425add
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4011c6
Capabilities:
Access peb ldr_data
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
call fcn.0040114f
call section..text
movzx eax, al
cmp eax, 1
jne 0x4011e9
push 5
pop eax
jmp 0x4013b8
and dword [ebp - 0x40], 0
and dword [ebp - 0xc], 0
and dword [ebp - 0x30], 0
and dword [ebp - 0x14], 0
and dword [ebp - 0x24], 0
and dword [ebp - 0x44], 0
and dword [ebp - 8], 0
and dword [ebp - 0x18], 0
and dword [ebp - 0x1c], 0
and dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0x330
pushal
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ebx, eax
add ebx, 0xc
mov eax, dword [eax + 0xc]
mov edi, dword [eax + 0x30]
mov ecx, 0x18
xor esi, esi
xor ebx, ebx
add bl, byte [edi + ecx - 1]
add esi, ebx
loop 0x401234
cmp esi, dword [ebp - 0x2c]
je 0x401249
mov eax, dword [eax]
cmp eax, ebx
jne 0x40122a
mov eax, dword [eax + 0x18]
mov dword [ebp - 8], eax
nop
popal
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
push 0x57b720
push dword [0x4046fc]
push 0x57b700
push dword [0x57b720]
push 0x57b724
call fcn.0040102b
add esp, 0x14
push 0x57b724
push dword [ebp - 8]
call dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
push 0x57b740
push dword [0x4046fc]
push 0x57b700
push dword [0x57b740]
push 0x57b744
call fcn.0040102b
add esp, 0x14
push 0x57b744
push dword [ebp - 8]
call dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
push 0x57b760
push dword [0x4046fc]
push 0x57b700
push dword [0x57b760]
push 0x57b764
call fcn.0040102b
add esp, 0x14
push 0x57b764
push dword [ebp - 8]
call dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [0x40402c]
mov dword [ebp - 0x10], eax
push 4
push 0x1000
mov eax, dword [ebp - 0x10]
inc eax
push eax
push 0
call dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0x404030
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10]
push eax
push dword [section..data]
push 0x404004
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.0040102b
add esp, 0x14
mov dword [ebp - 4], eax
and dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
push 0x20
push dword [0x40402c]
push dword [ebp - 4]
call dword [ebp - 0x24]
push 0x4046f8
push dword [0x4046d0]
push 0x4046d4
push dword [0x4046f8]
push 0x404700
call fcn.0040102b
add esp, 0x14
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
mov dword [0x57b7bc], eax
and dword [ebp - 0x28], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + eax]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 1
push dword [ebp - 0x28]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call dword [0x57b7bc]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405430
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
sub esp, 0x68
lea ebp, [esp + 0x60]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x44], 0x607c20
mov dword [esp + 0x48], 0x60e528
mov dword [esp + 0x4c], ebp
lea ebp, [esp + 0x2c]
mov dword [esp + 0x50], 0x40552a
mov dword [esp + 0x1c], edx
mov dword [esp + 0x54], esp
mov dword [esp], ebp
call fcn.004cf190
movzx eax, byte [esp + 0x1c]
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.0040ad50
sub esp, 8
mov eax, dword [esp + 0x18]
lea ecx, [eax + 0x20]
lea edx, [eax + 0x54]
mov dword [eax], fcn.00405280
mov dword [eax + 0x1c], 0
mov byte [eax + 0x20], 0
mov dword [eax + 0x18], ecx
mov dword [esp + 0x1c], ecx
lea ecx, [eax + 0x3c]
mov dword [eax + 0x38], 0
mov byte [eax + 0x3c], 0
mov dword [eax + 0x34], ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 0x4c], edx
mov dword [eax + 0x50], 0
mov byte [eax + 0x54], 0
mov dword [esp + 4], str.XmlRpcServerConnection:_new_socket__d.
mov dword [esp], 2
mov dword [esp + 8], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], 1
call fcn.0040b050
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x74]
mov dword [edx + 0x10], eax
lea eax, [esp + 0x2c]
mov dword [edx + 0x14], 0
mov byte [edx + 0x68], 1
mov dword [esp], eax
call fcn.004cf200
add esp, 0x68
pop ebp
ret 0xc
Function at 0x40a750
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x1ac
mov byte [0x74a128], 1
lea eax, [esp + 0x10]
mov dword [esp], 2
mov dword [esp + 4], eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, dword [sym.imp.WS2_32.dll_WSACleanup]
sub esp, 8
mov dword [esp], eax
call fcn.004014b0
add esp, 0x1ac
ret

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

Disassembly:
sub esp, 0x1c
cmp byte [0x74a128], 0
jne 0x40a8b1
call fcn.0040a750
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
call dword [sym.imp.WS2_32.dll_socket]
sub esp, 0xc
add esp, 0x1c
ret

Function at 0x40a920
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x2c
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 1
mov dword [esp + 4], 0x8004667e
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
sub esp, 0xc
test eax, eax
sete al
add esp, 0x2c
ret

Function at 0x40a960
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x3c
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 1
mov dword [esp + 0x10], 4
mov dword [esp + 8], 4
mov dword [esp + 4], 0xffff
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
sub esp, 0x14
test eax, eax
sete al
add esp, 0x3c
ret
Function at 0x4173c0
Capabilities:
Get hostname

Disassembly:
push edi
push esi
push ebx
sub esp, 0x410
mov ebx, dword [esp + 0x420]
test ebx, ebx
je 0x4174ee
lea eax, [ebx + 0x101]
mov dword [esp + 4], 0x101
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_gethostname]
sub esp, 8
test eax, eax
js 0x4174d1
lea esi, [ebx + 0x303]
lea edi, [ebx + 0x202]
mov dword [esp], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call fcn.00416610
test eax, eax
je 0x417484
mov dword [esp], ebx
mov dword [esp + 8], 0x101
add ebx, 0x404
mov dword [esp + 4], str.windows32
call sub.msvcrt.dll_strncpy
lea eax, [esp + 0x10]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004161c0
test eax, eax
mov esi, eax
je 0x417460
xor esi, esi
add esp, 0x410
mov eax, esi
pop ebx
pop esi
pop edi
ret
mov dword [esp], ebx
mov dword [esp + 8], 0x101
mov dword [esp + 4], str.i386
call sub.msvcrt.dll_strncpy
add esp, 0x410
mov eax, esi
pop ebx
pop esi
pop edi
ret
mov dword [esp + 8], 0x101
mov dword [esp + 4], str.win32
mov dword [esp], ebx
call sub.msvcrt.dll_strncpy
mov dword [esp + 8], 0x101
mov dword [esp + 4], 0x636613
mov dword [esp], edi
call sub.msvcrt.dll_strncpy
mov dword [esp + 8], 0x101
mov dword [esp + 4], 0x636613
mov dword [esp], esi
call sub.msvcrt.dll_strncpy
jmp 0x41741a
mov byte [ebx + 0x101], 0
mov esi, 0xffffffff
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0x28
jmp 0x417450
call dword [sym.imp.msvcrt.dll__errno]
mov esi, 0xffffffff
mov dword [eax], 0x16
jmp 0x417450
Function at 0x445310
Capabilities:
Initialize winsock library

Disassembly:
mov eax, dword [0x74bc50]
test eax, eax
je 0x445320
ret
push ebx
sub esp, 0x18
mov dword [0x74bc50], 1
mov dword [esp + 4], 0x74bac0
mov dword [esp], 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
sub esp, 8
test eax, eax
jne 0x44535c
mov eax, dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [esp], eax
call fcn.004014b0
add esp, 0x18
pop ebx
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov dword [esp], 2
call dword [0x61cdfc]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.unable_to_initialize_winsock:_error__d
mov dword [esp], eax
call fcn.004e8c70
mov dword [esp], 1
call sub.msvcrt.dll_exit
nop
lea esi, [esi]
lea edi, [edi]
push ebp
mov ebp, esp
sub esp, 0x58
lea eax, [ebp - 8]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x24], 0x607c20
mov dword [ebp - 0x20], 0x60ee3c
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x18], 0x445497
mov dword [esp], eax
call fcn.004cf190
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x40]
mov eax, dword [eax]
mov dword [edx], eax
lea eax, [edx + 4]
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, 4
mov dword [esp], eax
mov dword [ebp - 0x38], 0xffffffff
mov dword [ebp - 0x44], ecx
call fcn.00444110
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x40]
sub esp, 4
mov eax, dword [eax + 0x84]
mov dword [edx + 0x84], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x98]
mov byte [edx + 0x99], 1
mov byte [edx + 0x98], al
mov dword [ebp - 0x38], 1
call fcn.00445310
mov dword [esp], 0x4000
call fcn.00606c50
mov edx, dword [ebp - 0x40]
mov dword [edx + 0x8c], eax
mov eax, dword [edx + 0x84]
mov dword [esp], eax
mov ecx, dword [ebp - 0x44]
call fcn.00445180
mov ecx, dword [ebp - 0x40]
sub esp, 4
mov dword [ecx + 0x88], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x94]
mov eax, dword [eax + 0x90]
mov dword [ecx + 0x90], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 0x94], edx
mov byte [eax + 0x99], 0
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call fcn.004cf200
leave
ret 4
Function at 0x446af0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
lea edx, [ebp - 8]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x24], 0x607c20
mov dword [ebp - 0x20], 0x60eea4
mov dword [ebp - 0x18], 0x446bba
mov dword [ebp - 0x1c], edx
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x14], esp
mov dword [esp], edx
call fcn.004cf190
mov eax, dword [ebp - 0x40]
cmp byte [eax + 0x98], 0
je 0x446b58
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x90]
test ecx, ecx
jle 0x446ba5
mov dword [esp], 0
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x38], 0xffffffff
call fcn.004456a0
sub esp, 4
test al, al
je 0x446bb1
mov dword [esp + 0xc], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax]
mov dword [esp], eax
mov dword [ebp - 0x38], 1
call dword [sym.imp.WS2_32.dll_recv]
sub esp, 0x10
mov edx, 0
test eax, eax
cmovns edx, eax
mov dword [ebp - 0x40], edx
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call fcn.004cf200
mov eax, dword [ebp - 0x40]
leave
ret 8
mov edx, dword [eax + 0x94]
test edx, edx
jg 0x446b3b
jmp 0x446b58
mov dword [ebp - 0x40], 0
jmp 0x446b93
Function at 0x44cee0
Capabilities:
Set socket configuration

Disassembly:
push esi
push ebx
sub esp, 0x24
mov esi, dword [sym.imp.msvcrt.dll__errno]
movzx eax, byte [esp + 0x34]
mov dword [esp + 0x1c], eax
call esi
mov dword [eax], 0
lea eax, [esp + 0x1c]
mov dword [esp + 4], 0x8004667e
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
sub esp, 0xc
cmp eax, 0xffffffff
je 0x44cf2b
xor ebx, ebx
add esp, 0x24
mov eax, ebx
pop ebx
pop esi
ret
mov ebx, eax
call esi
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi], eax
jmp 0x44cf23

Function at 0x44cf40
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x3c
movzx eax, byte [esp + 0x44]
mov dword [esp + 0x10], 4
mov dword [esp + 8], 1
mov dword [esp + 4], 6
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
sub esp, 0x14
add esp, 0x3c
ret

Function at 0x44cfd0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x2c
cmp dword [esp + 0x34], 1
lea edx, [esp + 0x38]
mov dword [esp + 0x10], 4
mov dword [esp + 4], 0xffff
mov dword [esp + 0xc], edx
sbb eax, eax
not eax
add eax, 0x1002
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
sub esp, 0x14
add esp, 0x2c
ret