joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401160
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401179
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4011b4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4011b0
lea ebx, [ebx]
cmp esi, eax
jae 0x4011b4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4011a0
cmp esi, eax
jb 0x4011ba
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402920
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x43abc0]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0xc]
push eax
push 0x20019
xor esi, esi
push esi
push str.SoftwareKoeiTecmo35thDaikoukai1Install
push 0x80000001
mov dword [esp + 0x20], esi
call edi
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jne 0x4029a0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
push esi
push str.InstallInfo
push ecx
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0x104
call ebx
test eax, eax
jne 0x4029a0
cmp dword [esp + 0x10], 1
jne 0x4029a0
mov esi, 1
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4029af
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x402a1a
lea edx, [esp + 0xc]
push edx
push 0x20019
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsDaikoukai1.exe
push 0x80000002
mov dword [esp + 0x20], esi
call edi
test eax, eax
jne 0x402a0b
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push esi
push str.Path
mov edi, 1
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0x104
call ebx
test eax, eax
jne 0x402a0b
cmp dword [esp + 0x10], edi
jne 0x402a0b
mov esi, edi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x402a1a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x11c]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00417c51
add esp, 0x114
ret
Function at 0x402d00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x43abc0]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
lea eax, [esp + 8]
push eax
push 0x20019
xor ebp, ebp
push ebp
push str.SoftwareKoeiTecmo35thDaikoukai1Install
push 0x80000001
mov dword [esp + 0x1c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402dbc
push edi
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
push ebp
push str.InstallInfo
mov edi, 1
push ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402dbb
cmp dword [esp + 0x10], edi
jne 0x402dbb
cmp byte [esp + 0x18], al
push esi
lea esi, [esp + 0x1c]
je 0x402dba
mov ebp, edi
mov edi, dword [sym.imp.USER32.dll_CharNextA]
lea eax, [esp + 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402d98
sub eax, edx
push eax
lea edx, [esp + 0x20]
push edx
mov ecx, ebx
call fcn.00401890
push esi
call edi
mov esi, eax
cmp byte [esi], 0
jne 0x402d91
pop esi
pop edi
mov eax, dword [esp + 8]
test eax, eax
je 0x402dcb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x118]
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.00417c51
add esp, 0x114
ret
Function at 0x404880
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42ba48
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x43abc0]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x43abc0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor eax, eax
mov esi, ecx
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], eax
mov byte [esp + 0xc], al
mov dword [esp + 0x30], eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004057a0
add esp, 8
push str.time:
call fcn.004056c0
mov ecx, eax
call fcn.00405450
push esi
call fcn.004056c0
mov ecx, eax
call fcn.00405450
mov eax, dword [esp + 0xc]
mov esi, 0x10
cmp dword [esp + 0x20], esi
jae 0x40490c
lea eax, [esp + 0xc]
push eax
call fcn.004056c0
mov ecx, eax
call fcn.00405450
cmp dword [esp + 0x20], esi
jb 0x40492c
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00405965
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00417c51
add esp, 0x2c
ret

Function at 0x4062f1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x406311
cmp dword [edi + 0x54], 0
jne 0x406311
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040cd92
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004062b8
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x409c95
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x409cce
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00401710
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00402cb0
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x40b7fc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40b83f
call fcn.0040cd92
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40b83f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40b85a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040b3b3
test ebx, ebx
mov esi, eax
je 0x40b858
test edi, edi
je 0x40b858
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x41499c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4149ca
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4149e8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00414906
jmp 0x4149e8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4149e8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00414906
test edi, edi
mov eax, edi
jne 0x4149d2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x45cd10]
test ecx, ecx
je 0x414aab
jmp 0x41499b
ret 8

Function at 0x417c51
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43abc0]
jne 0x417c5b
repz ret
jmp fcn.0041f42c
Function at 0x427035
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041d50b
xor ebx, ebx
cmp dword [0x45da14], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x42710a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x427075
xor eax, eax
jmp 0x4271ce
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4330b8
push edi
call esi
cmp eax, ebx
je 0x42706e
push eax
call fcn.0041d4a8
mov dword [esp], 0x4330a8
push edi
mov dword [0x45da14], eax
call esi
push eax
call fcn.0041d4a8
mov dword [esp], 0x433094
push edi
mov dword [0x45da18], eax
call esi
push eax
call fcn.0041d4a8
mov dword [0x45da1c], eax
lea eax, [ebp - 8]
push eax
call fcn.0041b621
test eax, eax
pop ecx
pop ecx
je 0x4270d8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041969c
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x42710a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041d4a8
cmp eax, ebx
pop ecx
mov dword [0x45da24], eax
je 0x42710a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041d4a8
pop ecx
mov dword [0x45da20], eax
mov eax, dword [0x45da20]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x427183
cmp dword [0x45da24], esi
je 0x427183
push eax
call fcn.0041d514
pop ecx
call eax
cmp eax, ebx
je 0x427150
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x45da24]
call fcn.0041d514
pop ecx
call eax
test eax, eax
je 0x427150
test byte [ebp - 0x18], 1
jne 0x427183
lea eax, [ebp - 0xc]
push eax
call fcn.0041b658
test eax, eax
pop ecx
je 0x42716b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041969c
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x42717a
or dword [ebp + 0x10], 0x200000
jmp 0x4271b4
or dword [ebp + 0x10], 0x40000
jmp 0x4271b4
mov eax, dword [0x45da18]
cmp eax, esi
je 0x4271b4
push eax
call fcn.0041d514
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4271b4
mov eax, dword [0x45da1c]
cmp eax, esi
je 0x4271b4
push dword [ebp - 4]
push eax
call fcn.0041d514
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x45da14]
call fcn.0041d514
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42b4cb
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x43abc0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042b460
mov eax, 0x400000
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.00417810
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 0x42b51a
cmp dword [ebp - 0x1c], 5
jb 0x42b532
jmp 0x42b52e
cmp dword [ebp - 0x10], 1
jne 0x42b532
cmp dword [ebp - 0x1c], 4
ja 0x42b52e
jne 0x42b532
cmp dword [ebp - 0x18], 0
jbe 0x42b532
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x43315c
call fcn.0042b351
test eax, eax
jge 0x42b553
mov byte [0x43d150], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00417c51
add ebp, 0x78
leave
ret
Function at 0x4972b6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c6dd0]
jne 0x4972c0
repz ret
jmp fcn.0049b846

Function at 0x499a50
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c6dd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00494192
and dword [ebp - 0x14], 0
cmp dword [0x4c9c74], 0
mov dword [ebp - 0x18], eax
jne 0x499b03
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x499bab
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a4020
push ebx
call edi
test eax, eax
je 0x499bab
mov esi, dword [fcn.00490560]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4c9c74], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4c9c78], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4c9c7c], eax
call edi
push eax
call esi
mov dword [0x4c9c84], eax
test eax, eax
je 0x499b03
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4c9c80], eax
mov eax, dword [0x4c9c80]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00490564]
cmp eax, ecx
je 0x499b5c
cmp dword [0x4c9c84], ecx
je 0x499b5c
push eax
call esi
push dword [0x4c9c84]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x499b5c
test ebx, ebx
je 0x499b5c
call edi
test eax, eax
je 0x499b53
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x499b53
test byte [ebp - 8], 1
jne 0x499b5c
or dword [ebp + 0x10], 0x200000
jmp 0x499b8f
mov eax, dword [0x4c9c78]
cmp eax, dword [ebp - 0x18]
je 0x499b8f
push eax
call esi
test eax, eax
je 0x499b8f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x499b8f
mov eax, dword [0x4c9c7c]
cmp eax, dword [ebp - 0x18]
je 0x499b8f
push eax
call esi
test eax, eax
je 0x499b8f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4c9c74]
call esi
test eax, eax
je 0x499bab
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x499bad
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004972b6
leave
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
jmp int.00401219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x401c1a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x401c1a
lcall 0x5de5, 0x8b10c483
jmp fcn.007bb6a8
Function at 0x401000
Capabilities:
Print debug messages
Shutdown system

Disassembly:
sub esp, 0x14
push esi
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004010a0
test al, al
je 0x401088
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test eax, eax
jne 0x40103d
push 0x40506c
call esi
lea ecx, [esp + 0xc]
push ecx
push 0x405058
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0
push 0
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push 0
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x401088
push 0x405030
call esi
push 0
push 1
call dword [sym.imp.USER32.dll_ExitWindowsEx]
xor eax, eax
pop esi
add esp, 0x14
ret 0x10

Function at 0x4010a0
Capabilities:
Check os version
Print debug messages

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x4010e5
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
je 0x40116d
mov eax, dword [esp + 0x18]
sub eax, 0
je 0x401162
dec eax
je 0x401123
dec eax
jne 0x40116d
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp eax, 4
ja 0x40110a
push 0x4050e4
call esi
cmp dword [esp + 0xc], 5
jne 0x401118
push 0x4050cc
call esi
pop edi
mov al, 1
pop esi
add esp, 0x9c
ret
mov eax, dword [esp + 0xc]
cmp eax, 4
ja 0x40114c
jne 0x401136
mov eax, dword [esp + 0x10]
test eax, eax
ja 0x40114c
push 0x4050b4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor al, al
pop esi
add esp, 0x9c
ret
push 0x40509c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor al, al
pop esi
add esp, 0x9c
ret
push 0x405088
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
xor al, al
pop esi
add esp, 0x9c
ret
Function at 0x432006
Capabilities:
Encode data using xor

Disassembly:
call 0x43200c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x402002
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f008]
jne 0x40200c
repz ret
jmp fcn.0040240f

Function at 0x40587b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40f008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404ba1
and dword [ebp - 0x14], 0
cmp dword [0x4478d8], 0
mov dword [ebp - 0x18], eax
jne 0x40592e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4059d6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4059d6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4478d8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4478dc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4478e0], eax
call edi
push eax
call esi
mov dword [0x4478e8], eax
test eax, eax
je 0x40592e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4478e4], eax
mov eax, dword [0x4478e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405987
cmp dword [0x4478e8], ecx
je 0x405987
push eax
call esi
push dword [0x4478e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405987
test ebx, ebx
je 0x405987
call edi
test eax, eax
je 0x40597e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40597e
test byte [ebp - 8], 1
jne 0x405987
or dword [ebp + 0x10], 0x200000
jmp 0x4059ba
mov eax, dword [0x4478dc]
cmp eax, dword [ebp - 0x18]
je 0x4059ba
push eax
call esi
test eax, eax
je 0x4059ba
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4059ba
mov eax, dword [0x4478e0]
cmp eax, dword [ebp - 0x18]
je 0x4059ba
push eax
call esi
test eax, eax
je 0x4059ba
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4478d8]
call esi
test eax, eax
je 0x4059d6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4059d8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402002
leave
ret
Function at 0x4011e8
Capabilities:
Encode data using xor

Disassembly:
push 0x403ca0
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
cmp byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
jle 0x40125d
cmp bl, byte [edi + 0x51]
jmp 0x83f7520e
mov bh, 0xc
add byte [edx - 0x6c2ca000], ch
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
mov esp, 0xe3000029
daa
add byte [eax], al
add byte [0x726f4600], al
insd dword es:[edi], dx
xor dword [eax], eax
or eax, 0xb2000401
loop 0x40126b
aam 0
sbb dword [ecx], eax
add byte [edx], al
and al, byte [ebx]
and ebx, dword [esi + 0x6c000027]
je 0x4012b2
add byte [esi + 0x27], dl
add byte [ecx], al
add byte [esi], al
add byte [eax], ah
and byte [eax], dl
add byte [ecx], al
add byte [eax + eax], al
call 0x664012cc
add byte [eax], al
add byte [eax], dl
adc byte [eax], dl
add byte [ecx], al
add byte [eax + eax], al
sub byte [ecx], al
add byte [eax], al
dec esi
add eax, dword [eax]
add byte [eax], ah
and byte [eax], al
add byte [ecx], al
add byte [eax], cl
add byte [eax + 0x76000008], ch
add al, 0
add byte [eax], dl
adc byte [eax], al
add byte [ecx], al
add byte [eax], cl
add byte [eax + 5], ch
add byte [eax], al
push ds
or eax, 0x20200000
add byte [eax], al
add dword [eax], eax
and byte [eax], al
test al, 0x10
add byte [eax], al
xchg byte [edx], dl
add byte [eax], al
adc byte [eax], dl
add byte [eax], al
add dword [eax], eax
and byte [eax], al
push 0x2e000004
and eax, dword [eax]
add byte [eax], ch
add byte [eax], al
add byte [eax], ah
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add al, 0
add byte [eax], al
add byte [eax], al
add byte [edx], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], 0
add byte [eax], 0
add byte [eax + 0x800080], al
add byte [eax], al
add byte [eax], 0x80
add byte [eax - 0x7fffff80], al
add byte [eax - 0x3f3f4000], 0
add byte [eax], al
inc dword [eax]
add bh, bh
add byte [eax], al
add bh, bh
inc dword [eax]
inc dword [eax]
add byte [eax], al
inc dword [eax]
inc dword [eax]
invalid