joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c070
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 8]
push eax
push 0
push 0x42a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1000c09a
xor eax, eax
jmp 0x1000c1ca
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10016a30
add esp, 4
add eax, 1
mov dword [ebp - 0x14], eax
push 4
push 0x1000
mov edx, dword [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1000c0dd
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1000c1ca
push 0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1000c11f
push 0x8000
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1000c1ca
push 0x10021a38
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1000c162
push 0x8000
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1000c1ca
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1000c1b1
push 0x8000
push 0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1000c1ca
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x1000d930
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x100262c4]
mov dword [ebp - 4], eax
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 1
jne 0x1000d985
cmp dword [ebp - 0x9c], 4
jne 0x1000d985
cmp dword [ebp - 0x98], 0xa
jne 0x1000d985
mov dword [ebp - 0xa8], 1
jmp 0x1000d98f
mov dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 4]
call fcn.10015c70
mov esp, ebp
pop ebp
ret
Function at 0x1000de70
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x100262c4]
mov dword [ebp - 4], eax
mov dword [ebp - 0x250], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x248]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str..
lea edx, [ebp - 0x248]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x248]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0xffffffff
je 0x1000dfbd
mov edx, 1
test edx, edx
je 0x1000dfbd
push 0x10021da4
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1000df0a
push 0x10021da8
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x1000df29
lea edx, [ebp - 0x148]
push edx
mov eax, dword [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000df27
jmp 0x1000dfbd
jmp 0x1000ded1
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x248]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x10021dac
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x248]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp - 0x148]
and eax, 0x10
je 0x1000df7f
lea ecx, [ebp - 0x248]
push ecx
mov ecx, dword [ebp - 0x250]
call fcn.1000de70
jmp 0x1000df9e
push 0x80
lea edx, [ebp - 0x248]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x148]
push ecx
mov edx, dword [ebp - 0x24c]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000dfb8
jmp 0x1000dfbd
jmp 0x1000ded1
mov eax, dword [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
mov ecx, dword [ebp - 4]
call fcn.10015c70
mov esp, ebp
pop ebp
ret 4
Function at 0x1000dfe0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002047b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
mov eax, dword [0x100262c4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xbc], ecx
push 0x10021dae
lea ecx, [ebp - 0xa4]
call fcn.1000c590
mov dword [ebp - 4], 0
mov dword [ebp - 0x84], 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x84]
push eax
push 0xc
push 0
push 0x10021db0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [ebp - 0x84]
push ecx
push 0x10021db4
lea edx, [ebp - 0x7c]
push edx
call fcn.10017769
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
call fcn.10016a30
add esp, 4
test eax, eax
jne 0x1000e148
movzx ecx, byte [0x10021bba]
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0xac], 0
mov edx, dword [ebp - 0xa8]
add edx, 1
push edx
call fcn.10015ab7
add esp, 4
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xa8]
add ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0xac]
push edx
call fcn.10016820
add esp, 0xc
mov eax, dword [ebp - 0xa8]
push eax
push str.RMbFd_Mvibf
mov ecx, dword [ebp - 0xac]
push ecx
call fcn.100164e0
add esp, 0xc
push 0x10021c4c
mov edx, dword [ebp - 0xa8]
push edx
mov eax, dword [ebp - 0xac]
push eax
call fcn.10011ca0
add esp, 0xc
mov ecx, dword [ebp - 0xac]
push ecx
lea ecx, [ebp - 0xa4]
call fcn.10001fb0
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0xb4], edx
mov eax, dword [ebp - 0xb4]
push eax
call fcn.1001641a
add esp, 4
lea ecx, [ebp - 0xa4]
call fcn.10001fd0
push eax
lea ecx, [ebp - 0x7c]
push ecx
call fcn.10017310
add esp, 8
lea edx, [ebp - 0x7c]
push edx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x88], 0
cmp dword [ebp - 0x80], 0
je 0x1000e180
mov dword [ebp - 0x88], 1
mov eax, dword [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.10001f90
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.10015c70
mov esp, ebp
pop ebp
ret
Function at 0x10011e30
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov dword [edx], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], 0x10325476
mov eax, dword [ebp - 4]
mov dword [eax + 0x58], 0
mov esp, ebp
pop ebp
ret
Function at 0x10013260
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x100262c4]
mov dword [ebp - 4], eax
push edi
cmp dword [ebp + 0xc], 0
jne 0x1001327f
xor eax, eax
jmp 0x100133a8
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x130], 0
mov ecx, 0x49
xor eax, eax
lea edi, [ebp - 0x12c]
rep stosd dword es:[edi], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0xffffffff
jne 0x100132cb
xor eax, eax
jmp 0x100133a8
mov dword [ebp - 0x130], 0x128
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1001338b
mov edx, dword [ebp + 0xc]
push edx
call fcn.10017408
add esp, 4
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.10017408
add esp, 4
push eax
call fcn.10017800
add esp, 8
test eax, eax
jne 0x10013364
mov ecx, dword [ebp - 0x128]
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x13c], eax
mov edx, dword [ebp + 8]
push edx
push 0xf01ff
mov eax, dword [ebp - 0x13c]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x134]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x138]
jmp 0x100133a8
lea edx, [ebp - 0x130]
push edx
mov eax, dword [ebp - 0x134]
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100132f0
mov dword [ebp - 0x138], 1
jmp 0x10013395
mov dword [ebp - 0x138], 0
mov ecx, dword [ebp - 0x134]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 4]
call fcn.10015c70
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10014820
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10020d09
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x170
mov eax, dword [0x100262c4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x17c], ecx
mov dword [ebp - 0x178], 0
push 0x10021eb5
lea ecx, [ebp - 0x154]
call fcn.1000c590
mov dword [ebp - 4], 1
push 0x10021eb6
lea ecx, [ebp - 0x138]
call fcn.1000c590
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x17c]
call fcn.10014dc0
movzx eax, al
test eax, eax
jne 0x1001498b
push 0x104
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [ebp - 0x11c]
push edx
lea ecx, [ebp - 0x138]
call fcn.10001fb0
movzx eax, byte [0x10021d27]
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x158], 0
mov ecx, dword [ebp - 0x15c]
add ecx, 1
push ecx
call fcn.10015ab7
add esp, 4
mov dword [ebp - 0x168], eax
mov edx, dword [ebp - 0x168]
mov dword [ebp - 0x158], edx
mov eax, dword [ebp - 0x15c]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x158]
push ecx
call fcn.10016820
add esp, 0xc
mov edx, dword [ebp - 0x15c]
push edx
push str.mbLNI_b_b_vwaUdQbOR
mov eax, dword [ebp - 0x158]
push eax
call fcn.100164e0
add esp, 0xc
push 0x10021c4c
mov ecx, dword [ebp - 0x15c]
push ecx
mov edx, dword [ebp - 0x158]
push edx
call fcn.10011ca0
add esp, 0xc
mov eax, dword [ebp - 0x158]
push eax
lea ecx, [ebp - 0x154]
call fcn.10001fb0
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x16c], ecx
mov edx, dword [ebp - 0x16c]
push edx
call fcn.1001641a
add esp, 4
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x138]
call fcn.1000c5f0
jmp 0x10014a7a
push 0x104
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [ebp - 0x11c]
push edx
lea ecx, [ebp - 0x138]
call fcn.10001fb0
movzx eax, byte [0x10021ada]
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x160], 0
mov ecx, dword [ebp - 0x164]
add ecx, 1
push ecx
call fcn.10015ab7
add esp, 4
mov dword [ebp - 0x170], eax
mov edx, dword [ebp - 0x170]
mov dword [ebp - 0x160], edx
mov eax, dword [ebp - 0x164]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x160]
push ecx
call fcn.10016820
add esp, 0xc
mov edx, dword [ebp - 0x164]
push edx
push str.m_NIF
mov eax, dword [ebp - 0x160]
push eax
call fcn.100164e0
add esp, 0xc
push 0x10021c4c
mov ecx, dword [ebp - 0x164]
push ecx
mov edx, dword [ebp - 0x160]
push edx
call fcn.10011ca0
add esp, 0xc
mov eax, dword [ebp - 0x160]
push eax
lea ecx, [ebp - 0x154]
call fcn.10001fb0
mov ecx, dword [ebp - 0x160]
mov dword [ebp - 0x174], ecx
mov edx, dword [ebp - 0x174]
push edx
call fcn.1001641a
add esp, 4
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x138]
call fcn.1000c5f0
lea ecx, [ebp - 0x138]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10001f40
mov edx, dword [ebp - 0x178]
or edx, 1
mov dword [ebp - 0x178], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x138]
call fcn.10001f90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x154]
call fcn.10001f90
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.10015c70
mov esp, ebp
pop ebp
ret 4
Function at 0x10014dc0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x100262c4]
mov dword [ebp - 4], eax
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 1
jne 0x10014e15
cmp dword [ebp - 0x9c], 4
jne 0x10014e15
cmp dword [ebp - 0x98], 0xa
jne 0x10014e15
mov dword [ebp - 0xa8], 1
jmp 0x10014e1f
mov dword [ebp - 0xa8], 0
mov al, byte [ebp - 0xa8]
mov ecx, dword [ebp - 4]
call fcn.10015c70
mov esp, ebp
pop ebp
ret

Function at 0x10015826
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x100262c4]
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.100157a8
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.10016820
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 0x10015888
cmp dword [ebp - 0x1c], 5
jb 0x100158a0
jmp 0x1001589c
cmp dword [ebp - 0x10], 1
jne 0x100158a0
cmp dword [ebp - 0x1c], 4
ja 0x1001589c
jne 0x100158a0
cmp dword [ebp - 0x18], 0
jbe 0x100158a0
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x10021f14
call fcn.10004430
test eax, eax
jge 0x100158c1
mov byte [0x10026eac], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.10015c70
add ebp, 0x78
leave
ret
Function at 0x1001618d
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.10016150
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10016228
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 [0x10027ab0]
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 0x10016228
cmp eax, 1
je 0x10016249
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 0x10016228
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x100161f5
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x10016224
xor eax, eax
inc eax
jmp 0x10016268
cmp edi, eax
jae 0x1001622c
xor eax, eax
jmp 0x10016268
cmp eax, esi
jae 0x10016233
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 [0x10027ab0]
jmp 0x1001624c
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 0x100172bc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100172dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1001ab50
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x100172ff
test byte [esp + 8], 2
je 0x100172ff
call fcn.1001ab3e
mov dword [eax], 0xd
call fcn.1001ab47
mov dword [eax], 5
jmp 0x100172d8
xor eax, eax
ret
Function at 0x10017ddd
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x10017ecd
mov eax, 0x94
call fcn.10016150
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10017f42
mov ecx, dword [esi + 0x10]
mov dword [0x10027ab0], ecx
mov eax, dword [esi + 4]
mov dword [0x10027abc], eax
mov edx, dword [esi + 8]
mov dword [0x10027ac0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x10027ab4], esi
je 0x10017e48
or esi, 0x8000
mov dword [0x10027ab4], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x10027ab8], eax
call fcn.100194f8
test eax, eax
pop ecx
je 0x10017f42
call fcn.10018d76
test eax, eax
jne 0x10017e75
call fcn.10019549
jmp 0x10017f42
call fcn.1001d588
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100292f8], eax
call fcn.1001d466
mov dword [0x10027a84], eax
call fcn.1001cf47
test eax, eax
jl 0x10017ec6
call fcn.1001d3c4
test eax, eax
jl 0x10017ec1
call fcn.1001d191
test eax, eax
jl 0x10017ec1
push 0
call fcn.10018f76
test eax, eax
pop ecx
jne 0x10017ec1
inc dword [0x10027a80]
jmp 0x10017f53
call fcn.1001d145
call fcn.10018b5f
jmp 0x10017e6b
test eax, eax
jne 0x10017efd
cmp dword [0x10027a80], eax
jle 0x10017f42
dec dword [0x10027a80]
cmp dword [0x10027aec], eax
jne 0x10017eec
call fcn.100190b4
call fcn.1001d145
call fcn.10018b5f
call fcn.10019549
jmp 0x10017f53
cmp eax, 2
jne 0x10017f46
push 0x8c
push 1
call fcn.1001ce8c
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10017f42
push esi
push dword [0x10026308]
call dword [0x10027aa4]
test eax, eax
push esi
je 0x10017f3c
call fcn.10018b7c
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x10017f53
call fcn.10016939
pop ecx
xor eax, eax
jmp 0x10017f56
cmp eax, 3
jne 0x10017f53
push 0
call fcn.10018d47
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x10018fe0
Capabilities:
Terminate process

Disassembly:
push 8
push 0x100223c8
call fcn.10018078
push 8
call fcn.1001943f
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x10027af0], esi
jne 0x10019014
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x10027aec], esi
mov al, byte [ebp + 0x10]
mov byte [0x10027ae8], al
cmp dword [ebp + 0xc], edi
jne 0x1001905e
cmp dword [0x100292ec], edi
je 0x1001904e
mov eax, dword [0x100292e8]
sub eax, 4
mov dword [0x100292e8], eax
cmp eax, dword [0x100292ec]
jb 0x1001904e
mov eax, dword [eax]
cmp eax, edi
je 0x1001902f
call eax
jmp 0x1001902f
push 0x10026040
mov eax, 0x10026038
call fcn.10018f5e
pop ecx
push 0x1002604c
mov eax, 0x10026044
call fcn.10018f5e
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x1001908f
cmp dword [ebp + 0x10], edi
jne 0x1001909d
mov dword [0x10027af0], esi
push dword [ebp + 8]
call fcn.10018f1c
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x1001909c
push 8
call fcn.1001938a
pop ecx
ret
call fcn.100180b3
ret
Function at 0x1001d78f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x100262c4]
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 + 0x10026b68]
je 0x1001d7c4
inc eax
cmp eax, 0x13
jb 0x1001d7b5
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10026b68]
jne 0x1001d8ea
mov eax, dword [0x10027a8c]
cmp eax, 1
je 0x1001d8c2
cmp eax, edx
jne 0x1001d7f4
cmp dword [0x10027a90], 1
je 0x1001d8c2
cmp ecx, 0xfc
je 0x1001d8ea
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 0x1001d82a
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.10017310
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.10016a30
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1001d85e
mov eax, edi
push eax
call fcn.10016a30
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x10022124
push edi
call fcn.100178c0
add esp, 0x10
push edi
call fcn.10016a30
push dword [esi + 0x10026b6c]
mov ebx, eax
call fcn.10016a30
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10016150
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10017310
push edi
push ebx
call fcn.10017320
push 0x10022120
push ebx
call fcn.10017320
push dword [esi + 0x10026b6c]
push ebx
call fcn.10017320
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.1001d93f
add esp, 0x2c
jmp 0x1001d8ea
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x10026b6c]
push dword [esi]
call fcn.10016a30
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.10015c70
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x1001d93f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x10027dd0], ebx
push esi
push edi
jne 0x1001d9bf
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1001d9fa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x10027dd0], eax
je 0x1001d9fa
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x10027dd4], eax
call esi
cmp dword [0x10027ab0], 2
mov dword [0x10027dd8], eax
jne 0x1001d9bf
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x10027de0], eax
je 0x1001d9bf
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x10027ddc], eax
mov eax, dword [0x10027ddc]
test eax, eax
je 0x1001da04
call eax
test eax, eax
je 0x1001d9eb
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x10027de0]
test eax, eax
je 0x1001d9eb
test byte [ebp - 8], 1
jne 0x1001da04
cmp dword [0x10027abc], 4
jb 0x1001d9fe
or byte [ebp + 0x12], 0x20
jmp 0x1001da23
xor eax, eax
jmp 0x1001da33
or byte [ebp + 0x12], 4
jmp 0x1001da23
mov eax, dword [0x10027dd4]
test eax, eax
je 0x1001da23
call eax
mov ebx, eax
test ebx, ebx
je 0x1001da23
mov eax, dword [0x10027dd8]
test eax, eax
je 0x1001da23
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10027dd0]
pop edi
pop esi
pop ebx
leave
ret