joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10252e54
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x1025bc38], 0
mov dword [0x1025bc3c], 0
mov dword [0x1025bc48], 0
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
jne 0x10252eb1
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add eax, 1
mov edi, ecx
add edi, 1
mov dword [0x1025bc30], 0x1e8a
mov dword [ebp - 0x2c], edx
cdq
idiv esi
mov dword [0x1025bc38], edx
mov ebx, dword [ebp - 0x20]
movzx ebx, byte [ebx + edx]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x2c]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x1025bc3c], edx
mov dword [0x1025bc30], 0x40c5
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x1025bc40], cl
mov dword [0x1025bc34], 0x471
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x1025bc40]
mov edx, dword [0x1025bc3c]
mov byte [ebx + edx], cl
mov edx, dword [0x1025bc38]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x1025bc3c]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x1025bc48], ecx
mov dword [0x1025bc30], 0x1cd9
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x30]
mov ch, byte [edx + esi]
mov dword [0x1025bc34], 0xbad
mov dword [0x1025bc30], 0x1439
xor ch, cl
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x38], edi
je 0x10252ea9
mov eax, dword [0x1025bc38]
mov ecx, dword [0x1025bc3c]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jmp 0x10252eb1
Function at 0x10252fb8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x80]
lea ecx, [esp + 0x20]
mov dword [0x1025bc30], 0x20bf
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.1025265d
lea ecx, [0x1025297e]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x24], edx
mov dword [esp + 0x4c], 0x129000
mov edx, dword [0x1025bc1c]
mov dword [esp + 0x3c], edx
mov edx, dword [0x1025bc20]
mov dword [esp + 0x44], edx
mov edx, dword [0x1025bc24]
mov dword [esp + 0x5c], edx
mov edx, dword [0x1025bc28]
mov dword [esp + 0x30], edx
mov edx, dword [0x1025bc2c]
mov dword [esp + 0x6c], edx
mov dword [0x1025bc30], 0x212d
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x10253099
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x102530bc
jmp 0x102530a8
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10252118
mov ecx, esp
lea edx, [esp + 0x20]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x1025bc30], 0x1ed4
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
je 0x10253044
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x10253099
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], eax
mov dword [0x1025bc34], 0x1fcc
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x54], edx
call fcn.10252259
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
je 0x1025305a
jmp 0x10253091

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40347c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.004060dc
test esi, esi
jne 0x4034b4
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406218
jmp 0x4034d2
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403360
mov edi, eax
test esi, esi
je 0x4034d2
cmp dword [ebx], 0
je 0x4034d2
dec esi
jmp 0x4034bb
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x403a6c
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ecx, ecx
mov ebx, eax
mov cx, word [eax + 4]
sub ecx, 0xd7b1
je 0x403a82
sub ecx, 2
jne 0x403aa4
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x403aab
cmp edx, dword [ebx + 8]
je 0x403ab5
mov eax, 0x64
jmp 0x403ab0
mov eax, 0x67
jmp 0x403ab0
call sub.kernel32.dll_GetLastError
call fcn.00403224
pop ebx
ret

Function at 0x40403c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x515020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4040d4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4040b4
xor eax, eax
push ebp
push 0x4040ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40410c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4040b4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x515020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x515020], ax
mov esp, ebp
pop ebp
ret

Function at 0x40523c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x521054], 0
je 0x40529d
cmp word [0x521330], 0xd7b2
jne 0x405265
cmp dword [0x521338], 0
jbe 0x405265
mov eax, 0x52132c
call dword [0x521348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4052c8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x515030], 0
jne 0x4052b9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405468
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x515038], 0
je 0x40548e
mov edx, esi
mov eax, ebx
call dword [0x515038]
jmp 0x40549d
mov eax, 8
call fcn.0040309c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x521055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405430
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc

Function at 0x406bfc
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x406c3e
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x406c5e
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.004062ec
add esp, 0x41c
pop esi
pop ebx
ret
Function at 0x40add0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x523b70
push 0xa
push 0x40ae64
mov eax, dword [0x523b50]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40adf4
call fcn.004140d8
push ebx
mov eax, dword [0x523b50]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40ae0b
call fcn.004140d8
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40ae1d
call fcn.004140d8
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x523b74], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x523b78], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x523b7c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x523b80], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x523b84], ecx
add edx, dword [eax + 0x14]
mov dword [0x523b88], edx
pop esi
pop ebx
ret

Function at 0x40c810
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40c8b9
test eax, edx
je 0x40c8bc
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40c839
push edx
mov edx, eax
mov eax, esp
call fcn.00406308
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40c84f
push eax
lea eax, [esp + 8]
call fcn.00406308
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40c85e
movzx eax, word [eax]
sub eax, ecx
jmp 0x40c885
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 0x40c89f
add ecx, 4
js 0x40c876
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40c89c
push eax
mov eax, ecx
mov edx, 2
call fcn.00405508
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40c883
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40c885
xor eax, eax
ret
test eax, eax
je 0x40c8cc
test edx, edx
jne 0x40c820
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406168
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40d9be
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x40d9df
cmp ebx, 3
je 0x40d9df
cmp ebx, 0x7b
je 0x40d9df
mov eax, esi
call fcn.0040d960
test al, al
jne 0x40d9e3
xor eax, eax
jmp 0x40d9e5
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406168
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40da01
test al, 0x10
jne 0x40da05
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40dbfc
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406168
push eax
call sub.kernel32.dll_GetFileAttributesW
pop ebx
ret
Function at 0x40dc10
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00406168
push eax
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x40dc32
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x4116e8
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 0x411721
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406218
jmp 0x41172a
mov eax, ebx
mov edx, esi
call fcn.004060dc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x411734
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 0x411756
movzx eax, word [esp]
jmp 0x411758
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x411ee0
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 0x412005
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00411cf4
mov esi, eax
mov eax, dword [0x5203e4]
cmp byte [eax], 0
je 0x411fad
mov eax, dword [0x520094]
call fcn.00403894
call fcn.00403204
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 [0x411ebc]
call fcn.00407d50
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 0x412020
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x411fe9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x520018]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x523b50]
call fcn.00407e44
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 0x41200c
lea eax, [ebp - 4]
mov edx, dword [0x411ebc]
call fcn.00407d5c
ret
Function at 0x412c64
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 0x412d3a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406130
lea eax, [ebp - 4]
call fcn.00406b5c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406168
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x412d24
mov eax, ebx
call fcn.0040309c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x412d1d
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.00406168
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x412d07
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x412d4c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x412d07
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 0x412d24
mov eax, dword [ebp - 0x10]
call fcn.004030b8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412d41
lea eax, [ebp - 4]
call fcn.004060cc
ret

Function at 0x413f07
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.00405878
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 0x413f2a
mov eax, edi
add eax, eax
call fcn.0040309c
mov esi, eax
jmp 0x413f2c
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 0x413f65
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 0x413f4f
mov eax, esp
cmp esi, eax
je 0x413f72
mov eax, esi
call fcn.004030b8
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 0x413fac
cmp bl, 0
je 0x413fa8
cmp bl, 0x41
jl 0x413fa3
cmp bl, 0x5a
jg 0x413fa3
or bl, 0x20
xor al, bl
inc esi
jmp 0x413f87
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x413eec

Function at 0x4291f8
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.00428ed0
dec esi
jne 0x42921a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x42a3c4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x525ea4
cmp dword [edi], 0
jne 0x42a440
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x525ea0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x515e14
mov ecx, 2
call fcn.00403260
mov edx, 0x42a39c
lea eax, [esi + 5]
call fcn.0042a3bc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042a3bc
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 0x42a415
mov dword [0x525ea0], 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 0x42d328
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.00406168
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x42d380
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5205c0]
mov dl, 1
mov eax, dword [0x42cda8]
call fcn.00412150
call fcn.00404c60
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042cf30
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 0x42e6c8
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 0x42e6ce
ret
Function at 0x45595c
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004060c4
xor eax, eax
push ebp
push 0x455af1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x455abf
xor edx, edx
push ebp
push 0x455ab8
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00406130
mov eax, dword [ebp - 8]
test eax, eax
je 0x4559cb
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4559cb
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.004056d0
test eax, eax
je 0x4559d4
sub eax, 4
mov eax, dword [eax]
add eax, eax
add eax, 2
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x455a8d
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor edx, edx
push ebp
push 0x455a7c
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00406130
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x455a36
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x455a36
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.004056d0
test eax, eax
je 0x455a3f
sub eax, 4
mov eax, dword [eax]
mov esi, eax
add esi, esi
mov eax, dword [ebp - 4]
call fcn.00406168
lea ecx, [esi + 2]
mov edx, ebx
call fcn.00403260
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 0x10]
push eax
push 0xd
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455a83
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x51ff4c]
mov dl, 1
mov eax, dword [0x40b10c]
call fcn.00412114
call fcn.00404c60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455af8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004060d4
ret

Function at 0x4581ec
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.004060dc
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x458233
push pe_nt_image_headers32
lea edx, [esp + 4]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.004062ec
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x45d64c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45d785
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x42ce1c]
call fcn.0042cf58
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x45d75b
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0042cff8
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.004062ec
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x45d7a0
call fcn.004065c0
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0042d05c
test al, al
je 0x45d745
lea ecx, [ebp - 4]
mov edx, 0x45d814
mov eax, dword [ebp - 0xc]
call fcn.0042d2a8
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00414754
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x45d73e
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x45d82c
mov eax, dword [ebp - 8]
push eax
call fcn.004092a0
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x51a320]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d745
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d762
mov eax, dword [ebp - 0xc]
call fcn.0040426c
ret

Function at 0x45d890
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x45d8d7
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45d8ba
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45d8cb
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x45d8d7
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret