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

Disassembly:
mov eax, 0x10011214
call fcn.1000a65c
sub esp, 0x4c
mov eax, dword [0x100162d0]
push ebx
push esi
push edi
push 0x100123b6
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x10], eax
call fcn.1000517e
movzx esi, byte [0x10012a22]
and dword [ebp - 4], 0
and dword [ebp - 0x4c], 0
lea ebx, [esi + 1]
push ebx
call fcn.10009363
push ebx
xor ebx, ebx
mov edi, eax
push ebx
push edi
call fcn.10009950
push esi
push str.jn4_0uLLUe
push edi
call fcn.10009a50
push 0x1001290c
push esi
push edi
call fcn.10007a7a
add esp, 0x28
push edi
lea ecx, [ebp - 0x48]
call fcn.100023b9
push edi
call fcn.1000a0cd
push dword [ebp + 8]
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.100023d6
mov eax, dword [ebp - 0x28]
add esp, 0x10
cmp dword [ebp - 0x14], 0x10
jae 0x10005722
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x50]
push ecx
push 0xf003f
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor esi, esi
inc esi
test eax, eax
jne 0x1000577e
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push str.Start
push dword [ebp - 0x50]
mov dword [ebp + 8], 0x50
mov dword [ebp - 0x54], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10005775
cmp dword [ebp - 0x58], 2
jne 0x10005775
mov dword [ebp - 0x4c], esi
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.10001db9
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.10001db9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x4c]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.1000989e
leave
ret 4

Function at 0x100057ae
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x10011263
call fcn.1000a65c
sub esp, 0x54
push ebx
push esi
push edi
push 0x44
pop edi
push edi
xor esi, esi
xor ebx, ebx
lea eax, [ebp - 0x60]
push esi
inc ebx
push eax
mov dword [ebp - 4], ebx
call fcn.10009950
push 0x10
lea eax, [ebp - 0x1c]
push esi
push eax
mov dword [ebp - 0x60], edi
call fcn.10009950
add esp, 0x18
push 0x10012708
lea ecx, [ebp + 8]
call fcn.10004fc7
push 0xffffffffffffffff
push esi
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp + 8]
call fcn.100021a6
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
jae 0x1000580e
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x60]
push ecx
push esi
push esi
push 0x8000000
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1000584a
push 0x927c0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x18]
call edi
push esi
lea ecx, [ebp + 8]
push ebx
call fcn.10001db9
push esi
lea ecx, [ebp + 0x24]
push ebx
call fcn.10001db9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x38
Function at 0x1000586f
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
xor esi, esi
push 0xf003f
push esi
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x100058f3
push ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x18], 0x10
jb 0x100058a2
mov eax, dword [edi + 4]
jmp 0x100058a5
lea eax, [edi + 4]
push 0xf01ff
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
cmp ebx, esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x100058ec
lea eax, [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x100058e9
cmp dword [ebp - 0x24], 4
jne 0x100058e9
mov ecx, dword [ebp - 0xc]
push edi
call fcn.10005690
test eax, eax
je 0x100058e9
mov dword [ebp - 8], 1
push ebx
call esi
push dword [ebp - 4]
call esi
pop edi
pop ebx
mov eax, dword [ebp - 8]
pop esi
leave
ret 4

Function at 0x100058fb
Capabilities:
Copy file
Delete directory
Read .ini file
Read file via mapping
Set file attributes

Disassembly:
mov eax, 0x1001128d
call fcn.1000a65c
sub esp, 0x48
mov eax, dword [0x100162d0]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor edi, edi
push edi
mov dword [ebp - 0x14], eax
mov esi, ecx
call fcn.1000622c
lea eax, [esi + 0x54]
push eax
lea ecx, [ebp - 0x30]
call fcn.10002393
lea eax, [esi + 0xe0]
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], edi
call fcn.10002393
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
jae 0x1000594e
lea eax, [ebp - 0x2c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp - 0x18], 0x10
mov ecx, dword [ebp - 0x2c]
jae 0x10005966
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x34], 0x10
mov eax, dword [ebp - 0x48]
jae 0x10005972
lea eax, [ebp - 0x48]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x10005a22
push edi
push edi
push edi
push edi
push edi
push str.dfgd0
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
push edi
push edi
push edi
push str.sdfe
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push str.shjt
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x54], esp
push 0x10012710
call fcn.1000517e
sub esp, 0x1c
lea eax, [ebp - 0x30]
mov ecx, esp
mov dword [ebp - 0x50], esp
push eax
mov byte [ebp - 4], 3
call fcn.10002393
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.100057ae
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x50], esp
push 0x1001270c
call fcn.1000517e
sub esp, 0x1c
lea eax, [ebp - 0x30]
mov ecx, esp
mov dword [ebp - 0x54], esp
push eax
mov byte [ebp - 4], 4
call fcn.10002393
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.100057ae
xor esi, esi
inc esi
jmp 0x10005a24
xor esi, esi
push edi
push 1
lea ecx, [ebp - 0x4c]
call fcn.10001db9
push edi
push 1
lea ecx, [ebp - 0x30]
call fcn.10001db9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.1000989e
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10005baa
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x100162d0]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
inc eax
cmp dword [ebp - 0x88], eax
jne 0x10005bef
cmp dword [ebp - 0x94], 4
jne 0x10005bef
cmp dword [ebp - 0x90], 0xa
je 0x10005bf1
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.1000989e
leave
ret

Function at 0x10005f1f
Capabilities:
Get common file path

Disassembly:
mov eax, 0x100112eb
call fcn.1000a65c
sub esp, 0x12c
mov eax, dword [0x100162d0]
push ebx
push esi
push edi
xor esi, esi
push 0x100123b6
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x134], esi
call fcn.1000517e
push 0x40
mov byte [ebp - 0x130], 0
xor eax, eax
pop ecx
lea edi, [ebp - 0x12f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 4], esi
mov dword [ebp - 0x134], esi
movzx esi, byte [0x100127a3]
stosb byte es:[edi], al
lea edi, [esi + 1]
push edi
call fcn.10009363
push edi
mov ebx, eax
push 0
push ebx
call fcn.10009950
push esi
push 0x10012798
push ebx
call fcn.10009a50
mov edi, 0x1001290c
push edi
push esi
push ebx
call fcn.10007a7a
add esp, 0x28
push ebx
lea ecx, [ebp - 0x2c]
call fcn.100023b9
push ebx
call fcn.1000a0cd
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
pop ecx
jae 0x10005fc2
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x138], eax
je 0x1000606c
movzx esi, byte [0x100128bc]
lea eax, [esi + 1]
push eax
call fcn.10009363
mov ebx, eax
lea eax, [esi + 1]
push eax
push 0
push ebx
call fcn.10009950
push esi
push 0x100128ac
push ebx
call fcn.10009a50
push edi
push esi
push ebx
call fcn.10007a7a
add esp, 0x28
push ebx
lea ecx, [ebp - 0x2c]
call fcn.100023b9
push ebx
call fcn.1000a0cd
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
pop ecx
jae 0x10006028
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x138]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor esi, esi
cmp eax, esi
je 0x10006058
lea ecx, [ebp - 0x130]
push ecx
push esi
push esi
push dword [ebp + 0xc]
push esi
call eax
test eax, eax
jl 0x10006058
mov dword [ebp - 0x134], 1
push dword [ebp - 0x138]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x134], esi
jne 0x1000607e
push 0x104
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x130]
push eax
call fcn.1000517e
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10001db9
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.1000989e
leave
ret 8
Function at 0x100060b5
Capabilities:
Get disk information

Disassembly:
mov eax, 0x100112eb
call fcn.1000a65c
sub esp, 0x88
mov eax, dword [0x100162d0]
push esi
push edi
push 0x100123b6
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
call fcn.1000517e
xor esi, esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x94]
push eax
push 0xc
push esi
push 0x10012a60
mov dword [ebp - 4], esi
mov dword [ebp - 0x94], esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push dword [ebp - 0x94]
lea eax, [ebp - 0x90]
push 0x10012a5c
push eax
call fcn.1000ad78
lea eax, [ebp - 0x90]
push eax
call fcn.100099c0
add esp, 0x10
test eax, eax
jne 0x1000618f
movzx esi, byte [0x1001287a]
push ebx
lea ebx, [esi + 1]
push ebx
call fcn.10009363
push ebx
mov edi, eax
push 0
push edi
call fcn.10009950
push esi
push 0x1001286c
push edi
call fcn.10009a50
push 0x1001290c
push esi
push edi
call fcn.10007a7a
add esp, 0x28
push edi
lea ecx, [ebp - 0x2c]
call fcn.100023b9
push edi
call fcn.1000a0cd
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
pop ecx
pop ebx
jae 0x1000617e
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.1000ac80
pop ecx
pop ecx
xor esi, esi
lea eax, [ebp - 0x90]
push eax
push esi
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
xor edi, edi
cmp eax, esi
je 0x100061b0
push eax
inc edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.10001db9
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.1000989e
leave
ret
Function at 0x10007a7a
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x10007abd
cmp byte [edi], 0
je 0x10007abd
push ebx
push edi
call fcn.100099c0
pop ecx
xor ecx, ecx
cmp dword [esp + 0x10], ecx
mov ebx, eax
jle 0x10007ab8
push esi
mov eax, dword [esp + 0x10]
lea esi, [ecx + eax]
mov eax, ecx
cdq
idiv ebx
mov al, byte [esi]
sub al, cl
xor al, byte [edx + edi]
inc ecx
cmp ecx, dword [esp + 0x14]
mov byte [esi], al
jl 0x10007a9b
pop esi
pop ebx
mov al, 1
pop edi
ret
xor al, al
pop edi
ret

Function at 0x10007b86
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x58], eax
ret

Function at 0x1000838d
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x100162d0]
push esi
mov dword [ebp - 4], eax
xor esi, esi
xor eax, eax
cmp dword [ebp + 0xc], esi
je 0x1000842d
push edi
push 0x49
pop ecx
push esi
mov dword [ebp - 0x12c], esi
lea edi, [ebp - 0x128]
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x100083d1
xor eax, eax
jmp 0x1000842c
lea eax, [ebp - 0x12c]
push eax
push edi
mov dword [ebp - 0x12c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10008423
push dword [ebp + 0xc]
call fcn.1000ab65
pop ecx
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.1000ab65
pop ecx
push eax
call fcn.1000add0
test eax, eax
pop ecx
pop ecx
je 0x10008438
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100083ec
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
call fcn.1000989e
leave
ret
push dword [ebp - 0x124]
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp + 8]
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, eax
jmp 0x10008423

Function at 0x10009153
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x100162d0]
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.10009123
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.10009950
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x100091b5
cmp dword [ebp - 0x1c], 5
jb 0x100091cd
jmp 0x100091c9
cmp dword [ebp - 0x10], 1
jne 0x100091cd
cmp dword [ebp - 0x1c], 4
ja 0x100091c9
jne 0x100091cd
cmp dword [ebp - 0x18], 0
jbe 0x100091cd
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x10012ad0
call fcn.10001219
test eax, eax
jge 0x100091ee
mov byte [0x10016eac], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.1000989e
add ebp, 0x78
leave
ret
Function at 0x100095f2
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.10009830
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000968d
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 [0x10017bc8]
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 0x1000968d
cmp eax, 1
je 0x100096ae
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 0x1000968d
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x1000965a
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x10009689
xor eax, eax
inc eax
jmp 0x100096cd
cmp edi, eax
jae 0x10009691
xor eax, eax
jmp 0x100096cd
cmp eax, esi
jae 0x10009698
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 [0x10017bc8]
jmp 0x100096b1
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 0x1000ab1f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1000ab3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1000dba1
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x1000ab62
test byte [esp + 8], 2
je 0x1000ab62
call fcn.1000db8f
mov dword [eax], 0xd
call fcn.1000db98
mov dword [eax], 5
jmp 0x1000ab3b
xor eax, eax
ret
Function at 0x1000b24a
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x1000b33a
mov eax, 0x94
call fcn.10009830
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1000b3af
mov ecx, dword [esi + 0x10]
mov dword [0x10017bc8], ecx
mov eax, dword [esi + 4]
mov dword [0x10017bd4], eax
mov edx, dword [esi + 8]
mov dword [0x10017bd8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x10017bcc], esi
je 0x1000b2b5
or esi, 0x8000
mov dword [0x10017bcc], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x10017bd0], eax
call fcn.1000b69b
test eax, eax
pop ecx
je 0x1000b3af
call fcn.1000d3a6
test eax, eax
jne 0x1000b2e2
call fcn.1000b6ec
jmp 0x1000b3af
call fcn.1000f64c
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100192d8], eax
call fcn.1000f52a
mov dword [0x10017a5c], eax
call fcn.1000f00b
test eax, eax
jl 0x1000b333
call fcn.1000f488
test eax, eax
jl 0x1000b32e
call fcn.1000f255
test eax, eax
jl 0x1000b32e
push 0
call fcn.1000c2e8
test eax, eax
pop ecx
jne 0x1000b32e
inc dword [0x10017a58]
jmp 0x1000b3c0
call fcn.1000f209
call fcn.1000d18f
jmp 0x1000b2d8
test eax, eax
jne 0x1000b36a
cmp dword [0x10017a58], eax
jle 0x1000b3af
dec dword [0x10017a58]
cmp dword [0x10017c04], eax
jne 0x1000b359
call fcn.1000c426
call fcn.1000f209
call fcn.1000d18f
call fcn.1000b6ec
jmp 0x1000b3c0
cmp eax, 2
jne 0x1000b3b3
push 0x8c
push 1
call fcn.1000ef50
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1000b3af
push esi
push dword [0x10016434]
call dword [0x10017c6c]
test eax, eax
push esi
je 0x1000b3a9
call fcn.1000d1ac
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x1000b3c0
call fcn.10009581
pop ecx
xor eax, eax
jmp 0x1000b3c3
cmp eax, 3
jne 0x1000b3c0
push 0
call fcn.1000d377
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x1000c352
Capabilities:
Terminate process

Disassembly:
push 8
push 0x10012c78
call fcn.100096d8
push 8
call fcn.1000b650
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x10017c08], esi
jne 0x1000c386
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x10017c04], esi
mov al, byte [ebp + 0x10]
mov byte [0x10017c00], al
cmp dword [ebp + 0xc], edi
jne 0x1000c3d0
cmp dword [0x100192a8], edi
je 0x1000c3c0
mov eax, dword [0x100192a4]
sub eax, 4
mov dword [0x100192a4], eax
cmp eax, dword [0x100192a8]
jb 0x1000c3c0
mov eax, dword [eax]
cmp eax, edi
je 0x1000c3a1
call eax
jmp 0x1000c3a1
push 0x10016038
mov eax, 0x10016030
call fcn.1000c2d0
pop ecx
push 0x10016044
mov eax, 0x1001603c
call fcn.1000c2d0
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x1000c401
cmp dword [ebp + 0x10], edi
jne 0x1000c40f
mov dword [0x10017c08], esi
push dword [ebp + 8]
call fcn.1000c28e
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x1000c40e
push 8
call fcn.1000b59b
pop ecx
ret
call fcn.10009713
ret
Function at 0x1000f853
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x100162d0]
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 + 0x10016b70]
je 0x1000f888
inc eax
cmp eax, 0x13
jb 0x1000f879
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10016b70]
jne 0x1000f9ae
mov eax, dword [0x10017a64]
cmp eax, 1
je 0x1000f986
cmp eax, edx
jne 0x1000f8b8
cmp dword [0x10017a68], 1
je 0x1000f986
cmp ecx, 0xfc
je 0x1000f9ae
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 0x1000f8ee
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.1000ac80
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.100099c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1000f922
mov eax, edi
push eax
call fcn.100099c0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x10012cbc
push edi
call fcn.1000ae90
add esp, 0x10
push edi
call fcn.100099c0
push dword [esi + 0x10016b74]
mov ebx, eax
call fcn.100099c0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10009830
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.1000ac80
push edi
push ebx
call fcn.1000ac90
push 0x10012cb8
push ebx
call fcn.1000ac90
push dword [esi + 0x10016b74]
push ebx
call fcn.1000ac90
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.1000fa9e
add esp, 0x2c
jmp 0x1000f9ae
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x10016b74]
push dword [esi]
call fcn.100099c0
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.1000989e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x1000fa9e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x10017dac], ebx
push esi
push edi
jne 0x1000fb1e
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1000fb59
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x10017dac], eax
je 0x1000fb59
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x10017db0], eax
call esi
cmp dword [0x10017bc8], 2
mov dword [0x10017db4], eax
jne 0x1000fb1e
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x10017dbc], eax
je 0x1000fb1e
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x10017db8], eax
mov eax, dword [0x10017db8]
test eax, eax
je 0x1000fb63
call eax
test eax, eax
je 0x1000fb4a
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x10017dbc]
test eax, eax
je 0x1000fb4a
test byte [ebp - 8], 1
jne 0x1000fb63
cmp dword [0x10017bd4], 4
jb 0x1000fb5d
or byte [ebp + 0x12], 0x20
jmp 0x1000fb82
xor eax, eax
jmp 0x1000fb92
or byte [ebp + 0x12], 4
jmp 0x1000fb82
mov eax, dword [0x10017db0]
test eax, eax
je 0x1000fb82
call eax
mov ebx, eax
test ebx, ebx
je 0x1000fb82
mov eax, dword [0x10017db4]
test eax, eax
je 0x1000fb82
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10017dac]
pop edi
pop esi
pop ebx
leave
ret