joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006edb0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x14], 0
mov byte [esp + 0x13], 0
mov eax, dword [esi]
push 0
push 0
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, ebp
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x20], eax
je 0x1006ee0b
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x18]
push ecx
push edi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1006ee0b
cmp dword [esp + 0x14], edi
je 0x1006ee22
lea eax, [esp + 0x13]
push eax
call fcn.1006eab0
add esp, 4
test al, al
je 0x1006ee2c
inc byte [esp + 0x13]
jmp 0x1006edd4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret

Function at 0x1006ee40
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x14], 0
mov byte [esp + 0x13], 0
mov eax, dword [esi]
push 0
push 0
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, ebp
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x20], eax
je 0x1006ee9b
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x18]
push ecx
push edi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1006ee9b
cmp dword [esp + 0x14], edi
je 0x1006eeb2
lea eax, [esp + 0x13]
push eax
call fcn.1006eab0
add esp, 4
test al, al
je 0x1006eebc
inc byte [esp + 0x13]
jmp 0x1006ee64
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret

Function at 0x1006ef20
Capabilities:
Get file size

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push eax
mov byte [esp + 0x13], 0
call edi
cmp eax, 0xffffffff
jne 0x1006ef61
mov edi, edi
lea ecx, [esp + 0xb]
push ecx
call fcn.1006eab0
add esp, 4
test al, al
je 0x1006ef6d
inc byte [esp + 0xb]
mov edx, dword [esi]
push 0
push edx
call edi
cmp eax, 0xffffffff
je 0x1006ef40
mov ecx, dword [esp + 0x14]
pop edi
mov dword [ecx], eax
mov al, 1
pop esi
pop ecx
ret
pop edi
xor al, al
pop esi
pop ecx
ret
Function at 0x10078ab5
Capabilities:
Accept command line arguments
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x10078ba2
mov eax, 0x94
call fcn.10077340
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10078c17
mov ecx, dword [esi + 0x10]
mov dword [0x1009cdb8], ecx
mov eax, dword [esi + 4]
mov dword [0x1009cdc4], eax
mov edx, dword [esi + 8]
mov dword [0x1009cdc8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x1009cdbc], esi
je 0x10078b20
or esi, 0x8000
mov dword [0x1009cdbc], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x1009cdc0], eax
call fcn.1007b2b5
test eax, eax
pop ecx
je 0x10078c17
call fcn.1007950b
test eax, eax
jne 0x10078b4d
call fcn.1007b306
jmp 0x10078c17
call fcn.1007dea0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1009e5c0], eax
call fcn.1007dd7e
mov dword [0x1009cda0], eax
call fcn.1007d85f
test eax, eax
jl 0x10078b9b
call fcn.1007dcdc
test eax, eax
jl 0x10078b96
call fcn.1007daa9
test eax, eax
jl 0x10078b96
call fcn.10078ea5
test eax, eax
jne 0x10078b96
inc dword [0x1009cd9c]
jmp 0x10078c28
call fcn.1007da5d
call fcn.100792fe
jmp 0x10078b43
test eax, eax
jne 0x10078bd2
cmp dword [0x1009cd9c], eax
jle 0x10078c17
dec dword [0x1009cd9c]
cmp dword [0x1009cdf4], eax
jne 0x10078bc1
call fcn.10078fee
call fcn.1007da5d
call fcn.100792fe
call fcn.1007b306
jmp 0x10078c28
cmp eax, 2
jne 0x10078c1b
push 0x88
push 1
call fcn.1007d7a4
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10078c17
push esi
push dword [0x10098954]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
push esi
je 0x10078c11
call fcn.1007931c
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x10078c28
call fcn.100787df
pop ecx
xor eax, eax
jmp 0x10078c2b
cmp eax, 3
jne 0x10078c28
push 0
call fcn.100793a0
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x10078f0a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.1007b26a
xor esi, esi
inc esi
cmp dword [0x1009cdf8], esi
pop ecx
jne 0x10078f32
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 [0x1009cdf4], esi
mov byte [0x1009cdf0], al
jne 0x10078f98
mov ecx, dword [0x1009e5b8]
test ecx, ecx
je 0x10078f79
mov eax, dword [0x1009e5b4]
sub eax, 4
cmp eax, ecx
jmp 0x10078f72
mov eax, dword [eax]
test eax, eax
je 0x10078f64
call eax
mov eax, dword [0x1009e5b4]
sub eax, 4
cmp eax, dword [0x1009e5b8]
mov dword [0x1009e5b4], eax
jae 0x10078f5c
mov eax, 0x1009602c
mov esi, 0x10096034
cmp eax, esi
mov edi, eax
jae 0x10078f98
mov eax, dword [edi]
test eax, eax
je 0x10078f91
call eax
add edi, 4
cmp edi, esi
jb 0x10078f89
mov eax, 0x10096038
mov esi, 0x10096040
cmp eax, esi
mov edi, eax
jae 0x10078fb7
mov eax, dword [edi]
test eax, eax
je 0x10078fb0
call eax
add edi, 4
cmp edi, esi
jb 0x10078fa8
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x10078fc8
push 8
call fcn.1007b1d6
jmp 0x10078fda
push dword [ebp + 8]
mov dword [0x1009cdf8], 1
call fcn.10078e63
pop ecx
pop ebp
ret
Function at 0x1007df2e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10098f90]
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 + 0x10098e00]
je 0x1007df5b
inc eax
cmp eax, 0x12
jb 0x1007df4c
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10098e00]
jne 0x1007e08f
mov eax, dword [0x1009cda8]
cmp eax, 1
je 0x1007e06a
cmp eax, edx
jne 0x1007df8b
cmp dword [0x1009cdac], 1
je 0x1007e06a
cmp ecx, 0xfc
je 0x1007e08f
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 0x1007dfc4
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.1007e0e0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.1007c290
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1007e006
lea eax, [ebp - 0x10c]
push eax
call fcn.1007c290
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x1008ba68
push edi
call fcn.1007e890
add esp, 0x10
push edi
call fcn.1007c290
push dword [esi + 0x10098e04]
mov ebx, eax
call fcn.1007c290
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10077340
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.1007e0e0
push edi
push ebx
call fcn.1007e0f0
push 0x1008ba48
push ebx
call fcn.1007e0f0
push dword [esi + 0x10098e04]
push ebx
call fcn.1007e0f0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.10082747
add esp, 0x2c
jmp 0x1007e08f
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x10098e04]
push dword [esi]
call fcn.1007c290
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.1007ea51
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1007f394
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.10077340
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1007f429
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 [0x1009cdb8]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x1007f429
cmp eax, 1
je 0x1007f441
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 0x1007f429
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x1007f3fe
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x1007f425
xor eax, eax
inc eax
jmp 0x1007f45d
cmp esi, ebx
jae 0x1007f42d
xor eax, eax
jmp 0x1007f45d
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1009cdb8]
jmp 0x1007f443
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 0x1008195b
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 0x10081b21
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x1009d460]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x10081b21
test cl, 0x48
je 0x100819c1
mov al, byte [eax + 5]
cmp al, 0xa
je 0x100819c1
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 0x10081a13
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x100819fb
call fcn.1007861d
mov dword [eax], 9
call fcn.10078626
mov dword [eax], esi
jmp 0x10081a0b
cmp eax, 0x6d
je 0x10081b21
push eax
call fcn.1007862f
pop ecx
or eax, 0xffffffff
jmp 0x10081b23
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 0x10081b1c
test edx, edx
je 0x10081a36
cmp byte [ebx], 0xa
jne 0x10081a36
or al, 4
jmp 0x10081a38
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 0x10081b16
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x10081b06
cmp al, 0xd
je 0x10081a6c
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x10081af8
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x10081a86
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x10081a81
add dword [ebp + 0x10], 2
jmp 0x10081ada
mov dword [ebp + 0x10], eax
jmp 0x10081af4
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 0x10081aae
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10081af4
cmp dword [ebp - 0xc], 0
je 0x10081af4
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x10081acf
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x10081ada
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x10081af7
cmp ebx, dword [ebp + 0xc]
jne 0x10081adf
cmp byte [ebp - 1], 0xa
jne 0x10081adf
mov byte [ebx], 0xa
jmp 0x10081af7
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10083491
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x10081af8
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x10081a50
jmp 0x10081b16
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x10081b16
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x10081b23
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10081f35
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x10098f90]
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 0x10081f5e
xor eax, eax
jmp 0x100820cc
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 + 0x1009d460]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x10081f91
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.100835b0
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x10082063
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x1008209e
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 0x10081fec
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x10081fdd
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 0x10081fc0
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 0x1008202c
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x10082035
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x10081fb1
jmp 0x10082037
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x100820c7
cmp dword [ebp - 8], edi
je 0x1008209e
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x10082090
call fcn.1007861d
mov dword [eax], 9
call fcn.10078626
mov dword [eax], esi
jmp 0x10082099
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 0x10082085
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x10082037
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x10082037
push dword [ebp - 8]
call fcn.1007862f
pop ecx
or eax, 0xffffffff
jmp 0x100820ca
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x100820b3
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x100820b3
xor eax, eax
jmp 0x100820ca
call fcn.1007861d
mov dword [eax], 0x1c
call fcn.10078626
mov dword [eax], edi
jmp 0x10082099
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.1007ea51
leave
ret
Function at 0x10082747
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1009d108], ebx
push esi
push edi
jne 0x100827c7
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10082802
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x1009d108], eax
je 0x10082802
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x1009d10c], eax
call esi
cmp dword [0x1009cdb8], 2
mov dword [0x1009d110], eax
jne 0x100827c7
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x1009d118], eax
je 0x100827c7
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x1009d114], eax
mov eax, dword [0x1009d114]
test eax, eax
je 0x1008280c
call eax
test eax, eax
je 0x100827f3
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1009d118]
test eax, eax
je 0x100827f3
test byte [ebp - 8], 1
jne 0x1008280c
cmp dword [0x1009cdc4], 4
jb 0x10082806
or byte [ebp + 0x12], 0x20
jmp 0x1008282b
xor eax, eax
jmp 0x1008283b
or byte [ebp + 0x12], 4
jmp 0x1008282b
mov eax, dword [0x1009d10c]
test eax, eax
je 0x1008282b
call eax
mov ebx, eax
test ebx, ebx
je 0x1008282b
mov eax, dword [0x1009d110]
test eax, eax
je 0x1008282b
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1009d108]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10083633
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.10077340
mov eax, dword [0x10098f90]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.10083491
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x1008375d
push 2
push esi
push dword [ebp + 8]
call fcn.10083491
add esp, 0xc
cmp eax, ebx
je 0x1008375d
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x10083700
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.1007e9c0
push 0x8000
push dword [ebp + 8]
call fcn.100837f1
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x100836b9
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.10081f35
add esp, 0xc
cmp eax, 0xffffffff
je 0x100836d9
sub edi, eax
test edi, edi
jg 0x100836b1
jmp 0x100836f1
call fcn.10078626
cmp dword [eax], 5
jne 0x100836ee
call fcn.1007861d
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.100837f1
pop ecx
pop ecx
jmp 0x10083748
jge 0x10083748
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10083491
push dword [ebp + 8]
call fcn.10081d12
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, ebx
jne 0x10083748
call fcn.1007861d
mov dword [eax], 0xd
call fcn.10078626
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.10083491
add esp, 0xc
mov eax, esi
pop edi
jmp 0x1008375f
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.1007ea51
leave
ret
Function at 0x416888
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x424468]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408c75
mov dword [ebp - 0x14], eax
cmp dword [0x4572bc], esi
jne 0x41697b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x416908
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x416a5b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x416a5b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x416a5b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4572bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4572c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4572c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4572cc], eax
test eax, eax
je 0x416978
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4572c8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4169a0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x416993
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4169b5
push 4
pop eax
jmp 0x416a5d
cmp dword [ebp - 0x14], esi
je 0x4169b5
push dword [0x4572bc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41699a
mov eax, dword [0x4572c8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x416a13
cmp dword [0x4572cc], edi
je 0x416a13
push eax
call ebx
push dword [0x4572cc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x416a13
test eax, eax
je 0x416a13
call ecx
test eax, eax
je 0x416a08
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x416a08
test byte [ebp - 8], 1
jne 0x416a13
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x416a43
mov eax, dword [0x4572c0]
cmp eax, edi
je 0x416a40
push eax
call ebx
test eax, eax
je 0x416a40
call eax
mov esi, eax
test esi, esi
je 0x416a40
mov eax, dword [0x4572c4]
cmp eax, edi
je 0x416a40
push eax
call ebx
test eax, eax
je 0x416a40
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4572bc]
call ebx
test eax, eax
je 0x416a5b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x416a5d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406e3a
mov esp, ebp
pop ebp
ret