joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401dd0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
mov eax, dword [0x4130f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x3ff
lea eax, [ebp - 0x507]
push 0
push eax
mov byte [ebp - 0x508], 0
call sub.MSVCR100.dll_memset
mov edi, dword [sym.imp.MSVCR100.dll_sprintf]
push esi
lea ecx, [ebp - 0x108]
push str._spredefinito_medio_chiaro.mxtema
push ecx
call edi
mov ebx, dword [sym.imp.MSVCR100.dll__chmod]
lea edx, [ebp - 0x108]
push 0x180
push edx
call ebx
add esp, 0x20
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
lea ecx, [ebp - 0x108]
push str._spredefinito_medio_scuro.mxtema
push ecx
call edi
lea edx, [ebp - 0x108]
push 0x180
push edx
call ebx
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.mxdesk.ini
push esi
lea ecx, [ebp - 0x108]
push str._s_s
push ecx
call edi
lea edx, [ebp - 0x108]
push edx
push 0x400
lea eax, [ebp - 0x508]
push eax
push 0x4104e4
push str.ImpostazioniGUI_DRAP_ASSREM
push 0x420478
call fcn.00401980
add esp, 0x28
cmp byte [ebp - 0x508], 0
je 0x401f4a
mov esi, dword [sym.imp.MSVCR100.dll_strstr]
mov edi, str.predefinito_medio_chiaro
lea ecx, [ebp - 0x508]
push edi
push ecx
call esi
add esp, 8
test eax, eax
je 0x401ed7
mov ecx, str.predefinito_chiaro
jmp 0x401ef2
mov edi, str.predefinito_medio_scuro
lea edx, [ebp - 0x508]
push edi
push edx
call esi
add esp, 8
test eax, eax
je 0x401f4a
mov ecx, str.predefinito_scuro
mov esi, eax
mov edx, ecx
sub esi, ecx
mov bl, byte [edx]
mov byte [esi + edx], bl
inc edx
test bl, bl
jne 0x401ef8
mov edx, edi
lea esi, [edx + 1]
mov bl, byte [edx]
inc edx
test bl, bl
jne 0x401f07
sub edx, esi
lea esi, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x401f13
sub ecx, esi
add edx, eax
add ecx, eax
mov al, byte [edx]
mov byte [ecx], al
inc edx
inc ecx
test al, al
jne 0x401f20
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x508]
push ecx
push str.ImpostazioniGUI_DRAP_ASSREM
push 0x420478
call fcn.0040e460
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e620
mov esp, ebp
pop ebp
ret
Function at 0x404350
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x4130f0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4043d7
push ebx
push esi
push 0xff
lea eax, [ebp - 0x103]
push 0
xor bl, bl
push eax
mov byte [ebp - 0x104], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov esi, dword [sym.imp.USER32.dll_keybd_event]
test eax, eax
je 0x4043bd
test byte [ebp - 0xf2], 0x80
jne 0x4043bd
push 0
push 0
push 0xb8
push 0x12
call esi
mov bl, 1
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test bl, bl
je 0x4043d5
push 0
push 2
push 0xb8
push 0x12
call esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e620
mov esp, ebp
pop ebp
ret

Function at 0x4050b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x4130f0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call sub.MSVCR100.dll_memset
lea eax, [esi + 0xdd8]
add esp, 0xc
cmp byte [eax], 0
je 0x4050fc
lea edx, [ebp - 0x104]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4050f0
jmp 0x405115
mov edx, dword [0x413970]
push 0xff
lea ecx, [ebp - 0x104]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push edi
lea edi, [ebp - 0x104]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405120
mov eax, dword [0x410b60]
mov dword [edi], eax
lea eax, [esi + 0x514]
lea edx, [ebp - 0x204]
sub edx, eax
pop edi
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x405140
lea eax, [ebp - 0x104]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405153
sub eax, edx
mov ecx, 0xff
sub ecx, eax
push ecx
lea eax, [ebp - 0x204]
call fcn.004021e0
push eax
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.MSVCR100.dll_strncat]
mov ecx, dword [esi + 0xdd4]
lea eax, [ebp - 0x104]
push eax
push ecx
call fcn.0040e350
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x14
call fcn.0040e620
mov esp, ebp
pop ebp
ret
Function at 0x408a20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, eax
cmp byte [edi + 0x401], 1
jne 0x408ba9
push ebx
push esi
push 0x413148
call fcn.0040e410
mov eax, dword [edi + 0xdbc]
push eax
call fcn.00402790
mov ecx, dword [0x413970]
mov edx, dword [edi + 0xdc0]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 8
push ecx
push 0
push 0x8fbf
push edx
mov dword [ebp - 4], eax
call esi
mov eax, dword [edi + 0xdbc]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call ebx
mov ecx, dword [edi + 0xdc4]
push 0
push ecx
call ebx
mov edx, dword [0x413974]
mov eax, dword [edi + 0xdbc]
mov ebx, dword [sym.imp.USER32.dll_SetParent]
push edx
push eax
call ebx
mov ecx, dword [0x413970]
mov edx, dword [edi + 0xdc4]
push ecx
push edx
call ebx
mov eax, dword [0x413970]
mov ecx, dword [edi + 0xdc0]
push eax
push 0xffffffffffffffff
push 0x8fc0
push ecx
call esi
mov edx, dword [edi + 0xdd4]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [edi + 0xdc0]
push 0
push 0
push 0x8fba
push eax
mov byte [edi + 0x401], 0
mov byte [edi + 0x511], 0
call esi
mov ecx, dword [edi + 0xdd4]
mov edx, dword [edi + 0xdc0]
push ecx
push 0
push 0x8fbc
push edx
call esi
push 0
mov ebx, edi
call fcn.00404d80
add esp, 4
call fcn.00403830
mov ecx, edi
call fcn.00404860
mov eax, dword [edi + 0xdc0]
push 0
push 0
push 0x8052
push eax
call esi
push 0
call fcn.00407d60
add esp, 4
push 0
push 0
push 0x130b
mov ecx, dword [0x413974]
push ecx
call esi
mov ebx, dword [ebp - 4]
cmp eax, ebx
je 0x408b75
mov ecx, eax
call fcn.00402740
call fcn.004051d0
mov edx, dword [0x413974]
push 0
push ebx
push 0x130c
push edx
call esi
push 0
push 0
push 1
mov ecx, edi
call fcn.00407730
mov esi, edi
call fcn.00404060
call fcn.004040e0
mov eax, dword [edi + 0xdc0]
push eax
call fcn.0040e2e0
push 0x413148
call fcn.0040e420
add esp, 0x14
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40e560
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0xa
push eax
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x40e5f8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40e5e5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
push 0
push 0x100
push 2
push 0
push 0
push 0x40000000
push ecx
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40e5e5
mov eax, dword [ebp + 0xc]
push 0
lea edx, [ebp + 0xc]
push edx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 1
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40e620
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4130f0]
jne 0x40e62a
repz ret
jmp fcn.0040ea58
Function at 0x401496
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
and dword [ebp - 0x14], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x14]
push edi
mov dword [ebp - 0x34], esi
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [ebp - 8], eax
mov eax, dword [0x41b5d0]
mov dword [ebp - 0x28], eax
mov eax, dword [0x41b5d4]
mov dword [ebp - 0x30], eax
call fcn.0040148f
mov edi, dword [ebp - 0x14]
mov eax, dword [0x41b5d8]
add edi, 0x23f
mov dword [ebp - 0x20], eax
mov eax, dword [0x41b5dc]
push 0x20
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], eax
pop esi
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov edx, dword [ebp - 8]
mov eax, edx
mov ecx, dword [0x311cfcc]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x40151f
push 0x418248
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [0x311cfcc]
add eax, dword [ebp - 0x20]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x311cfc8]
mov dword [ebp - 0x1c], 0xedeb2e40
cmove eax, dword [ebp - 0x1c]
and dword [ebp - 0x1c], 0
cmp ecx, 0x3eb
mov dword [0x311cfc8], eax
mov eax, dword [0x311cf20]
cmove eax, dword [ebp - 0x1c]
mov dword [0x311cf20], eax
lea eax, [edi + edx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov dword [0x311cfc4], 0xf4ea3dee
call fcn.0040146c
mov ecx, dword [ebp - 0x10]
xor ecx, eax
sub ebx, ecx
mov dword [ebp - 0x10], ecx
mov eax, ebx
mov dword [ebp - 0x2c], ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
nop
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
mov eax, ebx
shr eax, cl
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
xor eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 8], eax
add edi, 0x61c88647
mov dword [ebp - 0x14], edi
dec esi
jne 0x4014e7
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
pop edi
mov dword [esi + 4], ebx
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4015ef
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x311cfcc]
push esi
mov esi, eax
shr esi, 3
push edi
mov edi, dword [0x311cf24]
test esi, esi
je 0x401632
cmp eax, 0x959
jne 0x40161e
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, edi
call fcn.00401496
add edi, 8
dec esi
je 0x401632
mov eax, dword [0x311cfcc]
jmp 0x401605
pop edi
pop esi
ret 4
Function at 0x40d169
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a36c]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00405035
mov dword [ebp - 0x14], eax
cmp dword [0x823680], esi
jne 0x40d25c
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d1e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d33c
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d33c
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d33c
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x823680], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x823684], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x823688], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x823690], eax
test eax, eax
je 0x40d259
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x82368c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d281
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d274
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d296
push 4
pop eax
jmp 0x40d33e
cmp dword [ebp - 0x14], esi
je 0x40d296
push dword [0x823680]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d27b
mov eax, dword [0x82368c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d2f4
cmp dword [0x823690], edi
je 0x40d2f4
push eax
call ebx
push dword [0x823690]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d2f4
test eax, eax
je 0x40d2f4
call ecx
test eax, eax
je 0x40d2e9
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 0x40d2e9
test byte [ebp - 8], 1
jne 0x40d2f4
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d324
mov eax, dword [0x823684]
cmp eax, edi
je 0x40d321
push eax
call ebx
test eax, eax
je 0x40d321
call eax
mov esi, eax
test esi, esi
je 0x40d321
mov eax, dword [0x823688]
cmp eax, edi
je 0x40d321
push eax
call ebx
test eax, eax
je 0x40d321
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x823680]
call ebx
test eax, eax
je 0x40d33c
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d33e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040431b
mov esp, ebp
pop ebp
ret
Function at 0x961370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x96138e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x98a074
push ecx
mov edi, eax
call fcn.00975198
mov esi, eax
add esp, 8
test esi, esi
jne 0x9613cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0097502e
push esi
call fcn.00974fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x964850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x9648ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x98f720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x9648ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.009751e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x9648ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x98f720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x96492a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00976082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x964957
mov word [eax], si
add eax, 2
push eax
call fcn.00976030
add esp, 4
jmp 0x964959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x9648ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x9648b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x964ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x965080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x9650c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x98a458
push ecx
call fcn.009751e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.009751e1
add esp, 0x10
jmp 0x9650d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0097520b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00974dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00965050
mov eax, dword [0x98f728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x96513b
push esi
call fcn.00964fb0
add esp, 4
mov dword [0x98f728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x96514c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00964ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x968440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x9684b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x96848e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x968471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x96847e
add edx, ecx
cmp ebx, edx
jb 0x96848a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x968467
xor ecx, ecx
jmp 0x9684a2
test eax, eax
jne 0x968492
xor ecx, ecx
jmp 0x9684a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.009683c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x9688f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x968921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x968946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x96896e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x968993
push ecx
push esi
call fcn.009684c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0x969c00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0x969c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x969c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x969c38
add edx, eax
cmp ebx, edx
jb 0x969c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x969c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x969c50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0x969c70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x969cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x969c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x969ca8
add edx, ecx
cmp ebx, edx
jb 0x969cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x969c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x969f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00976145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x969ffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x969fdd
lea eax, [esp + 0x18]
push eax
jmp 0x969fe2
push 0x98f720
call fcn.00975fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x969fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x969f40
push 4
push ecx
push eax
call fcn.0097643f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x96a310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00976145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x96a3ab
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x96a38d
lea eax, [esp + 0x18]
push eax
jmp 0x96a392
push 0x98f720
call fcn.00975fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x96a360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x969f40
push 4
push ecx
push eax
call fcn.0097643f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret