joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4017a0
Capabilities:
Enumerate processes
Execute command

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x258], eax
movq xmm0, qword [str.hl.exe]
xor eax, eax
push ebx
push esi
push edi
push 0
mov dword [esp + 0x28], eax
mov eax, dword [0x403170]
push 2
mov dword [esp + 0x30], 6
mov dword [esp + 0x34], 7
movq qword [esp + 0x20], xmm0
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x40185a
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [esp + 0x30]
push eax
push esi
call edi
cmp eax, 1
jne 0x40185a
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
nop dword [eax + eax]
cmp dword [esp + 0x2c], 7
lea eax, [esp + 0x18]
cmova eax, dword [esp + 0x18]
push eax
lea eax, [esp + 0x58]
push eax
call ebx
add esp, 8
test eax, eax
je 0x4018b2
lea eax, [esp + 0x30]
push eax
push esi
call edi
cmp eax, 1
je 0x401830
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.pause
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
or esi, 0xffffffff
mov ecx, dword [esp + 0x2c]
cmp ecx, 7
jbe 0x401986
mov edx, dword [esp + 0x18]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40197c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40197c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
mov eax, dword [esp + 0x38]
test eax, eax
je 0x401861
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x4018f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.pause
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
mov esi, 0xfffffffe
jmp 0x401872
mov ebx, dword [sym.imp.KERNEL32.dll_IsWow64Process]
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x18], 0
call ebx
test eax, eax
je 0x401961
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
jne 0x401961
sub esp, 0x1c
mov ecx, esi
call section..text
add esp, 0x1c
push esi
test al, al
jne 0x401958
call edi
push str.pause
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
mov esi, 0xfffffff8
jmp 0x401872
call edi
xor esi, esi
jmp 0x401872
push esi
call edi
push str.pause
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
mov esi, 0xfffffffd
jmp 0x401872
push ecx
push edx
call fcn.004019ad
add esp, 8
mov ecx, dword [esp + 0x264]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040199f
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4021e2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402221
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402221
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402221
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402221
cmp dword [ecx + 0x74], 0xe
jbe 0x402221
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401e10
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, ecx
push ebx
push esi
mov dword [ebp - 8], eax
mov esi, eax
mov eax, dword [eax]
mov ebx, 0xe3
push edi
mov edi, dword [esi + 4]
mov ecx, eax
xor ecx, edi
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edi
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edi
xor ecx, dword [esi + 0x634]
mov dword [esi], ecx
add esi, 4
sub ebx, 1
jne 0x401e27
mov dword [ebp - 4], 0x18c
mov ebx, dword [esi + 4]
lea esi, [esi + 4]
mov ecx, edi
mov eax, ebx
xor ecx, ebx
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, edi
mov edi, ebx
shr ecx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x390]
sub dword [ebp - 4], 1
mov dword [esi - 4], ecx
jne 0x401e63
mov edx, dword [ebp - 8]
mov ecx, ebx
pop edi
mov eax, dword [edx]
xor ecx, eax
and ecx, 0x7ffffffe
and al, 1
xor ecx, ebx
movzx eax, al
shr ecx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
mov dword [edx + 0x9c0], 0x270
mov dword [edx + 0x9c4], edx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401ee0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov edx, 1
mov dword [esi + 0x9c0], 1
mov dword [esi], 0x12bd6aa
nop dword [eax + eax]
mov ecx, dword [esi + edx*4 - 4]
shr ecx, 0x1e
xor ecx, dword [esi + edx*4 - 4]
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [esi + edx*4], eax
inc edx
cmp edx, 0x270
jl 0x401f00
mov eax, dword [ebp + 8]
mov edx, 1
mov dword [esi], eax
nop dword [eax]
mov ecx, dword [esi + edx*4 - 4]
shr ecx, 0x1e
xor ecx, dword [esi + edx*4 - 4]
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [esi + edx*4], eax
inc edx
cmp edx, 0x270
jl 0x401f30
mov ecx, esi
call fcn.00401e10
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x406a90
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
add dword [esi + 0x9c0], 0xffffffff
jne 0x406aa4
call fcn.00401e10
mov eax, dword [esi + 0x9c4]
mov ecx, dword [eax]
add eax, 4
mov dword [esi + 0x9c4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop esi
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x478570]
mov eax, dword [ebp + 8]
mulsd xmm1, qword [0x478068]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x478570]
mulsd xmm1, xmm0
cvttsd2si eax, xmm1
pop ebp
ret 4
Function at 0x4078a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0x10]
push esi
mov esi, ecx
mov ecx, 0x32
push edi
mov byte [esi + 0x9d1], al
lea edi, [esi + 0x9dc]
xor eax, eax
mov byte [esi + 0x9d0], 0xa
mov word [esi + 0x9d2], ax
mov byte [esi + 0x9d4], al
mov dword [esi + 0xaa4], eax
mov dword [esi + 0x9d8], 0x3ff
rep stosd dword es:[edi], eax
movsx eax, byte [esi + 0x9d1]
cmp eax, 0x1d
jge 0x407904
lea edi, [esi + 0xa30]
mov ecx, 0x1d
lea edi, [edi + eax*4]
sub ecx, eax
or eax, 0xffffffff
rep stosd dword es:[edi], eax
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [ecx], ebx
mov edi, 1
mov edx, dword [esi + edi*4]
shr edx, 0x1e
xor edx, dword [esi + edi*4]
imul eax, edx, 0x6c078965
add eax, edi
mov dword [ecx + edi*4], eax
inc edi
cmp edi, 0x270
jl 0x407912
call fcn.00401e10
mov eax, 3
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0x1e
imul eax, eax, 0x7fffffff
sub ebx, eax
lea eax, [ebx + 0x7ffffffe]
cmovne eax, ebx
mov dword [esi + 0x9cc], eax
mov dword [esi + 0x38f0], 0
pop ebx
mov ecx, esi
call fcn.004075f0
cmp dword [esi + 0x38f0], 0x64
jl 0x407968
mov dword [esi], 1
movups xmm0, xmmword [0x48f5d0]
push 0x2000
push 0
movups xmmword [esi + 0xac0], xmm0
movq xmm0, qword [0x48f5e0]
movq qword [esi + 0xad0], xmm0
mov eax, dword [0x48f5e8]
mov dword [esi + 0xad8], eax
mov dword [esi + 0x2ae0], 3
mov dword [esi + 0x2ae4], 0
mov dword [esi + 0x2ae8], 0
mov dword [esi + 0x3904], 0
mov dword [esi + 0x3908], 0
mov dword [esi + 0x390c], 0
mov dword [esi + 0x3910], 0
mov dword [esi + 0x3914], 0
mov dword [esi + 0x3918], 0
mov dword [esi + 0x3920], 0
mov dword [esi + 0x3924], 0
mov dword [esi + 0x3928], 0
mov dword [esi + 0x392c], 0
mov dword [esi + 0x3930], 0
mov dword [esi + 0x3934], 0
mov dword [esi + 0x3938], 0
mov dword [esi + 0x393c], 0
mov dword [esi + 0x3940], 0
mov dword [esi + 0x3944], 0
mov dword [esi + 0x3948], 0
mov dword [esi + 0x394c], 0
mov dword [esi + 0x3950], 0
mov dword [esi + 0x3954], 0
mov dword [esi + 0x3958], 0
mov dword [esi + 0x395c], 0
mov dword [esi + 0x3960], 0
mov dword [esi + 0x3964], 0
mov dword [esi + 0x391c], 0
add esi, 0xadc
push esi
call fcn.004396e0
add esp, 0xc
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x409700
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461f0d
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x480054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
push 0x14
mov dword [ebp - 0x28], 0
push str.sound_music_default_
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00421450
mov dword [ebp - 4], 0
add dword [esi + 0x9c0], 0xffffffff
jne 0x40976e
mov ecx, esi
call fcn.00401e10
mov eax, dword [esi + 0x9c4]
mov ecx, dword [eax]
add eax, 4
mov dword [esi + 0x9c4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov ecx, dword [ebp - 0x18]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x478570]
mulsd xmm0, qword [0x478068]
addsd xmm0, xmm0
cvttsd2si eax, xmm0
test eax, eax
mov eax, 0x7fffffff
jne 0x409850
sub eax, ecx
cmp eax, 0xc
jb 0x4098fc
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0xc
cmovae eax, dword [ebp - 0x28]
push str.waiting1.ogg
push ecx
push eax
push ecx
push dword [ebp - 0x44]
lea ecx, [ebp - 0x40]
call fcn.00426550
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 1
cmovae eax, dword [ebp - 0x40]
lea esi, [edi + 0xd70]
push 1
push eax
lea eax, [edi + 0xdc4]
mov ecx, esi
push eax
call fcn.004087c0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x409879
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40986f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409901
jmp 0x40986f
sub eax, ecx
cmp eax, 0xc
jb 0x409906
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0xc
cmovae eax, dword [ebp - 0x28]
push str.waiting2.ogg
jmp 0x4097f2
push ecx
push edx
call fcn.0042e51d
add esp, 8
mov eax, dword [esi + 0x40]
inc eax
cdq
idiv dword [esi + 0x44]
mov dword [esi + 0x40], edx
mov ecx, dword [esi + edx*4]
test ecx, ecx
je 0x4098a1
mov eax, dword [esi + 0x4c]
push ecx
movss xmm0, dword [eax]
movss dword [esp], xmm0
push 2
push ecx
call dword [sym.imp.BASS.dll_BASS_ChannelSetAttribute]
mov eax, dword [esi + 0x40]
push 1
push dword [esi + eax*4]
call dword [sym.imp.BASS.dll_BASS_ChannelPlay]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x4098df
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4098d5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409901
push ecx
push edx
call fcn.0042e51d
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042e28e
mov esp, ebp
pop ebp
ret 4
call fcn.00406370
call fcn.0043c5ff
call fcn.00406370
int3
Function at 0x409f10
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x398c], 0xffffffff
je 0x409f34
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
call esi
cmp dword [ebx + 0x398c], 0xffffffff
jne 0x409f27
mov eax, dword [ebx + 0x3910]
mov edi, dword [ebp + 8]
push 0x16
push ecx
push edi
mov ecx, ebx
mov dword [ebx + 0x39dc], eax
call fcn.004078a0
lea esi, [ebx + 0x39ec]
mov edx, 1
mov dword [esi], edi
nop dword [eax + eax]
mov ecx, dword [esi + edx*4 - 4]
shr ecx, 0x1e
xor ecx, dword [esi + edx*4 - 4]
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [esi + edx*4], eax
inc edx
cmp edx, 0x270
jl 0x409f60
mov ecx, esi
call fcn.00401e10
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x409fac
nop dword [eax]
add dword [esi + 0x9c0], 0xffffffff
jne 0x409fa0
mov ecx, esi
call fcn.00401e10
add dword [esi + 0x9c4], 4
sub edi, 1
jne 0x409f90
mov eax, dword [ebx + 0x396c]
lea ecx, [ebx + 0x4414]
mov dword [ebx + 0x3970], eax
mov eax, dword [ebx + 0x39ac]
push 0
mov dword [ebx + 0x39b0], eax
mov eax, dword [ebx + 0x39b8]
push 0x4767cb
mov dword [ebx + 0x3994], 0
mov dword [ebx + 0x39a0], 0
mov dword [ebx + 0x39a4], 0
mov dword [ebx + 0x39a8], 0
mov dword [ebx + 0x3990], 0
mov dword [ebx + 0x398c], 0xffffffff
mov dword [ebx + 0x39bc], eax
mov dword [ebx + 0x39c4], 0xffffffff
mov dword [ebx + 0x39cc], 0
mov dword [ebx + 0x39d0], 0
mov dword [ebx + 0x39d4], 0
mov dword [ebx + 0x39d8], 0
mov dword [ebx + 0x39e0], 0
call fcn.00421450
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40ba90
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
push edi
lea esi, [ebx + 0x39ec]
movsx edi, byte [ebx + 0x9d0]
add dword [esi + 0x9c0], 0xffffffff
jne 0x40bab5
mov ecx, esi
call fcn.00401e10
mov eax, dword [esi + 0x9c4]
movsd xmm2, qword [0x478068]
movd xmm0, edi
cvtdq2pd xmm0, xmm0
mov ecx, dword [eax]
add eax, 4
mov dword [esi + 0x9c4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
shr edi, 0x1f
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
addsd xmm0, qword [edi*8 + 0x478570]
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x478570]
mulsd xmm1, xmm2
mulsd xmm1, xmm0
cvttsd2si edx, xmm1
cmp dword [ebx + 0x39c4], edx
jne 0x40bbce
nop dword [eax]
nop dword [eax + eax]
movsx edi, byte [ebx + 0x9d0]
add dword [esi + 0x9c0], 0xffffffff
jne 0x40bb57
mov ecx, esi
call fcn.00401e10
mov eax, dword [esi + 0x9c4]
movd xmm0, edi
cvtdq2pd xmm0, xmm0
shr edi, 0x1f
mov ecx, dword [eax]
add eax, 4
mov dword [esi + 0x9c4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
addsd xmm0, qword [edi*8 + 0x478570]
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x478570]
mulsd xmm1, xmm2
mulsd xmm1, xmm0
cvttsd2si edx, xmm1
cmp dword [ebx + 0x39c4], edx
je 0x40bb40
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
pop edi
pop esi
mov dword [eax], ecx
mov dword [eax + 4], edx
pop ebx
pop ebp
ret 8
Function at 0x40bd40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46219d
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x480054]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x430], eax
mov dword [ebp - 4], 0
lea ecx, [esi + 8]
mov edi, dword [ecx + 0x10]
lea edx, [esi + 0x20]
mov ebx, dword [edx + 0x10]
mov eax, 0x7fffffff
sub eax, edi
cmp eax, ebx
jb 0x40bebc
cmp dword [ecx + 0x14], 0x10
jb 0x40bda3
mov ecx, dword [ecx]
cmp dword [edx + 0x14], 0x10
jb 0x40bdab
mov edx, dword [edx]
push ebx
push edx
push edi
push ecx
push ecx
push dword [ebp - 0x434]
lea ecx, [ebp - 0x42c]
call fcn.00426550
cmp dword [ebp - 0x418], 0x10
lea ecx, [ebp - 0x42c]
lea edx, [ebp + 0xc]
cmovae ecx, dword [ebp - 0x42c]
lea eax, [esi + 0x38]
cmp dword [ebp + 0x20], 0x10
cmovae edx, dword [ebp + 0xc]
cmp dword [eax + 0x14], 0x10
jb 0x40bdeb
mov eax, dword [eax]
push ecx
push 0x400
lea ecx, [ebp - 0x414]
push ecx
push 0x4767cb
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 0x418]
mov esi, eax
cmp ecx, 0x10
jb 0x40be41
mov edx, dword [ebp - 0x42c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40be37
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bec1
push ecx
push edx
call fcn.0042e51d
add esp, 8
test esi, esi
jle 0x40be6c
lea edx, [ebp - 0x414]
lea edi, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x40be50
mov ecx, dword [ebp - 0x430]
lea eax, [ebp - 0x414]
sub edx, edi
push edx
push eax
call fcn.00421450
mov ecx, dword [ebp + 0x20]
cmp ecx, 0x10
jb 0x40be9c
mov edx, dword [ebp + 0xc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40be92
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bec6
push ecx
push edx
call fcn.0042e51d
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042e28e
mov esp, ebp
pop ebp
ret 0x1c
call fcn.00406370
call fcn.0043c5ff
call fcn.0043c5ff
int3
Function at 0x41ca00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x41cae6
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x41cad5
jg 0x41ca40
test edx, edx
je 0x41cad5
nop dword [eax]
call fcn.004212e0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x41ca94
jg 0x41ca57
test esi, esi
je 0x41ca94
cmp ebx, eax
jg 0x41ca67
jl 0x41ca61
cmp edi, esi
jae 0x41ca67
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.00439150
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x41cab9
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x41cacf
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x41ca40
jl 0x41cacf
test edi, edi
jne 0x41ca40
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov edx, dword [eax]
lea eax, [ecx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
test edx, edx
je 0x41cb0e
mov eax, dword [eax]
mov edx, dword [eax]
jmp 0x41cb14
xor edx, edx
mov dword [esp + 0x18], eax
mov eax, edx
cdq
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
test edi, edi
jl 0x41cb7c
jg 0x41cb29
test esi, esi
je 0x41cb7c
test edx, edx
jl 0x41cb77
jg 0x41cb33
test eax, eax
je 0x41cb77
cmp edi, edx
jg 0x41cb47
jl 0x41cb3d
cmp esi, eax
jae 0x41cb47
mov eax, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov ebx, dword [ebp + 8]
push eax
push ebx
push dword [esp + 0x24]
call fcn.00439150
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x14]
add ebx, edx
mov ecx, dword [esp + 0xc]
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x10]
sub dword [eax], edx
mov eax, dword [ecx + 0x20]
add dword [eax], edx
jmp 0x41cb7f
mov ebx, dword [ebp + 8]
jmp 0x41cb89
mov ebx, dword [ebp + 8]
test edi, edi
jl 0x41cba2
jg 0x41cb89
test esi, esi
je 0x41cba2
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x41cba2
push eax
push esi
push 1
push ebx
call fcn.00440318
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41d0f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x480054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x41d120
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e28e
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x41d15c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x41d15c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e28e
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x41d244
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x41d184
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x41d1b7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0043c679
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e28e
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x41d217
sub eax, 1
je 0x41d217
sub eax, 2
jne 0x41d244
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.0043c679
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e28e
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x41d234
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00440318
add esp, 0x10
cmp edi, eax
jne 0x41d244
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x41d147
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e28e
mov esp, ebp
pop ebp
ret 4