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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
push edi
push str.StartServiceCtrlDispatcherA
push str.ADVAPI32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, str.Serpiei
mov edi, eax
push esi
call fcn.00402ee5
test eax, eax
pop ecx
je 0x4038a7
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
mov dword [ebp - 0xc], 0x4035da
call edi
pop edi
xor eax, eax
pop esi
leave
ret 0x10
and byte [ebp - 0x114], 0
push reloc.user32.dll_EndPaint
pop ecx
xor eax, eax
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x114]
push eax
call fcn.00402bc0
lea eax, [ebp - 0x114]
push 1
push eax
push str.Microsoft_.NET_COM_Integration_with_SOAP
push str.Microsoft_.Net_Frameworek_COMi_Suppoot
push esi
call fcn.00403044
add esp, 0x18
call fcn.00402130
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x9ba0b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.009ba200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9ba0d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9ba0c2
add dl, dl
jne 0x9ba0e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9ba134
xor eax, eax
add dl, dl
jne 0x9ba0ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9ba1d5
add dl, dl
jne 0x9ba0fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ba108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ba113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ba11e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9ba12a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9ba0cd
mov eax, 1
add dl, dl
jne 0x9ba142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9ba14d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9ba139
sub eax, ebx
mov ebx, 1
jne 0x9ba180
mov ecx, 1
add dl, dl
jne 0x9ba166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9ba171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9ba15d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9ba0cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9ba197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9ba1a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9ba18e
cmp eax, 0x7d00
jae 0x9ba1c5
cmp eax, 0x500
jb 0x9ba1c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9ba0cd
cmp eax, 0x7f
ja 0x9ba1c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9ba0cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9ba1f6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x9ba0cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40357a
Capabilities:
Create pipe
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1284
call fcn.0040d1e0
mov eax, dword [0xc6a924]
mov ecx, dword [0xc43ac4]
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x403681
mov ebx, ecx
mov dword [ebp - 8], eax
cmp dword [0xc6a924], 0x959
jne 0x40366f
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
push esi
push esi
lea eax, [ebp - 0xa80]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [ebp - 0x280]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push 0x402cc0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402d10
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0x1280]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_InterlockedFlushSList]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
call fcn.00403383
add ebx, 8
dec dword [ebp - 8]
jne 0x4035a7
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40569b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x807738]
jne 0x4056a5
repz ret
jmp fcn.00409e7c

Function at 0x40a33f
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.00407c79
and dword [ebp - 4], 0
cmp dword [0x809334], 0
mov ebx, eax
jne 0x40a3f0
push 0x401a58
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a4a1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401a4c
push edi
call esi
test eax, eax
je 0x40a4a1
push eax
call fcn.00407c07
mov dword [esp], 0x401a3c
push edi
mov dword [0x809334], eax
call esi
push eax
call fcn.00407c07
mov dword [esp], 0x401a28
push edi
mov dword [0x809338], eax
call esi
push eax
call fcn.00407c07
mov dword [esp], 0x401a0c
push edi
mov dword [0x80933c], eax
call esi
push eax
call fcn.00407c07
pop ecx
mov dword [0x809344], eax
test eax, eax
je 0x40a3f0
push 0x4019f4
push edi
call esi
push eax
call fcn.00407c07
pop ecx
mov dword [0x809340], eax
mov eax, dword [0x809340]
cmp eax, ebx
je 0x40a448
cmp dword [0x809344], ebx
je 0x40a448
push eax
call fcn.00407c82
push dword [0x809344]
mov esi, eax
call fcn.00407c82
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a448
test edi, edi
je 0x40a448
call esi
test eax, eax
je 0x40a43f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a43f
test byte [ebp - 0xc], 1
jne 0x40a448
or dword [ebp + 0x10], 0x200000
jmp 0x40a481
mov eax, dword [0x809338]
cmp eax, ebx
je 0x40a481
push eax
call fcn.00407c82
pop ecx
test eax, eax
je 0x40a481
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a481
mov eax, dword [0x80933c]
cmp eax, ebx
je 0x40a481
push eax
call fcn.00407c82
pop ecx
test eax, eax
je 0x40a481
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x809334]
call fcn.00407c82
pop ecx
test eax, eax
je 0x40a4a1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a4a3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408929
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x4085d8
add esi, esi
call fcn.00408957
mov esi, 0x15b613e4
xor dword [ecx], edi
sub ebx, 1
dec esi
inc ecx
add esi, esi
add ebx, esi
cmp ecx, eax
jne fcn.00408929
ret
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.004047dc
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.004048cc
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 0x4030d8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x459008], 0x8088405
inc edx
mov dword [ebx + 0x459008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4037b4
Capabilities:
Query or enumerate registry value

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

Function at 0x40465c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x552048], 0
je 0x4046bd
cmp word [0x55221c], 0xd7b2
jne 0x404685
cmp dword [0x552224], 0
jbe 0x404685
mov eax, 0x552218
call dword [0x552234]
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 0x4046e4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x459030], 0
jne 0x4046d9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40816c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4081fc
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4081fc
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4081af
test edx, 3
jne 0x40819e
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4081a9
jmp 0x4081af
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4081af
cmp dword [ecx - 8], 1
je 0x4081b9
mov edx, ebx
or edx, 3
call fcn.00404f28
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 0x4081cb
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004047dc

Function at 0x408208
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408298
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408298
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40824b
test edx, 3
jne 0x40823a
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408245
jmp 0x40824b
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40824b
cmp dword [ecx - 8], 1
je 0x408255
mov edx, ebx
or edx, 3
call fcn.00404f28
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 0x408267
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004047dc

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

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

Function at 0x40b4a0
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 0x40b4d9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004048cc
jmp 0x40b4e2
mov eax, ebx
mov edx, esi
call fcn.00404830
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b4ec
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 0x40b50e
movzx eax, byte [esp]
jmp 0x40b510
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40bba0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ba18
mov eax, dword [0x551ddc]
cmp byte [eax], 0
je 0x40bc1c
mov eax, dword [0x551be8]
call fcn.0040317c
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.00408c38
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 0x40bc64
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bc52
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x551b90]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5547f4]
call fcn.0040595c
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 0x40c4b0
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 0x40c586
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404874
lea eax, [ebp - 4]
call fcn.00404cf0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404ca0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c570
mov eax, ebx
call fcn.00402c8c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c569
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.00404ca0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c553
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c598
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c553
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 0x40c570
mov eax, dword [ebp - 0x10]
call fcn.00402ca8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c58d
lea eax, [ebp - 4]
call fcn.004047dc
ret
Function at 0x41b0d4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x555300
cmp dword [edi], 0
jne 0x41b150
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x5552fc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x459ad8
mov ecx, 2
call fcn.00402e7c
mov edx, 0x41b0ac
lea eax, [esi + 5]
call fcn.0041b0cc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b0cc
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 0x41b125
mov dword [0x5552fc], 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 0x41d674
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.00404ca0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41d6cc
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x551ef4]
mov dl, 1
mov eax, dword [0x41d198]
call fcn.0040bd60
call fcn.00404208
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041d2a0
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 0x41e528
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 0x41e52e
ret
Function at 0x428d9c
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.004047dc
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x428dea
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.00404a4c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42ce6c
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 0x42cf9f
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 [0x41d1f8]
call fcn.0041d2c8
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x42cf75
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041d368
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00404a4c
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x42cfb4
call fcn.00404aec
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041d3cc
lea ecx, [ebp - 4]
mov edx, 0x42cff0
mov eax, dword [ebp - 0xc]
call fcn.0041d5fc
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040d768
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x42cf58
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x42cffc
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 [0x45a430]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42cf5f
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x42d04c
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 0x42d093
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42d076
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42d087
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x42d093
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x431b84
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 [0x555534], 0
je 0x431ccd
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x551d7c]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x431ccd
mov eax, dword [0x555538]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x555534]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x431c9c
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x555534]
call fcn.004141bc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x431c94
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x431c94
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x431c94
mov eax, dword [ebp - 0x14]
call fcn.0043bda8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x431c94
push ebp
call fcn.00431b40
pop ecx
test al, al
jne 0x431c94
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403ba8
test al, al
je 0x431c94
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.00403ba8
cmp byte [ebp - 1], 0
je 0x431c94
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x431c94
mov edx, dword [ebp - 0x14]
mov eax, dword [0x555538]
call fcn.004312b0
inc edi
dec ebx
jne 0x431be9
mov eax, dword [0x555538]
cmp dword [eax + 8], 0
jle 0x431cb4
mov eax, dword [0x555538]
call fcn.00431368
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x431ccd
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004319a4
pop ecx
test al, al
jne 0x431ccd
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 0x438fa4
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.00406624
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.00433f0c
test ebx, ebx
jne 0x438ff7
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.00438ee0
mov ebx, eax
test ebx, ebx
je 0x4390e2
cmp esi, ebx
je 0x439020
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 0x439035
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 0x43906d
add eax, 0xffffff5f
sub eax, 2
jb 0x439085
dec eax
sub eax, 2
jb 0x439099
dec eax
sub eax, 2
jb 0x43908f
jmp 0x4390a3
add eax, 0xfffffdff
sub eax, 2
jb 0x439085
dec eax
sub eax, 2
jb 0x439099
dec eax
sub eax, 2
jb 0x43908f
jmp 0x4390a3
mov byte [esp + 0x120], 0
jmp 0x4390ab
mov byte [esp + 0x120], 2
jmp 0x4390ab
mov byte [esp + 0x120], 1
jmp 0x4390ab
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.004466d8
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.0043564c
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x4390e4
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret