joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4062a8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4064d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40632b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4064d8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40632b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4064f4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4063b4
xor eax, eax
push ebp
push 0x4063ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004060e4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406392
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406514
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406392
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4063b4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4064ce
cmp byte [ebp - 0xd], 0
jne 0x4063fb
cmp byte [ebp - 0x12], 0
je 0x4064ce
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406414
dec ebx
cmp byte [ebx], 0x2e
je 0x406423
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406413
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4064ce
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406460
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4064ce
cmp byte [ebp - 0xd], 0
je 0x4064ce
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4064ce
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408ad4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408b26
test eax, edx
je 0x408b29
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408ae9
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 0x408b0f
add ecx, 4
js 0x408aff
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408b0c
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 0x408b35
test edx, edx
jne 0x408adc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405130
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4093c2
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x4093e3
cmp ebx, 3
je 0x4093e3
cmp ebx, 0x7b
je 0x4093e3
mov eax, esi
call fcn.00409364
test al, al
jne 0x4093e7
xor eax, eax
jmp 0x4093e9
mov al, 1
pop esi
pop ebx
ret

Function at 0x40c068
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c0a1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404d90
jmp 0x40c0aa
mov eax, ebx
mov edx, esi
call fcn.00404cf4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c0b4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c0d6
movzx eax, byte [esp]
jmp 0x40c0d8
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c768
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c5e0
mov eax, dword [0x46bb08]
cmp byte [eax], 0
je 0x40c7e4
mov eax, dword [0x46b900]
call fcn.00403400
call fcn.0040301c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004097b0
push eax
lea eax, [esp + 0x50]
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 0x40c82c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c81a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46b898]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46e7f8]
call fcn.0040608c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40d0f8
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 0x40d1ce
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404d38
lea eax, [ebp - 4]
call fcn.00405188
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405130
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d1b8
mov eax, ebx
call fcn.00402ec0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d1b1
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.00405130
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d19b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d1e0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d19b
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 0x40d1b8
mov eax, dword [ebp - 0x10]
call fcn.00402edc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d1d5
lea eax, [ebp - 4]
call fcn.00404ca0
ret

Function at 0x40e710
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc00
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00404ca0
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00405130
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x40e755
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00404d90
jmp 0x40e76e
mov edx, ebx
dec edx
mov eax, esi
call fcn.004053c0
push ebx
mov eax, dword [esi]
call fcn.00405130
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x416c94
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0x416d2c
push 0
mov eax, ebx
call fcn.00405130
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x416d07
mov ebx, esi
test ebx, ebx
je 0x416cdd
sub ebx, 4
mov ebx, dword [ebx]
inc ebx
push ebx
mov eax, esi
call fcn.00405130
push eax
push 1
push 0
mov eax, edi
call fcn.00405130
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
je 0x416d22
mov ecx, dword [0x46b918]
mov dl, 1
mov eax, dword [0x415960]
call fcn.0040c8f8
call fcn.0040458c
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x416e60
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x40ec0c]
call fcn.004056f0
xor eax, eax
push ebp
push 0x417001
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x46aab8], 0
jne 0x416ebb
mov ecx, dword [0x46b7f4]
mov dl, 1
mov eax, dword [0x407d8c]
call fcn.0040c8f8
call fcn.0040458c
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.00403574
mov eax, ebx
call fcn.004055c0
mov dword [ebp - 0x24], eax
mov esi, 0x417010
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00406688
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.004055d0
test eax, eax
jle 0x416fa4
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x416f90
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00404f10
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x416f36
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.00404f28
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x416f4c
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.00404f28
mov eax, dword [ebp - 0x54]
call fcn.00405130
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00404f10
mov eax, dword [ebp - 0x58]
call fcn.00405130
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x416f92
xor eax, eax
test al, al
je 0x416f9d
mov ebx, 0x15
jmp 0x416fa9
mov ebx, 0x10
jmp 0x416fa9
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x46aab8]
call fcn.00416bd0
mov eax, dword [ebp - 4]
call fcn.00416bd0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.004066a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417008
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00404cc4
lea eax, [ebp - 0xc]
mov edx, dword [0x40ec0c]
call fcn.004057c0
ret

Function at 0x422144
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.00421e80
dec esi
jne 0x422166
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x4232d8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x470a14
cmp dword [edi], 0
jne 0x423354
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x470a10]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x46ab44
mov ecx, 2
call fcn.004030b0
mov edx, 0x4232b0
lea eax, [esi + 5]
call fcn.004232d0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004232d0
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 0x423329
mov dword [0x470a10], 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 0x423f58
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4240c2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404d38
mov eax, dword [ebp - 4]
call fcn.00423af0
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x423faa
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.004051d8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.00424334
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x42407f
xor eax, eax
push ebp
push 0x424078
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00423c60
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.004240d0
test al, al
je 0x424056
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00404d90
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x424056
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00405130
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x424050
mov eax, dword [ebp - 8]
call fcn.00405130
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404e98
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.00423f58
dec ebx
cmp ebx, 0xffffffff
jne 0x424009
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42407f
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00423c60
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 4]
call fcn.00405130
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.00423c4c
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4240c9
lea eax, [ebp - 0x3c]
call fcn.00404ca0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404cc4
ret
Function at 0x42407f
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4240c2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404d38
mov eax, dword [ebp - 4]
call fcn.00423af0
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x423faa
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.004051d8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.00424334
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x42407f
xor eax, eax
push ebp
push 0x424078
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00423c60
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.004240d0
test al, al
je 0x424056
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00404d90
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x424056
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00405130
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x424050
mov eax, dword [ebp - 8]
call fcn.00405130
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00404e98
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.00423f58
dec ebx
cmp ebx, 0xffffffff
jne 0x424009
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42407f
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00423c60
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 4]
call fcn.00405130
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.00423c4c
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4240c9
lea eax, [ebp - 0x3c]
call fcn.00404ca0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404cc4
ret

Function at 0x4240d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.00403574
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x46bc40]
cmp byte [edx + 0xc], 0
je 0x424134
mov edx, dword [0x46bc34]
cmp dword [edx], 2
jne 0x424134
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x424258
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.00423b04
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.00405130
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4242b7
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x46ba24]
mov dl, 1
mov eax, dword [0x4239fc]
call fcn.0040c934
call fcn.0040458c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4242c0
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.00405130
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x424318
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x46bc54]
mov dl, 1
mov eax, dword [0x4239fc]
call fcn.0040c934
call fcn.0040458c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00423b34
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 0x425580
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 0x425586
ret
Function at 0x4341c8
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_GetWindowLongA
mov edi, eax
test bl, bl
je 0x4341e9
test edi, 0x40000
je 0x434203
test bl, bl
jne 0x434284
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x434284
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 0x434236
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x43424b
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
jmp 0x43425a
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x43426b
cmp byte [esp + 2], 0
je 0x434284
cmp byte [esp + 2], 0
je 0x43427c
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x434284
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x434528
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 0x43454e
mov eax, esp
push eax
push 0x4344f0
call sub.user32.dll_EnumWindows
jmp 0x434561
mov eax, esp
push eax
push 0x4344d0
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 0x4345ec
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x434640]
test si, 4
je 0x434601
or bl, 1
test si, 8
je 0x43460b
or bl, 4
test si, 1
je 0x434615
or bl, 8
test si, 2
je 0x43461f
or bl, 0x10
test si, 0x10
je 0x434629
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x434638
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x434644
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x434680]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43465e
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43466d
or bl, 4
test esi, 0x20000000
je 0x434678
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x43c708
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x43c71a
add esp, 0xfffffff0
call fcn.00403f78
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00422218
mov eax, dword [0x46b8a0]
mov dword [eax + 4], ebx
mov dword [eax], 0x43caac
mov eax, dword [0x46b8ac]
mov dword [eax + 4], ebx
mov dword [eax], 0x43cab8
mov eax, ebx
call fcn.0043cac4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41993c]
call fcn.00403c24
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41993c]
call fcn.00403c24
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41993c]
call fcn.00403c24
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41993c]
call fcn.00403c24
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41993c]
call fcn.00403c24
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x437f50
push eax
push 0
push 0
mov eax, dword [0x46ba18]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4248e4]
call fcn.00426100
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4248e4]
call fcn.00426100
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4248e4]
call fcn.00426100
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0043cf3c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43ce0c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43ce0c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43ce0c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x43c857
call fcn.00403fd0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret