joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412c20
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x486ba8
push 0x45b7d0
mov eax, dword fs:[0]
push eax
sub esp, 0x368
mov eax, dword [0x48b914]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x370], ebx
mov dword [ebp - 0x364], 0xffffffff
xor edi, edi
mov dword [ebp - 0x36c], edi
mov byte [ebp - 0x230], 0
push 0x103
push edi
lea eax, [ebp - 0x22f]
push eax
call fcn.004592c0
add esp, 0xc
mov dword [ebp - 4], edi
test esi, esi
je 0x412e12
test ebx, ebx
je 0x412e12
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412ca6
sub eax, edx
je 0x412e12
mov eax, ebx
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412cc0
sub eax, edx
je 0x412e12
call fcn.0040f740
test eax, eax
je 0x412e12
lea ecx, [ebp - 0x230]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call fcn.00416cd0
add esp, 4
mov edi, eax
mov dword [ebp - 0x36c], edi
test edi, edi
je 0x412e12
lea edx, [ebp - 0x360]
push edx
or edx, 0xffffffff
call fcn.00416d40
add esp, 4
mov eax, dword [ebp - 0x360]
mov dword [ebp - 0x368], eax
xor esi, esi
mov dword [ebp - 0x374], esi
cmp esi, dword [ebp - 0x368]
jae 0x412e12
lea ecx, [ebp - 0x360]
push ecx
mov edx, esi
mov eax, edi
call fcn.00416d40
add esp, 4
mov dword [ebp - 0x364], eax
test eax, eax
jne 0x412e12
test byte [ebp - 0x258], 0x10
je 0x412dfe
mov byte [ebp - 0x128], al
push 0x103
push eax
lea edx, [ebp - 0x127]
push edx
call fcn.004592c0
add esp, 0xc
lea ecx, [ebp - 0x35c]
mov dword [ebp - 0x378], ecx
mov al, byte [ecx]
test al, al
je 0x412da5
cmp al, 0x2f
jne 0x412da2
mov byte [ecx], 0x5c
inc ecx
jmp 0x412d8f
lea eax, [ebp - 0x35c]
push eax
mov ecx, dword [ebp - 0x370]
push ecx
push str._s_s
push 0x104
lea edx, [ebp - 0x128]
push edx
call fcn.004551d4
add esp, 0x14
lea ebx, [ebp - 0x128]
call fcn.0040f740
test eax, eax
je 0x412e12
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x254]
push ecx
lea edx, [ebp - 0x24c]
push edx
call fcn.0040f950
add esp, 0xc
inc esi
jmp 0x412d2e
test edi, edi
jne 0x412e40
mov eax, 0x10000
mov dword [0x48fae4], eax
mov dword [ebp - 0x364], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.00412e79
mov eax, dword [ebp - 0x364]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00454d22
mov esp, ebp
pop ebp
ret
cmp dword [edi], 1
je 0x412e4c
mov eax, 0x80000
jmp 0x412e07
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x35c]
push ecx
push eax
mov ecx, esi
call fcn.004169d0
mov dword [0x48fae4], eax
mov dword [ebp - 0x364], eax
test eax, eax
jne 0x412e12
inc esi
jmp 0x412d2e
Function at 0x414c30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x414c37
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x414d14
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x47e2b0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x47e2b0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x47e2b0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x47e2b0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x47e2b0]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x47e2b0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x47e2b0]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x47e2b0]
inc ecx
sub edx, 8
sub esi, 1
jne 0x414c50
pop edi
test edx, edx
je 0x414d3b
jmp 0x414d20
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x47e2b0]
inc ecx
sub edx, 1
jne 0x414d20
not eax
pop esi
ret

Function at 0x415430
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x415462
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x415458
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x14]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x415475
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x10]
push esi
add eax, ecx
push eax
push edx
call fcn.00459340
add dword [edi + 0x18], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret

Function at 0x415490
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x4154c3
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4154bd
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x4154ef
mov eax, dword [esi + 0x14]
push ebx
mov ebx, dword [esi + 0x18]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x4154d5
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x10]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.00459340
add esp, 0xc
add ebx, edi
mov dword [esi + 0x18], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x415506
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x415500
cmp byte [esi + 8], 0
je 0x415500
or eax, 0xffffffff
add esp, 8
ret
Function at 0x4155f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x415635
cmp byte [esi + 1], 0
je 0x41563d
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x415651
cmp byte [esi + 1], 0
je 0x415643
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x41565a
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x18], ecx
jmp 0x41560e
xor eax, eax
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x41565a
mov eax, dword [esi + 0x18]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x41566e
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.00455c84
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x415689
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0
cmp edi, eax
jbe 0x41579c
jmp 0x4156ac
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x4156bd
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x20], eax
cmp ebp, 0x404
jbe 0x4156d6
mov ebp, 0x404
cmp byte [esi], 0
je 0x4156fb
cmp byte [esi + 1], 0
je 0x41579c
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4156fe
mov dword [esi + 0x18], eax
cmp byte [esi], 0
mov edi, ebp
je 0x415726
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x415720
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x41574c
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x415737
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x10]
push edi
add ecx, eax
push ecx
push ebx
call fcn.00459340
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x41579c
lea eax, [ebp - 3]
test eax, eax
jle 0x41578e
lea esp, [esp]
dec eax
cmp byte [eax + ebx], 0x50
jne 0x41577c
cmp byte [eax + ebx + 1], 0x4b
jne 0x41577c
cmp byte [eax + ebx + 2], 5
jne 0x41577c
cmp byte [eax + ebx + 3], 6
je 0x415782
test eax, eax
jg 0x415760
jmp 0x41578e
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
jne 0x41579c
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x4156a0
push ebx
call fcn.00455213
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x416490
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [esi], 0
push edi
jne 0x4164ec
cmp dword [esi + 4], 0xffffffff
jne 0x4164ec
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4164b0
mov ax, word [0x47c5a4]
mov word [edi], ax
mov eax, dword [esp + 0xc]
lea edi, [esp + 0xc]
call fcn.00415390
test eax, eax
jne 0x4164db
mov eax, dword [esp + 0xc]
pop edi
pop ecx
ret 4
call fcn.004157b0
mov dword [esi], eax
mov eax, dword [0x48fae0]
pop edi
pop ecx
ret 4
mov eax, 0x1000000
pop edi
pop ecx
ret 4

Function at 0x4168e0
Capabilities:
Create directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x48b914]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x214]
push edi
mov edi, dword [esp + 0x21c]
test edi, edi
je 0x4169aa
mov al, byte [edi]
test al, al
je 0x4169aa
push esi
mov esi, edi
mov ecx, edi
jmp 0x416920
cmp al, 0x2f
je 0x416928
cmp al, 0x5c
jne 0x41692a
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x416920
cmp esi, edi
je 0x416957
sub esi, edi
push esi
lea eax, [esp + 0x10]
push edi
push eax
call fcn.00457327
lea ecx, [esp + 0x18]
push ecx
push ebx
mov byte [esp + esi + 0x20], 0
call fcn.004168e0
add esp, 0x14
lea edx, [esp + 0x110]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x416962
mov eax, edi
mov edx, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x416970
lea edi, [esp + 0x110]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x416981
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea edx, [esp + 0x114]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop esi
mov ecx, dword [esp + 0x210]
pop edi
pop ebx
xor ecx, esp
call fcn.00454d22
add esp, 0x20c
ret
Function at 0x417380
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp dword [esi + 0x18], 0
je 0x41743c
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
push ebx
push ebp
push edi
mov edi, dword [esp + 0x18]
add eax, edi
cmp eax, ecx
jb 0x41741b
add ecx, ecx
mov ebp, ecx
cmp ecx, eax
ja 0x4173a8
mov ebp, eax
push 0
push ebp
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
je 0x4173dd
push ebp
push 0
push 0
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4173e9
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
mov eax, 0x300
pop ebx
pop ecx
ret 8
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
push ecx
push edx
push edi
call fcn.00459340
mov eax, dword [esi + 0x18]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], edi
mov edi, dword [esp + 0x18]
mov dword [esi + 0x20], ebp
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x1c]
mov edx, dword [esp + 0x14]
add eax, dword [esi + 0x18]
push edi
push edx
push eax
call fcn.00459340
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
pop edi
pop ebp
pop ebx
pop ecx
ret 8
mov eax, dword [esi]
test eax, eax
je 0x417469
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push ecx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp]
pop ecx
ret 8
mov dword [esi + 0xc], 0x1000000
xor eax, eax
pop ecx
ret 8
Function at 0x419e70
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x46e8d0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x48b914]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
call fcn.0044d5aa
push 0
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x38]
push 0x8000
push eax
lea ecx, [esp + 0x1c]
call fcn.0044da06
lea ecx, [esp + 0x10]
call fcn.0044d495
mov esi, eax
lea ecx, [esi + 1]
push ecx
call fcn.00436c63
add esp, 4
mov edi, eax
push esi
push edi
lea ecx, [esp + 0x18]
call fcn.0044d29e
lea ecx, [esp + 0x10]
mov byte [edi + esi], 0
call fcn.0044d544
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call fcn.0044d6b2
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x419f27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret 4

Function at 0x419f40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46e8a0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x48b914]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0
call fcn.0044d5aa
push 0
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x30]
push 0x8000
push eax
lea ecx, [esp + 0x14]
call fcn.0044da06
lea ecx, [esp + 8]
call fcn.0044d495
lea ecx, [esp + 8]
mov esi, eax
call fcn.0044d544
lea ecx, [esp + 8]
mov byte [esp + 0x24], 0
call fcn.0044d6b2
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419fd9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x20
ret 4
Function at 0x41b090
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46f538
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x48b914]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
push 0x47b7b0
lea ecx, [esp + 0x18]
call fcn.00404050
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.SHLWAPI.dll_StrToIntA]
push eax
call esi
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
push 0x47e978
lea ecx, [esp + 0x14]
call fcn.00404050
mov byte [esp + 0x20], 1
mov edx, dword [esp + 0x10]
push edx
call esi
mov ecx, dword [esp + 0x2c]
mov dword [ecx], eax
push 0x47e978
lea ecx, [esp + 0x10]
call fcn.00404050
mov byte [esp + 0x20], 2
mov edx, dword [esp + 0xc]
push edx
call esi
mov ecx, dword [esp + 0x30]
mov dword [ecx], eax
push 0x47f1b8
lea ecx, [esp + 0xc]
call fcn.00404050
mov edx, dword [esp + 8]
push edx
call esi
mov dword [edi], eax
test eax, eax
jne 0x41b13e
mov dword [edi], 0x1e
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b15e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x20], 1
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b183
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x20], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b1a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b1d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret 0xc

Function at 0x41b1f0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x48b914]
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 0x41b242
mov eax, dword [esp]
cmp al, 2
jne 0x41b23c
shr eax, 8
cmp al, 2
jne 0x41b23c
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00454d22
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.00454d22
add esp, 0x194
ret
Function at 0x41ccc0
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x41cce2
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x41ccd6
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x41cd12
cmp dword [esi + 8], 0
jne 0x41cd05
mov ecx, dword [eax + 8]
push 0x47c62c
push ecx
call fcn.004562c4
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x41cd05
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.00458134
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x41cd34
mov eax, dword [esi + 8]
test eax, eax
je 0x41cd2e
push eax
call fcn.00456652
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 0x426cc0
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 0x426cf2
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 0x426e30
Capabilities:
Write file on windows

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

Function at 0x4270b0
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 0x42712d
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x427104
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.0041bf00
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.00427010
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x85e4], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x428940
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
cmp dword [esi + 0x454], 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 0x42897e
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.00426f80
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0x458]
push edx
mov dword [esp + 0xc], 1
call fcn.00431880
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x45c]
push eax
call fcn.00431880
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 0x4289f7
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.00426f80
add esp, 0x10
add esp, 0x14
ret
Function at 0x428fd0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x10c
mov eax, dword [0x48b914]
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 0x429135
cmp dword [ebp + 0x1d0], 0
push ebx
push esi
jne 0x42912a
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 0x429059
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.0041bf00
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.00427010
add esp, 0x18
jmp 0x429133
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 0x429099
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
call fcn.0041bf00
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.00427010
add esp, 0x18
jmp 0x429133
lea edi, [ebp + 0xb8]
lea ebx, [ebp + 0xe8]
lea esi, [esp + 0x18]
call fcn.00428f90
test eax, eax
jne 0x4290d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0041bf00
mov ecx, dword [esp + 0x1c]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.00427010
add esp, 0x18
jmp 0x429133
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 + 0x98]
call fcn.00428f90
test eax, eax
jne 0x42912a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebp
call fcn.0041bf00
mov edx, dword [esp + 0x1c]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.00427010
add esp, 0x18
jmp 0x429133
push ebp
call fcn.00428f30
add esp, 4
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
pop edi
pop ebp
xor ecx, esp
call fcn.00454d22
add esp, 0x10c
ret

Function at 0x429150
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x354]
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 0x429193
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0041bf00
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00426f80
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00426f80
add esp, 8
pop esi
pop ecx
ret