joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403ed0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x469820
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x47d1a0]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
mov eax, dword [0x47d1a0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esi]
mov dword [esp + 0xc], eax
push 0
push 0x475e4c
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], 0
call fcn.00465320
test al, al
jne 0x403f31
lea ecx, [esp + 0xc]
call fcn.004653c0
mov al, 1
jmp 0x403fda
push 0x475e58
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.004653f0
lea edx, [esp + 0xc]
mov bl, 1
push edx
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], bl
call fcn.00405110
test al, al
je 0x403fa4
lea eax, [esp + 0xc]
push eax
call fcn.00405290
test al, al
je 0x403fa4
lea ecx, [esp + 0xc]
push ecx
call fcn.00405370
test al, al
je 0x403fa4
lea edx, [esp + 0xc]
push edx
call fcn.00405490
test al, al
je 0x403fa4
lea eax, [esp + 0xc]
push eax
call fcn.00405560
test al, al
je 0x403fa4
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x14]
call fcn.00405630
test al, al
jne 0x403fa6
xor bl, bl
cmp dword [esp + 0x28], 0x10
jb 0x403fba
mov edx, dword [esp + 0x14]
push edx
call fcn.00412333
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.004653c0
mov al, bl
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0041233e
add esp, 0x34
ret
Function at 0x404f10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x469568
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x47d1a0]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47d1a0]
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.004036a0
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.00462d90
mov edi, 0x10
mov byte [esp + 0xac], 2
cmp dword [esp + 0x50], edi
jb 0x404fbb
mov edx, dword [esp + 0x3c]
push edx
call fcn.00412333
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.00406460
add esp, 0xc
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x78]
mov byte [esp + 0xb4], 3
call fcn.00462f20
cmp dword [esp + 0x6c], edi
jb 0x405004
mov edx, dword [esp + 0x58]
push edx
call fcn.00412333
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 0x4050ac
mov dword [esp + 0x18], esi
mov esi, eax
cmp eax, ecx
jbe 0x405038
call fcn.00412b0e
mov edi, dword [esp + 0x20]
lea esp, [esp]
mov ebp, dword [esp + 0x30]
cmp dword [esp + 0x2c], ebp
jbe 0x40504f
call fcn.00412b0e
cmp edi, ebx
je 0x405059
cmp edi, dword [esp + 0x20]
je 0x40505e
call fcn.00412b0e
cmp esi, ebp
je 0x4050a4
cmp edi, ebx
jne 0x40509c
call fcn.00412b0e
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x405077
call fcn.00412b0e
mov eax, dword [esp + 0x18]
mov cl, byte [esi]
mov byte [eax], cl
inc eax
mov dword [esp + 0x18], eax
cmp edi, ebx
jne 0x4050a0
call fcn.00412b0e
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x405099
call fcn.00412b0e
inc esi
jmp 0x405040
mov eax, dword [edi]
jmp 0x40506d
mov eax, dword [edi]
jmp 0x40508f
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x4050b9
push eax
call fcn.00412333
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.00412333
add esp, 4
lea ecx, [esp + 0x70]
call fcn.00462d70
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.0041233e
add esp, 0x9c
ret 4
Function at 0x406b80
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 0x406ba9
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.00406ab0
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.00403930
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.004036a0
push 1
push 4
push ebx
push 1
push 1
push 1
lea eax, [esp + 0x24]
push 1
push eax
call fcn.00467850
add esp, 0x20
cmp dword [esp + 0x24], 0x10
jb 0x4092e8
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00412333
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.00412333
add esp, 4
call fcn.004673b0
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 0x40d360
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469128
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x47d1a0]
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 0x40d3ae
mov ecx, dword [ebp - 0x94]
movzx edx, byte [ecx + 0x41]
test edx, edx
jne 0x40d3ba
mov al, 1
jmp 0x40d57a
mov dword [ebp - 0x10], 8
call fcn.00402bc0
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.00402bc0
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.00402ce0
add esp, 8
movzx eax, al
test eax, eax
je 0x40d403
xor al, al
jmp 0x40d57a
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.0040d0b0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
lea ebx, [ebp - 0x48]
lea edi, [ebp - 0x34]
call fcn.00405d30
mov ecx, eax
call fcn.0040d5a0
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.00403200
add esi, eax
push esi
lea ebx, [ebp - 0x50]
lea edi, [ebp - 0x34]
call fcn.00405d30
mov ecx, eax
call fcn.0040d5a0
push eax
mov edx, dword [ebp - 0x94]
add edx, 0x44
push edx
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax + 0x3c]
call fcn.0040d700
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
je 0x40d48e
cmp dword [ebp - 0x98], 1
je 0x40d498
cmp dword [ebp - 0x98], 3
je 0x40d536
jmp 0x40d54e
mov ecx, dword [ebp - 0x94]
mov byte [ecx + 0x41], 0
lea ebx, [ebp - 0x58]
lea edi, [ebp - 0x34]
call fcn.00405d30
mov ecx, eax
call fcn.0040d5a0
mov edx, dword [ebp - 0x14]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x40d4fc
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.00405d30
mov ecx, eax
call fcn.0040d5a0
push eax
call fcn.00416b3c
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x40d4fc
mov byte [ebp - 0x61], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004037d0
mov al, byte [ebp - 0x61]
jmp 0x40d57a
mov eax, dword [ebp - 0x94]
movzx ecx, byte [eax + 0x41]
test ecx, ecx
jne 0x40d522
mov byte [ebp - 0x62], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004037d0
mov al, byte [ebp - 0x62]
jmp 0x40d57a
cmp dword [ebp - 0x38], 0
jne 0x40d534
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.00403150
jmp 0x40d566
mov byte [ebp - 0x63], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004037d0
mov al, byte [ebp - 0x63]
jmp 0x40d57a
mov byte [ebp - 0x64], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004037d0
mov al, byte [ebp - 0x64]
jmp 0x40d57a
jmp 0x40d416
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.0041233e
mov esp, ebp
pop ebp
ret
Function at 0x41233e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47d1a0]
jne 0x412348
repz ret
jmp fcn.00419a86

Function at 0x426677
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.0041b363
and dword [ebp - 4], 0
cmp dword [0x47f730], 0
mov ebx, eax
jne 0x426728
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4267d9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4267d9
push eax
call fcn.0041b2f1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x47f730], eax
call esi
push eax
call fcn.0041b2f1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x47f734], eax
call esi
push eax
call fcn.0041b2f1
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x47f738], eax
call esi
push eax
call fcn.0041b2f1
pop ecx
mov dword [0x47f740], eax
test eax, eax
je 0x426728
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041b2f1
pop ecx
mov dword [0x47f73c], eax
mov eax, dword [0x47f73c]
cmp eax, ebx
je 0x426780
cmp dword [0x47f740], ebx
je 0x426780
push eax
call fcn.0041b36c
push dword [0x47f740]
mov esi, eax
call fcn.0041b36c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x426780
test edi, edi
je 0x426780
call esi
test eax, eax
je 0x426777
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x426777
test byte [ebp - 0xc], 1
jne 0x426780
or dword [ebp + 0x10], 0x200000
jmp 0x4267b9
mov eax, dword [0x47f734]
cmp eax, ebx
je 0x4267b9
push eax
call fcn.0041b36c
pop ecx
test eax, eax
je 0x4267b9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4267b9
mov eax, dword [0x47f738]
cmp eax, ebx
je 0x4267b9
push eax
call fcn.0041b36c
pop ecx
test eax, eax
je 0x4267b9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47f730]
call fcn.0041b36c
pop ecx
test eax, eax
je 0x4267d9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4267db
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42dc70
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x468023
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x47d1a0]
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], 0x47f758
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], 0x47f758
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x475d8d
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.0042ee30
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 0x430e00
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x47d1a0]
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 0x430e52
mov eax, dword [esp]
cmp al, 2
jne 0x430e4c
shr eax, 8
cmp al, 2
jne 0x430e4c
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0041233e
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.0041233e
add esp, 0x194
ret

Function at 0x4314f0
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x431512
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x431506
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x431542
cmp dword [esi + 8], 0
jne 0x431535
mov ecx, dword [eax + 8]
push 0x46dad8
push ecx
call fcn.004169c3
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x431535
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.00416f94
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x431564
mov eax, dword [esi + 8]
test eax, eax
je 0x43155e
push eax
call fcn.00416c35
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 0x43ba90
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 0x43bac2
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 0x43bc00
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x43bc1b
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 0x43bc4f
cmp eax, 2
jg 0x43bc4f
mov ecx, dword [esi + 0x130]
push ecx
push 1
lea edx, [eax + eax*2 + 0x46ee20]
push 2
push edx
call fcn.00416b3c
mov eax, dword [esi + 0x130]
push eax
push 1
push edi
push ebx
call fcn.00416b3c
add esp, 0x20
xor eax, eax
ret

Function at 0x43bf60
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 0x43bfdd
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x43bfb4
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.004416a0
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.0043bde0
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x8614], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x43de10
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
cmp dword [esi + 0x470], 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 0x43de4e
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0043bd50
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0x474]
push edx
mov dword [esp + 0xc], 1
call fcn.00454290
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x478]
push eax
call fcn.00454290
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 0x43dec7
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.0043bd50
add esp, 0x10
add esp, 0x14
ret
Function at 0x43e4c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x47d1a0]
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 0x43e635
cmp dword [ebp + 0x1d8], 0
push ebx
push esi
jne 0x43e62a
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 0x43e54c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.004416a0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.0043bde0
add esp, 0x18
jmp 0x43e633
push ebx
lea edx, [esp + 0x1c]
push 0
push edx
mov dword [esp + 0x1c], ebx
call fcn.00416fc0
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 0x43e599
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.004416a0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.0043bde0
add esp, 0x18
jmp 0x43e633
lea edi, [ebp + 0xb8]
lea ebx, [ebp + 0xe8]
lea esi, [esp + 0x98]
call fcn.0043e480
test eax, eax
jne 0x43e5da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.004416a0
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.0043bde0
add esp, 0x18
jmp 0x43e633
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.0043e480
test eax, eax
jne 0x43e62a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.004416a0
push eax
mov eax, dword [esp + 0x20]
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.0043bde0
add esp, 0x18
jmp 0x43e633
push ebp
call fcn.0043e420
add esp, 4
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
pop edi
pop ebp
xor ecx, esp
call fcn.0041233e
add esp, 0x10c
ret

Function at 0x43e650
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 0x43e693
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004416a0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0043bd50
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0043bd50
add esp, 8
pop esi
pop ecx
ret
Function at 0x43e6b0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xac
mov eax, dword [0x47d1a0]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [0x47f794]
push esi
mov dword [esp + 4], 0x4020
mov dword [esp + 8], 0
mov dword [esp + 0xc], 4
test eax, eax
jne 0x43e774
push 0x9c
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00416fc0
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 0x43e768
mov dword [0x47f794], 2
pop esi
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.0041233e
add esp, 0xac
ret
mov dword [0x47f794], 1
jmp 0x43e779
cmp eax, 2
je 0x43e7c1
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 0x43e7a9
mov ecx, dword [esp + 8]
cmp ecx, dword [esp + 4]
jg 0x43e7c1
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.0041233e
add esp, 0xac
ret

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

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x5d8]
test esi, esi
je 0x43e859
mov eax, dword [edi + 0x44]
test eax, eax
jne 0x43e81f
cmp dword [edi + 0x40], eax
je 0x43e859
mov dword [esp + 8], esi
mov dword [esp + 0xc], 0
test eax, eax
jne 0x43e832
mov eax, dword [edi + 0x40]
push 0x43e7e0
lea ecx, [esp + 0xc]
add eax, 0x68
push ecx
push eax
call fcn.00459910
add esp, 0xc
cmp dword [esp + 0xc], 0
jne 0x43e862
mov dword [edi + 0x5d8], 0
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x43e86c
mov dword [eax], esi
cmp dword [esi + 0x17c], 0
mov edi, dword [esi + 0x154]
jne 0x43e859
push 2
push 1
lea edx, [esp + 0x1c]
push edx
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x43e859
mov eax, edi
pop edi
pop esi
add esp, 8
ret