joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414188
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffa0
push ebx
push esi
push edi
mov byte [ebp - 0x1049], cl
mov edi, edx
mov ebx, eax
mov eax, dword [ebp + 0x14]
call fcn.00404a10
lea esi, [ebp - 0x1058]
xor eax, eax
push ebp
push 0x414369
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
push edi
mov esi, 0x485160
lea edi, [ebp - 0x1048]
mov ecx, 0x12
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
push esi
push edi
mov esi, 0x4851a8
lea edi, [ebp - 0x1000]
mov ecx, 0x400
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
push ebp
mov eax, dword [ebp + 0x14]
call fcn.00404820
push eax
mov eax, dword [ebp + 0x14]
call fcn.00404a20
pop edx
call fcn.00414070
pop ecx
cmp byte [ebp - 0x1049], 0
je 0x414224
lea eax, [ebp - 0x1048]
mov dword [ebp - 0x1050], eax
mov dword [ebp - 0x1054], 1
jmp 0x41423a
lea eax, [ebp - 0x1004]
mov dword [ebp - 0x1050], eax
mov dword [ebp - 0x1054], 0xffffffff
shr edi, 3
dec edi
test edi, edi
jl 0x414353
inc edi
mov dword [ebp - 0x1060], edi
cmp dword [ebp + 0x10], 0
jne 0x414257
cmp dword [ebp + 0xc], 0
je 0x4142d3
mov dword [esi], 7
lea eax, [ebp + 0xc]
add eax, dword [esi]
mov dl, byte [eax]
inc edx
and dl, 0xff
mov byte [eax], dl
lea eax, [ebp + 0xc]
add eax, dword [esi]
cmp byte [eax], 0
jne 0x41427d
dec dword [esi]
cmp dword [esi], 0xffffffff
jne 0x41425f
lea eax, [ebp + 0xc]
mov eax, dword [eax]
call fcn.00413c84
mov dword [esi], eax
lea eax, [ebp + 0xc]
add eax, 4
mov eax, dword [eax]
call fcn.00413c84
mov dword [ebp - 0x105c], eax
push ebp
mov eax, dword [ebp - 0x1054]
push eax
lea edx, [ebp - 0x105c]
mov eax, esi
mov ecx, dword [ebp - 0x1050]
call fcn.00413cb0
pop ecx
mov eax, dword [esi]
call fcn.00413c84
xor dword [ebx], eax
mov eax, dword [ebp - 0x105c]
call fcn.00413c84
lea edx, [ebx + 4]
xor dword [edx], eax
jmp 0x414344
cmp byte [ebp + 8], 0
jne 0x41432b
mov edi, ebx
mov eax, dword [edi]
call fcn.00413c84
mov dword [esi], eax
lea eax, [ebx + 4]
mov eax, dword [eax]
call fcn.00413c84
mov dword [ebp - 0x105c], eax
push ebp
mov eax, dword [ebp - 0x1054]
push eax
lea edx, [ebp - 0x105c]
mov eax, esi
mov ecx, dword [ebp - 0x1050]
call fcn.00413cb0
pop ecx
mov eax, dword [esi]
call fcn.00413c84
mov dword [edi], eax
mov eax, dword [ebp - 0x105c]
call fcn.00413c84
lea edx, [ebx + 4]
mov dword [edx], eax
jmp 0x414344
push ebp
mov eax, dword [ebp - 0x1054]
push eax
mov edx, ebx
lea eax, [ebx + 4]
mov ecx, dword [ebp - 0x1050]
call fcn.00413cb0
pop ecx
add ebx, 8
dec dword [ebp - 0x1060]
jne 0x41424d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414370
lea eax, [ebp + 0x14]
call fcn.00404560
ret
Function at 0x41452c
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
test edi, edi
jle 0x41464e
lea eax, [edi + 2]
mov ecx, 3
cdq
idiv ecx
mov edx, eax
shl edx, 2
mov eax, esi
call fcn.00404bac
mov ecx, dword [esi]
mov eax, edi
mov esi, 3
cdq
idiv esi
mov esi, eax
test esi, esi
jle 0x4145c5
xor eax, eax
mov al, byte [ebx]
shl eax, 0x10
xor edx, edx
mov dl, byte [ebx + 1]
shl edx, 8
add eax, edx
xor edx, edx
mov dl, byte [ebx + 2]
add eax, edx
mov edx, eax
shr edx, 0x12
and edx, 0x3f
mov dl, byte [edx + 0x4861a8]
mov byte [ecx], dl
mov edx, eax
shr edx, 0xc
and edx, 0x3f
mov dl, byte [edx + 0x4861a8]
mov byte [ecx + 1], dl
mov edx, eax
shr edx, 6
and edx, 0x3f
mov dl, byte [edx + 0x4861a8]
mov byte [ecx + 2], dl
and eax, 0x3f
mov al, byte [eax + 0x4861a8]
mov byte [ecx + 3], al
add ecx, 4
add ebx, 3
dec esi
jne 0x414566
mov eax, edi
mov esi, 3
cdq
idiv esi
dec edx
je 0x4145d7
dec edx
je 0x414607
jmp 0x414655
xor eax, eax
mov al, byte [ebx]
shl eax, 0x10
mov edx, eax
shr edx, 0x12
and edx, 0x3f
mov dl, byte [edx + 0x4861a8]
mov byte [ecx], dl
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + 0x4861a8]
mov byte [ecx + 1], al
mov byte [ecx + 2], 0x3d
mov byte [ecx + 3], 0x3d
jmp 0x414655
xor eax, eax
mov al, byte [ebx]
shl eax, 0x10
xor edx, edx
mov dl, byte [ebx + 1]
shl edx, 8
add eax, edx
mov edx, eax
shr edx, 0x12
and edx, 0x3f
mov dl, byte [edx + 0x4861a8]
mov byte [ecx], dl
mov edx, eax
shr edx, 0xc
and edx, 0x3f
mov dl, byte [edx + 0x4861a8]
mov byte [ecx + 1], dl
shr eax, 6
and eax, 0x3f
mov al, byte [eax + 0x4861a8]
mov byte [ecx + 2], al
mov byte [ecx + 3], 0x3d
jmp 0x414655
mov eax, esi
call fcn.00404560
pop edi
pop esi
pop ebx
ret
Function at 0x414a5c
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a10
xor eax, eax
push ebp
push 0x414b4b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.00404a20
mov esi, eax
push esi
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x414b35
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push esi
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x414b35
xor eax, eax
push ebp
push 0x414b2e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize_1
mov edx, eax
mov eax, ebx
call fcn.00404bac
cmp dword [ebx], 0
je 0x414b0e
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx]
call fcn.00404820
push eax
mov eax, dword [ebx]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x414b0e
mov eax, dword [ebx]
call fcn.00404820
cmp eax, dword [ebp - 0x10]
je 0x414b12
xor eax, eax
jmp 0x414b14
mov al, 1
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414b35
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414b52
lea eax, [ebp - 4]
call fcn.00404560
ret
Function at 0x41d820
Capabilities:
Create directory
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathA
test eax, eax
jbe 0x41d875
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.004047d0
cmp dword [ebx], 0
je 0x41d87c
push 0
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_CreateDirectoryA
mov eax, dword [ebx]
call fcn.00404820
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x41d87c
mov eax, ebx
mov edx, 0x41d88c
call fcn.00404828
jmp 0x41d87c
mov eax, ebx
call fcn.00404560
add esp, 0x108
pop ebx
ret

Function at 0x41d988
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
mov dword [esp], 0x104
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004047d0
add esp, 0x10c
pop ebx
ret

Function at 0x41d9bc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00404a10
mov eax, dword [ebp - 8]
call fcn.00404a10
xor eax, eax
push ebp
push 0x41dab5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404560
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00404a20
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x41da9a
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00404a20
mov edi, eax
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
cmp dword [ebp - 0x10], 0
je 0x41da91
mov eax, dword [ebp - 0x10]
add eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push 0
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x41da8b
cmp dword [ebp - 0x14], 1
jne 0x41da7f
mov eax, ebx
mov edx, esi
call fcn.00404758
jmp 0x41da8b
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov edx, esi
call fcn.00404650
push esi
call sub.kernel32.dll_LocalFree_1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41dabc
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404584
ret
Function at 0x41dde4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a588
test eax, eax
je 0x41de74
add eax, 0x80
mov edx, dword [eax]
mov esi, edx
add esi, dword [ebp - 4]
add edx, dword [eax + 4]
mov dword [ebp - 0x10], edx
test esi, esi
je 0x41de74
jmp 0x41de6e
mov eax, dword [esi + 0x10]
cmp eax, dword [ebp - 0x10]
jbe 0x41de2a
push ebp
call fcn.0041dd0c
pop ecx
jmp 0x41de74
mov eax, dword [esi + 0x10]
test eax, eax
je 0x41de6b
mov ebx, dword [ebp - 4]
add ebx, eax
jmp 0x41de66
cmp edi, dword [ebx]
jne 0x41de63
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x41de63
mov eax, dword [ebp - 8]
mov dword [ebx], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
add ebx, 4
cmp dword [ebx], 0
jne 0x41de38
add esi, 0x14
cmp dword [esi + 0xc], 0
jne 0x41de19
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41f86c
Capabilities:
Create thread

Disassembly:
cmp dword [0x486a48], 0
jne 0x41f8f3
cmp dword [0x4869a8], 0
jle 0x41f8f3
xor eax, eax
call fcn.00409e30
mov dword [0x486a48], eax
cmp dword [0x486a48], 0
je 0x41f8f3
mov eax, 0x41f70c
xor ecx, ecx
xor edx, edx
call fcn.0040a28c
mov dword [0x486a4c], eax
push 0x486a40
push 0
push 0
push 0x41f74c
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x486a44], eax
cmp dword [0x486a44], 0
je 0x41f8f3
push 0
push 0
push 0
mov ecx, 0x41f8fc
mov edx, dword [0x486a44]
mov eax, dword [0x486a40]
call fcn.0041df14
push 2
mov eax, dword [0x486a44]
push eax
call sub.kernel32.dll_SetThreadPriority
ret

Function at 0x41f900
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x486a48], 0
je 0x41f986
cmp dword [0x4869a8], 0
jle 0x41f986
cmp dword [0x486a58], 0
je 0x41f92d
mov eax, dword [0x486a58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [0x486a58], eax
mov dword [0x486a54], 0xffffffff
mov eax, 0x41f70c
xor ecx, ecx
xor edx, edx
call fcn.0040a48c
push 0
mov eax, dword [0x486a44]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, dword [0x486a44]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [0x486a40]
call fcn.0041df14
xor eax, eax
mov dword [0x486a44], eax
xor eax, eax
mov dword [0x486a40], eax
xor eax, eax
mov dword [0x486a48], eax
ret
Function at 0x42042c
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a10
xor eax, eax
push ebp
push 0x4204f3
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0041d90c
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.004045f8
cmp dword [ebp - 4], 0
je 0x4204d6
mov eax, dword [ebp - 4]
call fcn.00404820
mov edx, dword [ebp - 4]
cmp byte [edx + eax - 1], 0x5c
jne 0x420496
mov eax, dword [ebp - 4]
call fcn.00404820
mov edx, eax
lea eax, [ebp - 4]
mov ecx, 1
call fcn.00404ac0
mov eax, dword [ebp - 4]
call fcn.00404a20
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x4204d2
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0042042c
pop ecx
test al, al
je 0x4204ce
push 0
mov eax, dword [ebp - 4]
call fcn.00404a20
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x4204d2
xor ebx, ebx
jmp 0x4204d8
mov bl, 1
jmp 0x4204d8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4204fa
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404584
ret
Function at 0x420c7c
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Read file via mapping
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x7c], eax
xor eax, eax
push ebp
push 0x420d9c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x64]
mov edx, 0x44
call fcn.00407394
mov dword [ebp - 0x64], 0x44
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
call sub.kernel32.dll_GetCommandLineA_1
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x420d74
lea edx, [ebp - 0x20]
lea eax, [ebp - 0xc]
call fcn.0041dac8
lea eax, [ebp - 0x7c]
push eax
mov cl, 0x30
mov edx, 1
mov eax, dword [ebp - 0x6c]
call fcn.004087e4
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
mov edx, 0x420db4
call fcn.0040486c
mov eax, dword [ebp - 0x78]
call fcn.00404a20
push eax
push 0x58
push 0
push 4
lea eax, [ebp - 0xc]
push eax
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov esi, eax
push 0
push 0
push 0
push 0xf001f
push esi
call sub.kernel32.dll_MapViewOfFile
mov ebx, eax
test ebx, ebx
je 0x420d6b
call sub.kernel32.dll_GetCurrentProcessId
mov dword [ebx], eax
push 2
push 0
push 0
lea eax, [ebx + 4]
push eax
mov eax, dword [ebp - 0x74]
push eax
push esi
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_DuplicateHandle
lea edx, [ebx + 8]
mov eax, 0x486a5c
mov ecx, 0x50
call fcn.0040290c
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_ResumeThread
push 2
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_TerminateProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420da3
lea eax, [ebp - 0x7c]
mov edx, 2
call fcn.00404584
ret
Function at 0x421d48
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a10
xor eax, eax
push ebp
push 0x421da5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404a20
mov esi, eax
push esi
call sub.wsock32.dll_inet_addr
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x421d8f
push esi
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x421d8f
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ebx, dword [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421dac
lea eax, [ebp - 4]
call fcn.00404560
ret
Function at 0x42248c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404a10
xor eax, eax
push ebp
push 0x422511
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor esi, esi
jmp 0x4224eb
mov eax, dword [ebp - 4]
call fcn.00404820
mov ebx, eax
sub ebx, esi
cmp ebx, 0x400
jle 0x4224d1
mov ebx, 0x400
push 0
push ebx
lea eax, [ebp - 4]
call fcn.00404a78
add eax, esi
push eax
push edi
call sub.wsock32.dll_send
test eax, eax
jl 0x4224fb
add esi, ebx
mov eax, dword [ebp - 4]
call fcn.00404820
cmp esi, eax
jl 0x4224b8
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422518
lea eax, [ebp - 4]
call fcn.00404560
ret
Function at 0x422524
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffad8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x528], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404a10
xor eax, eax
push ebp
push 0x42276e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
call fcn.00404560
mov bl, 1
mov dword [ebp - 0x524], 1
mov eax, dword [ebp - 4]
mov dword [ebp - 0x520], eax
mov dword [ebp - 0x20], 7
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0
lea eax, [ebp - 0x524]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
jle 0x422734
push 0
push 0x400
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wsock32.dll_recv
mov edi, eax
lea edx, [ebp - 0x420]
lea eax, [ebp - 0x18]
mov ecx, edi
call fcn.00404650
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x18]
call fcn.00404828
mov eax, dword [ebp - 0x14]
call fcn.00404820
mov esi, eax
mov eax, dword [ebp - 8]
call fcn.00404820
cmp esi, eax
setg byte [ebp - 0xd]
cmp byte [ebp - 0xd], 0
je 0x422738
mov eax, dword [ebp - 8]
call fcn.00404820
mov esi, eax
test esi, esi
jle 0x422627
mov edi, 1
mov eax, dword [ebp - 0x14]
mov al, byte [eax + edi - 1]
mov edx, dword [ebp - 8]
cmp al, byte [edx + edi - 1]
je 0x422623
mov byte [ebp - 0xd], 0
jmp 0x422627
inc edi
dec esi
jne 0x42260d
cmp byte [ebp - 0xd], 0
je 0x422738
mov eax, dword [ebp - 0x14]
call fcn.00404820
mov esi, eax
test esi, esi
jle 0x42265f
mov edi, 1
mov eax, dword [ebp - 0x14]
cmp byte [eax + edi - 1], 0x3d
jne 0x42265b
lea eax, [ebp - 0x14]
call fcn.00404a78
mov byte [eax + edi - 1], 0x20
inc edi
dec esi
jne 0x422644
mov eax, dword [ebp - 0x14]
cmp byte [eax + 3], 0x2d
setne bl
push 0x7fffffff
mov ecx, 1
mov edx, dword [ebp - 0x14]
mov eax, 0x422788
call fcn.00407e24
mov edi, eax
test edi, edi
jne 0x42268b
mov edi, 0x7ffffffe
cmp dword [ebp - 0xc], 0
je 0x42270d
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0
jne 0x42270d
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
sub ecx, 5
mov edx, 5
mov eax, dword [ebp - 0x14]
call fcn.00404a80
mov edx, dword [ebp - 0x18]
mov eax, 0x422794
call fcn.00408120
test al, al
je 0x42270d
push 0x7fffffff
lea eax, [ebp - 0x528]
push eax
mov ecx, 0x7fffffff
mov edx, 5
mov eax, dword [ebp - 0x18]
call fcn.00404a80
lea eax, [ebp - 0x528]
mov edx, 0x4227a4
call fcn.00404828
mov edx, dword [ebp - 0x528]
mov ecx, 1
mov eax, 0x4227b0
call fcn.00407e78
test eax, eax
jle 0x42270d
mov eax, dword [ebp - 0xc]
mov byte [eax], 1
lea ecx, [edi + 1]
lea eax, [ebp - 0x14]
mov edx, 1
call fcn.00404ac0
test bl, bl
jne 0x422738
mov eax, dword [ebp - 0x14]
call fcn.00404820
cmp eax, 4
jge 0x42265f
jmp 0x422738
mov byte [ebp - 0xd], 0
test bl, bl
je 0x422565
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422775
lea eax, [ebp - 0x528]
call fcn.00404560
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00404584
lea eax, [ebp - 8]
call fcn.00404560
ret
Function at 0x422860
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404a10
xor eax, eax
push ebp
push 0x422a40
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 8]
call fcn.00404a20
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
setne byte [ebp - 9]
cmp byte [ebp - 9], 0
je 0x422a15
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetFileSize_1
mov esi, eax
mov bl, 1
test esi, esi
jbe 0x422a0c
cmp esi, 0x39
jbe 0x4228ee
mov edi, 0x39
jmp 0x4228f0
mov edi, esi
push 0
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x51]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x42290d
cmp edi, dword [ebp - 0x14]
je 0x422927
test bl, bl
jne 0x42291e
mov edx, 0x422a5c
mov eax, dword [ebp - 4]
call fcn.0042248c
mov byte [ebp - 9], 0
jmp 0x422a0c
lea ecx, [ebp - 0x58]
mov edx, 4
mov eax, dword [ebp - 8]
call fcn.00407ca4
mov eax, dword [ebp - 0x58]
mov edx, 0x422a68
call fcn.00407d58
test al, al
je 0x422957
lea eax, [ebp - 0x18]
mov edx, 0x422a78
call fcn.004045f8
jmp 0x422964
lea eax, [ebp - 0x18]
mov edx, 0x422a8c
call fcn.004045f8
test bl, bl
je 0x4229db
push 0x422ab0
push dword [ebp - 0x18]
push 0x422ae8
push 0x422af4
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 8]
call fcn.0041d890
push dword [ebp - 0x60]
push 0x422b04
push 0x422a5c
push 0x422b10
push 0x422a5c
push 0x422b3c
push 0x422b68
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 8]
call fcn.0041d890
push dword [ebp - 0x64]
push 0x422b04
push 0x422a5c
push 0x422a5c
lea eax, [ebp - 0x5c]
mov edx, 0xf
call fcn.004048e0
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.0042248c
lea ecx, [ebp - 0x68]
lea eax, [ebp - 0x51]
mov edx, edi
call fcn.0041452c
lea eax, [ebp - 0x68]
mov edx, 0x422a5c
call fcn.00404828
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 4]
call fcn.0042248c
sub esi, edi
xor ebx, ebx
test esi, esi
ja 0x4228e2
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422a47
lea eax, [ebp - 0x68]
mov edx, 5
call fcn.00404584
lea eax, [ebp - 0x18]
call fcn.00404560
lea eax, [ebp - 8]
call fcn.00404560
ret
Function at 0x423578
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe60
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1a0], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a10
mov eax, dword [ebp - 8]
call fcn.00404a10
mov eax, dword [ebp - 0xc]
call fcn.00404a10
mov eax, dword [ebp + 0x1c]
call fcn.00404a10
mov eax, dword [ebp + 0x18]
call fcn.00404a10
mov eax, dword [ebp + 0x14]
call fcn.00404a10
mov eax, dword [ebp + 0x10]
call fcn.00404a10
mov eax, dword [ebp + 0xc]
call fcn.00404a10
xor eax, eax
push ebp
push 0x4236ad
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [ebp - 8], 0
je 0x42367a
lea eax, [ebp - 0x19c]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x42367a
cmp dword [ebp + 0x14], 0
jne 0x423657
lea eax, [ebp - 8]
call fcn.0041fabc
mov esi, eax
test esi, esi
jle 0x423675
mov edi, 1
push ebp
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x1a0]
push eax
mov cl, 0x2c
mov edx, edi
mov eax, dword [ebp - 8]
call fcn.00408be0
mov edx, dword [ebp - 0x1a0]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00422dbc
pop ecx
or bl, al
inc edi
dec esi
jne 0x42361d
jmp 0x423675
push ebp
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00422dbc
pop ecx
mov ebx, eax
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4236b4
lea eax, [ebp - 0x1a0]
call fcn.00404560
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404584
lea eax, [ebp + 0xc]
mov edx, 5
call fcn.00404584
ret