joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ce50
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x5173bb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5685f0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0044777b
push 4
mov dword [esp + 0x20], 0
call fcn.0040eae5
mov edi, eax
add esp, 4
test edi, edi
je 0x40ced0
call fcn.00447419
mov dword [edi], eax
call fcn.0044724d
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00447812
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40cec5
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.00447833
jmp 0x40ced2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x40d690
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [eax]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
push esi
lea esi, [ecx + eax + 0x18]
mov dword [esp + 8], 0
jbe 0x40d738
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x40d6f1
mov edx, dword [esp + 0x1c]
mov edi, dword [edx + 0x38]
test edi, edi
jle 0x40d71a
mov eax, dword [esi - 4]
push 4
push 0x1000
push edi
add eax, ebx
push eax
call ebp
push edi
push 0
push eax
mov dword [esi - 8], eax
call fcn.0042faa0
jmp 0x40d717
mov ecx, dword [esi - 4]
push 4
push 0x1000
push eax
add ecx, ebx
push ecx
call ebp
mov edx, dword [esi]
mov edi, eax
mov eax, dword [esi + 4]
add eax, dword [esp + 0x18]
push edx
push eax
push edi
call fcn.00434740
mov dword [esi - 8], edi
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [esp + 0x10]
movzx ecx, word [edx + 6]
add eax, 1
add esi, 0x28
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x40d6c2
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret
Function at 0x40d740
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [eax]
movzx ecx, word [ebx + 0x14]
push ebp
xor ebp, ebp
cmp word [ebx + 6], bp
lea eax, [ecx + ebx + 0x18]
jbe 0x40d7f7
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x40d795
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40d7dd
test eax, 0x4000000
lea ecx, [edx + ecx*2]
lea edx, [esi + ecx*2]
mov esi, dword [edx*4 + 0x5724c4]
je 0x40d7af
or esi, 0x200
mov edx, dword [edi - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x40d7ca
test al, 0x40
je 0x40d7c1
mov ecx, dword [ebx + 0x20]
jmp 0x40d7c8
test al, al
jns 0x40d7dd
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x40d7dd
mov ecx, dword [edi - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
mov ebx, dword [edx]
movzx eax, word [ebx + 6]
add ebp, 1
add edi, 0x28
cmp ebp, eax
jl 0x40d762
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x40d9a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, dword [esp + 8]
cmp word [ebp], 0x5a4d
je 0x40d9b1
xor eax, eax
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x3c]
add ebx, ebp
cmp dword [ebx], 0x4550
je 0x40d9c4
pop ebx
xor eax, eax
pop ebp
ret
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x34]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 4
push 0x2000
push eax
push ecx
call esi
mov edi, eax
test edi, edi
jne 0x40d9fb
mov edx, dword [ebx + 0x50]
push 4
push 0x2000
push edx
push eax
call esi
mov edi, eax
test edi, edi
je 0x40dab0
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
push 4
mov dword [esi + 4], edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x50]
push 0x1000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx + 0x54]
push 4
push 0x1000
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebx + 0x54]
add edx, dword [ebp + 0x3c]
mov dword [esp + 0x14], eax
push edx
push ebp
push eax
call fcn.00434740
mov eax, dword [ebp + 0x3c]
mov ecx, dword [esp + 0x20]
push esi
add eax, ecx
push ebx
mov dword [esi], eax
push ebp
mov dword [eax + 0x34], edi
call fcn.0040d690
mov eax, edi
add esp, 0x18
sub eax, dword [ebx + 0x34]
je 0x40da7d
push eax
mov eax, esi
call fcn.0040d800
add esp, 4
push esi
call fcn.0040d880
add esp, 4
test eax, eax
je 0x40daab
push esi
call fcn.0040d740
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
add esp, 4
test eax, eax
je 0x40dabe
add eax, edi
je 0x40daab
push 0
push 1
push edi
call eax
test eax, eax
jne 0x40dab7
call fcn.0040db70
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
ret
mov dword [esi + 0x10], 1
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x40df40
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x517d4b
mov eax, dword fs:[0]
push eax
push ebp
push edi
mov eax, dword [0x5685f0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1c]
push 0x54
call fcn.0040eae5
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x14], 0
je 0x40df88
push eax
call fcn.0040dc00
jmp 0x40df8a
xor eax, eax
mov ecx, ebp
mov dword [esp + 0x14], 0xffffffff
mov dword [esi + 0x40], eax
lea edi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x40dfa0
sub ecx, edi
push ecx
push ebp
lea ecx, [eax + 8]
call fcn.00403bb0
mov eax, dword [esi + 0x40]
mov dword [eax + 4], 0
mov ecx, dword [esi + 0x40]
push 9
push str.GET_test1
add ecx, 0x34
call fcn.00403bb0
lea ecx, [esi + 0x14]
push ecx
push 0
push esi
push 0x40e010
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x18], eax
je 0x40dffc
cmp eax, 0xffffffff
je 0x40dffc
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
add esp, 0xc
ret 4

Function at 0x40f701
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5685f0]
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 0x40f73e
push 0x519c38
push 4
push eax
call fcn.00430307
push eax
call fcn.004045a0
add esp, 0x10
jmp 0x40f750
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40f7bb
push edi
call fcn.004303c4
mov edi, dword [eax]
call fcn.004303c4
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.0042a397
add esp, 0x18
mov ebx, eax
call fcn.004303c4
cmp dword [eax], 0
je 0x40f79b
call fcn.004303c4
push dword [eax]
call fcn.0040f677
pop ecx
jmp 0x40f7a2
call fcn.004303c4
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x40f7bb
cmp ebx, esi
jae 0x40f7bb
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x40f7bd
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00429fbb
leave
ret
Function at 0x411156
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 0x41119c
call fcn.004128fc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41119c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x4111df
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 0x4111c8
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 0x4111c8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4111dc
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 0x417a65
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 0x417aa8
call fcn.004128fc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x417aa8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x417ac3
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0041761f
test ebx, ebx
mov esi, eax
je 0x417ac1
test edi, edi
je 0x417ac1
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41aafa
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 0x41ab28
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41ab46
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041aa64
jmp 0x41ab46
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41ab46
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0041aa64
test edi, edi
mov eax, edi
jne 0x41ab30
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x574688]
test ecx, ecx
je 0x41ac09
jmp 0x41aaf9
ret 8

Function at 0x429fbb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5685f0]
jne 0x429fc5
repz ret
jmp fcn.004325d4
Function at 0x43135c
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 + 0x568780]
je 0x431377
inc edi
cmp edi, 0x17
jb 0x431368
cmp edi, 0x17
jae 0x4314f7
push ebp
push 3
call fcn.004400ee
cmp eax, 1
pop ecx
je 0x4314c3
push 3
call fcn.004400ee
test eax, eax
pop ecx
jne 0x4313ab
cmp dword [0x5685c4], 1
je 0x4314c3
cmp ebx, 0xfc
je 0x4314f6
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x574798
push ebp
call fcn.004326d8
add esp, 0xc
test eax, eax
je 0x4313e1
push esi
push esi
push esi
push esi
push esi
call fcn.0042a9b9
add esp, 0x14
push 0x104
mov esi, 0x5747b1
push esi
push 0
mov byte [0x5748b5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x431425
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004326d8
add esp, 0xc
test eax, eax
je 0x431425
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042a9b9
add esp, 0x14
push esi
call fcn.00432740
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43146a
push esi
call fcn.00432740
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x574aac
push 0x51d01c
sub ecx, eax
push ecx
push eax
call fcn.00438316
add esp, 0x14
test eax, eax
je 0x43146a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042a9b9
add esp, 0x14
jmp 0x43146c
xor esi, esi
push 0x51d018
push ebx
push ebp
call fcn.0043825f
add esp, 0xc
test eax, eax
je 0x43148c
push esi
push esi
push esi
push esi
push esi
call fcn.0042a9b9
add esp, 0x14
push dword [edi*8 + 0x568784]
push ebx
push ebp
call fcn.0043825f
add esp, 0xc
test eax, eax
je 0x4314ae
push esi
push esi
push esi
push esi
push esi
call fcn.0042a9b9
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043ff31
add esp, 0xc
jmp 0x4314f6
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4314f6
cmp ebp, 0xffffffff
je 0x4314f6
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x568784]
push dword [esi]
call fcn.00432740
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 0x43ff31
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00431f0c
xor ebx, ebx
cmp dword [0x57529c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x440007
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4400e7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x51e3d8
push edi
call esi
cmp eax, ebx
je 0x4400e7
push eax
call fcn.00431e9e
mov dword [esp], 0x51e3c8
push edi
mov dword [0x57529c], eax
call esi
push eax
call fcn.00431e9e
mov dword [esp], 0x51e3b4
push edi
mov dword [0x5752a0], eax
call esi
push eax
call fcn.00431e9e
mov dword [0x5752a4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00430094
test eax, eax
pop ecx
pop ecx
je 0x43ffd5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042a9b9
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x440007
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00431e9e
cmp eax, ebx
pop ecx
mov dword [0x5752ac], eax
je 0x440007
push 0x51e380
push edi
call esi
push eax
call fcn.00431e9e
pop ecx
mov dword [0x5752a8], eax
mov eax, dword [0x5752a8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x44008c
cmp dword [0x5752ac], ecx
je 0x44008c
push eax
call fcn.00431f15
push dword [0x5752ac]
mov esi, eax
call fcn.00431f15
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x44008c
cmp edi, ebx
je 0x44008c
call esi
cmp eax, ebx
je 0x440059
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x440059
test byte [ebp - 0x18], 1
jne 0x44008c
lea eax, [ebp - 0x10]
push eax
call fcn.004300cb
test eax, eax
pop ecx
je 0x440074
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042a9b9
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x440083
or dword [ebp + 0x10], 0x200000
jmp 0x4400c7
or dword [ebp + 0x10], 0x40000
jmp 0x4400c7
mov eax, dword [0x5752a0]
cmp eax, dword [ebp - 8]
je 0x4400c7
push eax
call fcn.00431f15
cmp eax, ebx
pop ecx
je 0x4400c7
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4400c7
mov eax, dword [0x5752a4]
cmp eax, dword [ebp - 8]
je 0x4400c7
push eax
call fcn.00431f15
cmp eax, ebx
pop ecx
je 0x4400c7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x57529c]
call fcn.00431f15
cmp eax, ebx
pop ecx
je 0x4400e7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4400e9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x447bf0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x5685f0]
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 0x447c42
mov eax, dword [esp]
cmp al, 2
jne 0x447c3c
shr eax, 8
cmp al, 2
jne 0x447c3c
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00429fbb
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.00429fbb
add esp, 0x194
ret

Function at 0x448f40
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x448f62
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x448f56
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x448f92
cmp dword [esi + 8], 0
jne 0x448f85
mov ecx, dword [eax + 8]
push 0x51f5c8
push ecx
call fcn.004fcde1
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x448f85
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.004fd457
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x448fb4
mov eax, dword [esi + 8]
test eax, eax
je 0x448fae
push eax
call fcn.0042a7fd
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 0x4546f0
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 0x454722
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 0x454870
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x45488b
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 0x4548bf
cmp eax, 2
jg 0x4548bf
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x52065c]
push 2
push edx
call fcn.0042a709
mov eax, dword [esi + 0xf0]
push eax
push 1
push edi
push ebx
call fcn.0042a709
add esp, 0x20
xor eax, eax
ret

Function at 0x454bd0
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 0x454c4d
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x454c24
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.00458ee0
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.00454a50
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 0x455420
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x5685f0]
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 0x45555b
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 0x45549c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.00458ee0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.00454a50
add esp, 0x18
jmp 0x455564
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 0x4554dc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.00458ee0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.00454a50
add esp, 0x18
jmp 0x455564
lea ebx, [ebp + 0xcc]
lea edi, [ebp + 0x9e]
lea esi, [esp + 0x18]
call fcn.004553e0
test eax, eax
jne 0x45551a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.00458ee0
mov ecx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.00454a50
add esp, 0x18
jmp 0x455564
lea ebx, [ebp + 0x100]
lea edi, [ebp + 0xd0]
lea esi, [esp + 0x98]
call fcn.004553e0
test eax, eax
jne 0x45555b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.00458ee0
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.00454a50
add esp, 0x18
jmp 0x455564
push ebp
call fcn.00455380
add esp, 4
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00429fbb
add esp, 0x10c
ret

Function at 0x455580
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 0x4555c3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00458ee0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004549c0
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004549c0
add esp, 8
pop esi
pop ecx
ret

Function at 0x4555e0
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 0x455629
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x455641
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 0x455650
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x530]
cmp eax, 0xffffffff
je 0x4556b4
mov ecx, dword [ecx + 0x524]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x4556b4
mov ecx, dword [esp + 8]
mov eax, dword [eax]
test ecx, ecx
je 0x45567c
mov dword [ecx], eax
cmp dword [eax + 0x148], 0
push esi
mov esi, dword [eax + 0x130]
je 0x45569e
push eax
call fcn.0044a5e0
add esp, 4
test eax, eax
jne 0x4556b0
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 0x455695
mov eax, esi
pop esi
ret
or eax, 0xffffffff
ret
Function at 0x457410
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 0x4574b4
cmp word [ecx + 8], 2
push ebx
push ebp
push edi
jne 0x457485
cmp word [ecx + 0xa], 4
jne 0x457485
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x457485
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.004573a0
mov dword [esi], eax
test eax, eax
je 0x4574a8
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x457460
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x24]
push 0x400
push ecx
push 0x401
push edx
call fcn.00438316
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.0x4574c4.11001
jmp dword [eax*4 + 0x4574e8]
mov eax, 0x2af9
pop esi
ret 0x18
mov eax, 0x2afa
pop esi
ret 0x18
mov eax, 0x2afb
pop esi
ret 0x18