joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461660
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4c2320]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push eax
push str.SYSTEMCurrentControlSetServices_s
lea eax, [ebp - 0x108]
push 0x104
push eax
mov esi, ecx
call fcn.0044a82e
add esp, 0x10
lea ecx, [ebp - 0x10c]
push ecx
push 3
push 0
lea edx, [ebp - 0x108]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4616c5
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449592
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 8], 0
je 0x4616fa
mov edx, dword [ebp - 0x10c]
lea eax, [ebp - 0x110]
push eax
push esi
lea ecx, [ebp - 0x114]
push ecx
push 0
push 0x4987d4
push edx
mov dword [ebp - 0x110], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x461713
mov eax, dword [ebp - 0x10c]
push 4
push esi
push 4
push 0
push 0x4987d4
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x10c]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
sete al
xor ecx, ebp
pop esi
call fcn.00449592
mov esp, ebp
pop ebp
ret

Function at 0x461740
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, eax
lea eax, [ebp - 4]
push eax
push 3
push 0
push str.SYSTEMCurrentControlSetControlGroupOrderList
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x46176c
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 8], 0
push ebx
je 0x461809
mov edx, dword [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push str.PNP_TDI
push edx
call ebx
test eax, eax
je 0x4617a7
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi]
add ecx, 4
push ecx
call fcn.00449c1b
add esp, 4
mov dword [edi], eax
test eax, eax
jne 0x4617cd
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push esi
push eax
lea eax, [ebp - 8]
push eax
push 0
push str.PNP_TDI
push ecx
call ebx
mov esi, eax
test esi, esi
je 0x461837
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [edi]
push eax
call fcn.00449be1
add esp, 4
pop ebx
mov dword [edi], 0
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
cmp eax, 4
jbe 0x461816
shr eax, 2
dec eax
jmp 0x461818
xor eax, eax
mov ecx, dword [edi]
mov dword [ecx], eax
mov edx, dword [esi]
mov eax, dword [edi]
mov ecx, dword [ebp - 4]
push edx
push eax
push 3
push 0
push str.PNP_TDI
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop ebx
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x461c40
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push 2
push 0
push str.SYSTEMCurrentControlSetServicesTcpip6Parameters
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x461c68
xor al, al
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ebp + 8]
mov eax, dword [ebp - 4]
push esi
push 4
lea edx, [ebp - 8]
push edx
push 4
neg ecx
push 0
sbb ecx, ecx
push str.DisabledComponents
and ecx, 0x8e
push eax
mov dword [ebp - 8], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x461cb0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push 2
push 0
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x461cd8
xor al, al
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push esi
xor ecx, ecx
cmp byte [ebp + 8], cl
push 4
lea edx, [ebp - 8]
push edx
push 4
setne cl
push 0
push str.DisableTaskOffload
push eax
mov dword [ebp - 8], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x461d20
Capabilities:
Create service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4c2320]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push esi
push str.system32drivers_s.sys
lea eax, [ebp - 0x108]
push 0x104
push eax
mov byte [ebp - 0x109], 0
call fcn.0044a82e
add esp, 0x10
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x461d81
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449592
mov esp, ebp
pop ebp
ret
push ebx
push 0
push 0
push 0
push 0
push str.PNP_TDI
lea ecx, [ebp - 0x108]
push ecx
push 1
push 1
push 1
push 0xf01ff
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x461dc9
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x461de6
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x461ddf
mov byte [ebp - 0x109], 1
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0
mov ecx, esi
call fcn.00461850
mov ecx, dword [ebp - 4]
add esp, 4
xor eax, eax
cmp byte [ebp - 0x109], al
pop ebx
setne al
pop edi
xor ecx, ebp
pop esi
dec eax
call fcn.00449592
mov esp, ebp
pop ebp
ret
Function at 0x462380
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov ecx, dword [0x4c3494]
push esi
mov esi, eax
mov eax, dword [0x4c3498]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x10], ecx
xor ecx, ecx
add eax, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
cmp ecx, dword [0x4ce104]
jb 0x4623c5
ja 0x462444
cmp eax, dword [0x4ce100]
ja 0x462444
cmp dword [0x4c34a0], 0xffffffff
jne 0x4623d8
mov eax, 0xfffffffd
pop esi
mov esp, ebp
pop ebp
ret
push 0x4ce24c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp - 0xc]
mov eax, dword [0x4ce0f8]
push edx
push esi
push eax
call fcn.0044d7e0
mov ecx, dword [0x4c3498]
add esp, 0xc
xor eax, eax
lea edx, [ebp - 0x28]
push edx
push eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
push 8
lea eax, [ebp - 0xc]
mov dword [ebp - 0x18], ecx
mov ecx, dword [0x4c34a0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x46244e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x46244e
push 0x4ce24c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0xfffffffc
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x14]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x462481
mov eax, dword [0x4c34a0]
push eax
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 0x4ce24c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4c3494]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [0x4c34a0]
test eax, eax
jne 0x4624b4
push edx
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 0x4ce24c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push 0x4ce24c
test eax, eax
je 0x462473
mov esi, dword [ebp - 4]
neg esi
sbb esi, esi
neg esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esi - 1]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x462b30
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4c2320]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x462b92
push edi
lea eax, [ebp - 0x18]
push eax
push 0x20
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x462b8e
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x462ba1
mov edx, dword [ebp - 0x18]
push edx
call edi
push esi
call edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00449592
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x462b88
mov ecx, dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
jmp 0x462b8c

Function at 0x463fd0
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebx], ecx
test eax, eax
jg 0x46400d
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x464007
mov eax, 1
test eax, eax
jle 0x46409a
push esi
mov dword [ebp + 8], eax
push edi
lea eax, [ebp - 4]
push eax
push 0
push ebx
push 0x462090
push 0
push 0
call fcn.004815bd
mov edi, eax
add esp, 0x18
mov dword [ebp + 0xc], edi
test edi, edi
je 0x46408f
cmp edi, 0xffffffff
je 0x46408f
mov eax, dword [ebx + 8]
lea ecx, [ebp + 0xc]
cmp ecx, eax
jae 0x464073
mov ecx, dword [ebx + 4]
lea edx, [ebp + 0xc]
cmp ecx, edx
ja 0x464073
mov edi, edx
sub edi, ecx
sar edi, 2
cmp eax, dword [ebx + 0xc]
jne 0x464062
push 1
lea ecx, [ebx + 4]
call fcn.00463ac0
mov eax, dword [ebx + 8]
test eax, eax
je 0x46408b
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + edi*4]
mov dword [eax], edx
jmp 0x46408b
cmp eax, dword [ebx + 0xc]
jne 0x464082
push 1
lea ecx, [ebx + 4]
call fcn.00463ac0
mov eax, dword [ebx + 8]
test eax, eax
je 0x46408b
mov dword [eax], edi
add dword [ebx + 8], 4
dec dword [ebp + 8]
jne 0x464012
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x467700
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x4ce234
mov esi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4c34a0], 0xffffffff
je 0x467782
cmp dword [0x4c34a4], 0xffffffff
jne 0x467782
test esi, esi
je 0x467782
mov eax, dword [0x4c3494]
mov dword [0x4ce128], esi
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call esi
mov ecx, dword [0x4c3490]
push ecx
call esi
mov edx, dword [0x4c348c]
push edx
call esi
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x467510
push 0
push 0
call fcn.004815bd
add esp, 0x18
test eax, eax
jne 0x467795
mov ecx, dword [0x4c3490]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [0x4c34a4], 0xffffffff
push 0x4ce234
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [0x4c348c]
push 0xffffffffffffffff
push edx
mov dword [0x4c34a4], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x4ce234
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47f7c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
lea ebx, [ecx + eax*4 - 0x21524111]
push edi
mov edi, ebx
mov dword [ebp + 0x10], ebx
cmp eax, 3
jbe 0x47f853
lea edx, [eax - 4]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
inc edx
mov dword [ebp - 4], edx
mov edx, dword [ebp + 8]
push esi
add ebx, dword [edx + 8]
add edi, dword [edx + 4]
mov ecx, dword [edx]
sub ecx, ebx
add ecx, dword [ebp + 0x10]
mov eax, ebx
rol eax, 4
xor eax, ecx
add ebx, edi
sub edi, eax
mov ecx, eax
rol ecx, 6
xor ecx, edi
add eax, ebx
sub dword [ebp + 0xc], 3
sub ebx, ecx
mov esi, ecx
rol esi, 8
xor esi, ebx
add ecx, eax
sub eax, esi
mov edi, esi
rol edi, 0x10
xor eax, edi
add esi, ecx
mov edi, eax
ror edi, 0xd
sub ecx, eax
xor edi, ecx
add eax, esi
mov ebx, edi
sub esi, edi
rol ebx, 4
xor ebx, esi
add edi, eax
add edx, 0xc
dec dword [ebp - 4]
mov dword [ebp + 0x10], eax
jne 0x47f7f1
mov eax, dword [ebp + 0xc]
pop esi
jmp 0x47f856
mov edx, dword [ebp + 8]
dec eax
je 0x47f865
dec eax
je 0x47f862
dec eax
jne 0x47f8ab
add ebx, dword [edx + 8]
add edi, dword [edx + 4]
mov edx, dword [edx]
add edx, dword [ebp + 0x10]
xor ebx, edi
mov eax, edi
rol eax, 0xe
sub ebx, eax
xor edx, ebx
mov ecx, ebx
rol ecx, 0xb
sub edx, ecx
xor edi, edx
mov eax, edx
ror eax, 7
sub edi, eax
xor ebx, edi
mov ecx, edi
rol ecx, 0x10
sub ebx, ecx
mov ecx, ebx
mov eax, ebx
xor eax, edx
rol ecx, 4
sub eax, ecx
mov edx, eax
xor edi, eax
rol edx, 0xe
sub edi, edx
mov eax, edi
ror eax, 8
xor ebx, edi
sub ebx, eax
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x481130
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x4c2320]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x62
lea ecx, [ebp - 0x66]
mov eax, 0x31
push 0
push ecx
mov word [ebp - 0x68], ax
call fcn.0044f160
add esp, 0xc
push 0x64
lea edx, [ebp - 0x68]
push edx
push str.RUNNING_ON_VALGRIND
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jle 0x4811b2
mov edx, 0x4bb5c0
lea ecx, [ebp - 0x68]
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x481196
test al, al
je 0x481192
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x481196
add ecx, 2
add edx, 2
test al, al
jne 0x481176
xor eax, eax
jmp 0x48119b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4811b2
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449592
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00449592
mov esp, ebp
pop ebp
ret
Function at 0x100021e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push str.d3d9.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, dword [0x1000665c]
mov edi, eax
add edx, edi
mov byte [0x1000664c], 0xe9
mov ecx, 0x10001fb0
mov dword [0x10006634], edx
sub ecx, edx
push 0x10006658
sub ecx, 5
mov dword [0x1000664d], ecx
mov eax, dword [edx]
push 0x40
mov dword [0x1000663c], eax
movzx eax, byte [edx + 4]
push 8
push edx
mov byte [0x10006640], al
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [0x10006634]
mov eax, dword [0x1000664c]
push 0x10006668
push 0x40
mov dword [ecx], eax
movzx eax, byte [0x10006650]
mov byte [ecx + 4], al
mov eax, 0x10001f10
mov ecx, dword [0x10006638]
add ecx, edi
mov byte [0x10006644], 0xe9
sub eax, ecx
mov dword [0x1000666c], ecx
sub eax, 5
mov dword [0x10006645], eax
mov eax, dword [ecx]
mov dword [0x10006660], eax
movzx eax, byte [ecx + 4]
push 8
push ecx
mov byte [0x10006664], al
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [0x1000666c]
mov eax, dword [0x10006644]
pop edi
mov dword [ecx], eax
movzx eax, byte [0x10006648]
mov byte [ecx + 4], al
ret

Function at 0x100022c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp dword [ebp + 0xc], 1
jne 0x100022e7
push 0
push 0
push 0
push 0x100022b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x28981918
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..rsrc_1
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x3da04693
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x405c73
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c56c], 0
push esi
jne 0x405caa
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 0x405c84
mov dword [ecx*4 + 0x42c568], eax
inc ecx
cmp ecx, 0x100
jl 0x405c7f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405cdb
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 + 0x42c568]
xor eax, esi
inc ecx
dec edx
jne 0x405cbd
pop edi
not eax
pop esi
ret 0xc

Function at 0x431006
Capabilities:
Encode data using xor

Disassembly:
call 0x43100c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x10034a1
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100503c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x18], eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
cmp eax, ebx
jne 0x10034f3
mov esi, 0x80070057
push esi
push 0x7fa
push 0x10015c8
push 1
call fcn.01003241
jmp 0x1003564
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov edi, 0x80070000
test eax, eax
jne 0x1003535
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1003527
and eax, 0xffff
or eax, edi
mov esi, eax
cmp esi, ebx
jge 0x1003535
push esi
push 0x807
jmp 0x10035a1
cmp dword [ebp - 0x10], ebx
jne 0x1003547
mov esi, 0x8007000e
push esi
push 0x808
jmp 0x10035a1
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x1003584
xor esi, esi
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
pop edi
cmp dword [ebp - 0x10], ebx
je 0x1003572
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01002a15
leave
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1003595
and eax, 0xffff
or eax, edi
mov esi, eax
cmp esi, ebx
jge 0x100355b
push esi
push 0x810
push 0x10015c8
push 1
call fcn.01003241
jmp 0x1003563

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x5dce077d
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x6e454821
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4b89c7
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x11c
cmp dword [esp + 0x128], 0
je 0x4b8b8c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x130]
xor ebp, ebp
push edi
mov dword [esp + 0x1c], ebp
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4b8b88
mov edx, esi
mov eax, dword [edx]
mov ebx, dword [esp + 0x130]
add eax, ebx
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0x10]
add eax, ebx
lea edi, [ecx + ebx]
mov dword [esp + 0x20], eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x4b8a32
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
mov dword [esp + 0x10], eax
push 0x104
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.004b1142
add esp, 0xc
test ebx, ebx
je 0x4b8b32
mov eax, dword [esp + 0x18]
and dword [esp + 0x14], 0
mov eax, dword [eax]
test eax, eax
je 0x4b8b1b
mov esi, dword [esp + 0x10]
xor edi, edi
mov ebp, dword [esp + 0x130]
test eax, eax
jns 0x4b8a77
movzx ebx, ax
jmp 0x4b8a7c
lea ebx, [ebp + 2]
add ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x20]
mov dword [edi + ecx], eax
test eax, eax
jne 0x4b8af3
cmp dword [0x4bdeac], 1
jne 0x4b8af3
push 0x104
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004b1142
lea eax, [esp + 0x34]
push eax
call fcn.004b8c74
lea eax, [esp + 0x38]
push 0x4b0204
push eax
call fcn.004b1170
lea eax, [esp + 0x40]
push ebx
push eax
call fcn.004b1170
add esp, 0x20
lea eax, [esp + 0x24]
push 0
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004b1197
pop ecx
push eax
lea eax, [esp + 0x34]
push eax
push dword [0x4bde58]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc ecx
mov edi, ecx
mov dword [esp + 0x14], ecx
shl edi, 2
mov eax, dword [edi + eax]
test eax, eax
jne 0x4b8a70
mov esi, dword [esp + 0x134]
mov ebp, dword [esp + 0x1c]
inc ebp
imul edx, ebp, 0x14
mov dword [esp + 0x1c], ebp
add edx, esi
mov ecx, dword [edx + 0xc]
test ecx, ecx
jne 0x4b89f9
jmp 0x4b8b88
lea eax, [esp + 0x28]
push eax
call fcn.004b8c74
lea eax, [esp + 0x2c]
mov dword [esp], 0x4b01e8
push eax
call fcn.004b1170
lea eax, [esp + 0x30]
push edi
push eax
call fcn.004b1170
add esp, 0x10
cmp dword [0x4bdeac], 1
jne 0x4b8b88
push 0
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004b1197
pop ecx
push eax
lea eax, [esp + 0x34]
push eax
push dword [0x4bde58]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
xor eax, eax
add esp, 0x11c
ret
Function at 0x4b8bc2
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push 0x208
lea eax, [ebp - 0x410]
push eax
call fcn.004b8c40
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x4bdd24], eax
push 0
push 0
push 0
push 2
push 0
push dword [0x4bdd24]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [0x4bdd28], eax
push 0
push 0
push 0
push 4
push dword [0x4bdd28]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
add eax, dword [0x4bdeb4]
mov esp, ebp
pop ebp
ret