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

Disassembly:
mov eax, 0x100111e4
call fcn.1000a62c
sub esp, 0x4c
mov eax, dword [0x100162d0]
push ebx
push esi
push edi
push 0x10012395
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x10], eax
call fcn.1000515c
movzx esi, byte [0x100129f2]
and dword [ebp - 4], 0
and dword [ebp - 0x4c], 0
lea ebx, [esi + 1]
push ebx
call fcn.10009333
push ebx
xor ebx, ebx
mov edi, eax
push ebx
push edi
call fcn.10009920
push esi
push str.jn4_0uLLUe
push edi
call fcn.10009a20
push 0x100128dc
push esi
push edi
call fcn.10007a4b
add esp, 0x28
push edi
lea ecx, [ebp - 0x48]
call fcn.100023a4
push edi
call fcn.1000a09d
push dword [ebp + 8]
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.100023c1
mov eax, dword [ebp - 0x28]
add esp, 0x10
cmp dword [ebp - 0x14], 0x10
jae 0x10005700
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 0x1000575c
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 0x10005753
cmp dword [ebp - 0x58], 2
jne 0x10005753
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.10001da4
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.10001da4
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.1000986e
leave
ret 4

Function at 0x1000578c
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x10011233
call fcn.1000a62c
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.10009920
push 0x10
lea eax, [ebp - 0x1c]
push esi
push eax
mov dword [ebp - 0x60], edi
call fcn.10009920
add esp, 0x18
push 0x100126f0
lea ecx, [ebp + 8]
call fcn.10004fa5
push 0xffffffffffffffff
push esi
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp + 8]
call fcn.10002191
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
jae 0x100057ec
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 0x10005828
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.10001da4
push esi
lea ecx, [ebp + 0x24]
push ebx
call fcn.10001da4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x38
Function at 0x1000584d
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 0x100058d1
push ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x18], 0x10
jb 0x10005880
mov eax, dword [edi + 4]
jmp 0x10005883
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 0x100058ca
lea eax, [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x100058c7
cmp dword [ebp - 0x24], 4
jne 0x100058c7
mov ecx, dword [ebp - 0xc]
push edi
call fcn.1000566e
test eax, eax
je 0x100058c7
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 0x100058d9
Capabilities:
Copy file
Set file attributes

Disassembly:
mov eax, 0x1001125d
call fcn.1000a62c
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.100061fd
lea eax, [esi + 0x54]
push eax
lea ecx, [ebp - 0x30]
call fcn.1000237e
lea eax, [esi + 0xe0]
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], edi
call fcn.1000237e
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
jae 0x1000592c
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 0x10005944
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x34], 0x10
mov eax, dword [ebp - 0x48]
jae 0x10005950
lea eax, [ebp - 0x48]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x100059f3
push edi
push edi
push edi
push edi
push edi
push str.kduef
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push edi
push edi
push 0x100126fc
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x54], esp
push 0x100126f8
call fcn.1000515c
sub esp, 0x1c
lea eax, [ebp - 0x30]
mov ecx, esp
mov dword [ebp - 0x50], esp
push eax
mov byte [ebp - 4], 3
call fcn.1000237e
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.1000578c
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x50], esp
push 0x100126f4
call fcn.1000515c
sub esp, 0x1c
lea eax, [ebp - 0x30]
mov ecx, esp
mov dword [ebp - 0x54], esp
push eax
mov byte [ebp - 4], 4
call fcn.1000237e
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.1000578c
xor esi, esi
inc esi
jmp 0x100059f5
xor esi, esi
push edi
push 1
lea ecx, [ebp - 0x4c]
call fcn.10001da4
push edi
push 1
lea ecx, [ebp - 0x30]
call fcn.10001da4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.1000986e
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10005b7b
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 0x10005bc0
cmp dword [ebp - 0x94], 4
jne 0x10005bc0
cmp dword [ebp - 0x90], 0xa
je 0x10005bc2
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.1000986e
leave
ret

Function at 0x10005ef0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x100112bb
call fcn.1000a62c
sub esp, 0x12c
mov eax, dword [0x100162d0]
push ebx
push esi
push edi
xor esi, esi
push 0x10012395
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x134], esi
call fcn.1000515c
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 [0x10012773]
stosb byte es:[edi], al
lea edi, [esi + 1]
push edi
call fcn.10009333
push edi
mov ebx, eax
push 0
push ebx
call fcn.10009920
push esi
push 0x10012768
push ebx
call fcn.10009a20
mov edi, 0x100128dc
push edi
push esi
push ebx
call fcn.10007a4b
add esp, 0x28
push ebx
lea ecx, [ebp - 0x2c]
call fcn.100023a4
push ebx
call fcn.1000a09d
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
pop ecx
jae 0x10005f93
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [ebp - 0x138], eax
je 0x1000603d
movzx esi, byte [0x1001288c]
lea eax, [esi + 1]
push eax
call fcn.10009333
mov ebx, eax
lea eax, [esi + 1]
push eax
push 0
push ebx
call fcn.10009920
push esi
push 0x1001287c
push ebx
call fcn.10009a20
push edi
push esi
push ebx
call fcn.10007a4b
add esp, 0x28
push ebx
lea ecx, [ebp - 0x2c]
call fcn.100023a4
push ebx
call fcn.1000a09d
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
pop ecx
jae 0x10005ff9
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x138]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor esi, esi
cmp eax, esi
je 0x10006029
lea ecx, [ebp - 0x130]
push ecx
push esi
push esi
push dword [ebp + 0xc]
push esi
call eax
test eax, eax
jl 0x10006029
mov dword [ebp - 0x134], 1
push dword [ebp - 0x138]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x134], esi
jne 0x1000604f
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.1000515c
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.10001da4
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.1000986e
leave
ret 8
Function at 0x10006086
Capabilities:
Get disk information

Disassembly:
mov eax, 0x100112bb
call fcn.1000a62c
sub esp, 0x88
mov eax, dword [0x100162d0]
push esi
push edi
push 0x10012395
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
call fcn.1000515c
xor esi, esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x94]
push eax
push 0xc
push esi
push 0x10012a30
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 0x10012a2c
push eax
call fcn.1000ad48
lea eax, [ebp - 0x90]
push eax
call fcn.10009990
add esp, 0x10
test eax, eax
jne 0x10006160
movzx esi, byte [0x1001284a]
push ebx
lea ebx, [esi + 1]
push ebx
call fcn.10009333
push ebx
mov edi, eax
push 0
push edi
call fcn.10009920
push esi
push 0x1001283c
push edi
call fcn.10009a20
push 0x100128dc
push esi
push edi
call fcn.10007a4b
add esp, 0x28
push edi
lea ecx, [ebp - 0x2c]
call fcn.100023a4
push edi
call fcn.1000a09d
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
pop ecx
pop ebx
jae 0x1000614f
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.1000ac50
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 0x10006181
push eax
inc edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.10001da4
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.1000986e
leave
ret
Function at 0x10007a4b
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x10007a8e
cmp byte [edi], 0
je 0x10007a8e
push ebx
push edi
call fcn.10009990
pop ecx
xor ecx, ecx
cmp dword [esp + 0x10], ecx
mov ebx, eax
jle 0x10007a89
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 0x10007a6c
pop esi
pop ebx
mov al, 1
pop edi
ret
xor al, al
pop edi
ret

Function at 0x10007b57
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 0x1000835e
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 0x100083fe
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 0x100083a2
xor eax, eax
jmp 0x100083fd
lea eax, [ebp - 0x12c]
push eax
push edi
mov dword [ebp - 0x12c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x100083f4
push dword [ebp + 0xc]
call fcn.1000ab35
pop ecx
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.1000ab35
pop ecx
push eax
call fcn.1000ada0
test eax, eax
pop ecx
pop ecx
je 0x10008409
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100083bd
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.1000986e
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 0x100083f4

Function at 0x10009123
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.100090f3
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.10009920
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 0x10009185
cmp dword [ebp - 0x1c], 5
jb 0x1000919d
jmp 0x10009199
cmp dword [ebp - 0x10], 1
jne 0x1000919d
cmp dword [ebp - 0x1c], 4
ja 0x10009199
jne 0x1000919d
cmp dword [ebp - 0x18], 0
jbe 0x1000919d
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x10012aa0
call fcn.10001219
test eax, eax
jge 0x100091be
mov byte [0x10016eac], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.1000986e
add ebp, 0x78
leave
ret
Function at 0x100095c2
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.10009800
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000965d
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 0x1000965d
cmp eax, 1
je 0x1000967e
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 0x1000965d
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x1000962a
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x10009659
xor eax, eax
inc eax
jmp 0x1000969d
cmp edi, eax
jae 0x10009661
xor eax, eax
jmp 0x1000969d
cmp eax, esi
jae 0x10009668
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 0x10009681
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 0x1000aaef
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1000ab0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1000db71
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x1000ab32
test byte [esp + 8], 2
je 0x1000ab32
call fcn.1000db5f
mov dword [eax], 0xd
call fcn.1000db68
mov dword [eax], 5
jmp 0x1000ab0b
xor eax, eax
ret
Function at 0x1000b21a
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x1000b30a
mov eax, 0x94
call fcn.10009800
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1000b37f
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 0x1000b285
or esi, 0x8000
mov dword [0x10017bcc], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x10017bd0], eax
call fcn.1000b66b
test eax, eax
pop ecx
je 0x1000b37f
call fcn.1000d376
test eax, eax
jne 0x1000b2b2
call fcn.1000b6bc
jmp 0x1000b37f
call fcn.1000f61c
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100192d8], eax
call fcn.1000f4fa
mov dword [0x10017a5c], eax
call fcn.1000efdb
test eax, eax
jl 0x1000b303
call fcn.1000f458
test eax, eax
jl 0x1000b2fe
call fcn.1000f225
test eax, eax
jl 0x1000b2fe
push 0
call fcn.1000c2b8
test eax, eax
pop ecx
jne 0x1000b2fe
inc dword [0x10017a58]
jmp 0x1000b390
call fcn.1000f1d9
call fcn.1000d15f
jmp 0x1000b2a8
test eax, eax
jne 0x1000b33a
cmp dword [0x10017a58], eax
jle 0x1000b37f
dec dword [0x10017a58]
cmp dword [0x10017c04], eax
jne 0x1000b329
call fcn.1000c3f6
call fcn.1000f1d9
call fcn.1000d15f
call fcn.1000b6bc
jmp 0x1000b390
cmp eax, 2
jne 0x1000b383
push 0x8c
push 1
call fcn.1000ef20
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1000b37f
push esi
push dword [0x10016434]
call dword [0x10017c6c]
test eax, eax
push esi
je 0x1000b379
call fcn.1000d17c
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x1000b390
call fcn.10009551
pop ecx
xor eax, eax
jmp 0x1000b393
cmp eax, 3
jne 0x1000b390
push 0
call fcn.1000d347
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x1000c322
Capabilities:
Terminate process

Disassembly:
push 8
push 0x10012c48
call fcn.100096a8
push 8
call fcn.1000b620
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x10017c08], esi
jne 0x1000c356
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 0x1000c3a0
cmp dword [0x100192a8], edi
je 0x1000c390
mov eax, dword [0x100192a4]
sub eax, 4
mov dword [0x100192a4], eax
cmp eax, dword [0x100192a8]
jb 0x1000c390
mov eax, dword [eax]
cmp eax, edi
je 0x1000c371
call eax
jmp 0x1000c371
push 0x10016038
mov eax, 0x10016030
call fcn.1000c2a0
pop ecx
push 0x10016044
mov eax, 0x1001603c
call fcn.1000c2a0
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x1000c3d1
cmp dword [ebp + 0x10], edi
jne 0x1000c3df
mov dword [0x10017c08], esi
push dword [ebp + 8]
call fcn.1000c25e
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x1000c3de
push 8
call fcn.1000b56b
pop ecx
ret
call fcn.100096e3
ret
Function at 0x1000f823
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 0x1000f858
inc eax
cmp eax, 0x13
jb 0x1000f849
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10016b70]
jne 0x1000f97e
mov eax, dword [0x10017a64]
cmp eax, 1
je 0x1000f956
cmp eax, edx
jne 0x1000f888
cmp dword [0x10017a68], 1
je 0x1000f956
cmp ecx, 0xfc
je 0x1000f97e
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 0x1000f8be
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.1000ac50
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.10009990
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1000f8f2
mov eax, edi
push eax
call fcn.10009990
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x10012c8c
push edi
call fcn.1000ae60
add esp, 0x10
push edi
call fcn.10009990
push dword [esi + 0x10016b74]
mov ebx, eax
call fcn.10009990
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10009800
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.1000ac50
push edi
push ebx
call fcn.1000ac60
push 0x10012c88
push ebx
call fcn.1000ac60
push dword [esi + 0x10016b74]
push ebx
call fcn.1000ac60
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.1000fa6e
add esp, 0x2c
jmp 0x1000f97e
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x10016b74]
push dword [esi]
call fcn.10009990
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.1000986e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x1000fa6e
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 0x1000faee
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1000fb29
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x10017dac], eax
je 0x1000fb29
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 0x1000faee
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x10017dbc], eax
je 0x1000faee
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x10017db8], eax
mov eax, dword [0x10017db8]
test eax, eax
je 0x1000fb33
call eax
test eax, eax
je 0x1000fb1a
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 0x1000fb1a
test byte [ebp - 8], 1
jne 0x1000fb33
cmp dword [0x10017bd4], 4
jb 0x1000fb2d
or byte [ebp + 0x12], 0x20
jmp 0x1000fb52
xor eax, eax
jmp 0x1000fb62
or byte [ebp + 0x12], 4
jmp 0x1000fb52
mov eax, dword [0x10017db0]
test eax, eax
je 0x1000fb52
call eax
mov ebx, eax
test ebx, ebx
je 0x1000fb52
mov eax, dword [0x10017db4]
test eax, eax
je 0x1000fb52
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