joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444fd0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x4451ba
cmp dword [edi + 0x18], 0
je 0x4451ba
push esi
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x445030
mov eax, dword [esi]
test eax, eax
je 0x445005
push eax
call fcn.0053e959
add esp, 4
cmp dword [esi + 0x40], 0
mov dword [esi], 0
je 0x445019
lea ecx, [esi + 4]
call fcn.004439b0
push esi
mov dword [esi + 0x40], 0
call fcn.0053e959
add esp, 4
mov dword [edi + 0x7c], 0
lea eax, [ebp - 8]
mov ecx, edi
push eax
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0xc]
call fcn.00444d70
add esp, 8
test eax, eax
je 0x445055
pop esi
pop edi
mov eax, 0xffffff99
pop ebx
mov esp, ebp
pop ebp
ret
push 0x84
call fcn.0053e974
mov esi, eax
add esp, 4
test esi, esi
je 0x445097
push 0x4000
call fcn.0053e974
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [esi + 0x44], ecx
mov ecx, dword [ebp - 8]
mov dword [esi], eax
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], 0
test eax, eax
jne 0x4450a3
push esi
call fcn.0053e959
add esp, 4
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x54], eax
mov eax, dword [edi]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x40], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x64], ecx
mov dword [esi + 0x68], eax
mov dword [esi + 0x18], 0
test ecx, ecx
je 0x4450fb
lea ecx, [esi + 4]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.00443a80
test eax, eax
jne 0x4450fb
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov cl, byte [edi + 0x30]
mov dword [esi + 0x58], eax
and cl, 1
mov eax, dword [edi + 0x44]
mov dword [esi + 0x5c], eax
mov eax, dword [edi + 0x30]
shr eax, 3
mov byte [esi + 0x6c], cl
test al, 1
je 0x44511f
mov al, byte [edi + 0x39]
jmp 0x445122
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
mov edx, 0xc
xor eax, eax
mov dword [esi + 0x70], 0x12345678
test cl, cl
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
cmovne eax, edx
mov dword [esi + 0x7c], eax
test ebx, ebx
je 0x44519b
mov al, byte [ebx]
test al, al
je 0x44519b
mov ecx, dword [esi + 0x70]
movsx eax, al
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5a6598]
movzx eax, cl
add eax, dword [esi + 0x74]
imul eax, eax, 0x8088405
mov dword [esi + 0x70], ecx
mov ecx, dword [esi + 0x78]
inc eax
mov dword [esi + 0x74], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5a6598]
mov dword [esi + 0x78], ecx
add ebx, 1
jne 0x445150
mov eax, dword [ebp - 0xc]
add eax, 0x1e
mov dword [edi + 0x7c], esi
add eax, dword [edi + 0x78]
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [esi + 8], 0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0xffffff9a
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44ed20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54bab0
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x5ba200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [esi], 0
mov byte [esi + 8], 1
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x14], 1
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 3
call fcn.0044ec30
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 4
call fcn.0044ec30
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 5
call fcn.0044ec30
mov dword [esi + 0x7c], 0
mov dword [esi + 0x78], 0
mov byte [esi + 0x80], 1
mov dword [esi + 0x88], 0
mov dword [esi + 0x84], 0
mov byte [esi + 0x8c], 1
mov dword [esi + 0x98], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0
push ecx
mov ecx, esi
mov byte [ebp - 4], 0xc
call fcn.0044eff0
mov dword [esi + 0x1c], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46cc60
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54ccf1
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5ba200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.004063d0
movsd qword [edi], xmm0
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0xffffffff
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
mov dword [edi + 0x8c], 0
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 0
mov dword [edi + 0x98], 0
mov dword [edi + 0x9c], 0
mov dword [edi + 0xa0], 0
mov dword [edi + 0xa4], 0
mov dword [edi + 0xa8], 0
mov dword [edi + 0xac], 0
mov dword [edi + 0xb0], 0
mov dword [edi + 0xb4], 0
mov dword [edi + 0xb8], 0
mov dword [edi + 0xbc], 0
mov dword [edi + 0xc0], 0
mov dword [edi + 0xc4], 0
mov dword [edi + 0xc8], 0
mov dword [edi + 0xd4], 0xffffffff
mov dword [ebp - 4], 0
mov dword [edi + 0xd8], 0xffffffff
mov byte [ebp - 4], 1
mov esi, dword [0x553414]
mov dword [edi + 0xec], 0
mov dword [edi + 0xf0], 0
mov dword [edi + 0xf4], 0
mov dword [edi + 0xf8], 0x57a1f0
mov dword [edi + 0xfc], 0x57a258
call esi
mov ecx, eax
call fcn.00419590
test eax, eax
mov dword [edi + 0x104], 0
mov byte [edi + 0x108], 0
setne al
mov byte [edi + 0x100], al
call esi
mov ecx, eax
call fcn.00419590
mov esi, dword [edi + 0x68]
test eax, eax
setne al
mov byte [edi + 0x48], al
test esi, esi
jne 0x46cec4
push 0xc
call fcn.005361a3
add esp, 4
mov dword [ebp - 0x14], eax
xorps xmm0, xmm0
mov ecx, eax
movq qword [eax], xmm0
push esi
mov dword [eax + 8], esi
push esi
mov dword [eax + 4], esi
mov dword [eax], esi
mov byte [eax + 8], 1
push 0x24
mov dword [edi + 0x68], eax
call fcn.00402c10
mov esi, dword [edi + 0x68]
cmp dword [esi], 0
jne 0x46cedd
push 2
call fcn.0053659c
add esp, 4
mov dword [esi], eax
xor ecx, ecx
mov word [eax], cx
mov dword [esi + 4], ecx
mov byte [esi + 8], 1
mov eax, dword [esi]
push ecx
mov ecx, edi
mov dword [edi + 0x40], eax
call fcn.0046d480
push ecx
mov ecx, edi
mov dword [edi + 0x44], eax
call fcn.0046d600
mov dword [edi + 0x3c], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4ed810
Capabilities:
Access peb ldr_data
Get number of processors
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551439
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5ba200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax], 0
mov dword [eax + 4], 0
lea ebx, [eax + 0xc]
mov dword [ebp - 4], 0
mov dword [ebx + 8], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0
lea edi, [eax + 0x18]
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], 0
lea esi, [eax + 0x30]
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 4], 0
push 0x64
mov byte [ebp - 4], 4
push 1
mov dword [eax + 0x40], 0x64
mov dword [eax + 0x3c], 0
call fcn.0051bb40
mov eax, dword [ebp - 0x10]
mov ecx, ebx
push dword [eax + 0x40]
push 1
call fcn.0051bb40
mov ebx, dword [ebp - 0x10]
mov ecx, edi
push dword [ebx + 0x40]
push 1
call fcn.0051bb40
push dword [ebx + 0x40]
mov ecx, esi
push 1
call fcn.0051b990
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x536d87
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x55326c]
test eax, eax
je 0x536dc6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x536dc6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x536dc6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x536dc6
cmp dword [ecx + 0x74], 0xe
jbe 0x536dc6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x547020
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x54704d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x54704d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0xee8458
Capabilities:
Encode data using xor

Disassembly:
jmp 0xee8462
pushal
call 0xee8468
pop ebp
sub ebp, 0x10
sub ebp, 0xae8458
jmp 0xee847e
mov eax, 0xae8458
add eax, ebp
add eax, 0x4c
mov ecx, 0x5cc
mov edx, 0x29a8b766
xor byte [eax], dl
inc eax
dec ecx
jne 0xee8495
jmp 0xee84a8
in eax, dx
stosd dword es:[edi], eax
in eax, dx
out dx, eax
pop edx
out 0xa7, ax
sahf
stosw word es:[edi], ax
fisub word [eax + 0x66]
fmul qword [esi + 0x66]
xchg cx, ax
test byte [ebp - 0x52], ah
in eax, dx
out 0x6a, eax
mov word gs:[0x9a4202eb], ax
out dx, eax
bound eax, qword [edx - 0x15]
add al, byte [edx - 0x66]
out dx, eax
bound eax, qword [edx + 0xe]
cmp bl, byte [ecx + 0x46]
push cs
popfd
and ch, al
dec dx
inc edx
push cs
cmp esi, dword [0x638eca19]
invalid
Function at 0x40112f
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x422478
call fcn.00419178
sub esp, 0x3c
test byte [ebp + 0xd], 1
je 0x4011d0
push dword [ebp + 8]
lea ecx, [ebp - 0x48]
call fcn.00401640
and dword [ebp - 4], 0
push 1
push 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 0x10], 0x5c
call fcn.00401755
cmp eax, 0xffffffff
je 0x4011b7
push edi
push eax
lea edi, [eax + 1]
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
call fcn.00401663
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x40118d
lea eax, [ebp - 0x28]
push eax
call fcn.00421b4a
pop ecx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004017f0
push 1
push edi
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 0x10], 0x5c
call fcn.00401755
cmp eax, 0xffffffff
jne 0x40116f
pop edi
push 0x20
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
or byte [ebp + 0xd], 2
push 1
lea ecx, [ebp - 0x48]
call fcn.004017f0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004169f0
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword fs:[0], ecx
leave
ret
Function at 0x402856
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push esi
je 0x4028e9
test edi, edi
je 0x4028e9
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
jbe 0x4028e2
push eax
call fcn.00415df0
mov esi, eax
test esi, esi
pop ecx
jne 0x402891
mov eax, 0x8007000e
jmp 0x4028ee
push esi
push dword [ebp - 4]
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4028db
and dword [ebp + 8], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x4266bc
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4028db
mov eax, dword [ebp + 8]
test eax, eax
je 0x4028db
mov ecx, dword [eax + 8]
mov dword [edi + 4], ecx
mov eax, dword [eax + 0xc]
push esi
mov dword [edi], eax
call fcn.00417290
pop ecx
xor eax, eax
jmp 0x4028ee
push esi
call fcn.00417290
pop ecx
mov eax, 0x80004005
jmp 0x4028ee
mov eax, 0x80070057
pop esi
leave
ret
Function at 0x405fb2
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4225d5
call fcn.00419178
sub esp, 0x38
push esi
push edi
push str._readme.html
mov esi, 0x42b270
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.004049a5
lea eax, [ebp - 0x28]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.00412fa0
add esp, 0x10
test al, al
jne 0x406016
push str._readme.txt
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.004049a5
add esp, 0xc
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004016a9
push 1
lea ecx, [ebp - 0x44]
call fcn.004017f0
cmp dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0x24]
jae 0x406022
lea eax, [ebp - 0x24]
push 1
push edi
push edi
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 0x28]
push 1
call fcn.004017f0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40605b
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x422e3d
call fcn.00419178
mov eax, 0x4038
call fcn.00418de0
push 0x4000
lea eax, [ebp - 0x4044]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x4044]
push eax
lea ecx, [ebp - 0x28]
call fcn.00401640
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00405135
cmp dword [eax + 0x18], 0x10
pop ecx
pop ecx
jb 0x4060b1
mov eax, dword [eax + 4]
jmp 0x4060b4
add eax, 4
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 1
lea ecx, [ebp - 0x44]
call fcn.004017f0
push 1
lea ecx, [ebp - 0x28]
call fcn.004017f0
push 0
push 0x40604b
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x409266
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4092c2
and dword [ebp - 0x1c], 0
and dword [ebp - 0x18], 0
cmp dword [esi + 0x18], 0x10
jb 0x40929d
mov esi, dword [esi + 4]
jmp 0x4092a0
add esi, 4
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push esi
call eax
test eax, eax
jne 0x4092ba
or edx, 0xffffffff
mov eax, edx
jmp 0x4092fd
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
jmp 0x4092fd
cmp dword [esi + 0x18], 0x10
jb 0x4092cd
mov esi, dword [esi + 4]
jmp 0x4092d0
add esi, 4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4092b3
mov eax, dword [ebp - 4]
mul dword [ebp - 8]
push 0
push dword [ebp - 0x10]
push edx
push eax
call fcn.00418da0
pop esi
leave
ret
Function at 0x40c413
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x40c44e
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x40c42b
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x40c46a
dec esi
je 0x40c463
dec esi
jne 0x40c46f
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc
Function at 0x413320
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x421f88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x42a364]
xor eax, dword [esp + 0x30]
push ebx
xor ebx, ebx
push esi
mov dword [esp + 0x28], eax
push edi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
mov edi, dword [esp + 0x44]
mov eax, dword [edi + 0x14]
xor esi, esi
cmp eax, ebx
mov dword [esp + 0x38], ebx
jbe 0x4133aa
push ebp
lea ebp, [edi + 4]
cmp dword [edi + 0x18], 0x10
jb 0x41337e
mov eax, dword [ebp]
jmp 0x413380
mov eax, ebp
movsx eax, byte [eax + esi]
push eax
call fcn.00418f35
mov byte [esp + 0x4c], al
mov ecx, dword [esp + 0x4c]
add esp, 4
push ecx
push 1
lea ecx, [esp + 0x1c]
call fcn.0040a4ec
mov eax, dword [edi + 0x14]
inc esi
cmp esi, eax
jb 0x413373
pop ebp
mov esi, dword [esp + 0x40]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x18]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.004016a9
cmp dword [esp + 0x28], 0x10
jb 0x4133de
mov eax, dword [esp + 0x14]
push eax
call fcn.00417290
add esp, 4
mov ecx, dword [esp + 0x30]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x28]
xor ecx, dword [esp + 0x38]
mov eax, esi
pop esi
pop ebx
add esp, 0x30
jmp fcn.00418c67
Function at 0x416fb4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x41717a
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x42f680]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41717a
test cl, 0x48
je 0x41701a
mov al, byte [eax + 5]
cmp al, 0xa
je 0x41701a
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41706c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x417054
call fcn.0041ae83
mov dword [eax], 9
call fcn.0041ae8c
mov dword [eax], esi
jmp 0x417064
cmp eax, 0x6d
je 0x41717a
push eax
call fcn.0041ae95
pop ecx
or eax, 0xffffffff
jmp 0x41717c
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x417175
test edx, edx
je 0x41708f
cmp byte [ebx], 0xa
jne 0x41708f
or al, 4
jmp 0x417091
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x41716f
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41715f
cmp al, 0xd
je 0x4170c5
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x417151
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4170df
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4170da
add dword [ebp + 0x10], 2
jmp 0x417133
mov dword [ebp + 0x10], eax
jmp 0x41714d
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x417107
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41714d
cmp dword [ebp - 0xc], 0
je 0x41714d
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x417128
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x417133
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x417150
cmp ebx, dword [ebp + 0xc]
jne 0x417138
cmp byte [ebp - 1], 0xa
jne 0x417138
mov byte [ebx], 0xa
jmp 0x417150
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041739d
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x417151
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4170a9
jmp 0x41716f
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x41716f
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x41717c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4174bc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x42a364]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x4174e5
xor eax, eax
jmp 0x417653
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x42f680]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x417518
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.0041af7e
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4175ea
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x417625
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x417573
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x417564
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x417547
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4175b3
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x4175bc
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x417538
jmp 0x4175be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x41764e
cmp dword [ebp - 8], edi
je 0x417625
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x417617
call fcn.0041ae83
mov dword [eax], 9
call fcn.0041ae8c
mov dword [eax], esi
jmp 0x417620
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41760c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x4175be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x4175be
push dword [ebp - 8]
call fcn.0041ae95
pop ecx
or eax, 0xffffffff
jmp 0x417651
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41763a
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x41763a
xor eax, eax
jmp 0x417651
call fcn.0041ae83
mov dword [eax], 0x1c
call fcn.0041ae8c
mov dword [eax], edi
jmp 0x417620
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.00418c67
leave
ret