joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005a6c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push edi
push 7
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x2b]
mov byte [ebp - 0x2c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0x20
cmp eax, ebx
je 0x10005b38
cmp dword [ebp + 0xc], ebx
je 0x10005b38
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov byte [eax], bl
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
push str.SoftwareNetscapeNetscape_Navigator
push 0x80000002
call edi
test eax, eax
jne 0x10005b38
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x2c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push str.CurrentVersion
push dword [ebp - 8]
call esi
test eax, eax
jne 0x10005b2e
push 0x1f
lea eax, [ebp - 0x2c]
push str.Main
push eax
call fcn.1000ac7e
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0x20019
lea eax, [ebp - 0x2c]
push ebx
push eax
push dword [ebp - 8]
call edi
test eax, eax
jne 0x10005b2e
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push ebx
push ebx
push str.Plugins_Directory
push dword [ebp - 0xc]
call esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
pop ebx
leave
ret

Function at 0x10006484
Capabilities:
Read file on windows

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.100103e6
add esp, 0xc
cmp eax, 0xffffffff
jne 0x100064a5
call fcn.1000adb9
mov eax, dword [eax]
ret
sub eax, dword [esp + 0xc]
neg eax
sbb eax, eax
and eax, 5
ret

Function at 0x100067ca
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 4], 0
push esi
push 0x8002
push dword [ebp + 8]
call fcn.1000adcb
mov esi, eax
pop ecx
cmp esi, 0xffffffff
pop ecx
jne 0x100067f7
call fcn.1000adb9
mov eax, dword [eax]
jmp 0x10006891
push edi
push 2
push 0
push esi
call fcn.10011259
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
je 0x10006823
cmp edi, 0x11
jl 0x10006886
push 2
push 0xffffffffffffffef
push esi
call fcn.10011259
add esp, 0xc
cmp eax, 0xffffffff
jne 0x1000682c
mov dword [ebp - 4], 5
jmp 0x10006886
lea eax, [ebp - 0x18]
push 0x11
push eax
push esi
call fcn.100103e6
add esp, 0xc
cmp eax, 0x11
jne 0x10006874
lea eax, [ebp - 0x18]
push 8
push eax
push str._AHNEND:_08X_
call fcn.1000b0c0
add esp, 0xc
test eax, eax
jne 0x10006886
add edi, 0xffffffef
push edi
push esi
call fcn.100110db
pop ecx
cmp eax, 0xffffffff
pop ecx
jne 0x10006886
call fcn.1000adb9
mov eax, dword [eax]
mov dword [ebp - 4], eax
jmp 0x10006886
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
dec ecx
and ecx, 4
add ecx, 5
mov dword [ebp - 4], ecx
push esi
call fcn.1000fea9
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
leave
ret
Function at 0x10006ab4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov dword [ebx], esi
jne 0x10006ace
mov dword [ebx], 0x16
jmp 0x10006b0a
push 0x8000
push dword [ebp + 8]
call fcn.1000adcb
mov edi, eax
pop ecx
cmp edi, 0xffffffff
pop ecx
mov dword [ebp + 8], edi
je 0x10006b01
push 2
push esi
push edi
call fcn.10011259
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x10006b0e
push edi
call fcn.1000fea9
pop ecx
call fcn.1000adb9
mov eax, dword [eax]
mov dword [ebx], eax
xor eax, eax
jmp 0x10006b77
push 0
push 0
push edi
call fcn.10011259
lea eax, [esi + 2]
push eax
call fcn.10009019
mov edi, eax
add esp, 0x10
test edi, edi
je 0x10006b54
push esi
push edi
push dword [ebp + 8]
call fcn.100103e6
add esp, 0xc
cmp eax, esi
jne 0x10006b49
and byte [edi + esi], 0
and byte [edi + esi + 1], 0
lea eax, [edi + esi]
jmp 0x10006b5a
call fcn.1000adb9
mov eax, dword [eax]
mov dword [ebx], eax
jmp 0x10006b5a
mov dword [ebx], 0xc
push dword [ebp + 8]
call fcn.1000fea9
cmp dword [ebx], 0
pop ecx
je 0x10006b75
test edi, edi
je 0x10006b75
push edi
call fcn.10008f30
pop ecx
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10006f78
Capabilities:
Get common file path

Disassembly:
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x10006fbb
push str.GetSystemWindowsDirectoryA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10006fbb
push dword [esp + 8]
push dword [esp + 8]
call eax
test eax, eax
jne 0x10006fc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AIL:GetSystemWindowsDirectory_err_d
push 1
call fcn.10004a2b
add esp, 0xc
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
ret

Function at 0x10007128
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x10007136
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp word [ebp + 0x10], 0
not eax
je 0x10007167
push esi
movzx edx, byte [ecx]
movzx esi, al
add dword [ebp + 0x10], 0xffff
xor edx, esi
shr eax, 8
mov edx, dword [edx*4 + 0x10019fc0]
xor eax, edx
inc ecx
cmp word [ebp + 0x10], 0
jne 0x10007143
pop esi
not eax
pop ebp
ret
Function at 0x1000720a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10007328
mov edi, eax
test edi, edi
je 0x10007254
mov ecx, edi
call fcn.10007438
mov esi, dword [ebp + 0x1c]
push eax
push esi
push edi
push 0x1001a3c0
push 1
call fcn.10004a2b
add esp, 0x14
mov ecx, edi
call fcn.10007438
test eax, eax
je 0x10007254
neg esi
sbb esi, esi
and esi, 0xffffff00
add esi, 0x20219
jmp 0x10007259
mov esi, 0x20019
test edi, edi
je 0x10007265
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
lea eax, [ebp - 4]
push eax
push esi
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x1000729e
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x100073a3
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebx, ebx
push str.Kernel32.DLL
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
call edi
push str.User32.DLL
mov dword [esi + 0x1c], eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x10007422
push str.GetNativeSystemInfo
push eax
call edi
push str.IsWow64Process
mov dword [esi + 4], eax
push dword [esi + 0x1c]
call edi
push str.IsWow64Process2
mov dword [esi + 8], eax
push dword [esi + 0x1c]
call edi
push str.Wow64EnableWow64FsRedirection
mov dword [esi + 0xc], eax
push dword [esi + 0x1c]
call edi
push str.GetSystemWow64DirectoryA
mov dword [esi + 0x10], eax
push dword [esi + 0x1c]
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x10007434
push str.IsWow64Message
push eax
call edi
mov dword [esi + 0x18], eax
pop edi
pop esi
pop ebx
ret
Function at 0x1000790a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x10007938
mov eax, 1
jmp 0x10007a1e
cmp dword [ebp - 8], 0
jne 0x10007a12
cmp dword [ebp - 4], 3
je 0x10007952
cmp dword [ebp - 4], 2
jne 0x10007a12
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x18]
call fcn.100080b6
lea ecx, [ebp - 0x18]
call fcn.10007f30
sub eax, 1
push eax
lea ecx, [ebp - 0x18]
call fcn.100086c7
movsx edx, al
cmp edx, 0x5c
jne 0x100079a5
lea ecx, [ebp - 0x18]
call fcn.10007f30
sub eax, 1
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.10008df8
push eax
lea ecx, [ebp - 0x18]
call fcn.10008724
lea ecx, [ebp - 0x24]
call fcn.10008151
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.10008c4f
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10007a0a
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x18]
call fcn.10008df8
push eax
lea ecx, [ebp - 0x18]
call fcn.10008724
lea ecx, [ebp - 0x30]
call fcn.10008151
lea ecx, [ebp - 0x18]
call fcn.10008714
push eax
call fcn.1000790a
add esp, 4
test eax, eax
je 0x10007a0a
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x18]
call fcn.10008151
mov eax, dword [ebp - 0x34]
jmp 0x10007a1e
lea ecx, [ebp - 0x18]
call fcn.10008151
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x600840
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a3000]
push edi
jmp 0x60085a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x600861
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x600850
mov eax, 1
add ebx, ebx
jne 0x600873
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x600884
jne 0x6008a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6008a3
dec eax
add ebx, ebx
jne 0x600890
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x600868
add ebx, ebx
jne 0x60089f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6008f5
xor ecx, ecx
sub eax, 3
jb 0x6008bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x60092a
sar eax, 1
mov ebp, eax
jmp 0x6008c6
add ebx, ebx
jne 0x6008c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x600894
inc ecx
add ebx, ebx
jne 0x6008d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x600894
add ebx, ebx
jne 0x6008e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6008d6
jne 0x6008f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6008d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x600914
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x600906
jmp 0x600856
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x600914
add edi, ecx
jmp 0x600856
pop esi
mov edi, esi
mov ecx, 0x40d6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x600932
cmp byte [edi], 0x11
jne 0x600932
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x600937
lea edi, [esi + 0x1f9000]
mov eax, dword [edi]
or eax, eax
je 0x6009af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x31b170]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x31b2ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x600964
mov ecx, edi
jns 0x600993
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x31b2f0]
or eax, eax
je 0x6009a9
mov dword [ebx], eax
add ebx, 4
jmp 0x600981
call dword [esi + 0x31b300]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x6009e0
cmp al, 0xef
ja 0x6009d3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x6009b5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x6009c2
mov ebp, dword [esi + 0x31b2f4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x600a14
sub esp, 0xffffff80
jmp 0x4204f7
Function at 0x42a990
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 8
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add eax, ebp
mov dword [esp + 4], eax
cmp ebp, dword [esp + 4]
mov eax, 0xffffffff
je 0x42aa0e
add ebp, 1
movzx esi, byte [ebp - 1]
xor ebx, ebx
xor edx, edx
mov edi, 1
mov word [esp + 2], ax
bt esi, edx
jae 0x42a9d7
mov ecx, 7
mov eax, edi
sub ecx, edx
shl eax, cl
or ebx, eax
add edx, 1
cmp edx, 8
jne 0x42a9c5
movzx eax, word [esp + 2]
shl ebx, 8
mov ecx, 8
xor eax, ebx
nop
lea edx, [eax + eax]
lea ebx, [eax + eax]
xor dx, 0x8005
test ax, ax
mov eax, edx
cmovns eax, ebx
sub ecx, 1
jne 0x42a9f0
cmp ebp, dword [esp + 4]
jne 0x42a9b0
movzx ebx, ax
xor edx, edx
xor eax, eax
mov edi, 0xf
mov esi, 1
nop
bt ebx, edx
jae 0x42aa2f
mov ecx, edi
mov ebp, esi
sub ecx, edx
shl ebp, cl
or eax, ebp
add edx, 1
cmp edx, 0x10
jne 0x42aa20
add esp, 8
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401180
Capabilities:
Get common file path

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push ecx
push 0
mov dword [esp + 0xc], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4011e7
mov edx, dword [esp + 0xc]
mov eax, dword [esp]
push esi
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov esi, eax
neg esi
sbb esi, esi
lea ecx, [esp + 8]
and esi, 0x7fffbffb
push ecx
add esi, 0x80004005
mov dword [esp + 0xc], 0
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x4011e4
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov eax, esi
pop esi
add esp, 8
ret

Function at 0x4018a0
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
mov eax, 0x1238
call fcn.00404aa0
mov eax, dword [0x40e160]
push ebx
push esi
push edi
xor esi, esi
mov dword [esp + 0x1240], eax
xor eax, eax
push esi
mov dword [esp + 0x1018], esi
mov ecx, 0x49
lea edi, [esp + 0x101c]
push 2
rep stosd dword es:[edi], eax
mov byte [esp + 0x17], al
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4019dd
lea eax, [esp + 0x1014]
push eax
push ebx
mov dword [esp + 0x101c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4019d6
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x1020]
push ecx
push 0
push 0x411
call ebp
mov esi, eax
test esi, esi
je 0x4019ad
lea edx, [esp + 0x14]
push edx
push 0x1000
lea eax, [esp + 0x20]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4019a4
mov eax, dword [esp + 0x14]
xor edi, edi
test eax, 0xfffffffc
jbe 0x4019a4
jmp 0x401960
mov edx, dword [esp + edi*4 + 0x18]
push 0x104
lea ecx, [esp + 0x1144]
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x401998
mov eax, dword [esp + 0x124c]
push eax
lea ecx, [esp + 0x1144]
push ecx
call fcn.00401050
add esp, 8
test eax, eax
jne 0x4019c5
mov edx, dword [esp + 0x14]
inc edi
shr edx, 2
cmp edi, edx
jb 0x401960
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
lea eax, [esp + 0x1018]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401915
jmp 0x4019ca
mov byte [esp + 0x13], 1
test esi, esi
pop ebp
je 0x4019d6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1240]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
call fcn.0040495a
add esp, 0x1238
ret
Function at 0x401a00
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x14
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, 1
push ebp
mov dword [esp + 0xc], esi
call fcn.004018a0
add esp, 4
test al, al
je 0x401b03
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push esi
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x401a5b
test esi, esi
je 0x401a6b
lea ecx, [esp + 0x14]
push ecx
push 0x4011f0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x401a6b
push 0
push 0
push 0x418
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
lea edx, [esp + 0x14]
push edx
call ebx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edi, ecx
add edi, 0x8f0d180
mov esi, eax
adc esi, 0
cmp eax, esi
ja 0x401aed
jb 0x401aa0
cmp ecx, edi
jae 0x401aed
lea esp, [esp]
push ebp
call fcn.004018a0
add esp, 4
test al, al
je 0x401aed
lea eax, [esp + 0x14]
push eax
call ebx
mov ecx, dword [esp + 0x18]
cmp ecx, esi
jb 0x401aa0
ja 0x401ac6
mov edx, dword [esp + 0x14]
cmp edx, edi
jb 0x401aa0
mov esi, dword [esp + 0x2c]
lea ebx, [ebx]
mov ecx, esi
call fcn.004017e0
test eax, eax
je 0x401af9
cmp eax, 1
jne 0x401aed
push ebp
call fcn.004018a0
add esp, 4
test al, al
jne 0x401ad0
mov eax, dword [esp + 0x10]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x14
ret
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0x14
ret
mov eax, esi
pop esi
pop ebp
add esp, 0x14
ret

Function at 0x405192
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40e894], esi
push edi
jne 0x4051b2
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 [0x40e890], esi
mov byte [0x40e88c], al
jne 0x405218
mov ecx, dword [0x40fe30]
test ecx, ecx
je 0x4051f9
mov eax, dword [0x40fe2c]
sub eax, 4
cmp eax, ecx
jmp 0x4051f2
mov eax, dword [eax]
test eax, eax
je 0x4051e4
call eax
mov eax, dword [0x40fe2c]
sub eax, 4
cmp eax, dword [0x40fe30]
mov dword [0x40fe2c], eax
jae 0x4051dc
mov eax, 0x40e028
mov esi, 0x40e030
cmp eax, esi
mov edi, eax
jae 0x405218
mov eax, dword [edi]
test eax, eax
je 0x405211
call eax
add edi, 4
cmp edi, esi
jb 0x405209
mov eax, 0x40e034
mov esi, 0x40e03c
cmp eax, esi
mov edi, eax
jae 0x405237
mov eax, dword [edi]
test eax, eax
je 0x405230
call eax
add edi, 4
cmp edi, esi
jb 0x405228
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x405251
push dword [ebp + 8]
mov dword [0x40e894], 1
call fcn.004050f8
pop ebp
ret
Function at 0x407f98
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40e160]
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 + 0x40e458]
je 0x407fcd
inc eax
cmp eax, 0x13
jb 0x407fbe
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40e458]
jne 0x4080f3
mov eax, dword [0x40e8a0]
cmp eax, 1
je 0x4080cb
cmp eax, edx
jne 0x407ffd
cmp dword [0x40e1a0], 1
je 0x4080cb
cmp ecx, 0xfc
je 0x4080f3
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 0x408033
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00407060
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004055e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x408067
mov eax, edi
push eax
call fcn.004055e0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b9ac
push edi
call fcn.00404970
add esp, 0x10
push edi
call fcn.004055e0
push dword [esi + 0x40e45c]
mov ebx, eax
call fcn.004055e0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00404aa0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00407060
push edi
push ebx
call fcn.00407070
push 0x40b9a8
push ebx
call fcn.00407070
push dword [esi + 0x40e45c]
push ebx
call fcn.00407070
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00408c78
add esp, 0x2c
jmp 0x4080f3
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40e45c]
push dword [esi]
call fcn.004055e0
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.0040495a
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x408c78
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40e9ec], ebx
push esi
push edi
jne 0x408cf8
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x408d33
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40e9ec], eax
je 0x408d33
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40e9f0], eax
call esi
cmp dword [0x40e854], 2
mov dword [0x40e9f4], eax
jne 0x408cf8
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40e9fc], eax
je 0x408cf8
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40e9f8], eax
mov eax, dword [0x40e9f8]
test eax, eax
je 0x408d3d
call eax
test eax, eax
je 0x408d24
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40e9fc]
test eax, eax
je 0x408d24
test byte [ebp - 8], 1
jne 0x408d3d
cmp dword [0x40e860], 4
jb 0x408d37
or byte [ebp + 0x12], 0x20
jmp 0x408d5c
xor eax, eax
jmp 0x408d6c
or byte [ebp + 0x12], 4
jmp 0x408d5c
mov eax, dword [0x40e9f0]
test eax, eax
je 0x408d5c
call eax
mov ebx, eax
test ebx, ebx
je 0x408d5c
mov eax, dword [0x40e9f4]
test eax, eax
je 0x408d5c
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40e9ec]
pop edi
pop esi
pop ebx
leave
ret