joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419400
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
jmp 0x41b551
push 0x128
push 0x426888
call fcn.00421df0
mov eax, dword [0x42d26c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x124]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
or dword [ebp - 0x12c], 0xffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x41b661
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x134], esi
cmp esi, 0x104
jle 0x41b612
mov dword [ebp - 4], ebx
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.0041b3a0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x138], edi
jmp 0x41b5ff
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x41b661
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, ebx
je 0x41b661
mov al, byte [edi]
cmp al, 0x5c
je 0x41b620
cmp al, 0x2f
jne 0x41b625
cmp al, byte [edi + 1]
je 0x41b65b
mov byte [ebp - 0x128], 0x3d
movzx eax, byte [edi]
push eax
call fcn.00421c92
pop ecx
mov byte [ebp - 0x127], al
mov byte [ebp - 0x126], 0x3a
mov byte [ebp - 0x125], bl
push edi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x41b661
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00421c33
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x41b67d
push edi
call fcn.00419c0c
pop ecx
mov eax, dword [ebp - 0x12c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004217a9
call fcn.00421e2b
ret

Function at 0x419420
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push edi
xor edi, edi
test bl, 1
je 0x41943c
mov edi, 0x10
test bl, 2
je 0x419444
or edi, 6
mov ecx, dword [esp + 0x154]
lea eax, [esp + 0x10]
push eax
push ecx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41946e
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144
ret
push esi
mov esi, dword [esp + 0x15c]
and ebx, 4
lea esp, [esp]
mov edx, dword [esp + 0x14]
xor eax, eax
and edx, edi
cmp eax, edx
sbb eax, eax
neg eax
test ebx, ebx
jne 0x41949b
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
test eax, eax
je 0x4194d9
mov al, byte [esp + 0x40]
test al, al
je 0x4194d9
cmp al, 0x2e
jne 0x4194bf
mov al, byte [esp + 0x41]
test al, al
je 0x4194d9
cmp al, 0x2e
jne 0x4194bf
mov al, byte [esp + 0x42]
test al, al
je 0x4194d9
lea edx, [esp + 0x40]
push edx
push esi
inc ebp
call fcn.004096d0
push 0x426408
push esi
call fcn.004096d0
add esp, 0x10
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x419480
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x144
ret
Function at 0x41b247
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x41b275
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x41b27a
cmp eax, 1
je 0x41b27a
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x41b27e
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x42d26c]
push ebx
mov ebx, dword [ebp + 0x98]
xor eax, ebp
test ebx, ebx
push edi
mov edi, dword [ebp + 0x9c]
mov dword [ebp + 0x8c], eax
je 0x41b30e
push ebx
call fcn.0041b247
test eax, eax
pop ecx
jne 0x41b2e3
mov dword [0x42e968], 0xf
mov dword [0x42e964], 0xd
xor eax, eax
mov ecx, dword [ebp + 0x8c]
pop edi
xor ecx, ebp
pop ebx
call fcn.004217a9
add ebp, 0x90
leave
ret
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x104
lea eax, [ebp - 0x7c]
add bl, 0x40
push eax
mov byte [ebp - 0x7c], bl
mov byte [ebp - 0x7b], 0x3a
mov byte [ebp - 0x7a], 0x2e
mov byte [ebp - 0x79], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x41b31d
lea eax, [ebp - 0x78]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x41b2ca
inc eax
cmp eax, 0x104
ja 0x41b2ca
test edi, edi
mov ecx, edi
jne 0x41b359
cmp eax, dword [ebp + 0xa0]
jg 0x41b33d
mov eax, dword [ebp + 0xa0]
push eax
call fcn.00419bfa
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x41b370
mov dword [0x42e964], 0xc
jmp 0x41b2ca
cmp eax, dword [ebp + 0xa0]
jle 0x41b370
mov dword [0x42e964], 0x22
jmp 0x41b2ca
lea eax, [ebp - 0x78]
push eax
push ecx
call fcn.00421680
pop ecx
pop ecx
jmp 0x41b2cc
Function at 0x41b6be
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x426898
call fcn.00421df0
mov edi, 0x94
mov eax, edi
call fcn.0041b3a0
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 [0x42e970], ecx
mov eax, dword [esi + 4]
mov dword [0x42e97c], eax
mov edx, dword [esi + 8]
mov dword [0x42e980], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x42e974], esi
cmp ecx, 2
je 0x41b71e
or esi, 0x8000
mov dword [0x42e974], esi
shl eax, 8
add eax, edx
mov dword [0x42e978], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41b759
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41b759
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41b771
cmp eax, 0x20b
je 0x41b75e
mov dword [ebp - 0x1c], esi
jmp 0x41b785
cmp dword [ecx + 0x84], 0xe
jbe 0x41b759
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x41b77f
cmp dword [ecx + 0x74], 0xe
jbe 0x41b759
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0041c907
pop ecx
test eax, eax
jne 0x41b7b1
cmp dword [0x42e960], 1
jne 0x41b79e
call fcn.004220bd
push 0x1c
call fcn.00421f45
push 0xff
call fcn.0041b89a
pop ecx
pop ecx
call fcn.004226bb
mov dword [ebp - 4], esi
call fcn.0041ddf6
test eax, eax
jge 0x41b7ca
push 0x1b
call fcn.0041b699
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x42ff94], eax
call fcn.00422599
mov dword [0x42e958], eax
call fcn.004224f7
test eax, eax
jge 0x41b7f0
push 8
call fcn.0041b699
pop ecx
call fcn.004222c4
test eax, eax
jge 0x41b801
push 9
call fcn.0041b699
pop ecx
push 1
call fcn.0041b8ca
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x41b817
push eax
call fcn.0041b699
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00422267
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x41b838
movzx eax, word [ebp - 0x40]
jmp 0x41b83b
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00418840
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x41b859
push edi
call fcn.0041b9f5
call fcn.0041ba17
jmp 0x41b88b
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00421e2b
ret
Function at 0x41b934
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x42e9b0], esi
push edi
jne 0x41b954
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 [0x42e9ac], esi
mov byte [0x42e9a8], al
jne 0x41b9ba
mov ecx, dword [0x42ff8c]
test ecx, ecx
je 0x41b99b
mov eax, dword [0x42ff88]
sub eax, 4
cmp eax, ecx
jmp 0x41b994
mov eax, dword [eax]
test eax, eax
je 0x41b986
call eax
mov eax, dword [0x42ff88]
sub eax, 4
cmp eax, dword [0x42ff8c]
mov dword [0x42ff88], eax
jae 0x41b97e
mov eax, 0x42d02c
mov esi, 0x42d034
cmp eax, esi
mov edi, eax
jae 0x41b9ba
mov eax, dword [edi]
test eax, eax
je 0x41b9b3
call eax
add edi, 4
cmp edi, esi
jb 0x41b9ab
mov eax, 0x42d038
mov esi, 0x42d040
cmp eax, esi
mov edi, eax
jae 0x41b9d9
mov eax, dword [edi]
test eax, eax
je 0x41b9d2
call eax
add edi, 4
cmp edi, esi
jb 0x41b9ca
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x41b9f3
push dword [ebp + 8]
mov dword [0x42e9b0], 1
call fcn.0041b89a
pop ebp
ret
Function at 0x41c3b9
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 [0x42fe48]
push edi
jae 0x41c590
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x42fe60]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x41c590
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x41c464
test dl, 2
jne 0x41c464
test dl, 0x48
je 0x41c42e
cmp byte [eax + 5], 0xa
je 0x41c42e
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 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 [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41c477
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x41c45f
mov dword [0x42e968], ecx
jmp 0x41c597
cmp eax, 0x6d
jne 0x41c46b
xor eax, eax
jmp 0x41c5a4
push eax
call fcn.00421c33
pop ecx
jmp 0x41c5a1
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x41c58b
test eax, eax
je 0x41c49e
cmp byte [ebx], 0xa
jne 0x41c49e
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x41c4a7
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
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 0x41c585
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x41c575
cmp al, 0xd
je 0x41c4d9
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x41c567
dec ecx
cmp dword [ebp - 8], ecx
jae 0x41c4f3
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x41c4ee
add dword [ebp - 8], 2
jmp 0x41c547
mov dword [ebp - 8], eax
jmp 0x41c563
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
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 0x41c51b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41c563
cmp dword [ebp - 0x10], 0
je 0x41c563
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41c53c
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41c547
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41c566
cmp ebx, dword [ebp + 0xc]
jne 0x41c54c
cmp byte [ebp - 1], 0xa
jne 0x41c54c
mov byte [ebx], 0xa
jmp 0x41c566
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042310d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41c567
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x41c4bd
jmp 0x41c585
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x41c585
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x41c5a4
and dword [0x42e968], 0
mov dword [0x42e964], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41dfa1
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x42d26c]
mov ecx, dword [ebp + 0x3ac]
push ebx
push esi
xor eax, ebp
cmp ecx, dword [0x42fe48]
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x78], edi
jae 0x41e143
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x42fe60]
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 - 0x80], ebx
je 0x41e143
and dword [ebp - 0x70], 0
and dword [ebp - 0x7c], 0
cmp dword [ebp + 0x3b4], 0
jne 0x41e017
xor eax, eax
jmp 0x41e157
test al, 0x20
je 0x41e02a
push 2
push 0
push 0
push ecx
call fcn.0042310d
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41e0bf
and dword [ebp - 0x68], 0
cmp dword [ebp + 0x3b4], 0
mov dword [ebp - 0x6c], edi
jbe 0x41e120
mov ecx, dword [ebp - 0x6c]
xor edi, edi
sub ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x41e084
mov edx, dword [ebp - 0x6c]
inc dword [ebp - 0x6c]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41e075
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x41e057
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x74]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41e0e4
mov eax, dword [ebp - 0x74]
add dword [ebp - 0x70], eax
cmp eax, edi
jl 0x41e0ed
mov eax, dword [ebp - 0x6c]
sub eax, dword [ebp - 0x78]
cmp eax, dword [ebp + 0x3b4]
jb 0x41e04c
jmp 0x41e0ed
push 0
lea ecx, [ebp - 0x74]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41e0e4
mov eax, dword [ebp - 0x74]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x70], eax
jmp 0x41e0ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x70]
test eax, eax
jne 0x41e13e
cmp dword [ebp - 0x68], eax
je 0x41e11d
push 5
pop eax
cmp dword [ebp - 0x68], eax
jne 0x41e112
mov dword [0x42e964], 9
mov dword [0x42e968], eax
jmp 0x41e154
push dword [ebp - 0x68]
call fcn.00421c33
pop ecx
jmp 0x41e154
mov edi, dword [ebp - 0x78]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41e132
cmp byte [edi], 0x1a
je 0x41e010
mov dword [0x42e964], 0x1c
jmp 0x41e14d
sub eax, dword [ebp - 0x7c]
jmp 0x41e157
mov dword [0x42e964], 9
and dword [0x42e968], 0
or eax, 0xffffffff
mov ecx, dword [ebp + 0x3a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004217a9
add ebp, 0x3a4
leave
ret
Function at 0x421d0a
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0041b3a0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x421da5
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x42e970]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x421da5
cmp eax, 1
je 0x421dc6
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x421da5
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x421d72
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x421da1
xor eax, eax
inc eax
jmp 0x421de5
cmp edi, eax
jae 0x421da9
xor eax, eax
jmp 0x421de5
cmp eax, esi
jae 0x421db0
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x42e970]
jmp 0x421dc9
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x421f45
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x42d26c]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x42d6f0]
je 0x421f7c
inc eax
cmp eax, 0x13
jb 0x421f6d
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x42d6f0]
jne 0x42209f
mov eax, dword [0x42e960]
cmp eax, 1
je 0x42207a
cmp eax, edx
jne 0x421fac
cmp dword [0x42d214], 1
je 0x42207a
cmp ecx, 0xfc
je 0x42209f
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x421fe2
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00421680
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.004204c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x422016
mov eax, edi
push eax
call fcn.004204c0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x42ace8
push edi
call fcn.0041a050
add esp, 0x10
push edi
call fcn.004204c0
push dword [esi + 0x42d6f4]
mov ebx, eax
call fcn.004204c0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0041b3a0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00421680
push edi
push ebx
call fcn.00421690
push 0x42acc8
push ebx
call fcn.00421690
push dword [esi + 0x42d6f4]
push ebx
call fcn.00421690
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0042481a
add esp, 0x2c
jmp 0x42209f
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x42d6f4]
push dword [esi]
call fcn.004204c0
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 - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.004217a9
add ebp, 0x90
leave
ret
Function at 0x4245f1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x42461f
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x424626
cmp ebx, dword [eax + 4]
jae 0x424626
xor eax, eax
jmp 0x424816
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x424637
xor eax, eax
inc eax
jmp 0x424815
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x42464d
cmp ecx, edx
jae 0x424792
cmp dword [eax + 4], 0
je 0x424656
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x42463e
cmp dword [ebp + 8], 0
je 0x424678
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x424792
cmp eax, esi
jae 0x424792
mov eax, dword [0x42eb80]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x42469d
cmp dword [esi*4 + 0x42eb88], edi
je 0x424796
inc esi
cmp esi, eax
jl 0x42468b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x424812
cmp dword [ebp - 8], 0x1000000
jne 0x424812
test byte [ebp - 0xc], 0xcc
je 0x42471b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x424812
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x424812
cmp word [eax + 0x18], 0x10b
jne 0x424812
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x424812
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x42471b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x42471b
test byte [ecx + 0x27], 0x80
jne 0x424792
push 1
push 0x42ebc8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x42462f
mov ecx, dword [0x42eb80]
test ecx, ecx
mov edx, ecx
jle 0x42474f
lea eax, [ecx*4 + 0x42eb84]
cmp dword [eax], edi
je 0x42474f
dec edx
sub eax, 4
test edx, edx
jg 0x424743
test edx, edx
jne 0x424780
push 0xf
pop ebx
cmp ecx, ebx
jg 0x42475c
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x424774
lea eax, [edx*4 + 0x42eb88]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x424762
cmp ecx, 0x10
jge 0x424780
inc ecx
mov dword [0x42eb80], ecx
push 0
push 0x42ebc8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x42462f
xor eax, eax
jmp 0x424815
test esi, esi
jle 0x42462f
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x42ebc8
call ebx
test eax, eax
jne 0x42462f
cmp dword [esi*4 + 0x42eb88], edi
je 0x4247ec
mov eax, dword [0x42eb80]
lea esi, [eax - 1]
test esi, esi
jl 0x4247da
cmp dword [esi*4 + 0x42eb88], edi
je 0x4247d6
dec esi
jns 0x4247ca
test esi, esi
jge 0x4247ea
cmp eax, 0x10
jge 0x4247e5
inc eax
mov dword [0x42eb80], eax
lea esi, [eax - 1]
jmp 0x4247ec
je 0x424804
xor ecx, ecx
test esi, esi
jl 0x424804
lea eax, [ecx*4 + 0x42eb88]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4247f2
push 0
push 0x42ebc8
call ebx
jmp 0x42462f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42481a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x42ebcc], ebx
push esi
push edi
jne 0x42489a
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4248d5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42b004
push edi
call esi
test eax, eax
mov dword [0x42ebcc], eax
je 0x4248d5
push 0x42aff4
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x42ebd0], eax
call esi
cmp dword [0x42e970], 2
mov dword [0x42ebd4], eax
jne 0x42489a
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x42ebdc], eax
je 0x42489a
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x42ebd8], eax
mov eax, dword [0x42ebd8]
test eax, eax
je 0x4248df
call eax
test eax, eax
je 0x4248c6
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x42ebdc]
test eax, eax
je 0x4248c6
test byte [ebp - 8], 1
jne 0x4248df
cmp dword [0x42e97c], 4
jb 0x4248d9
or byte [ebp + 0x12], 0x20
jmp 0x4248fe
xor eax, eax
jmp 0x42490e
or byte [ebp + 0x12], 4
jmp 0x4248fe
mov eax, dword [0x42ebd0]
test eax, eax
je 0x4248fe
call eax
mov ebx, eax
test ebx, ebx
je 0x4248fe
mov eax, dword [0x42ebd4]
test eax, eax
je 0x4248fe
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x42ebcc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4249af
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0041b3a0
mov eax, dword [0x42d26c]
push ebx
mov ebx, dword [ebp + 8]
xor eax, ebp
push esi
xor esi, esi
cmp ebx, dword [0x42fe48]
mov dword [ebp - 4], eax
jae 0x424afa
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x42fe60]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x424afa
push 1
push esi
push ebx
call fcn.0041ba35
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x424b04
push 2
push esi
push ebx
call fcn.0041ba35
add esp, 0xc
cmp eax, 0xffffffff
je 0x424b04
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x424aa4
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00421620
push 0x8000
push ebx
call fcn.0042591c
add esp, 0x14
mov dword [ebp - 0x100c], eax
mov eax, 0x1000
cmp edi, eax
jge 0x424a60
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.0041dfa1
add esp, 0xc
cmp eax, 0xffffffff
je 0x424a7e
sub edi, eax
test edi, edi
jg 0x424a55
jmp 0x424a94
cmp dword [0x42e968], 5
jne 0x424a91
mov dword [0x42e964], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push ebx
call fcn.0042591c
pop ecx
pop ecx
jmp 0x424ae4
jge 0x424ae4
push 0
push dword [ebp + 0xc]
push ebx
call fcn.0041ba35
push ebx
call fcn.004228d1
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 0x424ae4
mov dword [0x42e964], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x42e968], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.0041ba35
add esp, 0xc
mov eax, esi
pop edi
jmp 0x424b07
mov dword [0x42e964], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004217a9
leave
ret