joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48d5ed
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
push 5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x48d6dc
mov eax, dword [ebp - 4]
push eax
call fcn.00451590
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x48d6c8
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1c]
cmp edx, dword [ebp - 4]
je 0x48d6c8
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1c]
push edx
call fcn.0048d20b
test eax, eax
je 0x48d6c8
push 0xfffffffffffffff0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
jne 0x48d68e
mov ecx, dword [ebp - 0xc]
and ecx, 0x18000000
cmp ecx, 0x10000000
jne 0x48d68e
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x24]
or ecx, 2
mov edx, dword [ebp - 8]
mov dword [edx + 0x24], ecx
jmp 0x48d6c8
cmp dword [ebp + 8], 0
je 0x48d6c8
mov eax, dword [ebp - 0xc]
and eax, 0x18000000
test eax, eax
jne 0x48d6c8
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x24]
and edx, 2
test edx, edx
je 0x48d6c8
push 4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x24]
and edx, 0xfffffffd
mov eax, dword [ebp - 8]
mov dword [eax + 0x24], edx
push 2
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 4], eax
jmp 0x48d608
mov esp, ebp
pop ebp
ret 4
Function at 0x491244
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
and ecx, 1
test ecx, ecx
je 0x491268
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 4], eax
jmp 0x4912a2
push 5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4912bc
push 0xe1
push str.dlgprop.cpp
call fcn.004a24f0
test eax, eax
je 0x4912bc
int3
xor eax, eax
test eax, eax
jne 0x4912a2
mov ecx, dword [ebp - 4]
xor edx, edx
mov dx, word [ecx + 2]
cmp edx, 0xffff
je 0x491397
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
and eax, 0x80000000
test eax, eax
je 0x491367
push 0x4da660
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x491314
push 0xfc
push str.dlgprop.cpp
call fcn.004a24f0
test eax, eax
je 0x491314
int3
xor ecx, ecx
test ecx, ecx
jne 0x4912fa
cmp dword [ebp - 0x18], 0
je 0x491365
push str.DllGetVersion
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x49135b
mov eax, 1
test eax, eax
je 0x491355
push 0x101
push str.dlgprop.cpp
call fcn.004a24f0
test eax, eax
je 0x491355
int3
xor ecx, ecx
test ecx, ecx
jne 0x491338
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x491397
mov eax, dword [ebp - 0x14]
and eax, 0xff
cmp eax, 3
jne 0x491397
mov ecx, 1
test ecx, ecx
je 0x491391
push 0x108
push str.dlgprop.cpp
call fcn.004a24f0
test eax, eax
je 0x491391
int3
xor edx, edx
test edx, edx
jne 0x491374
call fcn.004b84ea
cmp dword [eax + 0x1038], 0
je 0x4913b4
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.004911f9
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0049141d
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x44], 0
je 0x4913e7
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x44], 0
cmp dword [ebp - 8], 0
je 0x4913fc
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
mov dword [edx + 0x44], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
or ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4ab2e6
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x4ab30d
push 0x3de
push str.afxwin2.inl
call fcn.004a24f0
test eax, eax
je 0x4ab30d
int3
xor ecx, ecx
test ecx, ecx
jne 0x4ab2f0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b78a7
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
cmp dword [ebp + 8], 0
jne 0x4b78cd
push 0x13c
push str.afxtls.cpp
call fcn.004a24f0
test eax, eax
je 0x4b78cd
int3
xor eax, eax
test eax, eax
jne 0x4b78b3
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
jmp 0x4b78ec
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 8]
jge 0x4b796f
cmp dword [ebp + 0xc], 0
je 0x4b790f
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + eax*8 + 4]
cmp ecx, dword [ebp + 0xc]
jne 0x4b7954
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4b793b
push 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xc]
call dword [edx]
mov dword [ebp - 0x20], eax
jmp 0x4b7942
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 8]
mov dword [ecx + edx*4], 0
jmp 0x4b796a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 8]
cmp dword [ecx + edx*4], 0
je 0x4b796a
mov dword [ebp - 4], 0
jmp 0x4b78e3
cmp dword [ebp - 4], 0
je 0x4b79c9
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x14
call fcn.00402f90
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
je 0x4b79b4
push 1
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], eax
jmp 0x4b79bb
mov dword [ebp - 0x24], 0
push 0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4b79d2
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp + 0xc], 0
jne 0x4b7a15
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4b7a13
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.004b78a7
jmp 0x4b7a4a
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.00402f70
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4b7a4a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.004b78a7
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
jmp 0x4b7a23
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esp, ebp
pop ebp
ret 8
Function at 0x4b7df0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
cmp dword [ebp + 8], 0
je 0x4b7e0d
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jl 0x4b7e21
push 0xf6
push str.afxtls.cpp
call fcn.004a24f0
test eax, eax
je 0x4b7e21
int3
xor edx, edx
test edx, edx
jne 0x4b7dfc
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x4b7e44
push 0xf7
push str.afxtls.cpp
call fcn.004a24f0
test eax, eax
je 0x4b7e44
int3
xor ecx, ecx
test ecx, ecx
jne 0x4b7e27
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + ecx*8]
and edx, 1
test edx, edx
jne 0x4b7e71
push 0xf8
push str.afxtls.cpp
call fcn.004a24f0
test eax, eax
je 0x4b7e71
int3
xor eax, eax
test eax, eax
jne 0x4b7e4a
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0xffffffff
jne 0x4b7e93
push 0xf9
push str.afxtls.cpp
call fcn.004a24f0
test eax, eax
je 0x4b7e93
int3
xor edx, edx
test edx, edx
jne 0x4b7e77
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4b7eb9
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 8]
jl 0x4b7ebd
xor eax, eax
jmp 0x4b7ec9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp + 8]
mov eax, dword [edx + eax*4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4bc236
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0x10], 0
jne 0x4bc282
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
test eax, eax
je 0x4bc27b
mov eax, dword [ebp + 8]
push eax
push 0x4db5d8
call fcn.00437c15
add esp, 8
xor eax, eax
jmp 0x4bc2ee
mov eax, 1
jmp 0x4bc2ee
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4bc2db
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4bc2db
cmp dword [ebp - 8], 0
jne 0x4bc2db
mov eax, 1
jmp 0x4bc2ee
mov edx, dword [ebp + 8]
push edx
push str.Warning:_registration_database_update_failed_for_key__s._n
call fcn.00437c15
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4bc515
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ecx, 0x4e3e38
call fcn.004bc660
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax + 8]
test ecx, ecx
jne 0x4bc5fb
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
je 0x4bc559
push 0x28d
push str.ccdata.cpp
call fcn.004a24f0
test eax, eax
je 0x4bc559
int3
xor eax, eax
test eax, eax
jne 0x4bc53c
call fcn.004bc7f0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4bc5be
push 5
mov ecx, dword [ebp + 0x10]
neg ecx
sbb ecx, ecx
and ecx, 0xe
add ecx, 0x3ee
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4bc5be
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0045e32e
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.0049edd8
add eax, 1
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov ecx, dword [ebp + 8]
call fcn.0049ee22
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov cx, word [eax]
mov word [edx + 8], cx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 8]
call fcn.00458ccd
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov ax, word [edx + 8]
mov word [ecx], ax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dx, word [ecx]
xor eax, eax
cmp edx, 0xffff
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10001000
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push 0x94
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.1000f3f0
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 6
sbb eax, eax
inc eax
leave
ret

Function at 0x10001906
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
push str.IsWow64Process
mov ebx, str.kernel32
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
test eax, eax
mov dword [ebp - 8], eax
je 0x10001948
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 8]
cmp dword [ebp - 4], 0
je 0x10001965
push str.GetNativeSystemInfo
push ebx
call esi
push eax
call edi
test eax, eax
je 0x10001965
lea ecx, [ebp - 0x2c]
push ecx
call eax
jmp 0x1000196f
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0x10]
xor edi, edi
push edi
push esi
push edi
push edi
call fcn.10018700
push edi
push esi
push edx
push eax
call fcn.1001e030
mov edi, dword [ebp + 0x10]
mov esi, eax
neg esi
lea ecx, [esi + edi]
push ecx
push eax
mov eax, dword [ebp + 8]
push edx
push 0xf001f
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x100019c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [ebp - 0x44]
call fcn.100054a4
push 0x1002b278
mov eax, esi
push eax
call fcn.1000f36c
mov ecx, dword [ebp + 0xc]
add esi, eax
mov dword [ecx + 4], esi
add esi, edi
pop edi
mov dword [ecx + 8], esi
pop esi
mov dword [ecx], eax
mov eax, ecx
pop ebx
leave
ret 0xc
Function at 0x10001c28
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10023d2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
xor ebx, ebx
push esi
mov dword [esp + 0x14], ebx
push edi
mov edi, ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea esi, [esp + 0x1c]
mov dword [esp + 0x74], ebx
call fcn.10001ed7
cmp dword [esp + 0x20], ebx
jne 0x10001c74
xor eax, eax
jmp 0x10001c7c
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x20]
push eax
lea eax, [esp + 0x20]
call fcn.10002213
cmp dword [esp + 0x20], ebx
jne 0x10001c92
mov dword [esp + 0x10], ebx
jmp 0x10001c9e
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
cmp dword [ebp + 0xc], ebx
je 0x10001cce
push str._Default_
push dword [ebp + 0xc]
call fcn.100120d2
test eax, eax
pop ecx
pop ecx
jne 0x10001cce
lea eax, [esp + 0x10]
push eax
lea esi, [esp + 0x20]
call fcn.10001f5d
push eax
lea eax, [esp + 0x20]
push eax
push ebx
push ebx
jmp 0x10001ce6
lea eax, [esp + 0x10]
push eax
lea esi, [esp + 0x20]
call fcn.10001f5d
push eax
lea eax, [esp + 0x20]
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 0xea
mov dword [esp + 0x14], eax
je 0x10001d0d
lea esi, [esp + 0x1c]
call fcn.10001f5d
test eax, eax
jne 0x10001d61
cmp dword [esp + 0x14], ebx
jne 0x10001d7b
push dword [esp + 0x10]
lea eax, [esp + 0x20]
call fcn.10002213
cmp dword [esp + 0x20], ebx
jne 0x10001d24
xor eax, eax
jmp 0x10001d2c
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x10]
jne 0x10001d59
lea eax, [esp + 0x10]
push eax
lea esi, [esp + 0x20]
call fcn.10001f5d
push eax
lea eax, [esp + 0x20]
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x14], eax
jmp 0x10001d61
mov dword [esp + 0x14], 8
cmp dword [esp + 0x14], ebx
jne 0x10001d7b
push dword [esp + 0x10]
lea esi, [esp + 0x20]
call fcn.10001f5d
push eax
mov eax, dword [esp + 0x20]
jmp 0x10001da7
cmp byte [ebp + 0x10], bl
je 0x10001d9a
mov eax, dword [esp + 0x14]
lea esi, [esp + 0x2c]
call fcn.100054a4
push 0x1002b278
mov eax, esi
push eax
call fcn.1000f36c
push ebx
lea esi, [esp + 0x20]
call fcn.10001f5d
push eax
xor eax, eax
mov edi, dword [ebp + 8]
call fcn.10001b78
cmp dword [esp + 0x20], ebx
je 0x10001dbf
push dword [esp + 0x20]
call fcn.1000ec2b
pop ecx
mov ecx, dword [esp + 0x6c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10003c26
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x10023ad8
call fcn.1000eff8
push ebx
push edi
mov edi, dword [ebp + 8]
lea ecx, [edi + 4]
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1000e14e
xor ebx, ebx
push 4
mov dword [ebp - 4], ebx
call fcn.1000f302
cmp eax, ebx
pop ecx
je 0x10003c5f
push esi
mov esi, eax
call fcn.10005182
pop esi
jmp 0x10003c61
xor eax, eax
mov dword [edi + 0x38], eax
lea ecx, [edi + 0x18]
mov dword [edi + 0x20], ecx
lea ecx, [edi + 0x1c]
mov dword [edi + 0x24], ecx
lea eax, [edi + 8]
mov dword [edi + 0x10], eax
lea ecx, [edi + 0x28]
mov dword [edi + 0x30], ecx
lea eax, [edi + 0xc]
mov dword [edi + 0x14], eax
lea ecx, [edi + 0x2c]
mov dword [edi + 0x34], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax], ebx
mov eax, dword [edi + 0x24]
mov dword [eax], ebx
mov eax, dword [edi + 0x34]
mov dword [eax], ebx
mov eax, dword [edi + 0x10]
mov dword [eax], ebx
mov eax, dword [edi + 0x20]
mov dword [eax], ebx
mov eax, dword [edi + 0x30]
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1001198b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002d2e0]
jne 0x10011995
repz ret
jmp fcn.10019351

Function at 0x10015bda
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x1002d500]
je 0x10015bf5
inc edi
cmp edi, 0x17
jb 0x10015be6
cmp edi, 0x17
jae 0x10015d75
push ebp
push 3
call fcn.1001d8b8
cmp eax, 1
pop ecx
je 0x10015d41
push 3
call fcn.1001d8b8
test eax, eax
pop ecx
jne 0x10015c29
cmp dword [0x1002f5fc], 1
je 0x10015d41
cmp ebx, 0xfc
je 0x10015d74
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x1002f758
push ebp
call fcn.10014c76
add esp, 0xc
test eax, eax
je 0x10015c5f
push esi
push esi
push esi
push esi
push esi
call fcn.1000f18f
add esp, 0x14
push 0x104
mov esi, 0x1002f771
push esi
push 0
mov byte [0x1002f875], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10015ca3
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10014c76
add esp, 0xc
test eax, eax
je 0x10015ca3
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1000f18f
add esp, 0x14
push esi
call fcn.10010280
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10015ce8
push esi
call fcn.10010280
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1002fa6c
push 0x10026e8c
sub ecx, eax
push ecx
push eax
call fcn.1001c2f4
add esp, 0x14
test eax, eax
je 0x10015ce8
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1000f18f
add esp, 0x14
jmp 0x10015cea
xor esi, esi
push 0x10026e88
push ebx
push ebp
call fcn.1001c283
add esp, 0xc
test eax, eax
je 0x10015d0a
push esi
push esi
push esi
push esi
push esi
call fcn.1000f18f
add esp, 0x14
push dword [edi*8 + 0x1002d504]
push ebx
push ebp
call fcn.1001c283
add esp, 0xc
test eax, eax
je 0x10015d2c
push esi
push esi
push esi
push esi
push esi
call fcn.1000f18f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1001d6fb
add esp, 0xc
jmp 0x10015d74
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10015d74
cmp ebp, 0xffffffff
je 0x10015d74
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1002d504]
push dword [esi]
call fcn.10010280
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1001d6fb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10014fc2
xor ebx, ebx
cmp dword [0x100300f4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1001d7d1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1001d8b1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1001d8b1
push eax
call fcn.10014f54
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100300f4], eax
call esi
push eax
call fcn.10014f54
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100300f8], eax
call esi
push eax
call fcn.10014f54
mov dword [0x100300fc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.100182a8
test eax, eax
pop ecx
pop ecx
je 0x1001d79f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000f18f
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1001d7d1
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10014f54
cmp eax, ebx
pop ecx
mov dword [0x10030104], eax
je 0x1001d7d1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10014f54
pop ecx
mov dword [0x10030100], eax
mov eax, dword [0x10030100]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1001d856
cmp dword [0x10030104], ecx
je 0x1001d856
push eax
call fcn.10014fcb
push dword [0x10030104]
mov esi, eax
call fcn.10014fcb
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1001d856
cmp edi, ebx
je 0x1001d856
call esi
cmp eax, ebx
je 0x1001d823
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001d823
test byte [ebp - 0x18], 1
jne 0x1001d856
lea eax, [ebp - 0x10]
push eax
call fcn.100182df
test eax, eax
pop ecx
je 0x1001d83e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000f18f
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1001d84d
or dword [ebp + 0x10], 0x200000
jmp 0x1001d891
or dword [ebp + 0x10], 0x40000
jmp 0x1001d891
mov eax, dword [0x100300f8]
cmp eax, dword [ebp - 8]
je 0x1001d891
push eax
call fcn.10014fcb
cmp eax, ebx
pop ecx
je 0x1001d891
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1001d891
mov eax, dword [0x100300fc]
cmp eax, dword [ebp - 8]
je 0x1001d891
push eax
call fcn.10014fcb
cmp eax, ebx
pop ecx
je 0x1001d891
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100300f4]
call fcn.10014fcb
cmp eax, ebx
pop ecx
je 0x1001d8b1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1001d8b3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret