joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405534
Capabilities:
Encode data using xor

Disassembly:
add byte [edx], cl
jne 0x405573
push ebx
mov ebx, dword [eax - 4]
add byte [eax], al
sub ebx, dword [edx - 4]
push ebx
add dword [ebx + 0x2bd92100], 0x48
cld
sub eax, ecx
add byte [eax], al
mov ebx, dword [ecx + eax]
xor ebx, dword [edx + esi*2]
add byte [edx], cl
add ecx, 4
js 0x40554e
pop eax
add byte [eax], al
pop ebx
ret
iretd

Function at 0x41de14
Capabilities:
Encode data using xor

Disassembly:
add byte [edx], cl
jne 0x41de53
push ebx
mov ebx, dword [eax - 4]
add byte [eax], al
sub ebx, dword [edx - 4]
push ebx
add dword [ebx + 0x2bd92100], 0x48
cld
sub eax, ecx
add byte [eax], al
mov ebx, dword [ecx + eax]
xor ebx, dword [edx + esi*2]
add byte [edx], cl
add ecx, 4
js 0x41de2e
pop eax
add byte [eax], al
pop ebx
ret
iretd

Function at 0x426140
Capabilities:
Encode data using xor

Disassembly:
movsb byte es:[edi], byte [esi]
pop ecx
mov cl, byte [ebx]
das
sub eax, ebp
aam 0x83
sar byte [ecx + 0x2a], cl
leave
adc edx, 0x79
sub cl, cl
int1
ret 0x162b
pop ds
dec esi
mov cl, 0x92
push es
sub al, 0xdc
div dword [ebp - 0x25]
loopne 0x4260ff
les esi, [eax]
and byte [esi + ecx*2], dl
in eax, dx
xchg ecx, eax
lodsb al, byte [esi]
lea ecx, [ebp + 0x361dd7e4]
push ebp
lea ebp, [edx + 0x3887984e]
stosb byte es:[edi], al
dec esi
cwde
xchg dword [eax], edi
jns 0x426191
jecxz 0x4261c9
adc ebp, dword [eax - 0x1f]
xor byte [esi - 0x33], 0x5d
jne 0x4260f4
pop edx
cmp ebx, eax
cdq
cwde
xchg dword [eax + 0x43], edx
jo 0x42615e
jl 0x4261b3
cmp al, 0xe9
push esp
mov dh, 0x94
lodsb al, byte [esi]
inc esp
rcl dword [eax + 0x68], 0xf1
insb byte es:[edi], dx
adc byte [ecx - 0x7fdd2640], al
dec eax
add dword [edi + 0x61], 0xffffffb7
push esp
inc edi
popal
mov bh, 0x54
and byte [esi], bh
fisub dword [0x4e14676a]
pop esp
mov eax, 0x97f9b46c
xchg esi, eax
xchg esi, eax
dec esi
pop dword [edi + 0x26]
mov al, byte [0xd8c630e7]
and eax, 0xa41dd4be
out 0x30, eax
invalid
loop 0x4261aa
pop esi
arpl si, di
mov esi, 0xe8b46884
das
jno 0x426234
mov dl, 0xc2
dec esi
out dx, eax
mov al, 0xf8
dec ecx
xor eax, 0xc50e8086
or byte [esi], 0xc5
and esp, dword [esi]
invalid
and eax, 0x25f6f221
test bh, cl
cmpsd dword [esi], dword es:[edi]
mul ah
outsb dx, byte [esi]
std
and ah, byte [eax + 0x4b]
lcall 0xf387, 0x901c87f5
invalid

Function at 0x4366b4
Capabilities:
Encode data using xor

Disassembly:
add byte [edx], cl
jne 0x4366f3
push ebx
mov ebx, dword [eax - 4]
add byte [eax], al
sub ebx, dword [edx - 4]
push ebx
add dword [ebx + 0x2bd92100], 0x48
cld
sub eax, ecx
add byte [eax], al
mov ebx, dword [ecx + eax]
xor ebx, dword [edx + esi*2]
add byte [edx], cl
add ecx, 4
js 0x4366ce
pop eax
add byte [eax], al
pop ebx
ret
iretd
Function at 0x44a5e0
Capabilities:
Accept command line arguments
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
lea eax, [esp + 4]
push eax
push 1
push 0
push str.SOFTWAREBorlandDelphiRTL
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44a638
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x14]
push str.FPUMaskValue
push eax
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov cl, byte [esp + 0xc]
and cl, 0x3f
test eax, eax
movzx si, cl
je 0x44a665
mov edx, dword [0x4ce8ec]
push 0x4ce5f0
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov eax, esi
pop esi
or eax, 0xffffffc0
add esp, 0x10
ret

Function at 0x44ec44
Capabilities:
Encode data using xor

Disassembly:
add byte [edx], cl
jne 0x44ec83
push ebx
mov ebx, dword [eax - 4]
add byte [eax], al
sub ebx, dword [edx - 4]
push ebx
add dword [ebx + 0x2bd92100], 0x48
cld
sub eax, ecx
add byte [eax], al
mov ebx, dword [ecx + eax]
xor ebx, dword [edx + esi*2]
add byte [edx], cl
add ecx, 4
js 0x44ec5e
pop eax
add byte [eax], al
pop ebx
ret
iretd

Function at 0x4670b4
Capabilities:
Encode data using xor

Disassembly:
add byte [edx], cl
jne 0x4670f3
push ebx
mov ebx, dword [eax - 4]
add byte [eax], al
sub ebx, dword [edx - 4]
push ebx
add dword [ebx + 0x2bd92100], 0x48
cld
sub eax, ecx
add byte [eax], al
mov ebx, dword [ecx + eax]
xor ebx, dword [edx + esi*2]
add byte [edx], cl
add ecx, 4
js 0x4670ce
pop eax
add byte [eax], al
pop ebx
ret
iretd

Function at 0x47f8c4
Capabilities:
Encode data using xor

Disassembly:
add byte [edx], cl
jne 0x47f903
push ebx
mov ebx, dword [eax - 4]
add byte [eax], al
sub ebx, dword [edx - 4]
push ebx
add dword [ebx + 0x2bd92100], 0x48
cld
sub eax, ecx
add byte [eax], al
mov ebx, dword [ecx + eax]
xor ebx, dword [edx + esi*2]
add byte [edx], cl
add ecx, 4
js 0x47f8de
pop eax
add byte [eax], al
pop ebx
ret
iretd

Function at 0x498564
Capabilities:
Encode data using xor

Disassembly:
add byte [edx], cl
jne 0x4985a3
push ebx
mov ebx, dword [eax - 4]
add byte [eax], al
sub ebx, dword [edx - 4]
push ebx
add dword [ebx + 0x2bd92100], 0x48
cld
sub eax, ecx
add byte [eax], al
mov ebx, dword [ecx + eax]
xor ebx, dword [edx + esi*2]
add byte [edx], cl
add ecx, 4
js 0x49857e
pop eax
add byte [eax], al
pop ebx
ret
iretd

Function at 0x4a8088
Capabilities:
Encode data using xor

Disassembly:
cmc
imul edi, dword [eax - 0x695bf5f0], 0xfc91898f
or cl, byte [edi + 0x54e163d2]
lcall 0xa7c0, 0xc9ea84eb
add eax, esp
outsb dx, byte [esi]
add edi, dword [ebp + 0x5b16dc87]
adc byte [eax + edi], dl
Function at 0x4b0e24
Capabilities:
Encode data using xor

Disassembly:
add byte [edx], cl
jne 0x4b0e63
push ebx
mov ebx, dword [eax - 4]
add byte [eax], al
sub ebx, dword [edx - 4]
push ebx
add dword [ebx + 0x2bd92100], 0x48
cld
sub eax, ecx
add byte [eax], al
mov ebx, dword [ecx + eax]
xor ebx, dword [edx + esi*2]
add byte [edx], cl
add ecx, 4
js 0x4b0e3e
pop eax
add byte [eax], al
pop ebx
ret
iretd

Function at 0x4c5d4a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4cb498
cmp edx, dword [eax]
je 0x4c5d6c
add eax, 8
inc ecx
cmp eax, 0x4cb528
jl 0x4c5d5d
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4cb498]
jne 0x4c5e9a
mov eax, dword [0x4cfb7c]
cmp eax, 1
je 0x4c5e74
test eax, eax
jne 0x4c5d9d
cmp dword [0x4cb3d8], 1
je 0x4c5e74
cmp edx, 0xfc
je 0x4c5e9a
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c5dd4
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004c6460
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c6690
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c5e17
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c6690
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c96f8
push edi
call fcn.004c7e60
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004c6460
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c6470
lea eax, [ebp - 0xa0]
push 0x4c96d8
push eax
call fcn.004c6470
push dword [esi + 0x4cb49c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c6470
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004c7dd4
add esp, 0x2c
pop edi
jmp 0x4c5e9a
lea eax, [ebp + 8]
lea esi, [esi + 0x4cb49c]
push 0
push eax
push dword [esi]
call fcn.004c6690
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]
pop esi
leave
ret
Function at 0x40129f
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
and dword [ebp - 0x10], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x10]
push edi
mov dword [ebp - 0x38], esi
mov eax, dword [esi + 4]
mov edi, dword [esi]
mov dword [ebp - 0x20], eax
mov eax, dword [0x41b5c0]
mov dword [ebp - 0x30], eax
mov eax, dword [0x41b5c4]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x34], eax
call fcn.00401298
mov ebx, dword [ebp - 0x10]
mov eax, dword [0x41b5c8]
add ebx, 0x23f
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [0x41b5cc]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0x20
mov dword [ebp - 0x1c], 2
add dword [ebp - 0x1c], 3
mov ecx, dword [0xb09164]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x40132c
push 0x418300
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [ebp - 4]
mov ecx, dword [0xb09164]
add eax, dword [ebp - 0x28]
mov edx, 0xedeb2e40
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
mov eax, dword [0xb09160]
cmove eax, edx
xor edx, edx
mov dword [0xb09160], eax
cmp ecx, 0x3eb
mov eax, dword [0xb090b8]
cmove eax, edx
mov dword [0xb090b8], eax
lea eax, [ebx + edi]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x14], edx
mov dword [0xb0915c], 0xf4ea3dee
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x18]
sub esi, eax
mov dword [ebp - 0xc], eax
mov eax, esi
mov dword [ebp - 0x18], esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
add dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
nop
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
mov edx, esi
mov eax, dword [ebp - 4]
add ebx, 0x61c88647
shr edx, cl
add edx, dword [ebp - 0x34]
mov dword [ebp - 0xc], edx
xor edx, dword [ebp - 0x20]
xor eax, edx
mov dword [ebp - 0x10], ebx
sub edi, eax
mov dword [ebp - 4], eax
dec dword [ebp - 0x24]
mov dword [ebp - 0x18], edi
jne 0x4012fa
mov dword [ebp - 0x20], esi
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x20]
mov dword [esi], edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d328
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a35c]
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.00405145
mov dword [ebp - 0x14], eax
cmp dword [0x464918], esi
jne 0x40d41b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d3a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d4fb
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d4fb
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d4fb
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x464918], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x46491c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x464920], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x464928], eax
test eax, eax
je 0x40d418
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x464924], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d440
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d433
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d455
push 4
pop eax
jmp 0x40d4fd
cmp dword [ebp - 0x14], esi
je 0x40d455
push dword [0x464918]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d43a
mov eax, dword [0x464924]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d4b3
cmp dword [0x464928], edi
je 0x40d4b3
push eax
call ebx
push dword [0x464928]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d4b3
test eax, eax
je 0x40d4b3
call ecx
test eax, eax
je 0x40d4a8
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 0x40d4a8
test byte [ebp - 8], 1
jne 0x40d4b3
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d4e3
mov eax, dword [0x46491c]
cmp eax, edi
je 0x40d4e0
push eax
call ebx
test eax, eax
je 0x40d4e0
call eax
mov esi, eax
test esi, esi
je 0x40d4e0
mov eax, dword [0x464920]
cmp eax, edi
je 0x40d4e0
push eax
call ebx
test eax, eax
je 0x40d4e0
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x464918]
call ebx
test eax, eax
je 0x40d4fb
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d4fd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404457
mov esp, ebp
pop ebp
ret
Function at 0x100035a0
Capabilities:
Enumerate pe sections

Disassembly:
clc
movzx eax, word [edi + 0x14]
lea esi, [eax + edi + 0x18]
mov dword [ebp - 0x44], esi
call fcn.100033a0
sub dh, bh
jno 0x100035db
movzx eax, word [edi + 6]
lea eax, [eax + eax*4]
shl eax, 3
sub eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp - 0xb4], eax
mov dword [ebp - 8], eax
call fcn.100033a0
add bh, byte [esi - 0x749936e0]
inc edi
push es
cmp ax, bx
cmp eax, ebx
jbe 0x100035fa
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x100035f4
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x100035e5
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.100033a0
cli
pcmpgtw mm1, qword [ebp - 0x17af57bb]
pop edi
std
invalid

Function at 0x10003f9b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jne 0x10003fb5
push dword [ebp + 0x14]
call fcn.10003365
add esp, 0xc
mov dword [ebp - 0x39c], eax
call fcn.100033a0
jb 0x10003ff5
std
push cs
and byte [ebp - 0x514], 0
and byte [ebp - 0x513], 0
add byte [eax - 0x5125b], al
inc dword [eax]
mov byte [ebp - 0x512], 0xe3
and byte [ebp - 0x511], 0
mov byte [ebp - 0x510], 0x5b
mov byte [ebp - 0x50f], 0x79
mov byte [ebp - 0x50e], 0x68
mov byte [ebp - 0x50d], 0x5a
mov byte [ebp - 0x50c], 0x75
mov byte [ebp - 0x50b], 0x70
mov byte [ebp - 0x50a], 0x79
mov byte [ebp - 0x509], 0x4f
mov byte [ebp - 0x508], 0x75
cli
invalid
push dword [ebp - 0x3a]
test ecx, edi
cli
invalid
jmp dword [esi - 0x3a]
test edx, edi
cli
invalid
invalid
jns 0x10003fe7
test ebx, edi
cli
invalid
call [ecx*4 - 0x5137b]
call dword [eax - 0x18]
jge 0x10004024
invalid
call [ecx + 0x50]
push dword [ebp + 0x18]
jne 0x10004050
jne 0x10003fbd
test ebp, esi
cli
invalid

Function at 0x10004d46
Capabilities:
Contain obfuscated stackstrings

Disassembly:
ror byte [edi], 0x84
stc
push es
add byte [eax], al
lea eax, [ebp - 0x230]
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x6fc], 0
jne 0x10004f1b
and byte [ebp - 0x77c], 0
and byte [ebp - 0x77b], 0
mov byte [ebp - 0x77a], 4
and byte [ebp - 0x779], 0
mov byte [ebp - 0x778], 0xb8
mov byte [ebp - 0x777], 0xc1
mov byte [ebp - 0x776], 0xa7
mov byte [ebp - 0x775], 0xab
mov byte [ebp - 0x774], 0x89
mov byte [ebp - 0x773], 0x94
mov byte [ebp - 0x772], 0x9c
mov byte [ebp - 0x771], 0x89
mov byte [ebp - 0x770], 0x9a
mov byte [ebp - 0x76f], 0x96
mov byte [ebp - 0x76e], 0xdb
mov byte [ebp - 0x76d], 0xbd
invalid
invalid
xchg esp, eax
Function at 0x1001ba69
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x1002bfa0]
je 0x1001ba84
inc edi
cmp edi, 0x17
jb 0x1001ba75
cmp edi, 0x17
jae 0x1001bc04
push ebp
push 3
call fcn.10020f70
cmp eax, 1
pop ecx
je 0x1001bbd0
push 3
call fcn.10020f70
test eax, eax
pop ecx
jne 0x1001bab8
cmp dword [0x1002c214], 1
je 0x1001bbd0
cmp ebx, 0xfc
je 0x1001bc03
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x1002c8a0
push ebp
call fcn.10004d46
add esp, 0xc
test eax, eax
je 0x1001baee
push esi
push esi
push esi
push esi
push esi
call fcn.10008748
add esp, 0x14
push 0x104
mov esi, 0x1002c8b9
push esi
push 0
mov byte [0x1002c9bd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1001bb32
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10004d46
add esp, 0xc
test eax, eax
je 0x1001bb32
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10008748
add esp, 0x14
push esi
call fcn.1000ee60
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1001bb77
push esi
call fcn.1000ee60
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1002cbb4
push 0x10027ee0
sub ecx, eax
push ecx
push eax
call fcn.10004a7a
add esp, 0x14
test eax, eax
je 0x1001bb77
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10008748
add esp, 0x14
jmp 0x1001bb79
xor esi, esi
push 0x10028730
push ebx
push ebp
call fcn.10004cd5
add esp, 0xc
test eax, eax
je 0x1001bb99
push esi
push esi
push esi
push esi
push esi
call fcn.10008748
add esp, 0x14
push dword [edi*8 + 0x1002bfa4]
push ebx
push ebp
call fcn.10004cd5
add esp, 0xc
test eax, eax
je 0x1001bbbb
push esi
push esi
push esi
push esi
push esi
call fcn.10008748
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10020db3
add esp, 0xc
jmp 0x1001bc03
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1001bc03
cmp ebp, 0xffffffff
je 0x1001bc03
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1002bfa4]
push dword [esi]
call fcn.1000ee60
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10020db3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10007790
xor ebx, ebx
cmp dword [0x1002cca4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10020e89
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10020f69
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x10020f69
push eax
call fcn.10007722
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1002cca4], eax
call esi
push eax
call fcn.10007722
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1002cca8], eax
call esi
push eax
call fcn.10007722
mov dword [0x1002ccac], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1000b3a4
test eax, eax
pop ecx
pop ecx
je 0x10020e57
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10008748
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10020e89
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10007722
cmp eax, ebx
pop ecx
mov dword [0x1002ccb4], eax
je 0x10020e89
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10007722
pop ecx
mov dword [0x1002ccb0], eax
mov eax, dword [0x1002ccb0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x10020f0e
cmp dword [0x1002ccb4], ecx
je 0x10020f0e
push eax
call fcn.10007799
push dword [0x1002ccb4]
mov esi, eax
call fcn.10007799
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x10020f0e
cmp edi, ebx
je 0x10020f0e
call esi
cmp eax, ebx
je 0x10020edb
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10020edb
test byte [ebp - 0x18], 1
jne 0x10020f0e
lea eax, [ebp - 0x10]
push eax
call fcn.1000b453
test eax, eax
pop ecx
je 0x10020ef6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10008748
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10020f05
or dword [ebp + 0x10], 0x200000
jmp 0x10020f49
or dword [ebp + 0x10], 0x40000
jmp 0x10020f49
mov eax, dword [0x1002cca8]
cmp eax, dword [ebp - 8]
je 0x10020f49
push eax
call fcn.10007799
cmp eax, ebx
pop ecx
je 0x10020f49
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10020f49
mov eax, dword [0x1002ccac]
cmp eax, dword [ebp - 8]
je 0x10020f49
push eax
call fcn.10007799
cmp eax, ebx
pop ecx
je 0x10020f49
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1002cca4]
call fcn.10007799
cmp eax, ebx
pop ecx
je 0x10020f69
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10020f6b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4065b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
je 0x4065d7
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x4065de
mov al, 1
jmp 0x4066af
call fcn.004046c0
push eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
call eax
push eax
call fcn.004046c0
push eax
call fcn.00404700
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x40660e
xor al, al
jmp 0x4066af
mov dword [ebp - 0x40], 0x20
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x2c]
add edx, 0x40
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x38]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x40664b
cmp dword [ebp - 0x30], 1
je 0x406652
cmp dword [ebp - 0x30], 3
je 0x4066a2
jmp 0x4066ad
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0x3d], 0
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x28]
sub edx, eax
mov dword [ebp - 0x34], edx
je 0x406682
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp - 0x34]
push eax
push 1
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x406682
xor al, al
jmp 0x4066af
mov edx, dword [ebp - 0x2c]
movzx eax, byte [edx + 0x3d]
test eax, eax
jne 0x406696
mov dword [ebp - 0x38], 1
jmp 0x40669d
mov dword [ebp - 0x38], 0
mov al, byte [ebp - 0x38]
jmp 0x4066af
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0x3d], 0
mov al, 1
jmp 0x4066af
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424a63
mov esp, ebp
pop ebp
ret