joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4175a1
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
sub esp, 0xa4
lea ebp, [esp - 4]
mov eax, dword [0x580e04]
xor eax, ebp
mov dword [ebp + 0xa4], eax
push 0x28
mov eax, 0x5290b8
call fcn.0043bcd9
mov eax, dword [ebp + 0xb0]
mov esi, dword [ebp + 0xb4]
xor ebx, ebx
push 0x52cabc
lea ecx, [ebp + 0x88]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ebx
call fcn.00402983
lea ecx, [ebp]
mov dword [ebp - 4], ebx
call fcn.0040ca61
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x417601
mov eax, dword [edi]
jmp 0x417603
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4176f0
cmp dword [esi + 0x18], 8
jb 0x41761a
mov edi, dword [edi]
push ebx
push 0x80
push 4
push ebx
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x41764b
mov ecx, dword [ebp - 0x10]
push 0x52cabc
call fcn.00402983
jmp 0x4176ff
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.0041b8d2
mov esi, eax
cmp esi, ebx
pop ecx
je 0x417639
lea eax, [edi + 1]
push eax
push ebx
push esi
call fcn.0043c2f0
add esp, 0xc
push ebx
lea eax, [ebp - 0x18]
push eax
push edi
push esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push esi
lea ecx, [ebp]
call fcn.0040d430
push esi
call fcn.0041b8d7
pop ecx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp]
call fcn.0040d741
push eax
lea eax, [ebp + 0x6c]
push eax
mov byte [ebp - 4], 1
call fcn.0040b0b6
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.0040139a
cmp dword [ebp + 0x80], ebx
jbe 0x4176e2
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x6c]
push eax
lea ecx, [ebp + 0x88]
call fcn.0040210f
push ebx
push 1
lea ecx, [ebp + 0x6c]
mov byte [ebp - 4], bl
call fcn.004013e5
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x88]
push eax
call fcn.0040220e
push ebx
push 1
lea ecx, [ebp + 0x88]
call fcn.004013e5
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa4]
xor ecx, ebp
call fcn.0043bcca
add ebp, 0xa8
leave
ret 8
Function at 0x4189a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x529293
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x580e04]
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], 0x58b4d4
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], 0x58b4d4
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x52ce75
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.00417d70
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 0x41bfea
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x580e04]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x41c027
push 0x530348
push 4
push eax
call fcn.004443a7
push eax
call fcn.0041bbe0
add esp, 0x10
jmp 0x41c039
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41c0a4
push edi
call fcn.0044444e
mov edi, dword [eax]
call fcn.0044444e
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0043c462
add esp, 0x18
mov ebx, eax
call fcn.0044444e
cmp dword [eax], 0
je 0x41c084
call fcn.0044444e
push dword [eax]
call fcn.0041bdd4
pop ecx
jmp 0x41c08b
call fcn.0044444e
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x41c0a4
cmp ebx, esi
jae 0x41c0a4
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x41c0a6
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043bcca
leave
ret
Function at 0x41f274
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x41f2ba
call fcn.0041ebd5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41f2ba
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x41f2fd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x41f2e6
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x41f2e6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x41f2fa
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4282cd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x428310
call fcn.0041ebd5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x428310
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42832b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00427e87
test ebx, ebx
mov esi, eax
je 0x428329
test edi, edi
je 0x428329
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x42aa1b
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 0x42aa49
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42aa67
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042a985
jmp 0x42aa67
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42aa67
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0042a985
test edi, edi
mov eax, edi
jne 0x42aa51
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x58d130]
test ecx, ecx
je 0x42ab2a
jmp 0x42aa1a
ret 8

Function at 0x43bcca
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x580e04]
jne 0x43bcd4
repz ret
jmp fcn.00446f8c
Function at 0x443a39
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x443a76
cmp dword [ebp + 0x14], edi
je 0x443a76
cmp ecx, edi
jne 0x443a7d
call fcn.0044444e
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0043bee9
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x443a91
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x443ab2
cmp ebx, 0xffffffff
je 0x443aa1
push ebx
push edi
push ecx
call fcn.0043c2f0
add esp, 0xc
cmp esi, edi
je 0x443a5e
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x443a5e
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x443ace
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x443ad5
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x443bc6
test word [esi + 0xc], 0x10c
je 0x443b29
mov eax, dword [esi + 4]
test eax, eax
je 0x443b29
jl 0x443c27
cmp ebx, eax
mov edi, ebx
jb 0x443afa
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x443bce
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0043b888
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x443bbe
cmp ebx, dword [ebp - 0xc]
jb 0x443b96
cmp dword [ebp - 0xc], 0
je 0x443b53
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x443b48
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x443b4f
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x443b5e
mov eax, SysReAllocString
cmp ebx, eax
ja 0x443b5e
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x443bfa
push eax
push dword [ebp - 8]
push esi
call fcn.0044d7b2
pop ecx
push eax
call fcn.0045356b
add esp, 0xc
test eax, eax
je 0x443c39
cmp eax, 0xffffffff
je 0x443c27
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x443bbe
push esi
call fcn.004515d8
cmp eax, 0xffffffff
pop ecx
je 0x443c2b
cmp dword [ebp - 4], 0
je 0x443bfa
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x443add
mov eax, dword [ebp + 0x14]
jmp 0x443a78
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x443be5
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0043c2f0
add esp, 0xc
call fcn.0044444e
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x443a6e
cmp dword [ebp + 0xc], 0xffffffff
je 0x443c10
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0043c2f0
add esp, 0xc
call fcn.0044444e
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x443a6e
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x443a78
or dword [esi + 0xc], 0x10
jmp 0x443c2b
Function at 0x444f37
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x580ff0]
je 0x444f52
inc edi
cmp edi, 0x17
jb 0x444f43
cmp edi, 0x17
jae 0x4450d2
push ebp
push 3
call fcn.00454090
cmp eax, 1
pop ecx
je 0x44509e
push 3
call fcn.00454090
test eax, eax
pop ecx
jne 0x444f86
cmp dword [0x580dd4], 1
je 0x44509e
cmp ebx, 0xfc
je 0x4450d1
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x58d480
push ebp
call fcn.00447098
add esp, 0xc
test eax, eax
je 0x444fbc
push esi
push esi
push esi
push esi
push esi
call fcn.0043bded
add esp, 0x14
push 0x104
mov esi, 0x58d499
push esi
push 0
mov byte [0x58d59d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x445000
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00447098
add esp, 0xc
test eax, eax
je 0x445000
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043bded
add esp, 0x14
push esi
call fcn.0043bf20
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x445045
push esi
call fcn.0043bf20
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x58d794
push 0x5340ac
sub ecx, eax
push ecx
push eax
call fcn.0045005b
add esp, 0x14
test eax, eax
je 0x445045
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043bded
add esp, 0x14
jmp 0x445047
xor esi, esi
push 0x5340a8
push ebx
push ebp
call fcn.0044ffea
add esp, 0xc
test eax, eax
je 0x445067
push esi
push esi
push esi
push esi
push esi
call fcn.0043bded
add esp, 0x14
push dword [edi*8 + 0x580ff4]
push ebx
push ebp
call fcn.0044ffea
add esp, 0xc
test eax, eax
je 0x445089
push esi
push esi
push esi
push esi
push esi
call fcn.0043bded
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00453ed3
add esp, 0xc
jmp 0x4450d1
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4450d1
cmp ebp, 0xffffffff
je 0x4450d1
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x580ff4]
push dword [esi]
call fcn.0043bf20
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x453ed3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00445ae7
xor ebx, ebx
cmp dword [0x58df88], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x453fa9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x454089
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5354e0
push edi
call esi
cmp eax, ebx
je 0x454089
push eax
call fcn.00445a79
mov dword [esp], 0x5354d0
push edi
mov dword [0x58df88], eax
call esi
push eax
call fcn.00445a79
mov dword [esp], 0x5354bc
push edi
mov dword [0x58df8c], eax
call esi
push eax
call fcn.00445a79
mov dword [0x58df90], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00444134
test eax, eax
pop ecx
pop ecx
je 0x453f77
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043bded
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x453fa9
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00445a79
cmp eax, ebx
pop ecx
mov dword [0x58df98], eax
je 0x453fa9
push 0x535488
push edi
call esi
push eax
call fcn.00445a79
pop ecx
mov dword [0x58df94], eax
mov eax, dword [0x58df94]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x45402e
cmp dword [0x58df98], ecx
je 0x45402e
push eax
call fcn.00445af0
push dword [0x58df98]
mov esi, eax
call fcn.00445af0
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x45402e
cmp edi, ebx
je 0x45402e
call esi
cmp eax, ebx
je 0x453ffb
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x453ffb
test byte [ebp - 0x18], 1
jne 0x45402e
lea eax, [ebp - 0x10]
push eax
call fcn.0044416b
test eax, eax
pop ecx
je 0x454016
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043bded
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x454025
or dword [ebp + 0x10], 0x200000
jmp 0x454069
or dword [ebp + 0x10], 0x40000
jmp 0x454069
mov eax, dword [0x58df8c]
cmp eax, dword [ebp - 8]
je 0x454069
push eax
call fcn.00445af0
cmp eax, ebx
pop ecx
je 0x454069
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x454069
mov eax, dword [0x58df90]
cmp eax, dword [ebp - 8]
je 0x454069
push eax
call fcn.00445af0
cmp eax, ebx
pop ecx
je 0x454069
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x58df88]
call fcn.00445af0
cmp eax, ebx
pop ecx
je 0x454089
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45408b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45ae40
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x580e04]
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 0x45ae92
mov eax, dword [esp]
cmp al, 2
jne 0x45ae8c
shr eax, 8
cmp al, 2
jne 0x45ae8c
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0043bcca
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.0043bcca
add esp, 0x194
ret

Function at 0x45c190
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x45c1b2
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x45c1a6
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x45c1e2
cmp dword [esi + 8], 0
jne 0x45c1d5
mov ecx, dword [eax + 8]
push 0x52f990
push ecx
call fcn.00443fba
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x45c1d5
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.00443cd5
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x45c204
mov eax, dword [esi + 8]
test eax, eax
je 0x45c1fe
push eax
call fcn.0043f89d
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 0x467940
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 0x467972
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 0x467ac0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x467adb
mov edx, dword [esi + 0xf4]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x467b0f
cmp eax, 2
jg 0x467b0f
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x537678]
push 2
push edx
call fcn.0043fa78
mov eax, dword [esi + 0xf0]
push eax
push 1
push edi
push ebx
call fcn.0043fa78
add esp, 0x20
xor eax, eax
ret

Function at 0x467e20
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + eax*4 + 0x130]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x467e9d
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x467e74
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.0046c130
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.00467ca0
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x856c], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x468670
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x580e04]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
mov ebp, dword [esp + 0x118]
cmp dword [ebp + 0x1bc], 0
push esi
push edi
mov edi, dword [ebp]
mov dword [esp + 0x14], edi
jne 0x4687ab
mov esi, dword [esp + 0x124]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4686ec
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.0046c130
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.00467ca0
add esp, 0x18
jmp 0x4687b4
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x9c]
push eax
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x46872c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.0046c130
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.00467ca0
add esp, 0x18
jmp 0x4687b4
lea ebx, [ebp + 0xcc]
lea edi, [ebp + 0x9e]
lea esi, [esp + 0x18]
call fcn.00468630
test eax, eax
jne 0x46876a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0046c130
mov ecx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.00467ca0
add esp, 0x18
jmp 0x4687b4
lea ebx, [ebp + 0x100]
lea edi, [ebp + 0xd0]
lea esi, [esp + 0x98]
call fcn.00468630
test eax, eax
jne 0x4687ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0046c130
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.00467ca0
add esp, 0x18
jmp 0x4687b4
push ebp
call fcn.004685d0
add esp, 4
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043bcca
add esp, 0x10c
ret

Function at 0x4687d0
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x314]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x468813
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0046c130
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00467c10
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00467c10
add esp, 8
pop esi
pop ecx
ret

Function at 0x468830
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0x1001
push 0xffff
push esi
mov dword [esp + 0x1c], 0x4020
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x468879
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x468891
push 4
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
add esp, 0xc
ret
Function at 0x4688a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x530]
cmp eax, 0xffffffff
je 0x468904
mov ecx, dword [ecx + 0x524]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x468904
mov ecx, dword [esp + 8]
mov eax, dword [eax]
test ecx, ecx
je 0x4688cc
mov dword [ecx], eax
cmp dword [eax + 0x148], 0
push esi
mov esi, dword [eax + 0x130]
je 0x4688ee
push eax
call fcn.0045d830
add esp, 4
test eax, eax
jne 0x468900
or eax, 0xffffffff
pop esi
ret
push 2
push 1
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
jmp 0x4688e5
mov eax, esi
pop esi
ret
or eax, 0xffffffff
ret
Function at 0x46a660
Capabilities:
Resolve dns

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x46a704
cmp word [ecx + 8], 2
push ebx
push ebp
push edi
jne 0x46a6d5
cmp word [ecx + 0xa], 4
jne 0x46a6d5
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x46a6d5
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
lea esp, [esp]
mov edx, dword [eax]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebx
push ebp
call fcn.0046a5f0
mov dword [esi], eax
test eax, eax
je 0x46a6f8
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x46a6b0
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x24]
push 0x400
push ecx
push 0x401
push edx
call fcn.0045005b
add esp, 0x10
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret 0x18
pop edi
pop ebp
pop ebx
mov eax, 8
pop esi
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x46a714.11001
jmp dword [eax*4 + 0x46a738]
mov eax, 0x2af9
pop esi
ret 0x18
mov eax, 0x2afa
pop esi
ret 0x18
mov eax, 0x2afb
pop esi
ret 0x18