joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425f70
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov esi, dword [sym.imp.USER32.dll_DefWindowProcW]
push 0
push 0
push 0
push 0
call esi
push 0x28
call fcn.0040dc15
mov dword [ebp - 0x24], eax
add esp, 4
mov dword [ebp - 0x28], 8
mov dword [ebp - 0x24], 4
mov dword [eax + 4], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], esi
mov dword [eax], vtable.CProcessWnd.0
mov dword [edi + 0xc], eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
sub esp, 0xc
call fcn.004029a0
mov ebx, eax
test ebx, ebx
js 0x401f3c
xorps xmm0, xmm0
mov dword [ebp - 0x78], 0x43249c
movups xmmword [ebp - 0x74], xmm0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x78]
mov esi, dword [0x438cd4]
add esi, 0x10
mov dword [ebp - 0x2c], eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x438d70]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00402930
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [edi + 0xc]
xorps xmm0, xmm0
push dword [ebp - 0x24]
movups xmmword [ebp - 0x20], xmm0
lea eax, [esi + 0x20]
push eax
push 0x4378b8
call fcn.004021d0
add esp, 8
movzx eax, ax
push eax
push 0
push 0x188
push 0x80000000
push 0x431228
lea eax, [ebp - 0x20]
push eax
push ecx
mov ecx, esi
call fcn.00402010
test eax, eax
je 0x401f1a
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
push 0
push 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
push 0x406500
push 0
push 0
mov byte [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x38], eax
call fcn.00402840
call fcn.004026f0
mov eax, dword [edi + 0xc]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.004055d0
mov eax, dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x401f10
push eax
call esi
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x401f1a
push eax
call esi
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x401f28
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [edi + 0xc], 0
call fcn.00402560
lea ecx, [ebp - 0x78]
call fcn.00401f60
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d40a
mov esp, ebp
pop ebp
ret
Function at 0x404360
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x43700c]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
or eax, 0x2001f
push esi
push edi
push eax
push edx
push dword [ecx]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.004042b0
mov esi, eax
test esi, esi
jne 0x404457
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x404429
nop dword [eax]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.00404360
mov esi, eax
test esi, esi
jne 0x404457
lea eax, [esp + 0x20]
mov dword [esp + 8], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x4043f0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x404440
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.004044a0
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x404466
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0040d40a
mov esp, ebp
pop ebp
ret 4
Function at 0x405080
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426166
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x40512c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x40512c
call fcn.00403570
mov esi, eax
jmp 0x40521c
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40514f
call fcn.00403570
jmp 0x40520f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x40516d
call fcn.00403570
jmp 0x40520f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x40518e
mov esi, 0x8007000e
jmp 0x405211
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00403520
jmp 0x4051b8
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x4051cf
mov esi, 0x8007000e
jmp 0x405211
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4051ef
call fcn.00403570
jmp 0x40520f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00404f20
mov esi, eax
test edi, edi
je 0x40521c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x405240
lea ecx, [ebp - 0x418]
call fcn.004034d0
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040d40a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x406040
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x406059
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406096
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x406092
nop word [eax + eax]
cmp esi, edx
jae 0x406096
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x406080
cmp esi, edx
jb 0x40609d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x406590
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426290
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
push 0x1000
push eax
push eax
mov byte [ebp - 4], 1
mov edi, 1
push 4
push dword [ecx]
mov dword [ebp - 0x5c], edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x406660
cmp byte [esi], 0
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
jne 0x40661d
xor ecx, ecx
jmp 0x40662b
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406622
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x58]
call fcn.004075c0
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00406f40
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea ecx, [ebp - 0x58]
call fcn.004071d0
mov edi, dword [ebp - 0x5c]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x40]
push edi
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x68]
push eax
call fcn.00406990
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x4066af
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x4066c4
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4066d9
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00406900
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x406702
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00406900
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d40a
mov esp, ebp
pop ebp
ret
Function at 0x406720
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4262cb
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0040fa10
add esp, 0xc
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x424]
mov dword [ebp - 0x428], 0
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallMasterPDF
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4067f1
lea eax, [ebp - 0x438]
mov dword [ebp - 0x428], 1
push eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x438], 0x208
push eax
lea eax, [ebp - 0x428]
push eax
push 0
push str.InstallLocation
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x420]
jmp 0x40682e
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0040fa10
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push str.PDFRunningHelper.exe
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0
push 0
push str._check_updateserver
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x434]
call fcn.00406990
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x406893
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x434], 0
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x4068a4
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d40a
mov esp, ebp
pop ebp
ret
Function at 0x406990
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x468
mov eax, dword [0x43700c]
xor eax, esp
mov dword [esp + 0x464], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [esp + 0xc], eax
test edi, edi
jne 0x4069d4
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x464]
xor ecx, esp
call fcn.0040d40a
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esi + 8], 0
jne 0x4069e3
call fcn.00406bb0
test eax, eax
je 0x4069bc
cmp dword [esi], 0
je 0x4069bc
cmp dword [ebp + 0x10], 0
je 0x4069f7
xor dword [esi + 4], 0x8000000
jmp 0x4069fe
or dword [esi + 4], 0x8000000
push 0x44
lea eax, [esp + 0x24]
push 0
push eax
call fcn.0040fa10
add esp, 0xc
mov dword [esp + 0x20], 0x44
lea eax, [esp + 0x68]
mov dword [esp + 0x28], str.winsta0default
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
push 0x400
push 0
push eax
call fcn.0040fa10
add esp, 0xc
lea eax, [esp + 0x68]
push dword [esp + 0xc]
push edi
push str._s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push dword [esi + 8]
lea eax, [esp + 0x78]
push dword [esi + 4]
push 0
push 0
push 0
push eax
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x406a8a
test eax, eax
jne 0x406a8f
mov edi, 1
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x406aa0
push eax
call esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x406aab
push eax
call esi
mov ecx, dword [esp + 0x46c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0040d40a
mov esp, ebp
pop ebp
ret 0xc

Function at 0x406ad0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406b10
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d40a
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x406b7d
mov edi, dword [ebp + 0xc]
nop
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00410a89
add esp, 8
test eax, eax
jne 0x406b69
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x406b69
cmp dword [ebp - 0x234], edi
je 0x406b99
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x406b30
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d40a
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp - 0x228]
jmp 0x406b7d
Function at 0x406bb0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426308
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x43700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.WTSGetActiveConsoleSessionId
push str.kernel32.dll
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.WTSQueryUserToken
push str.Wtsapi32.dll
mov dword [ebp - 0x10], eax
call edi
push eax
call esi
mov esi, eax
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x406c32
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x406c1e
call eax
mov edi, eax
mov dword [ebx + 4], 0x20
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], 0
push eax
push edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
call esi
test eax, eax
jne 0x406cfa
push 0x432bf0
lea ecx, [ebp - 0x10]
call fcn.00406400
push 4
push str.lore
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00406dc0
push 3
push 0x432c04
lea ecx, [ebp - 0x10]
call fcn.00406dc0
push 2
push 0x432c0c
lea ecx, [ebp - 0x10]
call fcn.00406dc0
push edi
push dword [ebp - 0x10]
call fcn.00406ad0
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push 0xf00ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406d09
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x406d09
mov eax, dword [ebp - 0x18]
xor edi, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
push 0x13
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x406d29
mov eax, dword [ebp - 0x1c]
mov dword [ebx], eax
jmp 0x406d4f
lea eax, [ebp - 0x28]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push ebx
push 1
push 1
push 0
push 0x2000000
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov eax, dword [ebx]
test eax, eax
je 0x406d74
push 1
push eax
lea eax, [ebx + 8]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x406d74
or dword [ebx + 4], 0x400
mov ebx, 1
jmp 0x406d7d
mov dword [ebx + 8], 0
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x406d8a
push edi
call esi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x406d94
push eax
call esi
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x406d9e
push ecx
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402f74
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x46f020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40300c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402fec
xor eax, eax
push ebp
push 0x402fe5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403028
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402fec
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x46f020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x46f020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403cd0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x471048], 0
je 0x403d31
cmp word [0x47121c], 0xd7b2
jne 0x403cf9
cmp dword [0x471224], 0
jbe 0x403cf9
mov eax, 0x471218
call dword [0x471234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46f06c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403d58
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46f030], 0
jne 0x403d4d
push 0
push 0x46f064
push 0x46f06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4059d4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405a3a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004040bc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b38
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405a24
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a41
lea eax, [ebp - 0x10]
call fcn.00403e4c
ret

Function at 0x40aaa0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40aad9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f3c
jmp 0x40aae2
mov eax, ebx
mov edx, esi
call fcn.00403ea0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40aaec
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ab0d
mov al, byte [esp]
jmp 0x40ab0f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b194
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b00c
mov eax, dword [0x470ae4]
cmp byte [eax], 0
je 0x40b210
mov eax, dword [0x4708f0]
call fcn.004029a4
call fcn.00402824
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408300
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b258
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b246
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x470898]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x471664]
call fcn.00404ee8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret