joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411982
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
push edi
mov edx, 0xff
mov esi, dword [ecx]
movzx edi, byte [esp + 0x10]
mov eax, esi
and eax, edx
xor eax, edi
shr esi, 8
mov eax, dword [eax*4 + 0x45ba0c]
xor eax, esi
mov esi, dword [ecx + 8]
mov dword [ecx], eax
and eax, edx
add eax, dword [ecx + 4]
mov edi, esi
and edi, edx
imul eax, eax, 0x8088405
inc eax
mov dword [ecx + 4], eax
shr eax, 0x18
xor eax, edi
pop edi
shr esi, 8
mov eax, dword [eax*4 + 0x45ba0c]
xor eax, esi
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x412193
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x4121c7
lea eax, [ebp + 8]
push 0
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4121c2
mov byte [esi + 8], 1
mov eax, dword [ebp + 8]
jmp 0x4121ef
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x4121d8
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
pop edi
div dword [ebp + 0xc]
pop esi
pop ebp
ret

Function at 0x412f8d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x413035
cmp dword [esi + 4], 0xffffffff
jne 0x413035
push edi
lea edi, [esi + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
call sub.MSVCRT.dll_strlen
mov al, byte [eax + esi + 0x13f]
pop ecx
cmp al, 0x5c
je 0x412fdd
cmp al, 0x2f
je 0x412fdd
push 0x464168
push edi
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
cmp dword [ebp + 0x10], 1
pop edi
jne 0x412fff
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x412fff
mov eax, 0x2000000
jmp 0x41303a
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00411fb7
add esp, 0x10
test eax, eax
jne 0x41301d
mov eax, dword [ebp - 4]
jmp 0x41303a
push eax
call fcn.004123eb
mov dword [esi], eax
pop ecx
neg eax
sbb eax, eax
and ax, 0xfe00
add eax, 0x200
jmp 0x41303a
mov eax, 0x1000000
pop esi
leave
ret 0xc
Function at 0x4134ad
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push edi
je 0x4134d4
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4134d4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, dword [ebp + 0xc]
mov al, byte [edi]
test al, al
je 0x41356f
push esi
mov esi, edi
mov ecx, edi
cmp al, 0x2f
je 0x4134ee
cmp al, 0x5c
jne 0x4134f0
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4134e6
cmp esi, edi
je 0x413524
sub esi, edi
lea eax, [ebp - 0x208]
push esi
push edi
push eax
call sub.MSVCRT.dll_memcpy
and byte [ebp + esi - 0x208], 0
lea eax, [ebp - 0x208]
push eax
push ebx
call fcn.004134ad
add esp, 0x14
and byte [ebp - 0x104], 0
pop esi
test ebx, ebx
je 0x41353f
lea eax, [ebp - 0x104]
push ebx
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push edi
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41356f
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop ebx
leave
ret
Function at 0x413c0e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push edi
mov ebx, str.C:UsersPublicDownloadsdhew.dat
push str.bvisdhhofhdfbxbcvrghg
push ebx
call fcn.004139ea
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x413c5d
push dword [ebp + 8]
push edi
call fcn.00413a91
pop ecx
test eax, eax
pop ecx
jne 0x413c56
lea eax, [ebp - 0x12c]
push eax
push 0xffffffffffffffff
push edi
call fcn.004139ff
add esp, 0xc
test eax, eax
je 0x413c61
push edi
call fcn.00413ac0
pop ecx
xor eax, eax
jmp 0x413ca8
mov eax, dword [ebp - 0x12c]
push esi
xor esi, esi
mov dword [ebp + 8], eax
test eax, eax
jle 0x413c96
lea eax, [ebp - 0x12c]
push eax
push esi
push edi
call fcn.004139ff
lea eax, [ebp - 0x128]
push eax
push esi
push edi
call fcn.00413a78
add esp, 0x18
inc esi
cmp esi, dword [ebp + 8]
jl 0x413c71
push edi
call fcn.00413ac0
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
pop eax
pop esi
pop edi
pop ebx
leave
ret

Function at 0x413cac
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, 0xf1bbcdc8
mov edx, dword [eax]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x10], 8
mov edi, dword [eax + 0xc]
mov dword [ebp - 8], edi
mov edi, dword [eax + 8]
mov dword [ebp - 4], edi
mov edi, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], eax
mov eax, edx
mov edi, edx
shl eax, 4
add eax, dword [ebp - 4]
shr edi, 5
add edi, dword [ebp - 8]
xor eax, edi
lea edi, [edx + esi]
xor eax, edi
sub ecx, eax
mov eax, ecx
mov edi, ecx
shl eax, 4
add eax, dword [ebp - 0xc]
shr edi, 5
add edi, dword [ebp - 0x10]
xor eax, edi
lea edi, [ecx + esi]
xor eax, edi
add esi, 0x61c88647
sub edx, eax
dec dword [ebp + 0x10]
jne 0x413ce4
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
leave
ret

Function at 0x413d65
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fopen]
push ebp
push esi
push edi
push 0x46632c
push dword [esp + 0x1c]
call ebx
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
mov esi, eax
push 2
push 0
push esi
call edi
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov ebp, eax
call edi
push ebp
call sub.MFC42.DLL_operatornew
push esi
mov edi, eax
push ebp
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fread]
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fclose]
mov ebp, eax
call esi
push dword [esp + 0x50]
push ebp
push edi
call fcn.00413d2f
add esp, 0x48
push 0x464b80
push dword [esp + 0x20]
call ebx
mov ebx, eax
push ebx
push ebp
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
call esi
push edi
call sub.MFC42.DLL_operatordelete
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4161ee
Capabilities:
Create thread

Disassembly:
mov eax, 0x4561c4
call fcn.0041bfe0
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x88]
push edi
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [edi + 0xc]
push esi
sub eax, dword [edi + 4]
lea ecx, [ebp - 0x24]
mov dword [esi + 0x58], eax
mov eax, dword [edi + 8]
sub eax, dword [edi]
mov dword [esi + 0x5c], eax
mov eax, dword [esi + 0x40]
cdq
idiv dword [esi + 0x58]
mov dword [esi + 0x60], eax
mov eax, dword [esi + 0x94]
mov dword [0x487c4c], eax
mov eax, dword [esi + 0x8c]
mov dword [0x487c44], eax
mov eax, dword [esi + 0x5c]
sub eax, dword [esi + 0x54]
mov dword [0x487c40], eax
mov eax, dword [esi + 0x90]
mov dword [0x487c48], eax
call sub.MFC42.DLL_CWindowDC::CWindowDC
and dword [ebp - 4], 0
lea eax, [ebp - 0x24]
neg eax
sbb eax, eax
lea ebx, [esi + 0x70]
and eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, ebx
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x5c]
push eax
push ecx
push dword [ebp - 0x20]
lea ebx, [esi + 0x80]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebx
call sub.MFC42.DLL_CGdiObject::Attach
test ebx, ebx
je 0x4162a6
mov ebx, dword [ebx + 4]
push ebx
push dword [esi + 0x74]
call sub.MFC42.DLL_CDC::SelectGdiObject
mov eax, 0x487c50
neg eax
sbb eax, eax
and eax, dword [0x487c54]
push eax
push edi
push dword [esi + 0x74]
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esi + 0x64]
xor ebx, ebx
push eax
push ebx
push ebx
lea edi, [esi + 0x98]
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
push edi
lea ecx, [esi + 0x70]
call sub.MFC42.DLL_CDC::SelectObject
lea eax, [ebp - 0x10]
mov dword [0x487c5c], 1
push eax
push ebx
push esi
push 0x41634b
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
mov dword [esi + 0x6c], eax
call fcn.0041bf0a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x418dea
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x456532
call fcn.0041bfe0
push ecx
push esi
mov esi, ecx
mov ecx, 0x45c660
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], eax
mov dword [ebp - 4], eax
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [esi + 0x83c], ecx
push eax
mov ecx, esi
mov byte [ebp - 4], 1
mov dword [esi], 0x45c65c
mov dword [esi + 0x30], eax
call fcn.0041919d
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x34], eax
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x419407
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c678
push 0x41c294
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 0x1c]
push eax
push 0x20019
xor esi, esi
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41948b
mov dword [ebp - 4], esi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp + 8]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x419470
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp + 0x1c]
jne 0x419470
push 1
pop esi
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll__local_unwind2
pop ecx
pop ecx
mov eax, esi
jmp 0x41948d
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x18

Function at 0x41949e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0x14]
push esi
push eax
lea eax, [ebp + 0x18]
xor esi, esi
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4194c9
xor eax, eax
jmp 0x4194f1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x1c]
push esi
push dword [ebp + 8]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4194e6
push 1
pop esi
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x4194f6
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c688
push 0x41c294
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x419588
cmp dword [ebp + 0xc], esi
je 0x419588
cmp dword [ebp + 0x10], esi
jne 0x41953d
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
inc eax
jmp 0x41958a
lea eax, [ebp - 0x1c]
push eax
push 0xf003f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x419588
mov dword [ebp - 4], esi
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x41956d
push 1
pop esi
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll__local_unwind2
pop ecx
pop ecx
mov eax, esi
jmp 0x41958a
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41959b
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
xor eax, eax
push esi
cmp dword [ebp + 8], eax
mov esi, ecx
je 0x419602
push 1
push eax
push eax
lea eax, [ebp + 8]
push eax
call fcn.00416888
push dword [eax]
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
push 1
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea eax, [ebp - 0x104]
push reloc.WS2_32.dll_bind
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x104]
push eax
push 0x467218
mov ecx, esi
call fcn.0041949e
jmp 0x419618
push 0x467218
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_bind
mov ecx, esi
call fcn.004194f6
pop esi
leave
ret 4

Function at 0x41b6e2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41b73a
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x475660
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41b72d
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x41b73c
xor eax, eax
pop esi
leave
ret 4

Function at 0x41b900
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea ecx, [esp]
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x41b939
add esp, 0x54
ret
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x41b964
mov ecx, dword [esp]
push esi
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
pop esi
mov eax, dword [esp]
add esp, 0x54
ret
Function at 0x41b970
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ca88
push 0x41c294
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41ba0d
mov dword [ebp - 4], eax
lea eax, [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41b9ff
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp + 0x1c]
jne 0x41b9ff
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll__local_unwind2
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call sub.MSVCRT.dll__local_unwind2
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41c2a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45cad0
push 0x41c294
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x487f40], 0xffffffff
or dword [0x487f44], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x487d94]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x487d90]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x487f3c], eax
call fcn.0041499c
cmp dword [0x467f60], 0
jne 0x41c323
push 0x41c3e0
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0041c3ce
push 0x46208c
push 0x462084
call sub.MSVCRT.dll__initterm
mov eax, dword [0x487d8c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x487d88]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x46207c
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00413df2
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x41c4a0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x41c4da
mov ax, word [esp]
cmp al, 2
jne 0x41c4d4
xor ecx, ecx
mov cl, ah
cmp cl, al
jne 0x41c4d4
xor eax, eax
add esp, 0x190
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
add esp, 0x190
ret
Function at 0x428900
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push eax
push esi
mov edi, dword [esi + eax*4 + 0x190]
call fcn.00428990
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
add esp, 8
push 0
push eax
push ecx
push edi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x24]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebx], 0
jne 0x428984
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x42895e
pop edi
pop esi
mov dword [ebx], 0x51
pop ebp
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.0042de10
mov edx, dword [esi]
push eax
push str.Send_failure:__s
push edx
call fcn.00428710
mov eax, dword [esi]
add esp, 0x14
mov dword [eax + 0x4724], ebp
mov dword [ebx], 0x37
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
mov edx, ecx
push ebx
shl edx, 4
push esi
push edi
mov edi, dword [edx + eax + 0x1bc]
lea esi, [edx + eax + 0x1b8]
mov ebx, dword [eax + ecx*4 + 0x190]
mov edx, dword [esi + 8]
sub edi, edx
mov edx, dword [eax + 0x308]
test byte [edx + 0x3c], 3
je 0x428a52
cmp dword [eax + ecx*4 + 0x1a8], 0x428aa0
jne 0x428a52
cmp dword [esi], 0
je 0x4289e0
test edi, edi
je 0x428a52
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.0041c870
add esp, 0x10
cmp eax, 0xffffffff
je 0x428a52
test al, 1
je 0x428a52
cmp dword [esi], 0
jne 0x428a25
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x467f64]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi]
test eax, eax
je 0x428a4b
mov ecx, dword [esi + 8]
push 0
add eax, ecx
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x428a52
mov ecx, dword [esi + 8]
pop edi
add ecx, eax
mov dword [esi + 8], ecx
pop esi
pop ebx
ret
mov dword [esi + 4], 0
pop edi
pop esi
pop ebx
ret

Function at 0x428e80
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 0x428eb1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and al, 0xe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret
Function at 0x429100
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x1a0]
test eax, eax
je 0x42912d
mov ecx, dword [esi + 0x12c]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push ecx
push edx
push esi
call eax
add esp, 0x14
pop esi
ret
mov eax, dword [esp + 0xc]
test eax, eax
jl 0x42916f
cmp eax, 2
jg 0x42916f
mov ecx, dword [esi + 0x128]
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
push ecx
push 1
lea edx, [eax + eax*2 + 0x45cbf0]
push 2
push edx
call edi
mov eax, dword [esi + 0x128]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
push 1
push ecx
push edx
call edi
add esp, 0x20
pop edi
xor eax, eax
pop esi
ret

Function at 0x42b470
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
push ebp
push esi
mov eax, dword [ebx + 0x8c]
mov ebp, dword [ebx]
cmp eax, 2
push edi
je 0x42b5fa
mov eax, dword [ebx + 0x270]
test eax, eax
jne 0x42b5f1
mov eax, dword [ebx + 0x2e0]
test eax, eax
jne 0x42b5f1
mov esi, dword [esp + 0x11c]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x94]
push eax
mov edi, 0x80
push ecx
push esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x42b500
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.0042de10
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebp
call fcn.00428710
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
mov dword [esp + 0x10], edi
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x42b550
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.0042de10
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebp
call fcn.00428710
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
lea ecx, [ebx + 0x130]
lea esi, [ebx + 0x102]
push ecx
lea edx, [esp + 0x98]
push esi
push edx
call fcn.0042b610
add esp, 0xc
test eax, eax
jne 0x42b59c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.0042de10
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.00428710
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
lea edi, [ebx + 0x58]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x164]
lea ecx, [ebx + 0x134]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
movsw word es:[edi], word [esi]
call fcn.0042b610
add esp, 0xc
test eax, eax
jne 0x42b5f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.0042de10
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.00428710
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
push ebx
call fcn.0042b3f0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret