joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4610ff
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4af0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0044536f
mov dword [ebp - 0x14], eax
cmp dword [0x4b4948], edi
jne 0x4611f0
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x46117d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4612d0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4612d0
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4612d0
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4b4948], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4b494c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4b4950], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4b4958], eax
test eax, eax
je 0x4611ed
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4b4954], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x461215
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x461208
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x46122a
push 4
pop eax
jmp 0x4612d2
cmp dword [ebp - 0x14], edi
je 0x46122a
push dword [0x4b4948]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x46120f
mov eax, dword [0x4b4954]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x461288
cmp dword [0x4b4958], esi
je 0x461288
push eax
call ebx
push dword [0x4b4958]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x461288
test eax, eax
je 0x461288
call ecx
test eax, eax
je 0x46127d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x46127d
test byte [ebp - 8], 1
jne 0x461288
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4612b8
mov eax, dword [0x4b494c]
cmp eax, esi
je 0x4612b5
push eax
call ebx
test eax, eax
je 0x4612b5
call eax
mov edi, eax
test edi, edi
je 0x4612b5
mov eax, dword [0x4b4950]
cmp eax, esi
je 0x4612b5
push eax
call ebx
test eax, eax
je 0x4612b5
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4b4948]
call ebx
test eax, eax
je 0x4612d0
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4612d2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c933
leave
ret
Function at 0x10002de0
Capabilities:
Enumerate gui resources

Disassembly:
push 0xffffffffffffffff
push 0x1001a0e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push 0x12c
mov dword [esp + 0x34], 2
call fcn.100113b4
mov esi, eax
add esp, 4
mov dword [esp + 8], esi
xor ebx, ebx
cmp esi, ebx
mov byte [esp + 0x30], 3
je 0x10002eb6
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x28], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x94]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.10001490
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x48], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x94]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov byte [esp + 0x74], 4
mov byte [ecx + 4], bl
call fcn.10001490
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x68], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x94]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push eax
mov byte [esp + 0x90], 5
mov byte [ecx + 4], bl
call fcn.10001490
mov ecx, esi
mov byte [esp + 0x84], 3
call fcn.1000e460
mov esi, eax
jmp 0x10002eb8
xor esi, esi
mov eax, 0xfffffc18
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
mov byte [esp + 0x34], 2
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.1000e5a0
cmp eax, ebx
je 0x10002ef5
push eax
push 0x10002740
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, esi
call fcn.100101b0
cmp esi, ebx
je 0x10002efc
lea ebx, [esi + 0x34]
mov eax, dword [esp + 0x50]
mov esi, 0x10
cmp eax, esi
jb 0x10002f16
mov edx, dword [esp + 0x3c]
push edx
call fcn.10011b59
add esp, 4
cmp dword [esp + 0x6c], esi
jb 0x10002f29
mov eax, dword [esp + 0x58]
push eax
call fcn.10011b59
add esp, 4
cmp dword [esp + 0x88], esi
jb 0x10002f3f
mov ecx, dword [esp + 0x74]
push ecx
call fcn.10011b59
add esp, 4
mov ecx, dword [esp + 0x28]
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret 0x54
Function at 0x100051d0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x118
mov eax, dword [0x100204fc]
mov edx, dword [esp + 0x11c]
push ebp
push esi
mov ebp, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x128], eax
mov eax, dword [ebp]
push edx
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x100052f2
lea ecx, [esp + 8]
call fcn.100050d0
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
jne 0x100052f6
push edi
lea ecx, [esp + 0x18]
push ecx
push esi
push esi
push esi
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x34]
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x100052a0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x10]
call fcn.100051d0
mov edi, eax
test edi, edi
jne 0x1000531a
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push edi
push edi
push edi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push edi
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x10005262
mov eax, dword [esp + 0xc]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x100052b9
push eax
call edi
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0x128]
mov edx, dword [ebp]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x100052d8
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.10012240
add esp, 0x118
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x10005301
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.10012240
add esp, 0x118
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10005329
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
mov eax, edi
pop edi
pop esi
pop ebp
call fcn.10012240
add esp, 0x118
ret 4
Function at 0x10005810
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x10005822
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x10005fa0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 8
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push ebx
push ebx
push str.wuvs
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea ecx, [esp + 0xc]
call fcn.10002730
mov esi, dword [esp + 0x20]
sub esp, 0x1c
mov ecx, esp
mov eax, esi
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x2c], esp
mov byte [ecx + 4], bl
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10005ff2
sub eax, edi
push eax
push esi
call fcn.10001820
mov esi, dword [esp + 0x38]
sub esp, 0x1c
mov ecx, esp
mov eax, esi
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x48], esp
mov byte [ecx + 4], bl
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10006021
sub eax, edi
push eax
push esi
call fcn.10001820
mov esi, dword [esp + 0x50]
sub esp, 0x1c
mov ecx, esp
mov eax, esi
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x64], esp
mov byte [ecx + 4], bl
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10006050
sub eax, edi
push eax
push esi
call fcn.10001820
lea ecx, [esp + 0x60]
call fcn.10003190
lea ecx, [esp + 0xc]
call fcn.10001690
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x1000e460
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x1001a750
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov eax, dword [sym.imp.USER32.dll_DefWindowProcA]
mov dword [esi + 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x88]
mov edi, 0xf
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push edx
mov byte [esp + 0x4c], 3
mov byte [ecx + 4], bl
call fcn.10001490
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x88]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push eax
mov byte [esp + 0x68], 4
mov byte [ecx + 4], bl
call fcn.10001490
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x6c], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x88]
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push edx
mov byte [esp + 0x84], 5
mov byte [ecx + 4], bl
call fcn.10001490
lea edi, [esi + 0x34]
mov ecx, edi
mov byte [esp + 0x78], 3
call fcn.100015a0
lea ecx, [esi + 0x90]
mov dword [esi], 0x1001b7f4
mov dword [edi], 0x1001b7ec
call fcn.1000cda0
mov eax, dword [esp + 0x44]
mov edi, 0x10
cmp eax, edi
jb 0x1000e564
mov eax, dword [esp + 0x30]
push eax
call fcn.10011b59
add esp, 4
cmp dword [esp + 0x60], edi
jb 0x1000e577
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.10011b59
add esp, 4
cmp dword [esp + 0x7c], edi
jb 0x1000e58a
mov edx, dword [esp + 0x68]
push edx
call fcn.10011b59
add esp, 4
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 0x54
Function at 0x1000e5a0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push 0
push 0
push 0
push 0
push 0
push ecx
mov eax, esp
push 0
mov esi, ecx
mov dword [eax], edi
call fcn.1000c720
lea ebx, [esi + 0x34]
mov ecx, ebx
call fcn.100010d0
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push eax
mov eax, dword [esi + 4]
push 1
push 0x80
push eax
call ebp
mov ecx, ebx
call fcn.100010a0
mov ecx, dword [esi + 4]
push eax
push 0
push 0x80
push ecx
call ebp
mov edx, dword [esi + 4]
push 0
push 0
push 0
push 0
push edi
lea ebx, [esi + 0x90]
push edx
mov ecx, ebx
call fcn.1000e270
mov eax, dword [esi + 0x110]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x74]
mov eax, dword [ebx + 0x80]
mov edx, dword [eax]
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [edx + 0x68]
mov eax, dword [esp + 0x14]
mov ebx, dword [ebx + 0x80]
mov edx, dword [ebx]
or eax, 8
push eax
push ebx
call dword [edx + 0x64]
mov ecx, dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xfffffffffffffff0
push ecx
call ebx
mov edx, dword [esi + 4]
push 0xffffffffffffffec
push edx
mov ebp, eax
call ebx
push eax
push 0
push ebp
push edi
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov edx, dword [edi + 0xc]
push 1
sub edx, eax
push edx
mov edx, dword [edi + 8]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esi + 4]
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x10011277
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x100204fc]
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.10011247
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.10013140
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 0x100112d9
cmp dword [ebp - 0x1c], 5
jb 0x100112f1
jmp 0x100112ed
cmp dword [ebp - 0x10], 1
jne 0x100112f1
cmp dword [ebp - 0x1c], 4
ja 0x100112ed
jne 0x100112f1
cmp dword [ebp - 0x18], 0
jbe 0x100112f1
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x1001c0d0
call fcn.10001020
test eax, eax
jge 0x10011312
mov byte [0x100213a4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.10012240
add ebp, 0x78
leave
ret

Function at 0x10012736
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.10012320
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100127d1
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 [0x100217ec]
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 0x100127d1
cmp eax, 1
je 0x100127f2
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 0x100127d1
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x1001279e
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x100127cd
xor eax, eax
inc eax
jmp 0x10012811
cmp edi, eax
jae 0x100127d5
xor eax, eax
jmp 0x10012811
cmp eax, esi
jae 0x100127dc
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 [0x100217ec]
jmp 0x100127f5
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 0x10012ea4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x10012f94
mov eax, 0x94
call fcn.10012320
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10013009
mov ecx, dword [esi + 0x10]
mov dword [0x100217ec], ecx
mov eax, dword [esi + 4]
mov dword [0x100217f8], eax
mov edx, dword [esi + 8]
mov dword [0x100217fc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x100217f0], esi
je 0x10012f0f
or esi, 0x8000
mov dword [0x100217f0], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x100217f4], eax
call fcn.1001498d
test eax, eax
pop ecx
je 0x10013009
call fcn.100157a0
test eax, eax
jne 0x10012f3c
call fcn.100149de
jmp 0x10013009
call fcn.10017292
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10022e78], eax
call fcn.10017170
mov dword [0x10021610], eax
call fcn.10016c51
test eax, eax
jl 0x10012f8d
call fcn.100170ce
test eax, eax
jl 0x10012f88
call fcn.10016e9b
test eax, eax
jl 0x10012f88
push 0
call fcn.10015a14
test eax, eax
pop ecx
jne 0x10012f88
inc dword [0x1002160c]
jmp 0x1001301a
call fcn.10016e4f
call fcn.10015589
jmp 0x10012f32
test eax, eax
jne 0x10012fc4
cmp dword [0x1002160c], eax
jle 0x10013009
dec dword [0x1002160c]
cmp dword [0x10021828], eax
jne 0x10012fb3
call fcn.10015b52
call fcn.10016e4f
call fcn.10015589
call fcn.100149de
jmp 0x1001301a
cmp eax, 2
jne 0x1001300d
push 0x8c
push 1
call fcn.10016b96
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10013009
push esi
push dword [0x10020998]
call dword [0x100217dc]
test eax, eax
push esi
je 0x10013003
call fcn.100155a6
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x1001301a
call fcn.10011b5e
pop ecx
xor eax, eax
jmp 0x1001301d
cmp eax, 3
jne 0x1001301a
push 0
call fcn.10015771
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x10015a7e
Capabilities:
Terminate process

Disassembly:
push 8
push 0x1001c9e8
call fcn.100131a0
push 8
call fcn.10013b48
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x1002182c], esi
jne 0x10015ab2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x10021828], esi
mov al, byte [ebp + 0x10]
mov byte [0x10021824], al
cmp dword [ebp + 0xc], edi
jne 0x10015afc
cmp dword [0x10022e48], edi
je 0x10015aec
mov eax, dword [0x10022e44]
sub eax, 4
mov dword [0x10022e44], eax
cmp eax, dword [0x10022e48]
jb 0x10015aec
mov eax, dword [eax]
cmp eax, edi
je 0x10015acd
call eax
jmp 0x10015acd
push 0x10020050
mov eax, 0x10020048
call fcn.100159fc
pop ecx
push 0x1002005c
mov eax, 0x10020054
call fcn.100159fc
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x10015b2d
cmp dword [ebp + 0x10], edi
jne 0x10015b3b
mov dword [0x1002182c], esi
push dword [ebp + 8]
call fcn.100159ba
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x10015b3a
push 8
call fcn.10013a93
pop ecx
ret
call fcn.100131db
ret

Function at 0x10017499
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x100204fc]
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 + 0x10020df0]
je 0x100174ce
inc eax
cmp eax, 0x13
jb 0x100174bf
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10020df0]
jne 0x100175f4
mov eax, dword [0x10021618]
cmp eax, 1
je 0x100175cc
cmp eax, edx
jne 0x100174fe
cmp dword [0x1002161c], 1
je 0x100175cc
cmp ecx, 0xfc
je 0x100175f4
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 0x10017534
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.10015be0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.10013210
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10017568
mov eax, edi
push eax
call fcn.10013210
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x1001ca3c
push edi
call fcn.10012d80
add esp, 0x10
push edi
call fcn.10013210
push dword [esi + 0x10020df4]
mov ebx, eax
call fcn.10013210
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10012320
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10015be0
push edi
push ebx
call fcn.10015bf0
push 0x1001ca38
push ebx
call fcn.10015bf0
push dword [esi + 0x10020df4]
push ebx
call fcn.10015bf0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.10017ff7
add esp, 0x2c
jmp 0x100175f4
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x10020df4]
push dword [esi]
call fcn.10013210
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.10012240
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x10017ff7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x100219ec], ebx
push esi
push edi
jne 0x10018077
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100180b2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x100219ec], eax
je 0x100180b2
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x100219f0], eax
call esi
cmp dword [0x100217ec], 2
mov dword [0x100219f4], eax
jne 0x10018077
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x100219fc], eax
je 0x10018077
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x100219f8], eax
mov eax, dword [0x100219f8]
test eax, eax
je 0x100180bc
call eax
test eax, eax
je 0x100180a3
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x100219fc]
test eax, eax
je 0x100180a3
test byte [ebp - 8], 1
jne 0x100180bc
cmp dword [0x100217f8], 4
jb 0x100180b6
or byte [ebp + 0x12], 0x20
jmp 0x100180db
xor eax, eax
jmp 0x100180eb
or byte [ebp + 0x12], 4
jmp 0x100180db
mov eax, dword [0x100219f0]
test eax, eax
je 0x100180db
call eax
mov ebx, eax
test ebx, ebx
je 0x100180db
mov eax, dword [0x100219f4]
test eax, eax
je 0x100180db
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x100219ec]
pop edi
pop esi
pop ebx
leave
ret