joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449ab0
Capabilities:
Inspect load icon resource

Disassembly:
push 1
push 0x47329c
push str.vid_ref
call fcn.0041fed0
push 1
push 0x46355c
push str.vid_xpos
mov dword [0x8c729c], eax
call fcn.0041fed0
push 1
push 0x469ce8
push str.vid_ypos
mov dword [0x8c72a0], eax
call fcn.0041fed0
push 1
push 0x461fa8
push str.vid_fullscreen
mov dword [0x8c7298], eax
call fcn.0041fed0
push 1
push 0x463680
push str.vid_gamma
mov dword [0x8c72a8], eax
call fcn.0041fed0
push 1
push 0x461fa8
push str.win_noalttab
mov dword [0x8c72a4], eax
call fcn.0041fed0
add esp, 0x48
push fcn.00449a90
push str.vid_restart
mov dword [0x8c72b0], eax
call fcn.00417e50
push 0x4492b0
push str.vid_front
call fcn.00417e50
mov ecx, dword [0x8c72a0]
mov eax, 0x449a30
mov dword [ecx + 0x1c], eax
mov edx, dword [0x8c7298]
mov dword [edx + 0x1c], eax
mov eax, dword [0x8c72b0]
mov dword [eax + 0x1c], 0x449a00
mov eax, dword [0x8c72b0]
mov ecx, dword [eax + 4]
push ecx
push ecx
push eax
call dword [eax + 0x1c]
push str.FX_GLIDE_NO_SPLASH0
call fcn.00454fae
add esp, 0x20
jmp fcn.004497d0
Function at 0x44c750
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov eax, dword [ebp + 0x24]
push esi
push edi
mov dword [esp + 0x14], eax
jmp 0x44c765
mov eax, dword [esp + 0x14]
mov edx, dword [ebp + 0x6c]
mov ebx, dword [ebp + 0x34]
mov ecx, dword [ebp + 0x64]
sub ebx, edx
mov edx, dword [ebp + 0x24]
lea edx, [eax + edx - 0x106]
sub ebx, ecx
cmp ecx, edx
jb 0x44c7ef
mov edi, dword [ebp + 0x30]
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea esi, [edi + eax]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x68]
mov edx, dword [ebp + 0x64]
mov ecx, dword [ebp + 0x54]
sub esi, eax
sub edx, eax
sub ecx, eax
mov dword [ebp + 0x68], esi
mov esi, dword [ebp + 0x44]
mov dword [ebp + 0x54], ecx
mov ecx, dword [ebp + 0x3c]
mov dword [ebp + 0x64], edx
lea edx, [ecx + esi*2]
movzx ecx, word [edx - 2]
sub edx, 2
cmp ecx, eax
jb 0x44c7c6
sub ecx, eax
jmp 0x44c7c8
xor ecx, ecx
dec esi
mov word [edx], cx
jne 0x44c7b7
mov edx, dword [ebp + 0x38]
mov esi, eax
lea edx, [edx + eax*2]
movzx ecx, word [edx - 2]
sub edx, 2
cmp ecx, eax
jb 0x44c7e5
sub ecx, eax
jmp 0x44c7e7
xor ecx, ecx
dec esi
mov word [edx], cx
jne 0x44c7d6
add ebx, eax
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x44c858
mov ecx, dword [ebp + 0x6c]
mov edx, dword [ebp + 0x64]
mov edi, dword [ebp + 0x30]
add ecx, edx
add ecx, edi
push ecx
mov ecx, ebx
mov ebx, eax
call fcn.0044c580
mov ecx, dword [ebp + 0x6c]
add ecx, eax
mov edx, ecx
add esp, 4
cmp edx, 3
mov dword [ebp + 0x6c], ecx
jb 0x44c842
mov eax, dword [ebp + 0x64]
mov ecx, dword [ebp + 0x30]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [ebp + 0x50]
mov dword [ebp + 0x40], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [ebp + 0x4c]
mov dword [ebp + 0x40], eax
cmp edx, 0x106
jae 0x44c858
mov edx, dword [ebp]
mov eax, dword [edx + 4]
test eax, eax
jne 0x44c761
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x454d15
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x454d43
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 0x454d48
cmp eax, 1
je 0x454d48
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x454d4c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x47db54]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x454dc2
push ebx
call fcn.00454d15
test eax, eax
pop ecx
jne 0x454d91
mov dword [0x8c6eb4], 0xf
mov dword [0x8c6eb0], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0045bfdc
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x454dd4
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x454d84
inc eax
cmp eax, 0x104
ja 0x454d84
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x454e0b
cmp eax, dword [ebp + 0x10]
jg 0x454def
mov eax, dword [ebp + 0x10]
push eax
call fcn.00454563
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x454e1f
mov dword [0x8c6eb0], 0xc
jmp 0x454d84
cmp eax, dword [ebp + 0x10]
jle 0x454e1f
mov dword [0x8c6eb0], 0x22
jmp 0x454d84
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.004523a0
pop ecx
pop ecx
jmp 0x454d86
Function at 0x45509a
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x477aa8
call fcn.004583e4
mov edi, 0x94
mov eax, edi
call fcn.00452050
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 [0x8c6ebc], ecx
mov eax, dword [esi + 4]
mov dword [0x8c6ec8], eax
mov edx, dword [esi + 8]
mov dword [0x8c6ecc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x8c6ec0], esi
cmp ecx, 2
je 0x4550fa
or esi, 0x8000
mov dword [0x8c6ec0], esi
shl eax, 8
add eax, edx
mov dword [0x8c6ec4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x455135
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x455135
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x45514d
cmp eax, 0x20b
je 0x45513a
mov dword [ebp - 0x1c], esi
jmp 0x455161
cmp dword [ecx + 0x84], 0xe
jbe 0x455135
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x45515b
cmp dword [ecx + 0x74], 0xe
jbe 0x455135
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0045acaa
pop ecx
test eax, eax
jne 0x45518d
cmp dword [0x8c6e9c], 1
jne 0x45517a
call fcn.0045c8d3
push 0x1c
call fcn.0045c75c
push 0xff
call fcn.00456cce
pop ecx
pop ecx
call fcn.0045cd60
mov dword [ebp - 4], esi
call fcn.00456fb9
test eax, eax
jge 0x4551a6
push 0x1b
call fcn.00455075
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0xce2998], eax
call fcn.0045cc3e
mov dword [0x8c6e94], eax
call fcn.0045cb9c
test eax, eax
jge 0x4551cc
push 8
call fcn.00455075
pop ecx
call fcn.0045c969
test eax, eax
jge 0x4551dd
push 9
call fcn.00455075
pop ecx
push 1
call fcn.00456cfe
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4551f3
push eax
call fcn.00455075
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0045c90c
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x455214
movzx eax, word [ebp - 0x40]
jmp 0x455217
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00448220
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x455235
push edi
call fcn.00456e29
call fcn.00456e4b
jmp 0x455267
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0045841f
ret
Function at 0x456976
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0xce2864]
mov eax, dword [0x47db54]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x456b3c
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0xce2880]
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 0x456b3c
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x4569e0
xor eax, eax
jmp 0x456b50
test al, 0x20
je 0x4569f1
push 2
push edi
push edi
push ecx
call fcn.0045d968
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x456ac6
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x456b0d
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x456a53
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x456a44
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 0x456a26
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x456a93
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x456a9f
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x456a1a
jmp 0x456aa1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x456b37
cmp dword [ebp + 0x3a4], edi
je 0x456b0d
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x456aff
mov dword [0x8c6eb4], eax
jmp 0x456b43
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x456af1
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x456aa1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x456aa1
push dword [ebp + 0x3a4]
call fcn.004596db
pop ecx
jmp 0x456b4d
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x456b25
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x4569d9
mov dword [0x8c6eb0], 0x1c
mov dword [0x8c6eb4], edi
jmp 0x456b4d
sub eax, dword [ebp - 0x7c]
jmp 0x456b50
and dword [0x8c6eb4], 0
mov dword [0x8c6eb0], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0045bfdc
add ebp, 0x39c
leave
ret
Function at 0x456d68
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x8c6efc], esi
push edi
jne 0x456d88
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 [0x8c6ef8], esi
mov byte [0x8c6ef4], al
jne 0x456dee
mov ecx, dword [0xce2988]
test ecx, ecx
je 0x456dcf
mov eax, dword [0xce2984]
sub eax, 4
cmp eax, ecx
jmp 0x456dc8
mov eax, dword [eax]
test eax, eax
je 0x456dba
call eax
mov eax, dword [0xce2984]
sub eax, 4
cmp eax, dword [0xce2988]
mov dword [0xce2984], eax
jae 0x456db2
mov eax, 0x47b024
mov esi, 0x47b02c
cmp eax, esi
mov edi, eax
jae 0x456dee
mov eax, dword [edi]
test eax, eax
je 0x456de7
call eax
add edi, 4
cmp edi, esi
jb 0x456ddf
mov eax, 0x47b030
mov esi, 0x47b034
cmp eax, esi
mov edi, eax
jae 0x456e0d
mov eax, dword [edi]
test eax, eax
je 0x456e06
call eax
add edi, 4
cmp edi, esi
jb 0x456dfe
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x456e27
push dword [ebp + 8]
mov dword [0x8c6efc], 1
call fcn.00456cce
pop ebp
ret

Function at 0x4582fe
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.00452050
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x458399
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 [0x8c6ebc]
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 0x458399
cmp eax, 1
je 0x4583ba
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 0x458399
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x458366
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x458395
xor eax, eax
inc eax
jmp 0x4583d9
cmp edi, eax
jae 0x45839d
xor eax, eax
jmp 0x4583d9
cmp eax, esi
jae 0x4583a4
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 [0x8c6ebc]
jmp 0x4583bd
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 0x45bdbd
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 [0xce2864]
push edi
jae 0x45bf92
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0xce2880]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x45bf92
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x45be68
test dl, 2
jne 0x45be68
test dl, 0x48
je 0x45be32
cmp byte [eax + 5], 0xa
je 0x45be32
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 0x45be7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x45be63
mov dword [0x8c6eb4], ecx
jmp 0x45bf99
cmp eax, 0x6d
jne 0x45be6f
xor eax, eax
jmp 0x45bfa6
push eax
call fcn.004596db
pop ecx
jmp 0x45bfa3
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x45bf8d
test eax, eax
je 0x45bea2
cmp byte [ebx], 0xa
jne 0x45bea2
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x45beab
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 0x45bf87
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x45bf77
cmp al, 0xd
je 0x45bedd
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x45bf69
dec ecx
cmp dword [ebp - 8], ecx
jae 0x45bef7
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x45bef2
add dword [ebp - 8], 2
jmp 0x45bf4b
mov dword [ebp - 8], eax
jmp 0x45bf65
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 0x45bf1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x45bf65
cmp dword [ebp - 0x10], 0
je 0x45bf65
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x45bf40
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x45bf4b
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x45bf68
cmp ebx, dword [ebp + 0xc]
jne 0x45bf50
cmp byte [ebp - 1], 0xa
jne 0x45bf50
mov byte [ebx], 0xa
jmp 0x45bf68
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00457164
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x45bf69
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x45bec1
jmp 0x45bf87
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x45bf87
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 0x45bfa6
and dword [0x8c6eb4], 0
mov dword [0x8c6eb0], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45c587
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x45c5a0
or eax, 0xffffffff
jmp 0x45c601
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x45c5fd
push 0x3d
push esi
call fcn.0045f157
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x45c5fd
cmp esi, eax
je 0x45c5fd
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x8c6edc]
sete cl
cmp eax, dword [0x8c6ee0]
mov dword [ebp - 8], ecx
jne 0x45c5e3
mov edi, eax
call fcn.0045c526
mov dword [0x8c6edc], eax
cmp eax, ebx
jne 0x45c63c
cmp dword [ebp + 0xc], ebx
je 0x45c605
cmp dword [0x8c6ee4], ebx
je 0x45c605
call fcn.0045f0c7
test eax, eax
je 0x45c63c
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x45c60e
xor eax, eax
jmp 0x45c600
push 4
call fcn.00454563
cmp eax, ebx
pop ecx
mov dword [0x8c6edc], eax
je 0x45c5fd
mov dword [eax], ebx
cmp dword [0x8c6ee4], ebx
jne 0x45c63c
push 4
call fcn.00454563
cmp eax, ebx
pop ecx
mov dword [0x8c6ee4], eax
je 0x45c5fd
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x8c6edc]
call fcn.0045c4d9
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x45c69d
cmp dword [esi], ebx
je 0x45c69d
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00454575
cmp dword [ebp - 8], ebx
pop ecx
jne 0x45c680
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x45c6de
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x45c677
mov eax, edi
shl eax, 2
push eax
push dword [0x8c6edc]
call fcn.0045ee82
cmp eax, ebx
pop ecx
pop ecx
je 0x45c6de
jmp 0x45c6d9
cmp dword [ebp - 8], ebx
jne 0x45c749
cmp edi, ebx
jge 0x45c6ac
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x8c6edc]
call fcn.0045ee82
cmp eax, ebx
pop ecx
pop ecx
je 0x45c5fd
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x8c6edc], eax
cmp dword [ebp + 0xc], ebx
je 0x45c733
push dword [ebp - 4]
call fcn.00451c40
inc eax
inc eax
push eax
call fcn.00454563
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x45c733
push dword [ebp - 4]
push esi
call fcn.004523a0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x45c72c
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00454575
pop ecx
cmp dword [ebp - 8], ebx
je 0x45c741
push dword [ebp - 4]
call fcn.00454575
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x45c600
push dword [ebp - 4]
call fcn.00454575
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x45c60a
Function at 0x45c75c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x47db54]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x47dbe8]
je 0x45c791
inc eax
cmp eax, 0x13
jb 0x45c782
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x47dbe8]
jne 0x45c8b7
mov eax, dword [0x8c6e9c]
cmp eax, 1
je 0x45c88f
cmp eax, edx
jne 0x45c7c1
cmp dword [0x47d354], 1
je 0x45c88f
cmp ecx, 0xfc
je 0x45c8b7
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x45c7f7
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004523a0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00451c40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x45c82b
mov eax, edi
push eax
call fcn.00451c40
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x466a6c
push edi
call fcn.004525b0
add esp, 0x10
push edi
call fcn.00451c40
push dword [esi + 0x47dbec]
mov ebx, eax
call fcn.00451c40
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00452050
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004523a0
push edi
push ebx
call fcn.004523b0
push 0x478388
push ebx
call fcn.004523b0
push dword [esi + 0x47dbec]
push ebx
call fcn.004523b0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0045f1be
add esp, 0x2c
jmp 0x45c8b7
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x47dbec]
push dword [esi]
call fcn.00451c40
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]
mov ecx, dword [ebp + 0x88]
call fcn.0045bfdc
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x45e366
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 0x45e394
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 0x45e39b
cmp ebx, dword [eax + 4]
jae 0x45e39b
xor eax, eax
jmp 0x45e58b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x45e3ac
xor eax, eax
inc eax
jmp 0x45e58a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x45e3c2
cmp ecx, edx
jae 0x45e507
cmp dword [eax + 4], 0
je 0x45e3cb
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x45e3b3
cmp dword [ebp + 8], 0
je 0x45e3ed
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x45e507
cmp eax, esi
jae 0x45e507
mov eax, dword [0x8c71b0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x45e412
cmp dword [esi*4 + 0x8c71b8], edi
je 0x45e50b
inc esi
cmp esi, eax
jl 0x45e400
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x45e587
cmp dword [ebp - 8], 0x1000000
jne 0x45e587
test byte [ebp - 0xc], 0xcc
je 0x45e490
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x45e587
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x45e587
cmp word [eax + 0x18], 0x10b
jne 0x45e587
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x45e587
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x45e490
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x45e490
test byte [ecx + 0x27], 0x80
jne 0x45e507
push 1
push 0x8c71f8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x45e3a4
mov ecx, dword [0x8c71b0]
test ecx, ecx
mov edx, ecx
jle 0x45e4c4
lea eax, [ecx*4 + 0x8c71b4]
cmp dword [eax], edi
je 0x45e4c4
dec edx
sub eax, 4
test edx, edx
jg 0x45e4b8
test edx, edx
jne 0x45e4f5
push 0xf
pop ebx
cmp ecx, ebx
jg 0x45e4d1
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x45e4e9
lea eax, [edx*4 + 0x8c71b8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x45e4d7
cmp ecx, 0x10
jge 0x45e4f5
inc ecx
mov dword [0x8c71b0], ecx
push 0
push 0x8c71f8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x45e3a4
xor eax, eax
jmp 0x45e58a
test esi, esi
jle 0x45e3a4
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x8c71f8
call ebx
test eax, eax
jne 0x45e3a4
cmp dword [esi*4 + 0x8c71b8], edi
je 0x45e561
mov eax, dword [0x8c71b0]
lea esi, [eax - 1]
test esi, esi
jl 0x45e54f
cmp dword [esi*4 + 0x8c71b8], edi
je 0x45e54b
dec esi
jns 0x45e53f
test esi, esi
jge 0x45e55f
cmp eax, 0x10
jge 0x45e55a
inc eax
mov dword [0x8c71b0], eax
lea esi, [eax - 1]
jmp 0x45e561
je 0x45e579
xor ecx, ecx
test esi, esi
jl 0x45e579
lea eax, [ecx*4 + 0x8c71b8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x45e567
push 0
push 0x8c71f8
call ebx
jmp 0x45e3a4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret