joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f428
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45d594]
jne 0x42f432
repz ret
jmp fcn.00435f00

Function at 0x440826
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.004363e7
and dword [ebp - 4], 0
cmp dword [0x461b38], 0
mov ebx, eax
jne 0x4408d7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x440988
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44e77c
push edi
call esi
test eax, eax
je 0x440988
push eax
call fcn.00436375
mov dword [esp], 0x44e76c
push edi
mov dword [0x461b38], eax
call esi
push eax
call fcn.00436375
mov dword [esp], 0x44e758
push edi
mov dword [0x461b3c], eax
call esi
push eax
call fcn.00436375
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x461b40], eax
call esi
push eax
call fcn.00436375
pop ecx
mov dword [0x461b48], eax
test eax, eax
je 0x4408d7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00436375
pop ecx
mov dword [0x461b44], eax
mov eax, dword [0x461b44]
cmp eax, ebx
je 0x44092f
cmp dword [0x461b48], ebx
je 0x44092f
push eax
call fcn.004363f0
push dword [0x461b48]
mov esi, eax
call fcn.004363f0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x44092f
test edi, edi
je 0x44092f
call esi
test eax, eax
je 0x440926
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x440926
test byte [ebp - 0xc], 1
jne 0x44092f
or dword [ebp + 0x10], 0x200000
jmp 0x440968
mov eax, dword [0x461b3c]
cmp eax, ebx
je 0x440968
push eax
call fcn.004363f0
pop ecx
test eax, eax
je 0x440968
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x440968
mov eax, dword [0x461b40]
cmp eax, ebx
je 0x440968
push eax
call fcn.004363f0
pop ecx
test eax, eax
je 0x440968
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x461b38]
call fcn.004363f0
pop ecx
test eax, eax
je 0x440988
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44098a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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 0x41fb6c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b520]
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.00416e52
and dword [ebp - 0x14], 0
cmp dword [0x46d558], 0
mov dword [ebp - 0x18], eax
jne 0x41fc1f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41fcc7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41fcc7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x46d558], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x46d55c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x46d560], eax
call edi
push eax
call esi
mov dword [0x46d568], eax
test eax, eax
je 0x41fc1f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46d564], eax
mov eax, dword [0x46d564]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41fc78
cmp dword [0x46d568], ecx
je 0x41fc78
push eax
call esi
push dword [0x46d568]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41fc78
test ebx, ebx
je 0x41fc78
call edi
test eax, eax
je 0x41fc6f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41fc6f
test byte [ebp - 8], 1
jne 0x41fc78
or dword [ebp + 0x10], 0x200000
jmp 0x41fcab
mov eax, dword [0x46d55c]
cmp eax, dword [ebp - 0x18]
je 0x41fcab
push eax
call esi
test eax, eax
je 0x41fcab
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41fcab
mov eax, dword [0x46d560]
cmp eax, dword [ebp - 0x18]
je 0x41fcab
push eax
call esi
test eax, eax
je 0x41fcab
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46d558]
call esi
test eax, eax
je 0x41fcc7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41fcc9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004113cb
leave
ret

Function at 0x401b58
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401b97
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401b97
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401b97
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401b97
cmp dword [ecx + 0x74], 0xe
jbe 0x401b97
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x412d2a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4558d0]
jne 0x412d34
repz ret
jmp fcn.0041a1c5

Function at 0x41fb6b
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.004174f1
and dword [ebp - 4], 0
cmp dword [0x4574dc], 0
mov ebx, eax
jne 0x41fc1c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41fccd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42855c
push edi
call esi
test eax, eax
je 0x41fccd
push eax
call fcn.0041747f
mov dword [esp], 0x42854c
push edi
mov dword [0x4574dc], eax
call esi
push eax
call fcn.0041747f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4574e0], eax
call esi
push eax
call fcn.0041747f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4574e4], eax
call esi
push eax
call fcn.0041747f
pop ecx
mov dword [0x4574ec], eax
test eax, eax
je 0x41fc1c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041747f
pop ecx
mov dword [0x4574e8], eax
mov eax, dword [0x4574e8]
cmp eax, ebx
je 0x41fc74
cmp dword [0x4574ec], ebx
je 0x41fc74
push eax
call fcn.004174fa
push dword [0x4574ec]
mov esi, eax
call fcn.004174fa
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41fc74
test edi, edi
je 0x41fc74
call esi
test eax, eax
je 0x41fc6b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41fc6b
test byte [ebp - 0xc], 1
jne 0x41fc74
or dword [ebp + 0x10], 0x200000
jmp 0x41fcad
mov eax, dword [0x4574e0]
cmp eax, ebx
je 0x41fcad
push eax
call fcn.004174fa
pop ecx
test eax, eax
je 0x41fcad
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41fcad
mov eax, dword [0x4574e4]
cmp eax, ebx
je 0x41fcad
push eax
call fcn.004174fa
pop ecx
test eax, eax
je 0x41fcad
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4574dc]
call fcn.004174fa
pop ecx
test eax, eax
je 0x41fccd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41fccf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4038b8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x468020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403950
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403930
xor eax, eax
push ebp
push 0x403929
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 0x40396c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403930
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x468020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x468020], ax
mov esp, ebp
pop ebp
ret

Function at 0x40476c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46a04c], 0
je 0x4047cd
cmp word [0x46a220], 0xd7b2
jne 0x404795
cmp dword [0x46a228], 0
jbe 0x404795
mov eax, 0x46a21c
call dword [0x46a238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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 0x4047f4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46802c], 0
jne 0x4047e9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405ee8
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 0x406118
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405f6b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406118
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405f6b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406134
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405ff4
xor eax, eax
push ebp
push 0x405fed
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405d24
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 0x405fd2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406154
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405fd2
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 0x405ff4
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 0x40610e
cmp byte [ebp - 0xd], 0
jne 0x40603b
cmp byte [ebp - 0x12], 0
je 0x40610e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406054
dec ebx
cmp byte [ebx], 0x2e
je 0x406063
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406053
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40610e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4060a0
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 0x40610e
cmp byte [ebp - 0xd], 0
je 0x40610e
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 0x40610e
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 0x408958
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4089aa
test eax, edx
je 0x4089ad
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40896d
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 0x408993
add ecx, 4
js 0x408983
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408990
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 0x4089b9
test edx, edx
jne 0x408960
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40bc58
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 0x40bc91
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004049dc
jmp 0x40bc9a
mov eax, ebx
mov edx, esi
call fcn.00404940
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bca4
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 0x40bcc6
movzx eax, byte [esp]
jmp 0x40bcc8
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c358
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c1d0
mov eax, dword [0x469ba0]
cmp byte [eax], 0
je 0x40c3d4
mov eax, dword [0x4699ac]
call fcn.00403280
call fcn.00403034
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.004093a0
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 0x40c41c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c40a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46994c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46c7f8]
call fcn.00405ccc
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 0x40ccd4
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 0x40cdaa
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404984
lea eax, [ebp - 4]
call fcn.00404dd4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404d7c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cd94
mov eax, ebx
call fcn.00402ed8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cd8d
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.00404d7c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cd77
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cdbc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cd77
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 0x40cd94
mov eax, dword [ebp - 0x10]
call fcn.00402ef4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cdb1
lea eax, [ebp - 4]
call fcn.004048ec
ret

Function at 0x41ecf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x46e9ec
cmp dword [edi], 0
jne 0x41ed6c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x46e9e8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x468ae8
mov ecx, 2
call fcn.004030c8
mov edx, 0x41ecc8
lea eax, [esi + 5]
call fcn.0041ece8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041ece8
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 0x41ed41
mov dword [0x46e9e8], 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 0x4212f4
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.00404d7c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x42134c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x469cd4]
mov dl, 1
mov eax, dword [0x420e00]
call fcn.0040c524
call fcn.00404334
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00420f08
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 0x4224a4
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 0x4224aa
ret
Function at 0x432ffc
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004048ec
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43304a
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404b5c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4370cc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4371ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x420e60]
call fcn.00420f30
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4371d5
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.00420fd0
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00404b5c
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x437214
call fcn.00404c04
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00421034
lea ecx, [ebp - 4]
mov edx, 0x437250
mov eax, dword [ebp - 0xc]
call fcn.0042127c
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040df88
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4371b8
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x43725c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x4694ac]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4371bf
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x4372ac
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 0x4372f3
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4372d6
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4372e7
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x4372f3
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x43c3bc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x46ec4c], 0
je 0x43c505
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x469b38]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x43c505
mov eax, dword [0x46ec50]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x46ec4c]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x43c4d4
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x46ec4c]
call fcn.00417d84
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x43c4cc
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x43c4cc
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x43c4cc
mov eax, dword [ebp - 0x14]
call fcn.00446be4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43c4cc
push ebp
call fcn.0043c378
pop ecx
test al, al
jne 0x43c4cc
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403cbc
test al, al
je 0x43c4cc
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.00403cbc
cmp byte [ebp - 1], 0
je 0x43c4cc
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x43c4cc
mov edx, dword [ebp - 0x14]
mov eax, dword [0x46ec50]
call fcn.0043bae8
inc edi
dec ebx
jne 0x43c421
mov eax, dword [0x46ec50]
cmp dword [eax + 8], 0
jle 0x43c4ec
mov eax, dword [0x46ec50]
call fcn.0043bba0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43c505
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0043c1dc
pop ecx
test al, al
jne 0x43c505
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret