joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409802
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1048
call fcn.0040d8e0
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp word [esi], bx
je 0x409a1d
push esi
call fcn.0040d86a
pop ecx
cmp eax, 0x7f6
jae 0x409a1d
push edi
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.0040d7f0
movzx ecx, word [esi]
add esp, 0xc
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], 0x1c0
cmp cx, 0x22
jne 0x40985d
lea eax, [esi + 2]
mov dword [ebp - 0x38], eax
jmp 0x409860
mov dword [ebp - 0x38], esi
xor eax, eax
cmp cx, bx
je 0x4098b6
mov ecx, esi
cmp word [ecx], 0x22
jne 0x409888
jmp 0x409878
cmp word [esi + eax*2], 0x22
je 0x409881
inc eax
cmp word [esi + eax*2], bx
jne 0x409871
jmp 0x409888
push 0x20
pop ecx
mov word [esi + eax*2], cx
cmp word [esi + eax*2], 0x20
je 0x4098a2
cmp word [esi + eax*2 + 2], 0x2f
je 0x4098a2
inc eax
lea ecx, [esi + eax*2]
cmp word [ecx], bx
jne 0x409869
jmp 0x4098b6
lea eax, [esi + eax*2]
cmp word [eax], 0x20
jne 0x4098b0
xor ecx, ecx
mov word [eax], cx
add eax, 2
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x4098c2
cmp word [eax], bx
jne 0x4098d7
cmp byte [ebp + 0xc], bl
jne 0x4098d7
cmp word [0x4314fa], bx
je 0x4098d7
mov dword [ebp - 0x34], 0x4314fa
push dword [ebp - 0x38]
mov dword [ebp - 0x2c], 1
call fcn.004064a9
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x409903
push str..inf
push eax
call fcn.0040c21d
test eax, eax
jne 0x409903
mov dword [ebp - 0x3c], 0x41d870
push dword [ebp - 0x38]
call fcn.00403aca
test al, al
je 0x40992c
push 0x800
lea eax, [ebp - 0x1048]
push eax
push dword [ebp - 0x38]
call fcn.004067ed
lea eax, [ebp - 0x1048]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x409a1c
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
mov byte [ebp - 1], bl
mov edi, 0x3e8
cmp byte [0x4304f0], bl
jne 0x409961
cmp byte [ebp + 0xc], bl
jne 0x409961
cmp byte [0x4304dd], bl
je 0x4099be
cmp dword [ebp + 8], ebx
je 0x40997d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40997d
push ebx
push dword [ebp + 8]
call esi
mov byte [ebp - 1], 1
push 0x7d0
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x10]
call fcn.00408c60
cmp byte [0x4304dd], bl
je 0x4099be
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4099be
mov eax, dword [ebp - 0xc]
add eax, edi
cmp eax, dword [0x4304e0]
jbe 0x4099be
mov dword [0x4304e0], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], ebx
je 0x4099dd
push 0x41d864
push dword [ebp - 8]
call fcn.0040c21d
test eax, eax
je 0x409a0b
cmp byte [0x4304f0], bl
je 0x4099f6
cmp byte [ebp + 0xc], bl
jne 0x4099f6
mov dword [0x4304e4], 0x1b58
jmp 0x409a0b
xor eax, eax
cmp byte [ebp + 0xc], bl
sete al
dec eax
and eax, 0xfffffce0
add eax, edi
mov dword [0x4304e4], eax
cmp byte [ebp - 1], bl
je 0x409a1c
cmp byte [ebp + 0xc], bl
je 0x409a1c
push 1
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x401920
Capabilities:
Get common file path

Disassembly:
push ebp
push esi
push edi
xor edi, edi
test ebx, ebx
je 0x40199b
mov ebp, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edi
push edi
call ebp
push ebx
mov esi, eax
call fcn.004644ca
add eax, esi
add esp, 4
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x401957
pop edi
pop esi
pop ebp
ret
push esi
push edi
call ebp
mov ebp, eax
cmp word [edi + ebp*2 - 2], 0x5c
je 0x40196e
mov word [edi + ebp*2], 0x5c
add ebp, 1
push ebx
xor esi, esi
call fcn.004644ca
add esp, 4
test eax, eax
jbe 0x40199b
lea ebp, [edi + ebp*2]
mov cx, word [ebx + esi*2]
mov word [ebp], cx
push ebx
add esi, 1
add ebp, 2
call fcn.004644ca
add esp, 4
cmp esi, eax
jb 0x401980
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x402ad0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x14
push ebp
mov ebp, dword [esp + 0x1c]
push esi
xor esi, esi
cmp dword [0x4ce200], esi
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0x24
mov dword [esp + 0x14], 0x26
mov dword [esp + 0x18], 0x2a
jne 0x402b66
push 3
push 0x20
push 3
push 1
push 3
push 2
push esi
push esi
call sub.KERNEL32.dll_VerSetConditionMask
push edx
push eax
call sub.KERNEL32.dll_VerSetConditionMask
push edx
push eax
call sub.KERNEL32.dll_VerSetConditionMask
push edx
push eax
push 0x23
push 0x4ce200
mov dword [0x4ce200], 0x11c
mov dword [0x4ce204], 6
mov dword [0x4ce208], 1
mov word [0x4ce314], si
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
neg eax
sbb eax, eax
add eax, 1
mov dword [0x4cc17c], eax
jmp 0x402b6b
mov eax, dword [0x4cc17c]
cmp eax, esi
je 0x402b7a
pop esi
mov eax, 1
pop ebp
add esp, 0x14
ret
cmp ebp, esi
je 0x402c9a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push edi
push esi
push esi
push esi
push ebp
call ebx
mov edi, eax
test edi, edi
je 0x402c98
lea eax, [edi + edi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [esp + 0x10], eax
je 0x402c98
push 0
mov ecx, eax
push ecx
push edi
push ebp
call ebx
cmp edi, eax
jbe 0x402c98
mov ebp, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ebx, ebx
jmp 0x402bd0
mov eax, dword [esp + ebx*4 + 0x18]
cmp eax, 0x26
jne 0x402c4f
push 0
push 0
push str._ProgramW6432_
call ebp
mov edi, eax
test edi, edi
je 0x402c98
lea edx, [edi + edi + 2]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x402c98
push edi
push esi
push str._ProgramW6432_
call ebp
cmp edi, eax
jne 0x402c98
push esi
push str._ProgramW6432_
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x402c36
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x4ad8ac
push 0x26
jmp 0x402c55
cmp word [esi + edi*2 - 4], 0x5c
je 0x402c63
push 0x4bbf18
add edi, 1
push edi
push esi
call fcn.00402920
jmp 0x402c63
push 0x4ad8ac
push eax
call fcn.004029c0
mov esi, eax
add esp, 8
test esi, esi
je 0x402c98
push esi
call fcn.004644ca
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
call fcn.004571c8
add esp, 0x10
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x14], eax
jne 0x402c98
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
add ebx, 1
xor esi, esi
cmp ebx, 3
jl 0x402bd0
pop edi
pop ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov eax, dword [esp + 0xc]
pop esi
pop ebp
add esp, 0x14
ret

Function at 0x403040
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push eax
mov eax, dword [esp + 0xc]
call fcn.00402ed0
mov esi, eax
add esp, 4
test esi, esi
je 0x403082
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403064
test al, 0x50
je 0x403082
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x403077
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop esi
ret
mov eax, esi
pop esi
ret
Function at 0x403810
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2c]
sub esp, 0x2c
push 0xffffffffffffffff
push 0x473419
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc60
push ebx
push esi
push edi
mov dword [ebp - 0x6c], 0
mov edi, dword [ebp + 0x34]
mov ecx, edi
push 0x4ad8ac
mov dword [ebp - 4], 0
call fcn.00409bc0
mov eax, 0x43
mov dword [ebp - 4], 0
mov word [ebp - 0x2c], ax
mov edx, 0x72
mov eax, 0x52
mov dword [ebp - 0x6c], 1
mov word [ebp - 0x5c], ax
mov ebx, 0x6f
mov eax, 0x4d
mov dword [ebp - 0x2a], 0x720075
mov word [ebp - 0x56], ax
mov eax, 0x65
push 0x800
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0xc6c]
push 0
push eax
mov dword [ebp - 0x42], 0x690057
mov dword [ebp - 0x54], 0x630069
mov dword [ebp - 0x60], 0x410057
mov dword [ebp - 0x5a], 0x5c0045
mov dword [ebp - 0x68], 0x4f0053
mov dword [ebp - 0x4e], 0x73006f
mov dword [ebp - 0x4a], 0x66006f
mov dword [ebp - 0x1a], 0x730072
mov dword [ebp - 0x64], 0x540046
mov dword [ebp - 0x34], 0x4e0020
mov dword [ebp - 0x24], 0x6e0065
mov dword [ebp - 0x16], 0x6f0069
mov dword [ebp - 0x46], 0x5c0074
mov dword [ebp - 0x30], 0x5c0054
mov dword [ebp - 0x20], 0x560074
mov dword [ebp - 0x38], 0x730077
mov dword [ebp - 0x3e], 0x64006e
mov word [ebp - 0x26], dx
mov word [ebp - 0x50], dx
mov dword [ebp - 0x12], 0x6e
mov word [ebp - 0x3a], bx
mov dword [ebp + 0x12], 0x64006f
mov dword [ebp + 0x16], 0x630075
mov dword [ebp + 0xc], 0x50006c
mov dword [ebp + 8], 0x610074
mov dword [ebp + 0x1a], 0x490074
mov dword [ebp + 4], 0x690067
mov dword [ebp + 0x1e], 0x64
mov dword [ebp], 0x690044
mov word [ebp + 0x10], dx
call fcn.0044ebb0
add esp, 0xc
mov dword [ebp + 0x28], 0x800
lea eax, [ebp + 0x24]
push eax
push 0x101
push 0
lea eax, [ebp - 0x68]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403a3a
lea eax, [ebp + 0x28]
push eax
lea eax, [ebp - 0xc6c]
push eax
push 0
push 0
lea eax, [ebp]
push eax
push dword [ebp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403a31
push 0x400
push eax
lea eax, [ebp - 0x46c]
push eax
call fcn.0044ebb0
push dword [ebp + 0x28]
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0xc6c]
push eax
call fcn.004a8100
lea eax, [ebp - 0x46c]
add esp, 0x18
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4039f0
sub eax, edx
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x403a08
xor eax, eax
jmp 0x403a22
lea eax, [esi + esi]
call fcn.00449aa0
mov eax, esp
lea ecx, [ebp - 0x46c]
push 3
push esi
push ecx
push eax
call fcn.0040a4c0
push eax
push 0x4ad954
push edi
call fcn.0040a0b0
add esp, 0xc
push dword [ebp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
lea esp, [ebp - 0xc78]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x2c]
pop ebp
ret
Function at 0x405040
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4730c6
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
push edi
push 8
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00449588
mov edi, eax
add esp, 4
test edi, edi
je 0x405088
push 1
mov dword [ebp - 4], 0
call fcn.0044b135
add esp, 4
mov dword [edi + 4], eax
jmp 0x40508a
xor edi, edi
lea eax, [esi + 4]
mov dword [esi + 0x34], edi
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405160
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47304a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.0044ab82
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
jne 0x40520f
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.0044e6e4
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x4c8098
push eax
call fcn.0044e766
push eax
push esi
call fcn.0044b238
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x405c90
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x473078
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push esi
mov esi, ecx
mov dword [ebp - 0x10], 0
push 0x5c
push 0
push esi
mov dword [ebp - 4], 0
call fcn.0044ebb0
push dword [ebp + 0x10]
mov dword [esi], 0x67452301
push dword [ebp + 0xc]
mov dword [esi + 4], 0xefcdab89
push esi
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
call fcn.00405f40
mov ecx, dword [ebp + 0x24]
add esp, 0x18
test ecx, ecx
je 0x405d0d
cmp dword [ebp + 0x28], 0x10
lea eax, [ebp + 0x14]
push ecx
cmovae eax, dword [ebp + 0x14]
push eax
push esi
call fcn.00405f40
add esp, 0xc
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00405ba0
push 0x5c
push 0
push esi
mov byte [ebp - 4], 1
call fcn.0044ebb0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0x10
cmovae eax, dword [ebp - 0x28]
push eax
push esi
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
call fcn.00405f40
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00405f40
mov ecx, dword [ebp + 0x24]
add esp, 0x24
test ecx, ecx
je 0x405d81
cmp dword [ebp + 0x28], 0x10
lea eax, [ebp + 0x14]
push ecx
cmovae eax, dword [ebp + 0x14]
push eax
push esi
call fcn.00405f40
add esp, 0xc
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.00405ba0
mov esi, dword [ebp + 8]
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
push esi
call fcn.00404da0
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp eax, 0x10
jb 0x405db6
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00406de0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp eax, 0x10
jb 0x405ddd
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00406de0
mov ecx, dword [ebp + 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp ecx, 0x10
jb 0x405e04
inc ecx
push ecx
push dword [ebp + 0x14]
lea ecx, [ebp + 0x14]
call fcn.00406de0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x24
Function at 0x409090
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4090a3
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4090e6
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4090e2
nop dword [eax + eax]
cmp esi, edx
jae 0x4090e6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4090d0
cmp esi, edx
jb 0x4090ea
xor eax, eax
pop esi
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
ret

Function at 0x40a910
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4cc0f8]
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 0x40a965
mov eax, dword [esp]
cmp al, 2
jne 0x40a95f
shr eax, 8
cmp al, 2
jne 0x40a95f
call fcn.004153d0
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00449d6b
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
mov eax, 2
xor ecx, esp
call fcn.00449d6b
add esp, 0x194
ret
Function at 0x412cb0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x412ccc
cmp dword [esi + 0x6c], 0
je 0x412ccc
push 2
push 3
push esi
call fcn.0041f250
add esp, 0xc
push dword [esp + 0xc]
call fcn.004220f0
add esp, 4
test esi, esi
je 0x412ced
cmp dword [esi + 0x6c], 0
je 0x412ced
push 3
push esi
call fcn.0041f290
add esp, 8
pop esi
ret

Function at 0x4135e0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x2c8], 2
je fcn.00413590
mov al, 1
ret
Function at 0x41c510
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x4cc0f8]
xor eax, esp
mov dword [esp + 0x104], eax
push edi
mov edi, dword [esp + 0x110]
cmp byte [edi + 0x500], 0
jne 0x41c542
cmp dword [edi + 0x160], 0
je 0x41c5f9
push esi
lea eax, [esp + 0x11c]
push eax
push dword [esp + 0x11c]
lea eax, [esp + 0x10]
push 0x100
push eax
call fcn.00428e10
lea esi, [esp + 0x18]
add esp, 0x10
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x41c570
sub esi, ecx
mov ecx, dword [edi + 0x160]
test ecx, ecx
je 0x41c5a5
cmp byte [edi + 0x48c0], al
jne 0x41c5a5
lea edx, [esp + 8]
nop
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x41c590
mov byte [edi + 0x48c0], 1
cmp byte [edi + 0x500], 0
je 0x41c5f8
mov byte [esp + esi + 8], 0xa
inc esi
cmp esi, 0x102
jae 0x41c650
cmp dword [edi + 0x1d0], 0
mov byte [esp + esi + 8], 0
je 0x41c60f
push 1
push edi
call fcn.0040ded0
push dword [edi + 0x15c]
lea eax, [esp + 0x14]
push esi
push eax
mov eax, dword [edi + 0x1d0]
push 0
push edi
call eax
push 0
push edi
call fcn.0040ded0
add esp, 0x24
pop esi
pop edi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00449d6b
add esp, 0x108
ret
push dword [edi + 0x158]
push 1
push 2
push 0x4b0564
call fcn.00451ee3
push dword [edi + 0x158]
lea eax, [esp + 0x1c]
push 1
push esi
push eax
call fcn.00451ee3
mov ecx, dword [esp + 0x12c]
add esp, 0x20
pop esi
pop edi
xor ecx, esp
call fcn.00449d6b
add esp, 0x108
ret
call fcn.00449f4d
int3

Function at 0x41c660
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x4cc0f8]
xor eax, esp
mov dword [esp + 0x804], eax
push edi
mov edi, dword [esp + 0x810]
test edi, edi
je 0x41c73e
cmp byte [edi + 0x500], 0
je 0x41c73e
push esi
lea eax, [esp + 0x81c]
push eax
push dword [esp + 0x81c]
lea eax, [esp + 0x10]
push 0x801
push eax
call fcn.00428e10
lea esi, [esp + 0x18]
add esp, 0x10
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x41c6c0
sub esi, ecx
cmp dword [edi + 0x1d0], 0
je 0x41c713
push 1
push edi
call fcn.0040ded0
push dword [edi + 0x15c]
lea eax, [esp + 0x14]
push esi
push eax
mov eax, dword [edi + 0x1d0]
push 0
push edi
call eax
push 0
push edi
call fcn.0040ded0
add esp, 0x24
pop esi
pop edi
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.00449d6b
add esp, 0x808
ret
push dword [edi + 0x158]
push 1
push 2
push 0x4b0564
call fcn.00451ee3
push dword [edi + 0x158]
lea eax, [esp + 0x1c]
push 1
push esi
push eax
call fcn.00451ee3
add esp, 0x20
pop esi
mov ecx, dword [esp + 0x808]
pop edi
xor ecx, esp
call fcn.00449d6b
add esp, 0x808
ret
Function at 0x41c9a0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x1a8]
call fcn.0041cfb0
add esp, 8
push 0
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [ebp], 0
cmp ebx, 0xffffffff
jne 0x41ca26
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x41c9fe
pop edi
pop esi
mov dword [ebp], 0x51
xor eax, eax
pop ebp
pop ebx
ret
push esi
push edi
call fcn.0042b7b0
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.0041c510
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x48c4], esi
mov eax, ebx
mov dword [ebp], 0x37
pop edi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
mov ecx, dword [esp + 8]
mov eax, ecx
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
shl eax, 4
mov ebp, dword [ebx + ecx*4 + 0x1a8]
lea esi, [ebx + 0x1cc]
add esi, eax
mov eax, dword [ebx + 0x2c0]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x41d068
cmp dword [ebx + ecx*4 + 0x1bc], 0x41c900
jne 0x41d068
cmp dword [esi], 0
je 0x41cffc
test edi, edi
je 0x41d068
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.0041bfe0
add esp, 0x14
cmp eax, 0xffffffff
je 0x41d068
test al, 1
je 0x41d068
cmp dword [esi], 0
jne 0x41d051
mov eax, dword [ebx]
mov eax, dword [eax + 0x4c0]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x4cc070]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x41d051
pop edi
mov dword [esi + 4], eax
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x41d068
add dword [esi + 8], eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x41d070
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x1d0], 0
je 0x41d0b4
push esi
push 1
push edi
call fcn.0040ded0
push dword [edi + 0x15c]
mov eax, dword [edi + 0x1d0]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.0040ded0
add esp, 0x24
mov eax, esi
pop esi
pop edi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x41d0ed
push dword [edi + 0x158]
lea eax, [eax + eax*2]
push 1
add eax, 0x4b0564
push 2
push eax
call fcn.00451ee3
push dword [edi + 0x158]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.00451ee3
add esp, 0x20
xor eax, eax
pop edi
ret
Function at 0x41d1d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x1ec], 0
je 0x41d1ed
push eax
call fcn.00415d80
add esp, 4
test eax, eax
jne 0x41d20f
xor al, al
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x41d1ea
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x41d20f
xor al, al
ret
mov al, 1
ret

Function at 0x41dbd0
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
lea eax, [esp + 0xc]
push 4
push eax
push 1
mov esi, dword [edi]
push 6
push dword [esp + 0x20]
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x41dc18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0042b7b0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0041c660
add esp, 0x14
pop edi
pop esi
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0041c660
add esp, 8
pop edi
pop esi
ret