joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e2fd4
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4e315c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
mov edx, 0x200
call fcn.00403f24
mov eax, 0x2000
call fcn.00408818
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x4e313f
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
mov dword [ebp - 8], 0x200
mov dword [ebp - 0xc], 0x2000
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00403d04
push eax
push edi
push esi
call sub.advapi32.dll_RegEnumValueA
mov ebx, eax
test ebx, ebx
jne 0x4e3086
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0x14]
call fcn.00403d04
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [ebp - 0x14]
call fcn.00403d04
push eax
push esi
call sub.advapi32.dll_RegDeleteValueA
test ebx, ebx
je 0x4e301f
xor edi, edi
mov dword [ebp - 8], 0x200
mov dword [ebp - 0xc], 0x2000
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00403d04
push eax
push edi
push esi
call sub.advapi32.dll_RegEnumKeyExA
mov ebx, eax
test ebx, ebx
jne 0x4e3121
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00403d04
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCreateKeyA
mov ebx, eax
test ebx, ebx
jne 0x4e3121
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00403d04
push eax
push esi
call sub.advapi32.dll_RegCreateKeyA
mov ebx, eax
test ebx, ebx
jne 0x4e3118
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
call fcn.004e2fd4
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, dword [ebp - 0x14]
call fcn.00403d04
push eax
push esi
call sub.advapi32.dll_RegDeleteKeyA
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
je 0x4e308c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e3146
mov eax, dword [ebp - 0x18]
call fcn.00401538
ret
Function at 0x4e31f8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor ebx, ebx
mov eax, dword [0x4f685c]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.00471320
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
push esi
call sub.shell32.dll_ShellExecuteA
mov esi, eax
cmp ebx, 0x14
jge 0x4e3258
push 0x64
call sub.kernel32.dll_Sleep_1
mov eax, dword [0x4f6688]
mov eax, dword [eax]
call fcn.004731e4
add ebx, 1
jno 0x4e3253
call fcn.0040282c
cmp ebx, 0x14
jl 0x4e3236
mov eax, dword [0x4f685c]
mov eax, dword [eax]
xor edx, edx
call fcn.00471320
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc

Function at 0x4e3c54
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebx
push esi
test dl, dl
je 0x4e3c62
add esp, 0xfffffff0
call fcn.00402c98
mov ebx, edx
mov esi, eax
xor edx, edx
mov eax, esi
call fcn.00423408
xor eax, eax
mov dword [esi + 0x8c], eax
xor eax, eax
mov dword [esi + 0x90], eax
xor eax, eax
mov dword [esi + 0x94], eax
xor eax, eax
mov dword [esi + 0x98], eax
xor eax, eax
mov dword [esi + 0x9c], eax
lea eax, [esi + 0xa0]
push eax
call sub.kernel32.dll_QueryPerformanceFrequency
lea eax, [esi + 0xb0]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
lea eax, [esi + 0xb8]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
lea eax, [esi + 0xa8]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
mov eax, esi
test bl, bl
je 0x4e3cdc
call fcn.00402cf0
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4e5544
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
lea eax, [ebp - 0x44]
xor ecx, ecx
mov edx, 0x3c
call fcn.00401fe8
mov dword [ebp - 0x44], 0x3c
mov dword [ebp - 0x40], 0x140
mov eax, dword [0x4f6688]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x3c], eax
mov eax, esi
call fcn.00403d04
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
call fcn.00403d04
mov dword [ebp - 0x30], eax
mov al, byte [ebp - 1]
xor al, 1
and eax, 0x7f
xor eax, eax
jno 0x4e55a3
call fcn.0040282c
xor edx, edx
mov dl, byte [ebp - 1]
imul edx, edx, 5
jno 0x4e55b2
call fcn.0040282c
add eax, edx
jno 0x4e55bb
call fcn.0040282c
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x44]
push eax
call sub.shell32.dll_ShellExecuteExA
test eax, eax
je 0x4e5618
test bl, bl
jne 0x4e55dd
mov eax, dword [0x4f6688]
mov eax, dword [eax]
call fcn.004731e4
jmp 0x4e55e4
push 0xa
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetExitCodeProcess
cmp dword [ebp - 8], 0x103
jne 0x4e560a
mov eax, dword [0x4f6688]
mov eax, dword [eax]
cmp byte [eax + 0x9c], 0
je 0x4e55cb
cmp dword [ebp - 8], 0
jne 0x4e5614
mov al, 1
jmp 0x4e561a
xor eax, eax
jmp 0x4e561a
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4e8c3c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4e8cc0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
mov eax, ebx
call fcn.00403d04
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
test eax, eax
jne 0x4e8c89
mov eax, esi
mov edx, ebx
call fcn.004038c4
jmp 0x4e8ca7
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x105]
call fcn.00409af8
mov eax, dword [ebp - 0x10c]
mov edx, esi
call fcn.00408d2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e8cc7
lea eax, [ebp - 0x10c]
call fcn.00403804
ret

Function at 0x4e8fac
Capabilities:
Change registry key timestamp

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00403ce4
xor eax, eax
push ebp
push 0x4e904f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 8]
push eax
or edi, 0x2001f
push edi
push 0
mov eax, dword [ebp - 4]
call fcn.00403d04
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4e9039
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 0x18]
call fcn.004eaee4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
push 8
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
call sub.ntdll.dll_NtSetInformationKey
mov ecx, eax
mov eax, ecx
cdq
cmp edx, 0
jne 0x4e9030
cmp eax, 0
jne 0x4e9030
mov bl, 1
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e9056
lea eax, [ebp - 4]
call fcn.00403804
ret

Function at 0x4f1382
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
push 0x4f13f0
push 0x4f1400
call sub.user32.dll_FindWindowA
mov esi, eax
test esi, esi
je 0x4f13c7
push esp
push esi
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [esp]
push eax
push 0
push 0x401
call sub.kernel32.dll_OpenProcess
mov edi, eax
lea eax, [esp + 4]
push eax
push edi
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [esp + 4]
push eax
push edi
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb ebx, ebx
inc ebx
push edi
call sub.kernel32.dll_CloseHandle_1
push 0x4f13f0
push 0x4f1400
call sub.user32.dll_FindWindowA
mov esi, eax
test esi, esi
jne 0x4f1377
push 0x4f13f0
push 0x4f1400
call sub.user32.dll_FindWindowA
mov esi, eax
test esi, esi
jne 0x4f13e8
push 1
push 0x4f1408
call sub.kernel32.dll_WinExec
mov eax, ebx
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4f3600
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4f3608
push ecx
push ebx
push esi
push edi
mov eax, 0x4f3228
call fcn.004063a4
xor eax, eax
push ebp
push 0x4f37d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4f6688]
mov eax, dword [eax]
call fcn.00473308
mov eax, dword [0x4f6688]
mov eax, dword [eax]
mov dword [eax + 0x78], 0xa
mov eax, dword [0x4f6688]
mov eax, dword [eax]
mov dl, 1
call fcn.00473a70
mov eax, dword [0x4f6688]
mov eax, dword [eax]
mov edx, 0x4f37ec
call fcn.00472ef0
push 1
call sub.kernel32.dll_SetErrorMode
mov ecx, dword [0x4f67dc]
mov eax, dword [0x4f6688]
mov eax, dword [eax]
mov edx, dword [0x4eb238]
call fcn.00473320
mov eax, dword [0x4f67dc]
mov eax, dword [eax]
mov byte [eax + 0x4d4], 0
call fcn.004019ac
dec eax
jl 0x4f3778
lea edx, [ebp - 0x14]
mov eax, 1
call fcn.00401a14
mov eax, dword [ebp - 0x14]
mov edx, 0x4f3808
call fcn.00403c88
jne 0x4f374e
mov cl, 1
xor edx, edx
mov eax, 0x4f381c
call fcn.004e2ba4
push 6
push 0
call sub.ole32.dll_CoInitializeEx
xor eax, eax
push ebp
push 0x4f3739
push dword fs:[eax]
mov dword fs:[eax], esp
push 5
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.00401a14
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.004096ec
mov eax, dword [ebp - 0x18]
call fcn.00403d04
push eax
push 0x4f3834
lea edx, [ebp - 0x20]
xor eax, eax
call fcn.00401a14
mov eax, dword [ebp - 0x20]
call fcn.00403d04
push eax
push 0x4f3840
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f3740
call sub.ole32.dll_CoUninitialize
ret
lea edx, [ebp - 0x24]
mov eax, 1
call fcn.00401a14
mov eax, dword [ebp - 0x24]
mov edx, 0x4f3850
call fcn.00403c88
jne 0x4f3778
mov eax, dword [0x4f67dc]
mov eax, dword [eax]
mov byte [eax + 0x4d4], 1
mov eax, dword [0x4f6688]
mov eax, dword [eax]
call fcn.004733a0
xor eax, eax
push ebp
push 0x4f37a1
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004e6de8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f37b7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f37d9
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.0040386c
ret

Function at 0x930048
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x93004e
pop ebp
sub ebp, 6
sub ebp, 0x530048
jmp 0x9300ac
jmp 0x9300b5
mov ebx, 0x48b8b3c3
add byte [ebx], dl
mov eax, 0x530048
push ebx
add byte [ebx], al
lds eax, [ecx + 0x93c0]
add byte [ecx + 0x63b], bh
add eax, ebp
add eax, 0x93
mov ecx, 0x63b
mov edx, 0x4dc6e2d4
xor byte [eax], dl
inc eax
dec ecx
jne 0x9300cc
jmp 0x9300df
mov esi, 0xc4d4bc94
aam 0xd4
mov esp, 0xd4f818d4
push ebp
and al, 0xe8
js 0x9300b2
push esi
push ebp
and al, 0xe8
js 0x9300b8
push esi
out 0x14, eax
test byte [ebx], ch
inc ecx
lodsb al, byte [esi]
xchg ebp, eax
popfd
aam 0x84
pop edi
sbb dword [edi + 0x5d], ebx
call 0x5667d5de
adc eax, 0xd4d4d42c
xlatb
sbb dword [edx + edx*8 - 0x2c], ebp
aam 0xd4
outsb dx, byte [esi]
cld
aam 0xd4
aam 0x23
xlatb
sbb al, 0x5f
push ebp
fcom st(4)
aam 0xd4
xlatb
adc dword [esp + edi*4 - 0x2b221e56], eax
mov esp, 0xd49d1e13
aad 0xf8
invalid
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00431219
Function at 0x402725
Capabilities:
Get common file path

Disassembly:
sub esp, 0x400
push esi
push edi
xor edi, edi
xor esi, esi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp esi, 0x9f60fc3
jg 0x40274b
inc esi
cmp esi, 0x1e70dee2
jl 0x402731
cmp dword [0x4518a4], 0x400
jne 0x40277e
push edi
call fcn.004028b8
push edi
push edi
call fcn.00402b3d
fldz
push ecx
fst qword [esp + 8]
fstp qword [esp]
call fcn.004027e0
push edi
fstp st(0)
call fcn.00402c2a
add esp, 0x14
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x58bc6e
jg 0x40279d
inc esi
cmp esi, 0xe52f
jl 0x402780
mov eax, dword [0x449864]
mov dword [0x4518a4], eax
call fcn.0040248b
mov esi, 0x3078f
cmp dword [0x4518a4], 0x51f
jne 0x4027c9
push edi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
dec esi
jne 0x4027b1
pop edi
xor eax, eax
pop esi
add esp, 0x400
ret 0x10

Function at 0x405424
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f328]
jne 0x40542e
repz ret
jmp fcn.00407909
Function at 0x406480
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40f328]
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.00403fdc
and dword [ebp - 0x14], 0
cmp dword [0x44b4b0], 0
mov dword [ebp - 0x18], eax
jne 0x406533
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4065db
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4065db
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44b4b0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44b4b4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44b4b8], eax
call edi
push eax
call esi
mov dword [0x44b4c0], eax
test eax, eax
je 0x406533
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x44b4bc], eax
mov eax, dword [0x44b4bc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40658c
cmp dword [0x44b4c0], ecx
je 0x40658c
push eax
call esi
push dword [0x44b4c0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40658c
test ebx, ebx
je 0x40658c
call edi
test eax, eax
je 0x406583
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406583
test byte [ebp - 8], 1
jne 0x40658c
or dword [ebp + 0x10], 0x200000
jmp 0x4065bf
mov eax, dword [0x44b4b4]
cmp eax, dword [ebp - 0x18]
je 0x4065bf
push eax
call esi
test eax, eax
je 0x4065bf
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4065bf
mov eax, dword [0x44b4b8]
cmp eax, dword [ebp - 0x18]
je 0x4065bf
push eax
call esi
test eax, eax
je 0x4065bf
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44b4b0]
call esi
test eax, eax
je 0x4065db
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4065dd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405424
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4061b9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43189c], 0
push esi
jne 0x4061f0
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4061ca
mov dword [ecx*4 + 0x431898], eax
inc ecx
cmp ecx, 0x100
jl 0x4061c5
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406221
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431898]
xor eax, esi
inc ecx
dec edx
jne 0x406203
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10008590
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101707d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 4]
mov dword [ebp - 0x10], esi
push 8
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [ebx], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.1000bdf5
mov edi, eax
add esp, 4
test edi, edi
je 0x10008633
push 1
mov dword [ebp - 4], 0
call fcn.10147323
add esp, 4
mov dword [edi + 4], eax
jmp 0x10008635
xor edi, edi
mov ecx, esi
mov dword [esi + 0x34], edi
call fcn.100086d0
mov dword [esi + 0xc], ebx
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x14]
mov dword [esi + 0x1c], ecx
lea edi, [esi + 0x24]
mov dword [esi + 0x2c], edi
lea edx, [esi + 0x18]
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
lea ebx, [esi + 0x28]
mov dword [esi + 0x30], ebx
mov byte [esi + 0x48], 0
mov byte [esi + 0x3d], 0
mov dword [esi + 0x20], edx
mov dword [eax], 0
mov dword [edx], 0
mov dword [esi + 0x28], 0
mov dword [esi + 4], 0
mov dword [ecx], 0
mov dword [edi], 0
mov dword [esi + 0x4c], 0
mov eax, dword [0x1024f034]
mov ecx, dword [0x1024f038]
mov dword [esi + 0x40], eax
mov eax, esi
mov dword [esi + 0x44], ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [esi + 0x38], 0
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x10008840
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101707d0
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
push edi
push 8
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.1000bdf5
mov edi, eax
add esp, 4
test edi, edi
je 0x100088dc
push 1
mov dword [ebp - 4], 0
call fcn.10147323
add esp, 4
mov dword [edi + 4], eax
jmp 0x100088de
xor edi, edi
mov ecx, esi
mov dword [esi + 0x34], edi
call fcn.100086d0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000dd2a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000dd83
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000dd83
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x1000dd74
cmp esi, ecx
jae 0x1000dd83
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x1000dd62
cmp esi, ecx
jae 0x1000dd83
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
jmp 0x1000dd85
xor eax, eax
pop esi
pop ebp
ret

Function at 0x1000f6c3
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x10170ddd
call fcn.101462c3
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebx], edi
mov dword [esi], edi
cmp dword [eax + 0x58], edi
je 0x1000f76b
push dword [ebp + 8]
call fcn.1000f9e0
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1000f7f2
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
push ecx
push edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push ecx
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x14]
mov dword [esi], ecx
test eax, eax
jne 0x1000f754
push ecx
call fcn.10020691
pop ecx
lea ecx, [ebp - 0x14]
mov dword [ebx], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000f754
xor edi, edi
inc edi
jmp 0x1000f75e
push dword [ebx]
call fcn.1000be2d
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.1000f58a
jmp 0x1000f7f0
mov eax, dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [eax + 0x84]
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call dword [0x1018098c]
mov ecx, dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x1000f7e8
mov esi, dword [ebp + 0x14]
shr ecx, 1
push ecx
mov dword [esi], ecx
call fcn.10020691
mov dword [ebx], eax
pop ecx
cmp dword [esi], edi
jbe 0x1000f7e2
lea esi, [edi + edi]
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.1000f567
push esi
lea ecx, [ebp - 0x10]
lea ebx, [eax - 1]
shl bl, 4
sub bl, 0x41
call fcn.1000f567
mov ecx, dword [ebp + 0x10]
add al, bl
mov ecx, dword [ecx]
mov byte [edi + ecx], al
inc edi
mov eax, dword [ebp + 0x14]
cmp edi, dword [eax]
jb 0x1000f7af
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.1000d8ce
mov eax, edi
call fcn.10146291
ret 0x10