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

Disassembly:
sub esp, 8
cmp dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov cl, byte [eax]
mov dl, byte [eax + 1]
mov dword [esp + 4], 0
jle 0x402c2b
push ebx
push ebp
push esi
push edi
movzx edi, cl
movzx ebp, dl
lea esp, [esp]
lea eax, [edi + 1]
cdq
mov ecx, 0x317
idiv ecx
mov esi, dword [0x4351f4]
mov ebx, 0x317
movzx edi, dl
movzx eax, byte [edi + esi]
lea ecx, [edi + esi]
add eax, ebp
mov byte [esp + 0x12], dl
cdq
idiv ebx
movzx ebp, dl
lea eax, [esi + ebp]
mov byte [esp + 0x13], dl
call fcn.004018b0
mov ecx, dword [0x4351f4]
movzx edx, byte [edi + ecx]
movzx eax, byte [ecx + ebp]
add eax, edx
cdq
mov ecx, ebx
idiv ecx
push 0x428480
push 0x437bc8
mov byte [esp + 0x19], dl
call fcn.004027d0
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.004029e0
mov edx, dword [esi]
mov eax, dword [edx + 4]
add eax, esi
xor ebx, ebx
test byte [eax + 8], 6
jne 0x402bd3
mov eax, dword [eax + 0x28]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
cmp eax, 0xffffffff
jne 0x402bd3
mov ebx, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test ebx, ebx
je 0x402bf4
mov eax, dword [ecx + 8]
or eax, ebx
cmp dword [ecx + 0x28], 0
jne 0x402bec
or eax, 4
push 0
push eax
call fcn.00402430
movzx edx, byte [esp + 0x11]
mov eax, dword [0x4351f4]
mov dl, byte [edx + eax]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
xor byte [eax + ecx], dl
inc eax
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
jl 0x402b40
mov cl, byte [esp + 0x12]
mov eax, dword [esp + 0x24]
mov dl, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
mov byte [eax + 1], dl
mov byte [eax], cl
add esp, 8
ret
Function at 0x40fb1e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x433bb0]
jne 0x40fb28
repz ret
jmp fcn.00414afc

Function at 0x41bb07
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004144e6
and dword [ebp - 4], 0
cmp dword [0x437af4], 0
mov ebx, eax
jne 0x41bbb8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41bc69
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42b738
push edi
call esi
test eax, eax
je 0x41bc69
push eax
call fcn.00414474
mov dword [esp], 0x42b728
push edi
mov dword [0x437af4], eax
call esi
push eax
call fcn.00414474
mov dword [esp], 0x42b714
push edi
mov dword [0x437af8], eax
call esi
push eax
call fcn.00414474
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x437afc], eax
call esi
push eax
call fcn.00414474
pop ecx
mov dword [0x437b04], eax
test eax, eax
je 0x41bbb8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00414474
pop ecx
mov dword [0x437b00], eax
mov eax, dword [0x437b00]
cmp eax, ebx
je 0x41bc10
cmp dword [0x437b04], ebx
je 0x41bc10
push eax
call fcn.004144ef
push dword [0x437b04]
mov esi, eax
call fcn.004144ef
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41bc10
test edi, edi
je 0x41bc10
call esi
test eax, eax
je 0x41bc07
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41bc07
test byte [ebp - 0xc], 1
jne 0x41bc10
or dword [ebp + 0x10], 0x200000
jmp 0x41bc49
mov eax, dword [0x437af8]
cmp eax, ebx
je 0x41bc49
push eax
call fcn.004144ef
pop ecx
test eax, eax
je 0x41bc49
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41bc49
mov eax, dword [0x437afc]
cmp eax, ebx
je 0x41bc49
push eax
call fcn.004144ef
pop ecx
test eax, eax
je 0x41bc49
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x437af4]
call fcn.004144ef
pop ecx
test eax, eax
je 0x41bc69
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41bc6b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41e004]
jne 0x40100a
repz ret
jmp fcn.00401ac6

Function at 0x4068bb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004026f6
and dword [ebp - 0x14], 0
cmp dword [0x420620], 0
mov dword [ebp - 0x18], eax
jne 0x40696e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406a16
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x406a16
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x420620], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x420624], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x420628], eax
call edi
push eax
call esi
mov dword [0x420630], eax
test eax, eax
je 0x40696e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42062c], eax
mov eax, dword [0x42062c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4069c7
cmp dword [0x420630], ecx
je 0x4069c7
push eax
call esi
push dword [0x420630]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4069c7
test ebx, ebx
je 0x4069c7
call edi
test eax, eax
je 0x4069be
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4069be
test byte [ebp - 8], 1
jne 0x4069c7
or dword [ebp + 0x10], 0x200000
jmp 0x4069fa
mov eax, dword [0x420624]
cmp eax, dword [ebp - 0x18]
je 0x4069fa
push eax
call esi
test eax, eax
je 0x4069fa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4069fa
mov eax, dword [0x420628]
cmp eax, dword [ebp - 0x18]
je 0x4069fa
push eax
call esi
test eax, eax
je 0x4069fa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x420620]
call esi
test eax, eax
je 0x406a16
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406a18
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x41a3b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [0x421ecc]
mov edx, dword [0x421d18]
lea eax, [ebp - 4]
push eax
push 0x40
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret
Function at 0x41a470
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80c], eax
cmp ebx, 0x19f
jne 0x41a4aa
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push edi
xor edi, edi
test ebx, ebx
jle 0x41a503
push esi
jmp 0x41a4c0
lea esi, [ebp - 0x808]
mov dword [ebp - 0x808], 0
call fcn.0041a460
mov cl, byte [ebp - 0x808]
mov eax, dword [ebp - 0x80c]
xor byte [eax + edi], cl
cmp ebx, 0xf
jne 0x41a4fd
lea edx, [ebp - 0x810]
push edx
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
inc edi
cmp edi, ebx
jl 0x41a4c0
pop esi
pop edi
cmp ebx, 0x2d
jne 0x41a51d
mov dword [0x422000], 0xa62e7790
mov dword [0x422004], 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x41a530
Capabilities:
Get disk information

Disassembly:
mov eax, dword [0x421ecc]
push ebx
push esi
mov esi, dword [0x421d18]
mov ebx, eax
cmp eax, 0x5dd
jne 0x41a552
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov eax, dword [0x41f1d0]
call fcn.0041a430
cmp dword [0x421ecc], 0x2f
jne 0x41a56d
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push esi
call fcn.0041a470
add esp, 4
cmp dword [0x421ecc], 0x568
pop esi
pop ebx
jne 0x41a598
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaHighestNodeNumber]
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x7c7820b8
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x42e0d2
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x546b46de
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x403954
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x480020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4039ec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4039cc
xor eax, eax
push ebp
push 0x4039c5
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 0x403a24
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 0x4039cc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x480020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x480020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404ad4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x482050], 0
je 0x404b35
cmp word [0x48232c], 0xd7b2
jne 0x404afd
cmp dword [0x482334], 0
jbe 0x404afd
mov eax, 0x482328
call dword [0x482344]
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 0x404b60
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48002c], 0
jne 0x404b51
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404cb4
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 [0x480030], 0
je 0x404cda
mov edx, esi
mov eax, ebx
call dword [0x480030]
jmp 0x404ce9
mov eax, 8
call fcn.00402f9c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x482051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404c7c
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 0x408b28
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x484b2c
push 0xa
push 0x408bbc
mov eax, dword [0x484b1c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x408b4c
call fcn.0041072c
push ebx
mov eax, dword [0x484b1c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x408b63
call fcn.0041072c
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x408b75
call fcn.0041072c
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x484b30], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x484b34], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x484b38], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x484b3c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x484b40], ecx
add edx, dword [eax + 0x14]
mov dword [0x484b44], edx
pop esi
pop ebx
ret

Function at 0x40a1dc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40a285
test eax, edx
je 0x40a288
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40a205
push edx
mov edx, eax
mov eax, esp
call fcn.004056bc
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40a21b
push eax
lea eax, [esp + 8]
call fcn.004056bc
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40a22a
movzx eax, word [eax]
sub eax, ecx
jmp 0x40a251
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 0x40a26b
add ecx, 4
js 0x40a242
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40a268
push eax
mov eax, ecx
mov edx, 2
call fcn.00404d54
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40a24f
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40a251
xor eax, eax
ret
test eax, eax
je 0x40a298
test edx, edx
jne 0x40a1ec
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40e240
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 0x40e279
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405624
jmp 0x40e282
mov eax, ebx
mov edx, esi
call fcn.004054e8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40e28c
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 0x40e2ae
movzx eax, word [esp]
jmp 0x40e2b0
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40ea14
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffff004
push eax
add esp, 0xffffff7c
push 0x800
lea ecx, [esp + 0x88]
call fcn.0040e84c
mov eax, dword [0x481d4c]
cmp byte [eax], 0
je 0x40eaa6
mov eax, dword [0x481b14]
call fcn.004033c0
call fcn.00403104
lea eax, [esp + 0x884]
push eax
lea eax, [esp + 0x88]
push eax
call sub.user32.dll_CharToOemW
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x88c]
call fcn.0040b128
push eax
lea eax, [esp + 0x890]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40eaf4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40eadf
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x481abc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x484b1c]
call fcn.004065f0
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x8c]
push eax
push 0
call sub.user32.dll_MessageBoxW
add esp, 0x1084
ret

Function at 0x40f6bc
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 0x40f792
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040553c
lea eax, [ebp - 4]
call fcn.00405db8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405574
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x40f77c
mov eax, ebx
call fcn.00402f9c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40f775
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.00405574
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x40f75f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40f7a4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x40f75f
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 0x40f77c
mov eax, dword [ebp - 0x10]
call fcn.00402fb8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f799
lea eax, [ebp - 4]
call fcn.004054d8
ret
Function at 0x41055b
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.00404ff0
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 0x41057e
mov eax, edi
add eax, eax
call fcn.00402f9c
mov esi, eax
jmp 0x410580
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 0x4105b9
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 0x4105a3
mov eax, esp
cmp esi, eax
je 0x4105c6
mov eax, esi
call fcn.00402fb8
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 0x410600
cmp bl, 0
je 0x4105fc
cmp bl, 0x41
jl 0x4105f7
cmp bl, 0x5a
jg 0x4105f7
or bl, 0x20
xor al, bl
inc esi
jmp 0x4105db
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x410540

Function at 0x41ff50
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.0041fc54
dec esi
jne 0x41ff72
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x42111c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x486e60
cmp dword [edi], 0
jne 0x421198
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x486e5c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x480c54
mov ecx, 2
call fcn.00403154
mov edx, 0x4210f4
lea eax, [esi + 5]
call fcn.00421114
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00421114
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 0x42116d
mov dword [0x486e5c], 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 0x423f2c
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.00405574
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x423f84
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x481e74]
mov dl, 1
mov eax, dword [0x4239b4]
call fcn.0040ebf0
call fcn.00404558
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00423b3c
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 0x424ec4
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 0x424eca
ret
Function at 0x4340b8
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.004054e8
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x4340ff
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.004056a0
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x439518
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 0x439651
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 [0x423a28]
call fcn.00423b64
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x439627
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.00423c04
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.004056a0
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x43966c
call fcn.00405874
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.00423c68
test al, al
je 0x439611
lea ecx, [ebp - 4]
mov edx, 0x4396e0
mov eax, dword [ebp - 0xc]
call fcn.00423eb4
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00410da8
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x43960a
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4396f8
mov eax, dword [ebp - 8]
push eax
call fcn.004079f8
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x4816bc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x439611
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 0x43962e
mov eax, dword [ebp - 0xc]
call fcn.00403b7c
ret

Function at 0x43975c
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 0x4397a3
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x439786
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x439797
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x4397a3
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret