joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404f20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x46dd68
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x4831a0]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4831a0]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
mov eax, dword [esp + 0xb4]
push 0x1e
mov esi, ecx
xor ebx, ebx
mov ebp, 0xf
push str.SoftwareKuaiZipUpdateChecker
lea ecx, [esp + 0x40]
mov dword [esp + 0x24], eax
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.004036b0
push ebx
push 1
lea ecx, [esp + 0x40]
push ecx
push reloc.WS2_32.dll_accept
lea ecx, [esp + 0x80]
mov dword [esp + 0xbc], ebx
call fcn.00467460
mov edi, 0x10
mov byte [esp + 0xac], 2
cmp dword [esp + 0x50], edi
jb 0x404fcb
mov edx, dword [esp + 0x3c]
push edx
call fcn.00412303
add esp, 4
push esi
lea eax, [esp + 0x58]
push str.taskid.
push eax
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
call fcn.00406450
add esp, 0xc
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x78]
mov byte [esp + 0xb4], 3
call fcn.004675f0
cmp dword [esp + 0x6c], edi
jb 0x405014
mov edx, dword [esp + 0x58]
push edx
call fcn.00412303
add esp, 4
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x2c]
mov edx, ecx
sub edx, eax
cmp edx, edi
jne 0x4050bc
mov dword [esp + 0x18], esi
mov esi, eax
cmp eax, ecx
jbe 0x405048
call fcn.00412ade
mov edi, dword [esp + 0x20]
lea esp, [esp]
mov ebp, dword [esp + 0x30]
cmp dword [esp + 0x2c], ebp
jbe 0x40505f
call fcn.00412ade
cmp edi, ebx
je 0x405069
cmp edi, dword [esp + 0x20]
je 0x40506e
call fcn.00412ade
cmp esi, ebp
je 0x4050b4
cmp edi, ebx
jne 0x4050ac
call fcn.00412ade
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x405087
call fcn.00412ade
mov eax, dword [esp + 0x18]
mov cl, byte [esi]
mov byte [eax], cl
inc eax
mov dword [esp + 0x18], eax
cmp edi, ebx
jne 0x4050b0
call fcn.00412ade
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4050a9
call fcn.00412ade
inc esi
jmp 0x405050
mov eax, dword [edi]
jmp 0x40507d
mov eax, dword [edi]
jmp 0x40509f
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x4050c9
push eax
call fcn.00412303
add esp, 4
mov edx, dword [esp + 0x20]
push edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.00412303
add esp, 4
lea ecx, [esp + 0x70]
call fcn.00467440
mov eax, esi
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0041230e
add esp, 0x9c
ret 4
Function at 0x406b90
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
push ebx
push ebp
movzx ebp, word [eax]
mov ecx, 0x76c
push edi
cmp bp, cx
jae 0x406bb9
mov dword [esi], 0
mov dword [esi + 4], 0
mov eax, esi
pop edi
pop ebp
pop ebx
add esp, 0x10
ret
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xa]
movzx edi, word [eax + 8]
movzx ebx, word [eax + 6]
movzx eax, word [eax + 2]
push eax
movzx eax, bp
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00406ac0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
pop edi
pop ebp
mov dword [esi], ecx
mov dword [esi + 4], edx
mov eax, esi
pop ebx
add esp, 0x10
ret
Function at 0x409260
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push ebx
push esi
push str.ADC7C165_842A_42f0_BD5A_86E335163ED1
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x409328
call fcn.00403940
test al, al
je 0x409328
push 0x11
push str.updatechecker.run
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.004036b0
push 1
push 4
push ebx
push 1
push 1
push 1
lea eax, [esp + 0x24]
push 1
push eax
call fcn.0046bf80
add esp, 0x20
cmp dword [esp + 0x24], 0x10
jb 0x4092e8
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00412303
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
call fcn.00409340
test al, al
je 0x40930f
lea edx, [esp + 0xc]
push edx
call fcn.00409630
cmp dword [esp + 0x24], 0x10
jb 0x409323
mov eax, dword [esp + 0x10]
push eax
call fcn.00412303
add esp, 4
call fcn.0046bae0
cmp esi, ebx
je 0x409333
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40d320
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d928
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x4831a0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x94], ecx
mov eax, dword [ebp - 0x94]
cmp dword [eax + 0x3c], 0
je 0x40d36e
mov ecx, dword [ebp - 0x94]
movzx edx, byte [ecx + 0x41]
test edx, edx
jne 0x40d37a
mov al, 1
jmp 0x40d53a
mov dword [ebp - 0x10], 8
call fcn.00402d00
push eax
mov eax, dword [ebp - 0x94]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x94]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x3c], eax
call fcn.00402d00
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.00402cd0
add esp, 8
movzx eax, al
test eax, eax
je 0x40d3c3
xor al, al
jmp 0x40d53a
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.0040d070
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
lea ebx, [ebp - 0x48]
lea edi, [ebp - 0x34]
call fcn.00405d10
mov ecx, eax
call fcn.0040d560
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.00403220
add esi, eax
push esi
lea ebx, [ebp - 0x50]
lea edi, [ebp - 0x34]
call fcn.00405d10
mov ecx, eax
call fcn.0040d560
push eax
mov edx, dword [ebp - 0x94]
add edx, 0x44
push edx
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax + 0x3c]
call fcn.0040d6c0
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
je 0x40d44e
cmp dword [ebp - 0x98], 1
je 0x40d458
cmp dword [ebp - 0x98], 3
je 0x40d4f6
jmp 0x40d50e
mov ecx, dword [ebp - 0x94]
mov byte [ecx + 0x41], 0
lea ebx, [ebp - 0x58]
lea edi, [ebp - 0x34]
call fcn.00405d10
mov ecx, eax
call fcn.0040d560
mov edx, dword [ebp - 0x14]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x40d4bc
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea ebx, [ebp - 0x60]
lea edi, [ebp - 0x34]
call fcn.00405d10
mov ecx, eax
call fcn.0040d560
push eax
call fcn.00416b0c
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x40d4bc
mov byte [ebp - 0x61], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004037e0
mov al, byte [ebp - 0x61]
jmp 0x40d53a
mov eax, dword [ebp - 0x94]
movzx ecx, byte [eax + 0x41]
test ecx, ecx
jne 0x40d4e2
mov byte [ebp - 0x62], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004037e0
mov al, byte [ebp - 0x62]
jmp 0x40d53a
cmp dword [ebp - 0x38], 0
jne 0x40d4f4
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.00403160
jmp 0x40d526
mov byte [ebp - 0x63], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004037e0
mov al, byte [ebp - 0x63]
jmp 0x40d53a
mov byte [ebp - 0x64], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004037e0
mov al, byte [ebp - 0x64]
jmp 0x40d53a
jmp 0x40d3d6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0041230e
mov esp, ebp
pop ebp
ret
Function at 0x41230e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4831a0]
jne 0x412318
repz ret
jmp fcn.00419a56

Function at 0x426637
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.0041b333
and dword [ebp - 4], 0
cmp dword [0x485730], 0
mov ebx, eax
jne 0x4266e8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x426799
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x426799
push eax
call fcn.0041b2c1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x485730], eax
call esi
push eax
call fcn.0041b2c1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x485734], eax
call esi
push eax
call fcn.0041b2c1
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x485738], eax
call esi
push eax
call fcn.0041b2c1
pop ecx
mov dword [0x485740], eax
test eax, eax
je 0x4266e8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041b2c1
pop ecx
mov dword [0x48573c], eax
mov eax, dword [0x48573c]
cmp eax, ebx
je 0x426740
cmp dword [0x485740], ebx
je 0x426740
push eax
call fcn.0041b33c
push dword [0x485740]
mov esi, eax
call fcn.0041b33c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x426740
test edi, edi
je 0x426740
call esi
test eax, eax
je 0x426737
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x426737
test byte [ebp - 0xc], 1
jne 0x426740
or dword [ebp + 0x10], 0x200000
jmp 0x426779
mov eax, dword [0x485734]
cmp eax, ebx
je 0x426779
push eax
call fcn.0041b33c
pop ecx
test eax, eax
je 0x426779
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x426779
mov eax, dword [0x485738]
cmp eax, ebx
je 0x426779
push eax
call fcn.0041b33c
pop ecx
test eax, eax
je 0x426779
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x485730]
call fcn.0041b33c
pop ecx
test eax, eax
je 0x426799
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42679b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42dc30
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x46c753
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4831a0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x485758
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esp + 0x18], ebx
mov dword [ecx], 0x485758
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x47bc75
mov byte [esp + 0x20], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.0042edf0
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x430dc0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4831a0]
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 0x430e15
mov eax, dword [esp]
cmp al, 2
jne 0x430e0f
shr eax, 8
cmp al, 2
jne 0x430e0f
call fcn.00431b40
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0041230e
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.0041230e
add esp, 0x194
ret

Function at 0x4314b0
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x4314d2
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4314c6
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x431502
cmp dword [esi + 8], 0
jne 0x4314f5
mov ecx, dword [eax + 8]
push 0x471b20
push ecx
call fcn.00416993
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4314f5
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.00416f64
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x431524
mov eax, dword [esi + 8]
test eax, eax
je 0x43151e
push eax
call fcn.00416c05
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x43c710
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 0x43c742
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 0x43c880
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x43c89b
mov edx, dword [esi + 0x134]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x43c8cf
cmp eax, 2
jg 0x43c8cf
mov ecx, dword [esi + 0x130]
push ecx
push 1
lea edx, [eax + eax*2 + 0x472f28]
push 2
push edx
call fcn.00416b0c
mov eax, dword [esi + 0x130]
push eax
push 1
push edi
push ebx
call fcn.00416b0c
add esp, 0x20
xor eax, eax
ret

Function at 0x43cbe0
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 + 0x154]
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
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x43cc5d
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x43cc34
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.00442170
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.0043ca60
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x8624], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x43ea90
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
cmp dword [esi + 0x480], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x43eace
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0043c9d0
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0x484]
push edx
mov dword [esp + 0xc], 1
call fcn.004411c0
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x488]
push eax
call fcn.004411c0
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x43eb47
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.0043c9d0
add esp, 0x10
add esp, 0x14
ret
Function at 0x43f140
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4831a0]
xor eax, esp
mov dword [esp + 0x108], eax
push ebp
mov ebp, dword [esp + 0x114]
cmp dword [ebp + 0x8c], 2
push edi
mov edi, dword [ebp]
mov dword [esp + 0xc], edi
je 0x43f2b5
cmp dword [ebp + 0x270], 0
push ebx
push esi
jne 0x43f2aa
mov esi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x9c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x43f1cc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.00442170
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.0043ca60
add esp, 0x18
jmp 0x43f2b3
push ebx
lea edx, [esp + 0x1c]
push 0
push edx
mov dword [esp + 0x1c], ebx
call fcn.00416f90
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x43f219
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.00442170
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.0043ca60
add esp, 0x18
jmp 0x43f2b3
lea edi, [ebp + 0xb8]
lea ebx, [ebp + 0xe8]
lea esi, [esp + 0x98]
call fcn.0043f100
test eax, eax
jne 0x43f25a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.00442170
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.0043ca60
add esp, 0x18
jmp 0x43f2b3
lea edi, [ebp + 0x58]
mov ecx, 0xb
lea esi, [ebp + 0xb8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ebx, [ebp + 0x11c]
lea edi, [ebp + 0xec]
lea esi, [esp + 0x18]
call fcn.0043f100
test eax, eax
jne 0x43f2aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.00442170
push eax
mov eax, dword [esp + 0x20]
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.0043ca60
add esp, 0x18
jmp 0x43f2b3
push ebp
call fcn.0043f0a0
add esp, 4
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
pop edi
pop ebp
xor ecx, esp
call fcn.0041230e
add esp, 0x10c
ret

Function at 0x43f2d0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x364]
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 0x43f313
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00442170
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0043c9d0
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0043c9d0
add esp, 8
pop esi
pop ecx
ret
Function at 0x43f330
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xac
mov eax, dword [0x4831a0]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [0x4857a8]
push esi
mov dword [esp + 4], 0x4020
mov dword [esp + 8], 0
mov dword [esp + 0xc], 4
test eax, eax
jne 0x43f3f4
push 0x9c
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00416f90
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
push 3
push 2
push 0
push 0
mov dword [esp + 0x20], 0x9c
mov dword [esp + 0x24], 6
call esi
push 3
push 1
push edx
push eax
call esi
push 3
push 0x20
push edx
push eax
call esi
push 3
push 0x10
push edx
push eax
call esi
push edx
push eax
push 0x33
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x43f3e8
mov dword [0x4857a8], 2
pop esi
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.0041230e
add esp, 0xac
ret
mov dword [0x4857a8], 1
jmp 0x43f3f9
cmp eax, 2
je 0x43f441
mov esi, dword [esp + 0xb4]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x43f429
mov ecx, dword [esp + 8]
cmp ecx, dword [esp + 4]
jg 0x43f441
push 4
lea edx, [esp + 8]
push edx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [esp + 0xac]
pop esi
xor ecx, esp
call fcn.0041230e
add esp, 0xac
ret

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

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x5e8]
test esi, esi
je 0x43f4d9
mov eax, dword [edi + 0x44]
test eax, eax
jne 0x43f49f
cmp dword [edi + 0x40], eax
je 0x43f4d9
mov dword [esp + 8], esi
mov dword [esp + 0xc], 0
test eax, eax
jne 0x43f4b2
mov eax, dword [edi + 0x40]
push 0x43f460
lea ecx, [esp + 0xc]
add eax, 0x68
push ecx
push eax
call fcn.0045d880
add esp, 0xc
cmp dword [esp + 0xc], 0
jne 0x43f4e2
mov dword [edi + 0x5e8], 0
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x43f4ec
mov dword [eax], esi
cmp dword [esi + 0x17c], 0
mov edi, dword [esi + 0x154]
je 0x43f511
push esi
call fcn.004331c0
add esp, 4
test eax, eax
jne 0x43f525
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
push 2
push 1
lea edx, [esp + 0x1c]
push edx
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x43f4d9
mov eax, edi
pop edi
pop esi
add esp, 8
ret
Function at 0x4411f0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
push eax
call fcn.004411e0
add esp, 4
mov dword [esp + 0xc], eax
jmp fcn.004227fa

Function at 0x441270
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebx
push ebp
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [esp + 0x20]
push edx
push eax
push ecx
mov dword [esp + 0x18], ebx
xor ebp, ebp
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x441421
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x4413ff
push esi
jmp 0x4412c0
cmp dword [edi + 4], 2
jne 0x441378
cmp dword [edi + 0x18], ebx
je 0x441378
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x441378
cmp eax, 0x10
jb 0x441378
push 0x20
call dword [0x4845b0]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x441385
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
call dword [0x4845b0]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x44138f
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x441365
push eax
call dword [0x4845bc]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x4413a3
cmp dword [esp + 0x10], ebx
jne 0x44136f
mov dword [esp + 0x10], esi
cmp ebp, ebx
je 0x441376
mov dword [ebp + 0x1c], esi
mov ebp, esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x4412c0
jmp 0x4413bf
mov dword [esp + 0x14], 8
jmp 0x4413bf
push esi
mov dword [esp + 0x18], 8
call dword [0x4845b4]
add esp, 4
jmp 0x4413bf
mov edx, dword [esi + 0x18]
push edx
mov dword [esp + 0x18], 8
call dword [0x4845b4]
push esi
call dword [0x4845b4]
add esp, 8
mov eax, dword [esp + 0x18]
pop esi
cmp eax, ebx
je 0x4413cf
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0x10], ebx
je 0x4413f9
mov eax, dword [esp + 0xc]
push eax
call fcn.00441230
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
mov ecx, ebx
pop ebp
mov dword [esp + 4], ebx
mov dword [edx], ecx
pop ebx
add esp, 0xc
ret
cmp dword [esp + 0xc], ebx
jne 0x441412
push 0x2af9
mov dword [esp + 0x14], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov dword [edx], ecx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x441760
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.00465dc6
add esp, 0x18
test eax, eax
je 0x441783
cmp eax, 0xffffffff
jne 0x441785
xor eax, eax
ret
Function at 0x442a10
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x442a1f
jmp dword [ecx*4 + 0x442a74]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret