joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409488
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.00406c08
xor eax, eax
push ebp
push 0x4096ad
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4094c8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4094e2
push 0x105
mov eax, dword [ebp - 4]
call fcn.004076c4
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409697
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4096bc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4095b1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4096bc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4095b1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4096f8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4095b1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4096f8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4095b1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40972c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4095b1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409760
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409697
xor eax, eax
push ebp
push 0x409690
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409294
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 0x409620
mov eax, dword [ebp - 0x10]
call fcn.0040451c
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.0040772c
jmp 0x40966b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4097a0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40966b
mov eax, dword [ebp - 0x10]
call fcn.0040451c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4097a0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040772c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409697
cmp dword [ebp - 8], 0
je 0x409686
mov eax, dword [ebp - 8]
call fcn.00404538
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 0x4096b4
lea eax, [ebp - 4]
call fcn.00406b24
ret
Function at 0x409990
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406c08
xor eax, eax
push ebp
push 0x409a50
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407768
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407918
mov eax, dword [ebx]
call fcn.00409858
test al, al
jne 0x409a2d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407768
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407918
mov eax, dword [ebx]
call fcn.00409858
test al, al
jne 0x409a2d
mov eax, ebx
call fcn.00406b24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a57
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406b84
lea eax, [ebp - 4]
call fcn.00406b24
ret

Function at 0x40a3cc
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 0x41b914
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41b96d
test eax, edx
je 0x41b970
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41b92b
movzx eax, word [eax]
sub eax, ecx
jmp 0x41b952
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 0x41b953
add ecx, 4
js 0x41b943
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41b950
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41b952
xor eax, eax
ret
test eax, eax
je 0x41b97c
test edx, edx
jne 0x41b91c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x41c0e8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, edx
mov ebp, eax
mov byte [esp], 0
mov eax, ebp
test eax, eax
je 0x41c100
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x41c108
mov al, 1
jmp 0x41c125
movzx esi, word [ebp]
mov eax, esi
call fcn.0040e1c4
test al, al
jne 0x41c121
cmp si, 0x5f
je 0x41c121
xor eax, eax
jmp 0x41c123
mov al, 1
xor al, 1
test al, al
jne 0x41c1b5
test bl, bl
je 0x41c175
mov eax, ebp
test eax, eax
je 0x41c13c
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x41c1b1
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.0040e250
test al, al
jne 0x41c169
cmp di, 0x5f
je 0x41c169
cmp di, 0x2e
je 0x41c169
xor eax, eax
jmp 0x41c16b
mov al, 1
test al, al
je 0x41c1b5
inc esi
dec ebx
jne 0x41c149
jmp 0x41c1b1
mov eax, ebp
test eax, eax
je 0x41c180
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x41c1b1
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.0040e250
test al, al
jne 0x41c1a7
cmp di, 0x5f
je 0x41c1a7
xor eax, eax
jmp 0x41c1a9
mov al, 1
test al, al
je 0x41c1b5
inc esi
dec ebx
jne 0x41c18d
mov byte [esp], 1
movzx eax, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.004076c4
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41ccf2
test ah, 4
je 0x41cceb
test bl, bl
jne 0x41ccb0
mov al, 1
jmp 0x41cd19
test al, 0x10
je 0x41ccb8
xor eax, eax
jmp 0x41cd19
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41ccdc
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41cd19
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41cd19
test al, 0x10
sete al
jmp 0x41cd19
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x41cd13
cmp ebx, 3
je 0x41cd13
cmp ebx, 0x7b
je 0x41cd13
mov eax, esi
call fcn.0041cc48
test al, al
jne 0x41cd17
xor eax, eax
jmp 0x41cd19
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x41cd20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.004076c4
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41cdc7
test esi, 0x400
jne 0x41cd5c
test esi, 0x10
setne bl
jmp 0x41cde6
cmp byte [esp], 0
je 0x41cd90
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41cde6
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x41cde6
test esi, 0x10
je 0x41cd9c
mov bl, 1
jmp 0x41cde6
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x41cdc3
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x41cde6
mov bl, 1
jmp 0x41cde6
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x41cde0
cmp eax, 3
je 0x41cde0
cmp eax, 0x7b
je 0x41cde0
cmp eax, 0x35
jne 0x41cde4
xor ebx, ebx
jmp 0x41cde6
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x420cc4
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 0x420cfd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406c8c
jmp 0x420d06
mov eax, ebx
mov edx, esi
call fcn.00406ee4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x420d10
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 0x420d32
movzx eax, word [esp]
jmp 0x420d34
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4219f8
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 0x421b1d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00421800
mov esi, eax
mov eax, dword [0x5a2040]
cmp byte [eax], 0
je 0x421ac5
mov eax, dword [0x5a1a6c]
call fcn.00404a80
call fcn.00404690
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 [0x4219c8]
call fcn.00408888
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 0x421b38
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x421b01
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x5a199c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5a5c50]
call fcn.0040897c
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 0x421b24
lea eax, [ebp - 4]
mov edx, dword [0x4219c8]
call fcn.00408894
ret

Function at 0x4227e0
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 0x4228b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406f2c
lea eax, [ebp - 4]
call fcn.004070cc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004076c4
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4228a0
mov eax, ebx
call fcn.0040451c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x422899
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.004076c4
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x422883
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4228c8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x422883
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 0x4228a0
mov eax, dword [ebp - 0x10]
call fcn.00404538
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4228bd
lea eax, [ebp - 4]
call fcn.00406b24
ret
Function at 0x4233a8
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.0040700c
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040a3ac
mov edi, eax
cmp edi, 0x104
jbe 0x42334f
mov eax, edi
add eax, eax
call fcn.0040451c
mov esi, eax
jmp 0x423351
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040a3ac
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42338c
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 0x423376
mov eax, esp
cmp esi, eax
je 0x423399
mov eax, esi
call fcn.00404538
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 0x4233d4
cmp bl, 0
je 0x4233d0
cmp bl, 0x41
jl 0x4233cb
cmp bl, 0x5a
jg 0x4233cb
or bl, 0x20
xor al, bl
inc esi
jmp 0x4233af
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x423310

Function at 0x423bd4
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00407768
add esp, 0x800
pop ebx
ret

Function at 0x423f1c
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00406b24
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.004076c4
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x423f61
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00406c8c
jmp 0x423f7a
mov edx, ebx
dec edx
mov eax, esi
call fcn.00407840
push ebx
mov eax, dword [esi]
call fcn.004076c4
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x44b040
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x44b0de
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x44b0a2
cmp byte [ebx + 0x10], 0
jne 0x44b0a2
cmp byte [ebx + 0x3c], 0
jne 0x44b0a2
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 0x44b0c3
lea edx, [ebp - 4]
mov eax, dword [0x5a1f64]
call fcn.0040a318
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x43a758]
call fcn.00421b68
call fcn.0040621c
jmp 0x44b0c3
lea edx, [ebp - 8]
mov eax, dword [0x5a1f64]
call fcn.0040a318
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x43a758]
call fcn.00421b68
call fcn.0040621c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44b0e5
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406b84
ret
Function at 0x44b5c0
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 0x44b60e
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.0044af78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x44b627
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x44b630
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.0044af78
dec esi
jne 0x44b652
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x44d72c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5a7fc0
cmp dword [edi], 0
jne 0x44d7a8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x5a7fbc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5997fc
mov ecx, 2
call fcn.004046e0
mov edx, 0x44d704
lea eax, [esi + 5]
call fcn.0044d724
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0044d724
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 0x44d77d
mov dword [0x5a7fbc], 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 0x4502f8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x45034a
test eax, edx
je 0x45034d
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x45030d
movzx eax, byte [eax]
sub eax, ecx
ret
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]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x450333
add ecx, 4
js 0x450323
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x450330
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x450359
test edx, edx
jne 0x450300
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x453f78
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x454030
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.00453f0c
test al, al
je 0x454012
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406c8c
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x454012
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004076c4
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov eax, dword [ebp - 4]
call fcn.004076c4
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040772c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x453fcb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454037
lea eax, [ebp - 0x2c]
call fcn.00406b24
lea eax, [ebp - 4]
call fcn.00406b24
ret

Function at 0x4542e0
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.004076c4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.00453c84
test al, al
jne 0x454341
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5a2378]
mov dl, 1
mov eax, dword [0x4529c0]
call fcn.00421c60
call fcn.0040621c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00453bec
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 0x45b4f0
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 0x45b4f6
ret
Function at 0x475294
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x5a81b0], 0
je 0x4753d5
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x5a1ef8]
mov edx, dword [edx]
xor al, byte [edx + 0xc0]
je 0x4753d5
mov eax, dword [0x5a81b4]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x5a81b0]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4753a4
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x5a81b0]
call fcn.0043f9b0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x47539c
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1f2], 0
je 0x47539c
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x68]
test al, al
je 0x47539c
mov eax, dword [ebp - 0x14]
call fcn.00480a4c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x47539c
push ebp
call fcn.00475250
pop ecx
test al, al
jne 0x47539c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffba
call fcn.0040520c
test al, al
je 0x47539c
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.0040520c
cmp byte [ebp - 1], 0
je 0x47539c
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.0040ba1c
test al, al
je 0x47539c
mov edx, dword [ebp - 0x14]
mov eax, dword [0x5a81b4]
call fcn.004749b0
inc edi
dec ebx
jne 0x4752f9
mov eax, dword [0x5a81b4]
cmp dword [eax + 8], 0
jle 0x4753bc
mov eax, dword [0x5a81b4]
call fcn.00474a68
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4753d5
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004750b8
pop ecx
test al, al
jne 0x4753d5
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret