joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408ee8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406b24
xor eax, eax
push ebp
push 0x4090cd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408f28
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408f42
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406bc8
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x4090b7
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4090dc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408fd1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4090dc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408fd1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409110
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408fd1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409144
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4090b7
xor eax, eax
push ebp
push 0x4090b0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408cec
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409040
mov eax, dword [ebp - 0x10]
call fcn.004041d4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406ce8
jmp 0x40908b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409184
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40908b
mov eax, dword [ebp - 0x10]
call fcn.004041d4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409184
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406ce8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4090b7
cmp dword [ebp - 8], 0
je 0x4090a6
mov eax, dword [ebp - 8]
call fcn.004041f0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4090d4
lea eax, [ebp - 4]
call fcn.00406b2c
ret
Function at 0x409398
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00406b24
mov eax, dword [ebp - 0x21c]
call fcn.00406b24
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x409537
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406b3c
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406bc8
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x409438
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x40944a
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x409435
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409503
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x409473
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00408ee8
cmp dword [ebp - 0x220], 0
je 0x4094ab
push ebp
mov eax, dword [ebp - 0x220]
call fcn.0040928c
pop ecx
mov ebx, eax
jmp 0x409503
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408ba4
mov eax, dword [ebp - 0x224]
call fcn.0040928c
pop ecx
mov ebx, eax
test bl, bl
jne 0x4094f6
cmp byte [0x4acb58], 0
jne 0x4094f6
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408ba4
mov eax, dword [ebp - 0x228]
call fcn.0040928c
pop ecx
mov ebx, eax
test bl, bl
jne 0x409503
push ebp
call fcn.0040933c
pop ecx
mov ebx, eax
test bl, bl
je 0x409519
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406d24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40953e
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406b34
ret

Function at 0x409cb0
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x40c840
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4acc54
push 0xa
push 0x40c8d4
mov eax, dword [0x4acc40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40c864
call fcn.004171a8
push ebx
mov eax, dword [0x4acc40]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40c87b
call fcn.004171a8
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40c88d
call fcn.004171a8
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4acc58], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4acc5c], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4acc60], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4acc64], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4acc68], ecx
add edx, dword [eax + 0x14]
mov dword [0x4acc6c], edx
pop esi
pop ebx
ret

Function at 0x40ffa4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41004d
test eax, edx
je 0x410050
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40ffcd
push edx
mov edx, eax
mov eax, esp
call fcn.00406d40
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40ffe3
push eax
lea eax, [esp + 8]
call fcn.00406d40
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40fff2
movzx eax, word [eax]
sub eax, ecx
jmp 0x410019
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x410033
add ecx, 4
js 0x41000a
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x410030
push eax
mov eax, ecx
mov edx, 2
call fcn.0040614c
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x410017
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x410019
xor eax, eax
ret
test eax, eax
je 0x410060
test edx, edx
jne 0x40ffb4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x411120
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406bc8
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41113e
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x41115f
cmp ebx, 3
je 0x41115f
cmp ebx, 0x7b
je 0x41115f
mov eax, esi
call fcn.004110e0
test al, al
jne 0x411163
xor eax, eax
jmp 0x411165
mov al, 1
pop esi
pop ebx
ret

Function at 0x411168
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406bc8
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x411181
test al, 0x10
jne 0x411185
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x414814
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41484d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406c78
jmp 0x414856
mov eax, ebx
mov edx, esi
call fcn.00406b3c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x414860
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x414882
movzx eax, word [esp]
jmp 0x414884
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x415014
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x415139
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00414e24
mov esi, eax
mov eax, dword [0x4a9168]
cmp byte [eax], 0
je 0x4150e1
mov eax, dword [0x4a8f34]
call fcn.00404698
call fcn.0040433c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x414fec]
call fcn.00408280
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x415154
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x41511d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4a8ed8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4acc40]
call fcn.00408374
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415140
lea eax, [ebp - 4]
mov edx, dword [0x414fec]
call fcn.0040828c
ret
Function at 0x415f34
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41600a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406b90
lea eax, [ebp - 4]
call fcn.00407528
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406bc8
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x415ff4
mov eax, ebx
call fcn.004041d4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x415fed
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406bc8
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x415fd7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41601c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x415fd7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415ff4
mov eax, dword [ebp - 0x10]
call fcn.004041f0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416011
lea eax, [ebp - 4]
call fcn.00406b2c
ret

Function at 0x417050
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00406480
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x416ffa
mov eax, edi
add eax, eax
call fcn.004041d4
mov esi, eax
jmp 0x416ffc
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x417035
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x41701f
mov eax, esp
cmp esi, eax
je 0x417042
mov eax, esi
call fcn.004041f0
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x41707c
cmp bl, 0
je 0x417078
cmp bl, 0x41
jl 0x417073
cmp bl, 0x5a
jg 0x417073
or bl, 0x20
xor al, bl
inc esi
jmp 0x417057
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x416fbc
Function at 0x438708
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4387a6
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x43876a
cmp byte [ebx + 0x10], 0
jne 0x43876a
cmp byte [ebx + 0x3c], 0
jne 0x43876a
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x43878b
lea edx, [ebp - 4]
mov eax, dword [0x4a9114]
call fcn.00409c3c
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x42a360]
call fcn.00415158
call fcn.004058e0
jmp 0x43878b
lea edx, [ebp - 8]
mov eax, dword [0x4a9114]
call fcn.00409c3c
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x42a360]
call fcn.00415158
call fcn.004058e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4387ad
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406b34
ret

Function at 0x438a94
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x438ae2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0043868c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x438afb
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x438b04
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0043868c
dec esi
jne 0x438b26
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x43a734
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4aef94
cmp dword [edi], 0
jne 0x43a7b0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4aef90]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4a7fdc
mov ecx, 2
call fcn.0040438c
mov edx, 0x43a70c
lea eax, [esi + 5]
call fcn.0043a72c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0043a72c
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x43a785
mov dword [0x4aef90], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x43c838
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.0043c06c
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00406bc8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.0043c134
test al, al
jne 0x43c8a0
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4a9074]
mov dl, 1
mov eax, dword [0x43ae1c]
call fcn.00415250
call fcn.004058e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x43c8ac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00406bc8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.0043c134
test al, al
jne 0x43c90d
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4a92a4]
mov dl, 1
mov eax, dword [0x43ae1c]
call fcn.00415250
call fcn.004058e0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0043c09c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x441098
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x44109e
ret
Function at 0x44be38
Capabilities:
Suspend thread

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe4
mov edi, eax
xor ebx, ebx
xor edx, edx
mov eax, 4
call fcn.0044b8f0
mov ebp, eax
cmp ebp, 0xffffffff
je 0x44bea4
mov dword [esp], 0x1c
push esp
push ebp
call fcn.0044b950
cmp edi, dword [esp + 0xc]
jne 0x44be8d
mov eax, dword [esp + 8]
push eax
push 0
push 2
call sub.kernel32.dll_OpenThread
mov esi, eax
cmp esi, 0xffffffff
je 0x44be8d
mov bl, 1
push esi
call sub.kernel32.dll_SuspendThread
push esi
call sub.kernel32.dll_CloseHandle_1
push esp
push ebp
call fcn.0044b974
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x44be64
push ebp
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
add esp, 0x1c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x44beb0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
push edi
mov dword [ebp - 0x12c], 0x114
lea eax, [ebp - 0x12c]
push eax
call sub.kernel32.dll_GetVersionExW
cmp dword [ebp - 0x11c], 1
je 0x44bf7f
xor eax, eax
push ebp
push 0x44bf75
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
push 0x20
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x14]
push eax
push 0x44bf88
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push ebx
call sub.advapi32.dll_AdjustTokenPrivileges
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x44bf7f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44c494
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00406b24
xor eax, eax
push ebp
push 0x44c4e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0044bde4
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push 0
push eax
call sub.kernel32.dll_TerminateProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c4e8
lea eax, [ebp - 4]
call fcn.00406b2c
ret

Function at 0x45a28c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
mov edi, eax
test bl, bl
je 0x45a2ad
test edi, 0x40000
je 0x45a2c7
test bl, bl
jne 0x45a348
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x45a348
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x45a2fa
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x45a30f
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x45a31e
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x45a32f
cmp byte [esp + 2], 0
je 0x45a348
cmp byte [esp + 2], 0
je 0x45a340
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x45a348
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x45a5f4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x45a61a
mov eax, esp
push eax
push 0x45a5bc
call sub.user32.dll_EnumWindows
jmp 0x45a62d
mov eax, esp
push eax
push 0x45a59c
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x45a6f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x45a740]
test bl, 4
je 0x45a704
or si, 1
test bl, 8
je 0x45a70d
or si, 4
test bl, 1
je 0x45a716
or si, 8
test bl, 2
je 0x45a71f
or si, 0x10
test bl, 0x10
je 0x45a728
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45a738
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x45a744
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x45a780]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45a75f
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45a76f
or bx, 4
test esi, 0x20000000
je 0x45a77b
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret