joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4952d0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4c690f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
mov eax, dword [0x51eea4]
xor eax, dword [esp + 0x70]
push ebx
xor ebx, ebx
push esi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x68], eax
push edi
mov esi, ecx
mov dword [esp + 0xc], ebx
mov eax, str.data_objects_balls_
mov dword [esp + 0x78], 1
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x495324
sub eax, edi
push eax
push str.data_objects_balls_
lea ecx, [esp + 0x20]
call fcn.00402cd0
mov eax, dword [esp + 0x84]
push eax
lea ecx, [esp + 0x54]
push ecx
mov ecx, esi
mov byte [esp + 0x80], 2
call fcn.0048f5e0
push str..xml
push eax
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x84], 3
call fcn.00402f70
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x84], 4
call fcn.00402530
cmp dword [esp + 0x4c], 0x10
jb 0x49539c
mov eax, dword [esp + 0x38]
push eax
call fcn.004ade5d
add esp, 4
cmp dword [esp + 0x68], 0x10
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov byte [esp + 0x78], 2
jb 0x4953c5
mov ecx, dword [esp + 0x54]
push ecx
call fcn.004ade5d
add esp, 4
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x90]
push eax
call fcn.00415620
mov ecx, eax
call fcn.00431b90
mov esi, dword [eax]
cmp esi, ebx
je 0x4953e9
inc dword [esi + 4]
mov eax, dword [esp + 0x84]
cmp eax, ebx
mov dword [esp + 0xc], esi
mov byte [esp + 0x78], 2
je 0x495414
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
mov dword [eax], edx
mov dword [esp + 0x14], edx
jne 0x495414
mov eax, dword [ecx]
push 1
call dword [eax]
cmp esi, ebx
mov edi, dword [esp + 0x80]
mov dword [edi], esi
je 0x495424
inc dword [esi + 4]
cmp dword [esp + 0x30], 0x10
mov dword [esp + 0x10], 1
jb 0x495440
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004ade5d
add esp, 4
cmp esi, ebx
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
mov byte [esp + 0x78], bl
je 0x495465
dec dword [esi + 4]
jne 0x495465
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x6c]
xor ecx, dword [esp + 0x7c]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.004ae650
add esp, 0x70
ret 8
Function at 0x4a7470
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4c7ab6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
mov dword [esp + 0x18], 1
xor ebp, ebp
push edi
lea esp, [esp]
mov ecx, dword [esi + 0x38]
cmp ecx, ebx
jne 0x4a74ab
xor eax, eax
jmp 0x4a74b3
mov eax, dword [esi + 0x3c]
sub eax, ecx
sar eax, 2
cmp ebp, eax
mov eax, dword [esi + 0x38]
jge 0x4a74f3
mov ecx, dword [eax + ebp*4]
mov ecx, dword [ecx + 0x20]
cmp ecx, ebx
je 0x4a74cb
push 1
call fcn.004244f0
mov edx, dword [esi + 0x38]
mov edi, dword [edx + ebp*4]
cmp edi, ebx
je 0x4a74f0
mov ecx, dword [edi + 0x20]
cmp ecx, ebx
je 0x4a74e7
dec dword [ecx + 4]
jne 0x4a74e7
mov eax, dword [ecx]
push 1
call dword [eax]
push edi
call fcn.004ade5d
add esp, 4
inc ebp
jmp 0x4a74a0
cmp eax, ebx
je 0x4a7500
push eax
call fcn.004ade5d
add esp, 4
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov edi, dword [esi + 0x74]
cmp edi, ebx
je 0x4a7531
mov ebp, dword [esi + 0x78]
cmp edi, ebp
je 0x4a7525
mov ecx, edi
call fcn.004a6360
add edi, 0x18
cmp edi, ebp
jne 0x4a7517
mov eax, dword [esi + 0x74]
push eax
call fcn.004ade5d
add esp, 4
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x9c], ebx
mov edi, dword [esi + 0x74]
cmp edi, ebx
mov byte [esp + 0x1c], bl
je 0x4a756c
mov ebp, dword [esi + 0x78]
cmp edi, ebp
je 0x4a7560
mov ecx, edi
call fcn.004a6360
add edi, 0x18
cmp edi, ebp
jne 0x4a7552
mov ecx, dword [esi + 0x74]
push ecx
call fcn.004ade5d
add esp, 4
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov eax, dword [esi + 0x38]
cmp eax, ebx
pop edi
je 0x4a7586
push eax
call fcn.004ade5d
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4af573
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4f80e0
call fcn.004b163c
mov edi, 0x94
mov eax, edi
call fcn.004ae7c0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.kernel32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x520d28], ecx
mov eax, dword [esi + 4]
mov dword [0x520d34], eax
mov edx, dword [esi + 8]
mov dword [0x520d38], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x520d2c], esi
cmp ecx, 2
je 0x4af5d3
or esi, 0x8000
mov dword [0x520d2c], esi
shl eax, 8
add eax, edx
mov dword [0x520d30], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.kernel32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4af60e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4af60e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4af626
cmp eax, 0x20b
je 0x4af613
mov dword [ebp - 0x1c], esi
jmp 0x4af63a
cmp dword [ecx + 0x84], 0xe
jbe 0x4af60e
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4af634
cmp dword [ecx + 0x74], 0xe
jbe 0x4af60e
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004b58b2
pop ecx
test eax, eax
jne 0x4af666
cmp dword [0x520cec], 1
jne 0x4af653
call fcn.004b5206
push 0x1c
call fcn.004b508f
push 0xff
call fcn.004b0d16
pop ecx
pop ecx
call fcn.004b5810
mov dword [ebp - 4], esi
call fcn.00573e62
test eax, eax
jge 0x4af67f
push 0x1b
call fcn.004af54e
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x522430], eax
call fcn.004b56ee
mov dword [0x520ce4], eax
call fcn.004b564c
test eax, eax
jge 0x4af6a5
push 8
call fcn.004af54e
pop ecx
call fcn.004b5419
test eax, eax
jge 0x4af6b6
push 9
call fcn.004af54e
pop ecx
call fcn.004b0d46
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x4af6c9
push eax
call fcn.004af54e
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
call fcn.004b53b0
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x4af6ea
movzx eax, word [ebp - 0x34]
jmp 0x4af6ed
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.0044b930
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4af70b
push edi
call fcn.004b0e6d
call fcn.004b0e8f
jmp 0x4af73d
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004b1677
ret
Function at 0x4b0dab
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x520d68], esi
push edi
jne 0x4b0dcb
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x520d64], esi
mov byte [0x520d60], al
jne 0x4b0e31
mov ecx, dword [0x522428]
test ecx, ecx
je 0x4b0e12
mov eax, dword [0x522424]
sub eax, 4
cmp eax, ecx
jmp 0x4b0e0b
mov eax, dword [eax]
test eax, eax
je 0x4b0dfd
call eax
mov eax, dword [0x522424]
sub eax, 4
cmp eax, dword [0x522428]
mov dword [0x522424], eax
jae 0x4b0df5
mov eax, 0x50dd84
mov esi, 0x50dd8c
cmp eax, esi
mov edi, eax
jae 0x4b0e31
mov eax, dword [edi]
test eax, eax
je 0x4b0e2a
call eax
add edi, 4
cmp edi, esi
jb 0x4b0e22
mov eax, 0x50dd90
mov esi, 0x50dd98
cmp eax, esi
mov edi, eax
jae 0x4b0e50
mov eax, dword [edi]
test eax, eax
je 0x4b0e49
call eax
add edi, 4
cmp edi, esi
jb 0x4b0e41
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4b0e6b
push dword [ebp + 8]
mov dword [0x520d68], 1
call fcn.004b0d16
pop ecx
pop ebp
ret

Function at 0x4b508f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x51eea4]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x51f288]
je 0x4b50bc
inc eax
cmp eax, 0x12
jb 0x4b50ad
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x51f288]
jne 0x4b51f0
mov eax, dword [0x520cec]
cmp eax, 1
je 0x4b51cb
cmp eax, edx
jne 0x4b50ec
cmp dword [0x51ef08], 1
je 0x4b51cb
cmp ecx, 0xfc
je 0x4b51f0
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b5125
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.004afa90
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.004afc20
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4b5167
lea eax, [ebp - 0x10c]
push eax
call fcn.004afc20
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4f837c
push edi
call fcn.004b6b20
add esp, 0x10
push edi
call fcn.004afc20
push dword [esi + 0x51f28c]
mov ebx, eax
call fcn.004afc20
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004ae7c0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004afa90
push edi
push ebx
call fcn.004afaa0
push 0x4f8378
push ebx
call fcn.004afaa0
push dword [esi + 0x51f28c]
push ebx
call fcn.004afaa0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004b7b96
add esp, 0x2c
jmp 0x4b51f0
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x51f28c]
push dword [esi]
call fcn.004afc20
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004ae650
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b78d1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x51eea4]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x522310]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
jae 0x4b7a61
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x522320]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x18], ebx
je 0x4b7a61
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
jne 0x4b7930
xor eax, eax
jmp 0x4b7a75
test al, 0x20
je 0x4b7941
push 2
push edi
push edi
push ecx
call fcn.004ba3bf
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4b79fd
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
jbe 0x4b7a35
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
cmp ecx, dword [ebp + 0x10]
jae 0x4b7997
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4b7988
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x18]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x4b796d
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x4b79d7
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
cmp eax, edi
jl 0x4b79e0
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x4b7961
jmp 0x4b79e2
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x4b7a5c
cmp dword [ebp + 8], edi
je 0x4b7a35
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x4b7a2a
mov dword [0x520d20], eax
jmp 0x4b7a68
push edi
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x4b7a1f
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
jmp 0x4b79e2
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x4b79e2
push dword [ebp + 8]
call fcn.004b76a8
pop ecx
jmp 0x4b7a72
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4b7a4a
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x4b7929
mov dword [0x520d1c], 0x1c
mov dword [0x520d20], edi
jmp 0x4b7a72
sub eax, dword [ebp - 0x14]
jmp 0x4b7a75
and dword [0x520d20], 0
mov dword [0x520d1c], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.004ae650
leave
ret
Function at 0x4b7b96
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x520f88], ebx
push esi
push edi
jne 0x4b7c16
push str.user32.dll
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4b7c51
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x520f88], eax
je 0x4b7c51
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x520f8c], eax
call esi
cmp dword [0x520d28], 2
mov dword [0x520f90], eax
jne 0x4b7c16
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x520f98], eax
je 0x4b7c16
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x520f94], eax
mov eax, dword [0x520f94]
test eax, eax
je 0x4b7c5b
call eax
test eax, eax
je 0x4b7c42
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x520f98]
test eax, eax
je 0x4b7c42
test byte [ebp - 8], 1
jne 0x4b7c5b
cmp dword [0x520d34], 4
jb 0x4b7c55
or byte [ebp + 0x12], 0x20
jmp 0x4b7c7a
xor eax, eax
jmp 0x4b7c8a
or byte [ebp + 0x12], 4
jmp 0x4b7c7a
mov eax, dword [0x520f8c]
test eax, eax
je 0x4b7c7a
call eax
mov ebx, eax
test ebx, ebx
je 0x4b7c7a
mov eax, dword [0x520f90]
test eax, eax
je 0x4b7c7a
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x520f88]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4b8a8c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.004ae7c0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x4b8b21
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x520d28]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4b8b21
cmp eax, 1
je 0x4b8b39
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x4b8b21
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x4b8af6
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4b8b1d
xor eax, eax
inc eax
jmp 0x4b8b55
cmp esi, ebx
jae 0x4b8b25
xor eax, eax
jmp 0x4b8b55
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov eax, dword [0x520d28]
jmp 0x4b8b3b
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.kernel32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ba77a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x522310]
push edi
jae 0x4ba941
mov eax, esi
sar eax, 5
lea ebx, [eax*4 + 0x522320]
mov eax, dword [ebx]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x4ba941
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp + 0xc]
mov ecx, edi
je 0x4ba820
test dl, 2
jne 0x4ba820
test dl, 0x48
je 0x4ba7ea
mov al, byte [eax + 5]
cmp al, 0xa
je 0x4ba7ea
dec dword [ebp + 0x10]
mov byte [edi], al
mov eax, dword [ebx]
lea ecx, [edi + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebx]
push ecx
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x4ba833
call dword [sym.imp.kernel32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x4ba81b
mov dword [0x520d20], ecx
jmp 0x4ba948
cmp eax, 0x6d
jne 0x4ba827
xor eax, eax
jmp 0x4ba955
push eax
call fcn.004b76a8
pop ecx
jmp 0x4ba952
mov eax, dword [ebx]
mov edx, dword [ebp - 0x10]
add dword [ebp - 0xc], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x4ba93c
test edx, edx
je 0x4ba856
cmp byte [edi], 0xa
jne 0x4ba856
or al, 4
jmp 0x4ba858
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x4ba936
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x4ba926
cmp al, 0xd
je 0x4ba88c
mov byte [edi], al
inc edi
inc dword [ebp - 8]
jmp 0x4ba918
dec ecx
cmp dword [ebp - 8], ecx
jae 0x4ba8a6
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x4ba8a1
add dword [ebp - 8], 2
jmp 0x4ba8fa
mov dword [ebp - 8], eax
jmp 0x4ba914
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x4ba8ce
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x4ba914
cmp dword [ebp - 0x10], 0
je 0x4ba914
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x48
je 0x4ba8ef
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4ba8fa
mov byte [edi], 0xd
mov ecx, dword [ebx]
mov byte [ecx + esi + 5], al
jmp 0x4ba917
cmp edi, dword [ebp + 0xc]
jne 0x4ba8ff
cmp byte [ebp - 1], 0xa
jne 0x4ba8ff
mov byte [edi], 0xa
jmp 0x4ba917
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004b0ead
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4ba918
mov byte [edi], 0xd
inc edi
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x4ba870
jmp 0x4ba936
mov eax, dword [ebx]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x4ba936
or al, 2
mov byte [esi], al
sub edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
jmp 0x4ba955
and dword [0x520d20], 0
mov dword [0x520d1c], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ba95a
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.004ae7c0
mov eax, dword [0x51eea4]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x522310]
mov dword [ebp - 4], eax
jae 0x4baa9a
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x522320]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x4baa9a
push 1
push esi
push ebx
call fcn.004b0ead
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4baaa4
push 2
push esi
push ebx
call fcn.004b0ead
add esp, 0xc
cmp eax, 0xffffffff
je 0x4baaa4
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4baa47
push 0x1000
lea eax, [ebp - 0x1008]
push esi
push eax
call fcn.004afcc0
push 0x8000
push ebx
call fcn.004bab71
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x4baa06
mov eax, edi
push eax
lea eax, [ebp - 0x1008]
push eax
push ebx
call fcn.004b78d1
add esp, 0xc
cmp eax, 0xffffffff
je 0x4baa24
sub edi, eax
test edi, edi
jg 0x4ba9fb
jmp 0x4baa3a
cmp dword [0x520d20], 5
jne 0x4baa37
mov dword [0x520d1c], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.004bab71
pop ecx
pop ecx
jmp 0x4baa87
jge 0x4baa87
push 0
push dword [ebp + 0xc]
push ebx
call fcn.004b0ead
push ebx
call fcn.004b7895
add esp, 0x10
push eax
call dword [sym.imp.kernel32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x4baa87
mov dword [0x520d1c], 0xd
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [0x520d20], eax
push 0
push dword [ebp - 8]
push ebx
call fcn.004b0ead
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4baaa7
mov dword [0x520d1c], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.004ae650
leave
ret
Function at 0x411c59
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [0x45edfc]
mov ebx, ecx
push edi
mov edi, dword [0x45ee04]
cmp esi, edi
jne 0x411d7b
xor esi, esi
lea eax, [ebp - 4]
cmp dword [0x41e18c], 1
push esi
push eax
jne 0x411cb0
push 0x10000
push 0x43edf8
push dword [0x45edf8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411ccb
mov ecx, dword [ebp - 4]
mov eax, ecx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
jmp 0x411d09
mov edi, 0x10000
push edi
push 0x41edf8
push dword [0x45edf8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x411cdc
mov dword [0x41edf0], 0x82
xor eax, eax
jmp 0x411d95
mov eax, dword [0x460220]
push edi
push 0x43edf8
push dword [ebp - 4]
neg eax
push 0x41edf8
sbb eax, eax
and eax, 0xfde6
push 1
add eax, 3
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp - 4]
mov edi, eax
mov eax, dword [0x45ee0c]
add eax, ecx
mov dword [0x45ee04], edi
mov ecx, dword [0x45ee08]
mov dword [0x45edfc], esi
mov dword [0x45ee0c], eax
test ecx, ecx
je 0x411d34
xor edx, edx
div ecx
cmp eax, 0x64
jbe 0x411d37
push 0x64
pop eax
cmp dword [0x45ee10], eax
je 0x411d79
mov ecx, dword [0x41ede0]
mov dword [0x45ee10], eax
test ecx, ecx
je 0x411d79
push esi
push eax
push 0x402
push 0x65
push ecx
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
mov ecx, dword [0x41ede0]
call fcn.0049cd8d
test eax, eax
jne 0x411d5e
mov edi, dword [0x45ee04]
mov esi, dword [0x45edfc]
cmp esi, edi
jge 0x411cd5
mov cx, word [esi*2 + 0x43edf8]
xor eax, eax
mov word [ebx], cx
inc dword [0x45edfc]
inc eax
pop edi
pop esi
pop ebx
leave
ret