joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407b30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x40e7d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebx, ecx
push esi
push edi
push 0
mov esi, dword [ebx + 0x40]
mov edi, dword [ebx + 0x34]
mov eax, edi
mov ebp, esi
and eax, 0xffff
and ebp, 0xffff
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x1c]
lea eax, [eax + ebp + 0x1e]
push eax
mov dword [esp + 0x1c], eax
call fcn.00405980
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x41250c]
push 1
mov dword [esp + 0x30], 0
mov dword [eax], ecx
mov eax, dword [esp + 0x20]
mov dx, word [ebx + 0xa]
mov word [eax + 4], dx
mov edx, dword [esp + 0x20]
mov cx, word [ebx + 0xc]
mov word [edx + 6], cx
mov ecx, dword [esp + 0x20]
mov ax, word [ebx + 0xe]
mov word [ecx + 8], ax
mov eax, dword [esp + 0x20]
mov dx, word [ebx + 0x10]
mov word [eax + 0xa], dx
mov edx, dword [esp + 0x20]
mov cx, word [ebx + 0x12]
mov word [edx + 0xc], cx
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx + 0x14]
mov dword [ecx + 0xe], eax
mov eax, dword [esp + 0x20]
mov edx, dword [ebx + 0x18]
mov dword [eax + 0x12], edx
mov edx, dword [esp + 0x20]
mov ecx, dword [ebx + 0x1c]
mov dword [edx + 0x16], ecx
mov eax, dword [esp + 0x20]
mov word [eax + 0x1a], si
mov ecx, dword [esp + 0x20]
mov word [ecx + 0x1c], di
mov edx, dword [esp + 0x20]
mov esi, dword [ebx + 0x3c]
mov ecx, ebp
mov eax, ecx
lea edi, [edx + 0x1e]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov esi, dword [ebx + 0x30]
mov eax, ecx
lea edi, [edx + ebp + 0x1e]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x38]
push edi
push ecx
mov ecx, esi
call fcn.00405710
lea ecx, [ebx + 0x2c]
call fcn.004059c0
mov ecx, esi
call fcn.00404f10
mov ecx, esi
mov word [ebx + 0x20], ax
call fcn.004058b0
sub eax, edi
lea ecx, [esp + 0x18]
mov dword [ebx + 0x28], eax
mov dword [esp + 0x2c], 0xffffffff
call fcn.004059b0
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x408570
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x40857f
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x412580]
test eax, eax
je 0x40858d
call fcn.00408510
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
cmp edx, 8
push ebx
not eax
jb 0x40868f
push edi
mov edi, edx
shr edi, 3
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [ecx*4 + 0x4141bc]
sub edx, 8
xor eax, ebx
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x4141bc]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x4141bc]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x4141bc]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x4141bc]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x4141bc]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x4141bc]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x4141bc]
xor eax, ecx
inc esi
dec edi
jne 0x4085a7
pop edi
test edx, edx
je 0x4086b1
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x4141bc]
xor eax, ecx
inc esi
dec edx
jne 0x408693
pop ebx
pop esi
not eax
ret 0xc
Function at 0x403078
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004047a4
test esi, esi
jne 0x4030ae
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404894
jmp 0x4030cc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402f7c
mov edi, eax
test esi, esi
je 0x4030cc
cmp dword [ebx], 0
je 0x4030cc
dec esi
jmp 0x4030b5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403798
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45b020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403830
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403810
xor eax, eax
push ebp
push 0x403809
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 0x40384c
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 0x403810
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x45b020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45b020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404624
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45d048], 0
je 0x404685
cmp word [0x45d21c], 0xd7b2
jne 0x40464d
cmp dword [0x45d224], 0
jbe 0x40464d
mov eax, 0x45d218
call dword [0x45d234]
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 0x4046ac
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45b02c], 0
jne 0x4046a1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405c74
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 0x405ea4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405cf7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405ea4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405cf7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405ec0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405d80
xor eax, eax
push ebp
push 0x405d79
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405ab0
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 0x405d5e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405ee0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405d5e
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 0x405d80
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 0x405e9a
cmp byte [ebp - 0xd], 0
jne 0x405dc7
cmp byte [ebp - 0x12], 0
je 0x405e9a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405de0
dec ebx
cmp byte [ebx], 0x2e
je 0x405def
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405ddf
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405e9a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405e2c
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 0x405e9a
cmp byte [ebp - 0xd], 0
je 0x405e9a
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 0x405e9a
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 0x4082c8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408358
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408358
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40830b
test edx, 3
jne 0x4082fa
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408305
jmp 0x40830b
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40830b
cmp dword [ecx - 8], 1
je 0x408315
mov edx, ebx
or edx, 3
call fcn.00404ef0
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x408327
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004047a4

Function at 0x408364
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4083f4
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4083f4
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4083a7
test edx, 3
jne 0x408396
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4083a1
jmp 0x4083a7
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4083a7
cmp dword [ecx - 8], 1
je 0x4083b1
mov edx, ebx
or edx, 3
call fcn.00404ef0
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4083c3
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004047a4

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404c68
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408d91
test al, 0x10
je 0x408d95
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404c68
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408db5
test al, 0x10
jne 0x408db9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40ba08
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 0x40ba41
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404894
jmp 0x40ba4a
mov eax, ebx
mov edx, esi
call fcn.004047f8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40ba54
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 0x40ba76
movzx eax, byte [esp]
jmp 0x40ba78
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c108
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bf80
mov eax, dword [0x45cae0]
cmp byte [eax], 0
je 0x40c184
mov eax, dword [0x45c8e8]
call fcn.00403160
call fcn.00402de8
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.0040918c
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 0x40c1cc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c1ba
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45c88c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45f7f4]
call fcn.00405a58
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 0x40ca18
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 0x40caee
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040483c
lea eax, [ebp - 4]
call fcn.00404cb8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404c68
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cad8
mov eax, ebx
call fcn.00402c8c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cad1
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.00404c68
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cabb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cb00
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cabb
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 0x40cad8
mov eax, dword [ebp - 0x10]
call fcn.00402ca8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40caf5
lea eax, [ebp - 4]
call fcn.004047a4
ret
Function at 0x41b778
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x460300
cmp dword [edi], 0
jne 0x41b7f4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4602fc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45bad4
mov ecx, 2
call fcn.00402e7c
mov edx, 0x41b750
lea eax, [esi + 5]
call fcn.0041b770
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b770
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 0x41b7c9
mov dword [0x4602fc], 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 0x41ddcc
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.00404c68
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41de24
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x45cbfc]
mov dl, 1
mov eax, dword [0x41d8f0]
call fcn.0040c2c8
call fcn.004041ec
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041d9f8
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 0x41ec80
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 0x41ec86
ret
Function at 0x42d930
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.004047a4
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42d97e
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.00404a14
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x431a00
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 0x431b33
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 [0x41d950]
call fcn.0041da20
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x431b09
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041dac0
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00404a14
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x431b48
call fcn.00404ab4
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041db24
lea ecx, [ebp - 4]
mov edx, 0x431b84
mov eax, dword [ebp - 0xc]
call fcn.0041dd54
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040dd68
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x431aec
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x431b90
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 [0x45c4d4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x431af3
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x431be0
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 0x431c27
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x431c0a
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x431c1b
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x431c27
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x436a44
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 [0x46053c], 0
je 0x436b8d
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x45ca78]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x436b8d
mov eax, dword [0x460540]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x46053c]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x436b5c
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x46053c]
call fcn.00414860
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x436b54
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x436b54
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x436b54
mov eax, dword [ebp - 0x14]
call fcn.00440d9c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x436b54
push ebp
call fcn.00436a00
pop ecx
test al, al
jne 0x436b54
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403b8c
test al, al
je 0x436b54
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.00403b8c
cmp byte [ebp - 1], 0
je 0x436b54
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x436b54
mov edx, dword [ebp - 0x14]
mov eax, dword [0x460540]
call fcn.00436170
inc edi
dec ebx
jne 0x436aa9
mov eax, dword [0x460540]
cmp dword [eax + 8], 0
jle 0x436b74
mov eax, dword [0x460540]
call fcn.00436228
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x436b8d
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00436864
pop ecx
test al, al
jne 0x436b8d
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
Function at 0x43df98
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.00406720
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.00438dcc
test ebx, ebx
jne 0x43dfeb
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0043ded4
mov ebx, eax
test ebx, ebx
je 0x43e0d6
cmp esi, ebx
je 0x43e014
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x43e029
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x43e061
add eax, 0xffffff5f
sub eax, 2
jb 0x43e079
dec eax
sub eax, 2
jb 0x43e08d
dec eax
sub eax, 2
jb 0x43e083
jmp 0x43e097
add eax, 0xfffffdff
sub eax, 2
jb 0x43e079
dec eax
sub eax, 2
jb 0x43e08d
dec eax
sub eax, 2
jb 0x43e083
jmp 0x43e097
mov byte [esp + 0x120], 0
jmp 0x43e09f
mov byte [esp + 0x120], 2
jmp 0x43e09f
mov byte [esp + 0x120], 1
jmp 0x43e09f
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.0044b974
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.0043a554
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x43e0d8
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret