joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001170
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x15c
mov eax, dword [0x1001f220]
xor eax, esp
mov dword [esp + 0x158], eax
push esi
lea ecx, [esp + 7]
call fcn.1000c510
push 0x44
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.1000d040
xor eax, eax
push 0x100
push eax
lea ecx, [esp + 0x70]
push ecx
mov dword [esp + 0x30], 0x44
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call fcn.1000d040
lea edx, [esp + 0x74]
push 0x100
push edx
call fcn.10009100
push str.igxpun.exe__uninstall__s
lea eax, [esp + 0x80]
push 0x100
push eax
call fcn.1000d0ba
lea ecx, [esp + 0x88]
push ecx
push str.Execute_command:__s
call fcn.100010e0
add esp, 0x34
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x7c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
mov ecx, dword [esp + 0x15c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.1000d030
add esp, 0x15c
ret
Function at 0x10008d90
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x10018260
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1001f220]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x4c]
push eax
push ecx
call fcn.1000d018
mov esi, eax
add esi, 1
push esi
call fcn.1000cf00
mov edi, eax
mov eax, dword [esp + 0x54]
lea edx, [esp + 0x58]
push edx
push eax
push esi
push edi
call fcn.1000ce96
mov esi, dword [esp + 0x5c]
mov ebp, dword [esp + 0x58]
push edi
push esi
push ebp
call fcn.10008d30
add esp, 0x28
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [0x10020238], ebx
jne 0x10008e76
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
push 7
push str.failure
mov ecx, 0x1001f090
mov dword [esp + 0x3c], ebx
call fcn.10001d80
lea ecx, [esp + 0x17]
call fcn.10006fe0
mov edi, dword [esp + 0x44]
cmp edi, ebx
mov byte [esp + 0x34], 1
jne 0x10008e44
mov edi, 0xd
sub esp, 0x10
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.10002ee0
push edi
call fcn.10008190
add esp, 0x14
cmp esi, ebx
jne 0x10008e67
or esi, 0xffffffff
push esi
mov ecx, ebp
call fcn.10008c10
push 1
call fcn.1000e6a5
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret

Function at 0x10008e90
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x1001f220]
xor eax, esp
mov dword [esp + 0x9c], eax
push 0x9c
lea eax, [esp + 4]
push 0
push eax
call fcn.1000d040
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x10008ef3
push 0x259
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0x259
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.1000d030
add esp, 0xa0
ret
cmp dword [esp + 4], 5
jne 0x10008f06
cmp dword [esp + 8], 0
mov eax, 0xf003f
je 0x10008f0b
mov eax, 0xf013f
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.1000d030
add esp, 0xa0
ret
Function at 0x10008f20
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x1001828b
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x1001f220]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1001f220]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov esi, dword [esp + 0x238]
mov edi, dword [esp + 0x23c]
lea ecx, [esp + 0x18]
call fcn.10008b30
mov ebx, dword [esp + 0x240]
lea eax, [esp + 0x14]
push eax
push ebx
xor ebp, ebp
push ebp
push edi
push esi
mov dword [esp + 0x244], ebp
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp + 0x14]
push ebp
push ebp
push ebp
push ebp
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x138]
push edx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
mov dword [esp + 0x3c], 0x100
call ebp
test eax, eax
jne 0x10009036
push edi
lea ecx, [esp + 0x28]
push 0x100
push ecx
call fcn.1000d265
push 0x10019cb8
lea edx, [esp + 0x34]
push 0x100
push edx
call fcn.1000d0ba
lea eax, [esp + 0x13c]
push eax
lea ecx, [esp + 0x40]
push 0x100
push ecx
call fcn.1000d0ba
push 0
push ebx
lea edx, [esp + 0x50]
push edx
push esi
call fcn.10008f20
mov edx, dword [esp + 0x48]
add esp, 0x34
push 0
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x138]
push ecx
push 0
push edx
mov dword [esp + 0x3c], 0x100
call ebp
test eax, eax
je 0x10008fc0
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
je 0x10009066
push str.RegDeleteKeyExA
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [esp + 0x20], eax
jne 0x1000908b
lea ecx, [esp + 0x18]
push str.Using_RegDeleteKey
push ecx
call fcn.10008c90
add esp, 8
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
jmp 0x100090b5
lea edx, [esp + 0x18]
push str.Using_RegDeleteKeyEx
push edx
call fcn.10008c90
mov eax, dword [esp + 0x24c]
add esp, 8
push eax
push ebx
push edi
push esi
call dword [esp + 0x30]
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x18]
mov dword [esp + 0x230], 0xffffffff
call fcn.10008b50
mov eax, esi
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.1000d030
add esp, 0x220
ret
Function at 0x10009100
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x1001f220]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
mov ebx, dword [esp + 0x110]
push esi
push edi
push str.Kernel32.dll
lea eax, [esp + 0x14]
push 0x100
push eax
call fcn.1000d265
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x10009158
push str.GetSystemWow64DirectoryA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x1000917f
mov edx, dword [esp + 0x11c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1000d030
add esp, 0x108
ret
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebp, dword [esp + 0x120]
push ebp
push ebx
call edi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp edi, 0x78
jne 0x100091b5
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x100091b9
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x114]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000d030
add esp, 0x108
ret

Function at 0x10009a00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10018311
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1001f220]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push esi
push edi
mov eax, dword [0x1001f220]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov eax, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
cmp byte [esi], bl
mov dword [esp + 0x40], eax
je 0x10009ab7
lea ecx, [ecx]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x10009a75
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.10001d80
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
lea esi, [esi + eax + 1]
call fcn.100034b0
cmp byte [esi], bl
jne 0x10009a70
cmp dword [esp + 0x30], 0x10
jb 0x10009ab7
mov edx, dword [esp + 0x1c]
push edx
call fcn.1000cb22
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.1000d030
add esp, 0x34
ret
Function at 0x1000a2d0
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x1001f220]
xor eax, esp
mov dword [esp + 0x9c], eax
push esi
push 0x9c
lea eax, [esp + 8]
mov esi, ecx
push 0
push eax
mov dword [esi], 0
call fcn.1000d040
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x1000a4af
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x1000a3da
movzx eax, word [esp + 0x98]
add eax, 0xffffffff
cmp eax, 3
ja case.default.0x1000a33d
jmp dword [eax*4 + 0x1000a524]
mov dword [esi], 2
mov eax, esi
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.1000d030
add esp, 0xa0
ret
mov dword [esi], 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.1000d030
add esp, 0xa0
ret
mov dword [esi], 8
mov eax, esi
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.1000d030
add esp, 0xa0
ret
mov dword [esi], 0x10
mov eax, esi
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.1000d030
add esp, 0xa0
ret
mov dword [esi], 1
mov eax, esi
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.1000d030
add esp, 0xa0
ret
cmp eax, 1
jne 0x1000a472
movzx eax, word [esp + 0x98]
sub eax, 1
je 0x1000a454
sub eax, 1
je 0x1000a436
sub eax, 1
je 0x1000a418
mov dword [esi], 0x20
mov eax, esi
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.1000d030
add esp, 0xa0
ret
mov dword [esi], 0x100
mov eax, esi
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.1000d030
add esp, 0xa0
ret
mov dword [esi], 0x80
mov eax, esi
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.1000d030
add esp, 0xa0
ret
mov dword [esi], 0x40
mov eax, esi
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.1000d030
add esp, 0xa0
ret
cmp eax, 2
jne 0x1000a50b
mov dl, byte [esp + 0x9e]
sub dl, 1
neg dl
mov eax, esi
sbb edx, edx
and edx, 0xffffe200
add edx, 0x2000
mov dword [esi], edx
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.1000d030
add esp, 0xa0
ret
cmp eax, 6
jne 0x1000a50b
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x1000a4ed
mov al, byte [esp + 0x9e]
sub al, 1
neg al
sbb eax, eax
and eax, 0x3c00
add eax, 0x400
mov dword [esi], eax
mov eax, esi
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.1000d030
add esp, 0xa0
ret
cmp eax, 1
jne 0x1000a50b
cmp dword [esp + 0x10], 0x1977
jb 0x1000a50b
cmp byte [esp + 0x9e], al
jne 0x1000a50b
mov dword [esi], 0x8000
mov ecx, dword [esp + 0xa0]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1000d030
add esp, 0xa0
ret
Function at 0x1000a960
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x10018448
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1001f220]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 1
xor esi, esi
call fcn.10008b30
cmp byte [esp + 0x6c], 0
mov byte [esp + 0x24], 2
je 0x1000a9af
mov esi, 1
mov edi, dword [esp + 0x34]
mov ebx, 0x10
cmp dword [esp + 0x48], ebx
jae 0x1000a9c2
lea edi, [esp + 0x34]
push 0
lea eax, [esp + 0x1c]
push eax
push 0
call fcn.10008e90
push eax
push esi
push 0
push 0
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x1000aa8a
cmp dword [esp + 0x60], edi
jne 0x1000aa3c
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.10008b50
cmp dword [esp + 0x48], ebx
jb 0x1000aa11
mov ecx, dword [esp + 0x34]
push ecx
call fcn.1000cb22
add esp, 4
cmp dword [esp + 0x64], ebx
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], edi
mov byte [esp + 0x34], 0
jb 0x1000aa35
mov edx, dword [esp + 0x50]
push edx
call fcn.1000cb22
add esp, 4
xor eax, eax
jmp 0x1000aaef
cmp dword [esp + 0x64], ebx
mov eax, dword [esp + 0x50]
jae 0x1000aa4a
lea eax, [esp + 0x50]
mov edx, dword [esp + 0x18]
push 4
lea ecx, [esp + 0x6c]
push ecx
push 4
push edi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
lea ecx, [esp + 0x14]
je 0x1000a9f4
push str.Error_setting_registry_key_value
push esi
push ecx
call fcn.10008d30
add esp, 0xc
jmp 0x1000aaa8
push str.Error_creating_registry_key
lea eax, [esp + 0x18]
push esi
push eax
call fcn.10008d30
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.10008b50
cmp dword [esp + 0x48], ebx
jb 0x1000aac9
mov edx, dword [esp + 0x34]
push edx
call fcn.1000cb22
add esp, 4
cmp dword [esp + 0x64], ebx
mov byte [esp + 0x34], 0
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], 0xf
jb 0x1000aaed
mov eax, dword [esp + 0x50]
push eax
call fcn.1000cb22
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x44
Function at 0x1000c510
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x1001f220]
xor eax, esp
mov dword [esp + 0x104], eax
cmp dword [0x1001f1e8], 0
push esi
mov esi, ecx
jne 0x1000c572
push 0x104
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Temp
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 4]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1000c557
sub eax, edx
push eax
lea edx, [esp + 8]
push edx
mov ecx, 0x1001f1d4
call fcn.10001d80
mov ecx, dword [esp + 0x108]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1000d030
add esp, 0x108
ret

Function at 0x1000c590
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x100186c8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1001f220]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
cmp dword [0x1001f1ec], 0x10
mov eax, dword [0x1001f1d8]
mov dword [esp + 0x14], 0
jae 0x1000c5cd
mov eax, 0x1001f1d8
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 2
push 0
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0x1001a134
lea ecx, [esp + 0x24]
call fcn.10001c90
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x1000c614
lea eax, [esp + 0x20]
mov edx, dword [esp + 0x30]
push 0
lea ecx, [esp + 0xc]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x34], 0x10
jb 0x1000c643
mov eax, dword [esp + 0x20]
push eax
call fcn.1000cb22
add esp, 4
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x1c

Function at 0x1000d030
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001f220]
jne 0x1000d03a
repz ret
jmp fcn.100117a4
Function at 0x10015b23
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10011a0d
xor ebx, ebx
cmp dword [0x10020c58], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x10015bf8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x10015b63
xor eax, eax
jmp 0x10015cbc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x10015b5c
push eax
call fcn.100119aa
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10020c58], eax
call esi
push eax
call fcn.100119aa
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10020c5c], eax
call esi
push eax
call fcn.100119aa
mov dword [0x10020c60], eax
lea eax, [ebp - 8]
push eax
call fcn.1000e4d2
test eax, eax
pop ecx
pop ecx
je 0x10015bc6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000d135
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x10015bf8
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.100119aa
cmp eax, ebx
pop ecx
mov dword [0x10020c68], eax
je 0x10015bf8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100119aa
pop ecx
mov dword [0x10020c64], eax
mov eax, dword [0x10020c64]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x10015c71
cmp dword [0x10020c68], esi
je 0x10015c71
push eax
call fcn.10011a16
pop ecx
call eax
cmp eax, ebx
je 0x10015c3e
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x10020c68]
call fcn.10011a16
pop ecx
call eax
test eax, eax
je 0x10015c3e
test byte [ebp - 0x18], 1
jne 0x10015c71
lea eax, [ebp - 0xc]
push eax
call fcn.1000e509
test eax, eax
pop ecx
je 0x10015c59
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000d135
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x10015c68
or dword [ebp + 0x10], 0x200000
jmp 0x10015ca2
or dword [ebp + 0x10], 0x40000
jmp 0x10015ca2
mov eax, dword [0x10020c5c]
cmp eax, esi
je 0x10015ca2
push eax
call fcn.10011a16
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10015ca2
mov eax, dword [0x10020c60]
cmp eax, esi
je 0x10015ca2
push dword [ebp - 4]
push eax
call fcn.10011a16
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x10020c58]
call fcn.10011a16
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1003278
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1004230
call fcn.010035e4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1005984
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1003033
cmp eax, esi
jne 0x1003026
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1003036
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100300d
xor esi, esi
inc esi
mov eax, dword [0x1005980]
cmp eax, esi
jne 0x1003049
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1003078
mov eax, dword [0x1005980]
test eax, eax
jne 0x1003072
mov dword [0x1005980], esi
push 0x10012ac
push 0x10012a0
call fcn.01002f6f
pop ecx
pop ecx
test eax, eax
je 0x1003078
jmp 0x100319c
mov dword [0x1005648], esi
mov eax, dword [0x1005980]
cmp eax, esi
jne 0x100309c
push 0x100129c
push 0x100128c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1005980], 2
cmp dword [ebp - 0x20], ebx
jne 0x10030a9
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1005990], ebx
je 0x10030ca
push 0x1005990
call fcn.01003559
pop ecx
test eax, eax
je 0x10030ca
push ebx
push 2
push ebx
call dword [0x1005990]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x100319c
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1003134
cmp cx, bx
je 0x10030ef
cmp dword [ebp - 0x1c], ebx
jne 0x1003134
movzx ecx, word [eax]
cmp cx, bx
je 0x1003104
cmp cx, 0x20
ja 0x1003104
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x10030ef
test byte [ebp - 0x40], 1
je 0x1003110
movzx ecx, word [ebp - 0x3c]
jmp 0x1003113
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1005644], eax
cmp dword [0x1005638], ebx
jne 0x1003179
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1003145
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x10030d9
cmp dword [0x1005648], ebx
jne 0x1003187
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1005644]
jmp 0x10031a8
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01003629
ret
call fcn.01003731
jmp 0x1002fd0
Function at 0x40b410
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584a88
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5e8e00]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x44], 0
je 0x40b450
mov ecx, dword [ebp - 0x58]
movzx edx, byte [ecx + 0x49]
test edx, edx
jne 0x40b45c
mov al, 1
jmp 0x40b5ff
mov dword [ebp - 0x10], 8
call fcn.00406520
push eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x58]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x3c], eax
call fcn.00406520
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.004064d0
add esp, 8
movzx eax, al
test eax, eax
je 0x40b49f
xor al, al
jmp 0x40b5ff
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.0040aa30
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x34]
call fcn.0040acc0
mov ecx, eax
call fcn.004310b0
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.0040b8c0
add esi, eax
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040acc0
mov ecx, eax
call fcn.004310b0
push eax
mov ecx, dword [ebp - 0x58]
add ecx, 0x4c
push ecx
mov edx, dword [ebp - 0x58]
mov ecx, dword [edx + 0x44]
call fcn.0040c1d0
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x40b51a
cmp dword [ebp - 0x5c], 1
je 0x40b521
cmp dword [ebp - 0x5c], 3
je 0x40b5bb
jmp 0x40b5d3
mov eax, dword [ebp - 0x58]
mov byte [eax + 0x49], 0
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x34]
call fcn.0040acc0
mov ecx, eax
call fcn.004310b0
mov edx, dword [ebp - 0x14]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x40b584
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040acc0
mov ecx, eax
call fcn.004310b0
push eax
call fcn.005588c7
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x40b584
mov byte [ebp - 0x51], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004092b0
mov al, byte [ebp - 0x51]
jmp 0x40b5ff
mov ecx, dword [ebp - 0x58]
movzx edx, byte [ecx + 0x49]
test edx, edx
jne 0x40b5a7
mov byte [ebp - 0x52], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004092b0
mov al, byte [ebp - 0x52]
jmp 0x40b5ff
cmp dword [ebp - 0x38], 0
jne 0x40b5b9
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.0040ab80
jmp 0x40b5eb
mov byte [ebp - 0x53], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004092b0
mov al, byte [ebp - 0x53]
jmp 0x40b5ff
mov byte [ebp - 0x54], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004092b0
mov al, byte [ebp - 0x54]
jmp 0x40b5ff
jmp 0x40b4b2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.005562bb
mov esp, ebp
pop ebp
ret