joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476e60
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47700b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x476fec
mov dl, 1
mov eax, dword [0x41aed8]
call fcn.00403e68
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404ce8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x476fdb
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004640a8
test al, al
je 0x476fce
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x47701c
lea eax, [ebp - 0x254]
call fcn.0040ab00
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x476fce
xor eax, eax
push ebp
push 0x476fc7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x477054
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x476fb0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404f58
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x476fb0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404f58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476fce
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x476ed1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0042008c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477012
lea eax, [ebp - 0x260]
call fcn.00404ce8
ret

Function at 0x477a1c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x534bf4]
cmp byte [eax + 0xa5], 0
jne 0x477a8d
cmp dword [0x534c0c], 0
jne 0x477a4e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4779d8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x534c0c], eax
cmp dword [0x534c08], 0
jne 0x477a69
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x534c08], eax
cmp dword [0x534c10], 0
jne 0x477a8d
push esp
push 0
push 0
push 0x47797c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x534c10], eax
pop edx
ret
Function at 0x478120
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x534bf4]
cmp dword [eax + 0x30], 0
je 0x4781ca
cmp dword [ebx + 0x94], 0
jne 0x4781c4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4780b0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4781c4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x47818a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4781c4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041d200
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x478199
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x478d28
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x478d5d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404dd8
jmp 0x478d6a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404d3c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x479eb4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x479ef5
mov eax, esi
call fcn.0045f64c
test al, al
je 0x479ef5
mov eax, dword [ebx + 0x84]
call fcn.0045f348
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x479ef5
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045f348
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x47a798
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405198
xor eax, eax
push ebp
push 0x47a819
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404fa8
mov edi, eax
cmp edi, 1
jl 0x47a803
mov eax, dword [ebp - 8]
dec eax
test eax, eax
jl 0x47a7fe
inc eax
mov dword [ebp - 0xc], eax
xor ebx, ebx
mov eax, dword [ebp - 4]
mov dl, byte [eax + edi - 1]
mov al, byte [esi + ebx]
call fcn.0047a790
mov byte [esi + ebx], al
mov eax, dword [ebp - 4]
mov al, byte [eax + edi - 1]
xor byte [esi + ebx], al
inc ebx
dec dword [ebp - 0xc]
jne 0x47a7dc
dec edi
test edi, edi
jne 0x47a7ce
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a820
lea eax, [ebp - 4]
call fcn.00404ce8
ret
Function at 0x48741c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x487424
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x487616
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x48762c
mov eax, esi
call fcn.004851ac
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404d3c
lea ecx, [ebp - 0x10]
mov edx, 0x487640
mov eax, esi
call fcn.004851ac
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404d3c
lea ecx, [ebp - 0x14]
mov edx, 0x487658
mov eax, esi
call fcn.004851ac
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404d3c
lea ecx, [ebp - 0x18]
mov edx, 0x487674
mov eax, esi
call fcn.004851ac
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404d3c
lea ecx, [ebp - 0x1c]
mov edx, 0x487690
mov eax, esi
call fcn.004851ac
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404d3c
lea ecx, [ebp - 0x24]
mov edx, 0x4876a8
mov eax, esi
call fcn.004851ac
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.004096f4
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00409c34
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x4876c0
mov eax, esi
call fcn.004851ac
mov eax, dword [ebp - 0x28]
call fcn.0048428c
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4876d0
mov eax, esi
call fcn.004851ac
mov eax, dword [ebp - 0x2c]
call fcn.0048428c
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4876e8
mov eax, esi
call fcn.004851ac
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00409c34
inc eax
je 0x4875b9
lea ecx, [ebp - 0x34]
mov edx, 0x4876e8
mov eax, esi
call fcn.004851ac
mov eax, dword [ebp - 0x34]
call fcn.00409bf8
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040b4ac
fstp qword [ebp - 0x3c]
wait
call fcn.0040b88c
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x4875d4
lea ecx, [ebp - 0x40]
mov edx, 0x4876e8
mov eax, esi
call fcn.004851ac
mov eax, dword [ebp - 0x40]
call fcn.0048428c
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x4876f8
mov eax, esi
call fcn.004851ac
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404d3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48761d
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00404d0c
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00404d0c
ret
Function at 0x4938b4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x49390e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004938a4
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.00482ef8
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00482af8
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x493915
lea eax, [ebp - 4]
call fcn.00404ce8
ret
Function at 0x4978e4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405198
xor eax, eax
push ebp
push 0x497962
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404ce8
mov eax, dword [ebp - 4]
call fcn.00404fa8
mov ebx, eax
test ebx, ebx
jle 0x497947
mov edi, 1
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
mov dl, byte [edx + edi - 1]
xor dl, 0xff
call fcn.00404ed0
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00404fb0
inc edi
dec ebx
jne 0x497927
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497969
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404d0c
ret

Function at 0x4979c0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov byte [ebp - 1], al
xor eax, eax
mov dword [ebp - 0x1c], eax
mov al, byte [ebp - 1]
mov byte [ebp - 0x15], al
mov byte [ebp - 0x14], 0x3a
mov byte [ebp - 0x13], 0x5c
mov byte [ebp - 0x12], 0
lea eax, [ebp - 0x15]
mov dword [ebp - 0x1c], eax
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GetDiskFreeSpaceExA
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
sub eax, dword [ebp - 0x30]
sbb edx, dword [ebp - 0x2c]
jno 0x497a0c
call fcn.00403dd4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x497d84
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0
cmp dword [ebp - 4], 0xffffffff
je 0x497de3
xor eax, eax
push ebp
push 0x497dd9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 4]
test eax, eax
jns 0x497db6
call fcn.00403dcc
push eax
push 0xffffffffffffffff
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x497de3
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x497f04
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff68
xor edx, edx
mov dword [ebp - 0x98], edx
mov dword [ebp - 0x94], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x497fd5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x8d]
push eax
push 0x81
call sub.kernel32.dll_GetLogicalDriveStringsA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x497fb7
cmp dword [ebp - 8], 0x81
jbe 0x497f76
lea edx, [ebp - 0x94]
mov eax, 0xe
call fcn.0040ce1c
mov ecx, dword [ebp - 0x94]
mov dl, 1
mov eax, dword [0x408754]
call fcn.0040d658
call fcn.00404678
lea eax, [ebp - 0x8d]
mov dword [ebp - 0xc], eax
jmp 0x497faf
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x497fab
lea eax, [ebp - 0x98]
mov edx, dword [ebp - 0xc]
call fcn.00404ee0
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
add dword [ebp - 0xc], 4
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0
jne 0x497f81
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497fdc
lea eax, [ebp - 0x98]
mov edx, 2
call fcn.00404d0c
ret
Function at 0x498314
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe58
xor ecx, ecx
mov dword [ebp - 0x1a8], ecx
mov dword [ebp - 0x1a0], ecx
mov dword [ebp - 0x1a4], ecx
mov dword [ebp - 0x19c], ecx
mov dword [ebp - 0x198], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x498354
xor edx, edx
mov dword [eax], edx
lea eax, [ebp - 0x194]
mov edx, dword [0x408734]
call fcn.004056ac
xor eax, eax
push ebp
push 0x498552
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov eax, dword [0x532c70]
cmp dword [eax], 6
jge 0x4983a1
lea edx, [ebp - 0x198]
mov eax, 0x498568
call fcn.00497a1c
mov eax, dword [ebp - 0x198]
lea edx, [ebp - 0x18]
call fcn.0040f444
jmp 0x4983bf
lea edx, [ebp - 0x19c]
mov eax, 0x498580
call fcn.00497a1c
mov eax, dword [ebp - 0x19c]
lea edx, [ebp - 0x18]
call fcn.0040f444
call fcn.0040b88c
mov eax, dword [ebp - 8]
fstp qword [eax]
wait
push dword [ebp - 0x18]
push 0x498594
lea edx, [ebp - 0x1a4]
mov eax, 0x4985a0
call fcn.00497a1c
push dword [ebp - 0x1a4]
lea eax, [ebp - 0x1a0]
mov edx, 3
call fcn.00405068
mov eax, dword [ebp - 0x1a0]
lea ecx, [ebp - 0x194]
mov edx, 0x2f
call fcn.0040a064
test eax, eax
jne 0x498516
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push dword [ebp - 0x18]
push 0x498594
push dword [ebp - 0x188]
lea eax, [ebp - 0x1a8]
mov edx, 3
call fcn.00405068
mov eax, dword [ebp - 0x1a8]
call fcn.004051a8
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4984f7
push 0
lea eax, [ebp - 0x14]
push eax
push 0x13
lea eax, [ebp - 0x3b]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x4984ee
cmp dword [ebp - 0x14], 0x13
jne 0x4984ee
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x3b]
mov ecx, 0x13
call fcn.00404f58
mov eax, dword [ebp - 0x10]
test eax, eax
jns 0x49849f
call fcn.00403dcc
call fcn.004986cc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x4984bb
mov eax, dword [ebp - 0x20]
call fcn.0040a3bc
fstp qword [ebp - 0x28]
wait
jmp 0x4984c4
call fcn.0040b88c
fstp qword [ebp - 0x28]
wait
fld qword [ebp - 0x28]
mov eax, dword [ebp - 8]
fcomp qword [eax]
fnstsw ax
sahf
jae 0x4984ea
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
call fcn.00404d3c
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x28]
mov dword [eax], edx
mov edx, dword [ebp - 0x24]
mov dword [eax + 4], edx
mov byte [ebp - 9], 1
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
lea eax, [ebp - 0x194]
call fcn.0040a0b4
test eax, eax
je 0x498416
mov eax, dword [ebp - 0x180]
push eax
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498559
lea eax, [ebp - 0x1a8]
mov edx, 5
call fcn.00404d0c
lea eax, [ebp - 0x194]
mov edx, dword [0x408734]
call fcn.0040577c
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404d0c
ret
Function at 0x498d78
Capabilities:
Get disk information
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffad0
mov dword [ebp - 8], eax
call sub.kernel32.dll_GetProcessHeap
mov dword [ebp - 0x28], eax
push 0x400
push 0
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0xff
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x130]
push eax
call sub.kernel32.dll_GetComputerNameA
lea eax, [ebp - 0x330]
xor ecx, ecx
mov edx, 0x200
call fcn.004036fc
mov eax, dword [ebp - 0xc]
sub eax, 1
jae 0x498dd5
call fcn.00403dd4
test eax, eax
jl 0x498e44
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
mov al, byte [ebp + eax - 0x130]
mov byte [ebp - 0x1a], al
xor eax, eax
mov al, byte [ebp - 0x1a]
shr eax, 4
mov al, byte [eax + 0x531de8]
imul edx, dword [ebp - 0x2c], 2
jno 0x498e0a
call fcn.00403dd4
mov byte [ebp + edx - 0x330], al
xor eax, eax
mov al, byte [ebp - 0x1a]
shl eax, 4
mov byte [ebp - 0x1a], al
xor eax, eax
mov al, byte [ebp - 0x1a]
shr eax, 4
mov al, byte [eax + 0x531de8]
imul edx, dword [ebp - 0x2c], 2
jno 0x498e35
call fcn.00403dd4
mov byte [ebp + edx - 0x32f], al
inc dword [ebp - 0x2c]
dec dword [ebp - 0x30]
jne 0x498de4
mov eax, dword [ebp - 0x10]
mov byte [eax], 0x43
mov eax, dword [ebp - 0x10]
mov byte [eax + 1], 0x3a
mov eax, dword [ebp - 0x10]
mov byte [eax + 2], 0x5c
mov eax, dword [ebp - 0x10]
mov byte [eax + 3], 0
push pe_nt_image_headers32
lea eax, [ebp - 0x530]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 4]
push eax
push pe_nt_image_headers32
lea eax, [ebp - 0x430]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x498efd
xor eax, eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
movzx eax, byte [ebp + eax - 4]
shr eax, 4
mov al, byte [eax + 0x531de8]
imul edx, dword [ebp - 0x2c], 2
jno 0x498eb1
call fcn.00403dd4
mov byte [ebp + edx - 0x19], al
mov eax, dword [ebp - 0x2c]
movzx eax, byte [ebp + eax - 4]
shl eax, 4
mov byte [ebp - 0x1a], al
xor eax, eax
mov al, byte [ebp - 0x1a]
shr eax, 4
mov al, byte [eax + 0x531de8]
imul edx, dword [ebp - 0x2c], 2
jno 0x498edc
call fcn.00403dd4
mov byte [ebp + edx - 0x18], al
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], 4
jne 0x498e95
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x19]
push eax
lea eax, [ebp - 0x330]
push eax
call sub.kernel32.dll_lstrcatA
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_HeapFree
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x330]
mov ecx, 0x200
call fcn.00404f58
mov esp, ebp
pop ebp
ret

Function at 0x499a74
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov al, byte [0x499ab8]
mov byte [ebp - 1], al
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x499a90
or byte [ebp - 1], 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x499aa0
or byte [ebp - 1], 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x499ab0
or byte [ebp - 1], 2
mov al, byte [ebp - 1]
pop ecx
pop ebp
ret
Function at 0x49a26c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
push 0
mov eax, dword [0x532f74]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
push 0
mov eax, dword [0x532f74]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
call fcn.0045f348
push eax
call sub.user32.dll_ShowWindow
pop ecx
pop ebp
ret

Function at 0x49cd84
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0042ab40
cmp ebx, dword [ebp - 8]
jge 0x49cde7
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0042af8c
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0042af8c
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.0042afb8
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x49cdad
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x49cdf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0042ab40
cmp ebx, dword [ebp - 8]
jge 0x49ce53
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0042af8c
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0042af8c
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.0042afb8
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x49ce19
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4a0ce4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4a0d90
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, 1
call fcn.00405334
push 0
mov eax, dword [ebp - 8]
call fcn.004051a8
push eax
mov eax, esi
call fcn.004051a8
mov edi, eax
push edi
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov ebx, eax
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00405334
push ebx
mov eax, dword [ebp - 8]
call fcn.004051a8
push eax
push edi
call sub.kernel32.dll_ExpandEnvironmentStringsA
test eax, eax
jle 0x4a0d70
mov eax, dword [ebp - 8]
call fcn.004051a8
call fcn.0040a450
mov edx, eax
lea eax, [ebp - 8]
call fcn.00405334
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00404d3c
jmp 0x4a0d7a
mov eax, dword [ebp - 4]
mov edx, esi
call fcn.00404d3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0d97
lea eax, [ebp - 8]
call fcn.00404ce8
ret