joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402876
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push esi
push edi
push 0
push str.OutputKingBell.xls
push str.sourceKingBellTemplate.xls
call sub.kernel32.dll_CopyFileA
mov dword [ebp - 8], eax
mov esi, dword [0x40a7a0]
mov edi, dword [esi]
or edi, edi
je 0x402ac3
lea eax, [ebp - 0xc]
push eax
push 0
push 1
call sub.odbc32.dll_SQLAllocHandle
or ax, ax
je 0x4028be
cmp ax, 1
jne 0x402aaa
push 0
push 3
push 0xc8
push dword [ebp - 0xc]
call sub.odbc32.dll_SQLSetEnvAttr
or ax, ax
je 0x4028de
cmp ax, 1
jne 0x402a91
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push 2
call sub.odbc32.dll_SQLAllocHandle
or ax, ax
je 0x4028fb
cmp ax, 1
jne 0x402a78
push 0
push 0
push 0
push 0
push 0x5c
push str.DRIVERMicrosoft_Excel_Driver__.xls__DBQOutputKingBell.xls_READONLYFALSE_EXCLUSIVEYes_
push 0
push dword [ebp - 0x10]
call sub.odbc32.dll_SQLDriverConnectA
or ax, ax
je 0x402923
cmp ax, 1
jne 0x402a5f
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push 3
call sub.odbc32.dll_SQLAllocHandle
or ax, ax
je 0x402940
cmp ax, 1
jne 0x402a5d
cmp dword [ebp - 8], 0
jne 0x402987
push 0xfffffffffffffffd
push str.CREATE_TABLE__KingBell___
push dword [ebp - 0x14]
call sub.odbc32.dll_SQLExecDirectA
or ax, ax
je 0x402980
cmp ax, 1
je 0x402980
push 0x40a615
push 0
push 0x401
push dword [0x40a710]
call sub.user32.dll_SendMessageA
mov dword [ebp - 8], 0
jmp 0x402987
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0
je 0x4029f8
shr edi, 5
or edi, edi
je 0x4029e1
mov dword [ebp - 4], edi
xor edi, edi
push 0x40a63b
push 0
push 0x401
push dword [0x40a710]
call sub.user32.dll_SendMessageA
jmp 0x4029da
push dword [ebp - 0x14]
call fcn.004026a2
or eax, eax
je 0x4029d9
push 0x40a628
push 0
push 0x401
push dword [0x40a710]
call sub.user32.dll_SendMessageA
jmp 0x4029f8
inc edi
cmp edi, dword [ebp - 4]
jb 0x4029b2
jmp 0x4029f8
push 0x40a5b6
push 0
push 0x401
push dword [0x40a710]
call sub.user32.dll_SendMessageA
cmp dword [ebp - 0x14], 0
je 0x402a12
push 2
push dword [ebp - 0x14]
call sub.odbc32.dll_SQLFreeStmt
push dword [ebp - 0x14]
push 3
call sub.odbc32.dll_SQLFreeHandle
cmp dword [ebp - 0x10], 0
je 0x402a2a
push dword [ebp - 0x10]
call sub.odbc32.dll_SQLDisconnect
push dword [ebp - 0x10]
push 2
call sub.odbc32.dll_SQLFreeHandle
cmp dword [ebp - 0xc], 0
je 0x402a3a
push dword [ebp - 0xc]
push 1
call sub.odbc32.dll_SQLFreeHandle
cmp edi, dword [ebp - 4]
jne 0x402ada
push 5
push 0
push str.OutputKingBell.xls
push str.Excel.exe
push 0
push dword [ebp + 8]
call sub.shell32.dll_ShellExecuteA
jmp 0x402ada
jmp 0x402ada
push 0x40a602
push 0
push 0x401
push dword [0x40a710]
call sub.user32.dll_SendMessageA
jmp 0x402ada
push 0x40a5ef
push 0
push 0x401
push dword [0x40a710]
call sub.user32.dll_SendMessageA
jmp 0x402ada
push 0x40a5dc
push 0
push 0x401
push dword [0x40a710]
call sub.user32.dll_SendMessageA
jmp 0x402ada
push 0x40a5c9
push 0
push 0x401
push dword [0x40a710]
call sub.user32.dll_SendMessageA
jmp 0x402ada
push 0x40a5b6
push 0
push 0x401
push dword [0x40a710]
call sub.user32.dll_SendMessageA
pop edi
pop esi
leave
ret 4
Function at 0x407aa8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push 0x40a2da
call sub.kernel32.dll_CreateFileA
mov dword [0x426056], eax
cmp eax, 0xffffffff
jne 0x407afb
push 0x40a557
push 0
push 0x401
push dword [0x40a70c]
call sub.user32.dll_SendMessageA
mov byte [0x40a509], 5
mov eax, 0
leave
ret 4
push 0x426063
push dword [0x426056]
call sub.kernel32.dll_GetCommTimeouts
or eax, eax
jne 0x407b2d
push 0x40a56a
push 0
push 0x401
push dword [0x40a70c]
call sub.user32.dll_SendMessageA
mov byte [0x40a509], 5
push dword [ebp + 8]
call fcn.004079de
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
push 0x407946
push 0
push 0
call sub.kernel32.dll_CreateThread
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x426056]
leave
ret 4

Function at 0x407dcb
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push esi
push edi
push ebx
push 0
push 0x8000000
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x407ec9
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call sub.kernel32.dll_GetFileSize
mov edi, eax
cmp dword [ebp - 8], 0
jne 0x407ec1
push edi
push 8
push dword [0x40a784]
call sub.kernel32.dll_HeapAlloc
or eax, eax
je 0x407ec1
mov esi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push dword [ebp - 4]
call sub.kernel32.dll_ReadFile
or eax, eax
je 0x407eb3
cmp edi, dword [ebp - 0xc]
jne 0x407eb3
cmp word [esi], 0x4d42
jne 0x407eb3
cmp dword [esi + 2], edi
jne 0x407eb3
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
push 0
push 0
push 0
push str.DISPLAY
call sub.gdi32.dll_CreateDCA
mov dword [ebp - 0x10], eax
mov edx, dword [esi + 0xa]
lea edx, [edx + esi]
lea ebx, [esi + 0xe]
push 0
push ebx
push edx
push 4
push ebx
push dword [ebp - 0x10]
call sub.gdi32.dll_CreateDIBitmap
mov edi, eax
mov eax, dword [ebx + 4]
mov dword [0x40a2d2], eax
mov eax, dword [ebx + 8]
mov dword [0x40a2d6], eax
push dword [ebp - 0x10]
call sub.gdi32.dll_DeleteDC
push esi
push 0
push dword [0x40a784]
call sub.kernel32.dll_HeapFree
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 4
push esi
push 0
push dword [0x40a784]
call sub.kernel32.dll_HeapFree
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x40809c
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
mov esi, 1
xor edi, edi
jmp 0x408191
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push 0x40a2da
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x40818a
or edi, edi
jne 0x4080d9
mov edi, esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0xc8
mov dword [ebp - 0x14], 0xc8
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
call sub.kernel32.dll_SetCommTimeouts
mov dword [ebp - 0x34], 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 4]
call sub.kernel32.dll_GetCommState
mov dword [ebp - 0x30], 0x12c
mov byte [ebp - 0x22], 8
mov byte [ebp - 0x21], 0
mov byte [ebp - 0x20], 0
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 4]
call sub.kernel32.dll_SetCommState
push 0
lea eax, [ebp - 0x3c]
push eax
push 0xa
push str._CH341Ser_
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 0x38]
push eax
push 1
lea eax, [ebp - 0x3d]
push eax
push dword [ebp - 4]
call sub.kernel32.dll_ReadFile
or eax, eax
je 0x408182
cmp dword [ebp - 0x38], 1
jne 0x408182
cmp byte [ebp - 0x3d], 0x57
jne 0x408182
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, esi
leave
ret
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
inc byte [0x40a2dd]
inc esi
cmp esi, 9
jb 0x4080ae
mov eax, edi
leave
ret
Function at 0x40819e
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push esi
push edi
push 0
call sub.user32.dll_GetSystemMetrics
shr eax, 1
mov dword [0x40a7d0], eax
push 1
call sub.user32.dll_GetSystemMetrics
shr eax, 1
mov dword [0x40a7d4], eax
mov dword [0x40a7d8], 0
mov dword [0x41c576], 0xfffffff5
mov dword [0x41c57a], 0
mov dword [0x41c57e], 0
mov dword [0x41c582], 0
mov dword [0x41c586], 0x226
mov byte [0x41c58a], 0
mov byte [0x41c58b], 0
mov byte [0x41c58c], 0
mov byte [0x41c58d], 1
mov byte [0x41c58e], 6
mov byte [0x41c58f], 0
mov byte [0x41c590], 0
mov byte [0x41c591], 0
lea esi, [0x40a1ae]
lea edi, [0x41c592]
lodsb al, byte [esi]
stosb byte es:[edi], al
or al, al
jne 0x408242
push 0x41c576
call sub.gdi32.dll_CreateFontIndirectA
mov dword [0x40a774], eax
lea edi, [0x41c5fe]
mov ecx, 0x13
jmp 0x408274
mov dword [edi], 0
mov word [edi + 4], 0
add edi, 8
dec ecx
or ecx, ecx
jne 0x408264
lea ebx, [0x40a81c]
xor edi, edi
mov ecx, 0x11d0
jmp 0x40829d
mov word [edi + 0x41d1d8], 0
mov dword [edi + 0x41d1da], ebx
add ebx, 0x10
add edi, 8
dec ecx
or ecx, ecx
jne 0x408287
call fcn.00407ed2
push dword [ebp + 8]
call fcn.00407c3b
push dword [ebp + 8]
call fcn.00407fa0
push 0x11d00
push 0x40a81c
call sub.kernel32.dll_RtlZeroMemory
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push str.sourceKingBellUserName
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x408308
mov dword [0x40a76c], eax
push 0
lea eax, [ebp - 8]
push eax
push 0x11d00
push 0x40a81c
push dword [0x40a76c]
call sub.kernel32.dll_ReadFile
jmp 0x408344
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push str.sourceKingBellUserName
call sub.kernel32.dll_CreateFileA
mov dword [0x40a76c], eax
push 0
lea eax, [ebp - 8]
push eax
push 0x11d00
push 0x40a81c
push dword [0x40a76c]
call sub.kernel32.dll_WriteFile
push 0x41c5b2
call sub.kernel32.dll_GetLocalTime
call fcn.004075f3
call fcn.0040809c
or eax, eax
je 0x4083d4
mov dword [0x426056], 0
mov byte [0x42605b], al
mov byte [0x42605a], 0
mov byte [0x42605c], 8
mov byte [0x42605d], 2
mov byte [0x42605e], 0
mov dword [0x42605f], 0x2580
mov dword [0x426077], 0x64
mov dword [0x42607b], 0x64
mov dword [0x42607f], 0
mov dword [0x426083], 0
mov dword [0x426087], 0
add al, 0x30
mov byte [0x40a2dd], al
push dword [ebp + 8]
call fcn.00407aa8
jmp 0x4083f2
push 0x40a557
push 0
push 0x401
push dword [0x40a70c]
call sub.user32.dll_SendMessageA
mov byte [0x40a509], 5
mov dword [0x40a794], 0
pop edi
pop esi
leave
ret 4
Function at 0x408b42
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], 0x408402
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov eax, dword [0x40a704]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], str.MainClass
push 0x64
push dword [0x40a704]
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassExA
mov dword [ebp - 0x28], 0x401959
mov dword [ebp - 8], str.MastClass
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassExA
push 0
push dword [0x40a704]
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xca0000
push 0x40a048
push str.MainClass
push 0x200
call sub.user32.dll_CreateWindowExA
mov dword [0x40a708], eax
push 3
push dword [0x40a708]
call sub.user32.dll_ShowWindow
push dword [0x40a708]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_GetMessageA
or eax, eax
je 0x408c47
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_DispatchMessageA
jmp 0x408c20
mov eax, dword [ebp - 0x44]
leave
ret
Function at 0x408b3c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408b8e
test eax, edx
je 0x408b91
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408b51
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 0x408b77
add ecx, 4
js 0x408b67
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408b74
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 0x408b9d
test edx, edx
jne 0x408b44
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

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

Function at 0x40c0e4
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 0x40c11d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404b7c
jmp 0x40c126
mov eax, ebx
mov edx, esi
call fcn.00404ae0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c7e4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c65c
mov eax, dword [0x475508]
cmp byte [eax], 0
je 0x40c860
mov eax, dword [0x4752d4]
call fcn.004033e4
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.00409754
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 0x40c8a8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c896
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x475270]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4787f8]
call fcn.00405e6c
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 0x40d174
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 0x40d24a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404b24
lea eax, [ebp - 4]
call fcn.00404f74
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404f1c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d234
mov eax, ebx
call fcn.00402ec0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d22d
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.00404f1c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d217
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d25c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d217
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 0x40d234
mov eax, dword [ebp - 0x10]
call fcn.00402edc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d251
lea eax, [ebp - 4]
call fcn.00404a8c
ret

Function at 0x41fb9c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x47a9ec
cmp dword [edi], 0
jne 0x41fc18
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x47a9e8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x473b6c
mov ecx, 2
call fcn.004030b0
mov edx, 0x41fb74
lea eax, [esi + 5]
call fcn.0041fb94
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041fb94
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 0x41fbed
mov dword [0x47a9e8], 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 0x4233c4
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.00404f1c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x42341c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x47564c]
mov dl, 1
mov eax, dword [0x422ed0]
call fcn.0040c9b0
call fcn.004044d4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00422fd8
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 0x424574
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 0x42457a
ret
Function at 0x4336cc
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.00404a8c
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43371a
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.00404cfc
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4387fc
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 0x43892f
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 [0x422f30]
call fcn.00423000
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x438905
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004230a0
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00404cfc
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x438944
call fcn.00404da4
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00423104
lea ecx, [ebp - 4]
mov edx, 0x438980
mov eax, dword [ebp - 0xc]
call fcn.0042334c
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040e428
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4388e8
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x43898c
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 [0x474504]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4388ef
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x4389dc
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 0x438a23
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x438a06
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x438a17
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x438a23
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x43da58
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 [0x47ac4c], 0
je 0x43dba1
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x475494]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x43dba1
mov eax, dword [0x47ac50]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x47ac4c]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x43db70
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x47ac4c]
call fcn.004183ec
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x43db68
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x43db68
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x43db68
mov eax, dword [ebp - 0x14]
call fcn.00448334
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43db68
push ebp
call fcn.0043da14
pop ecx
test al, al
jne 0x43db68
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403e5c
test al, al
je 0x43db68
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.00403e5c
cmp byte [ebp - 1], 0
je 0x43db68
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x43db68
mov edx, dword [ebp - 0x14]
mov eax, dword [0x47ac50]
call fcn.0043d184
inc edi
dec ebx
jne 0x43dabd
mov eax, dword [0x47ac50]
cmp dword [eax + 8], 0
jle 0x43db88
mov eax, dword [0x47ac50]
call fcn.0043d23c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43dba1
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0043d878
pop ecx
test al, al
jne 0x43dba1
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 0x4451d0
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.00406b34
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.0043fde0
test ebx, ebx
jne 0x445223
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0044510c
mov ebx, eax
test ebx, ebx
je 0x44530e
cmp esi, ebx
je 0x44524c
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 0x445261
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 0x445299
add eax, 0xffffff5f
sub eax, 2
jb 0x4452b1
dec eax
sub eax, 2
jb 0x4452c5
dec eax
sub eax, 2
jb 0x4452bb
jmp 0x4452cf
add eax, 0xfffffdff
sub eax, 2
jb 0x4452b1
dec eax
sub eax, 2
jb 0x4452c5
dec eax
sub eax, 2
jb 0x4452bb
jmp 0x4452cf
mov byte [esp + 0x120], 0
jmp 0x4452d7
mov byte [esp + 0x120], 2
jmp 0x4452d7
mov byte [esp + 0x120], 1
jmp 0x4452d7
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.00453cd4
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.00441598
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x445310
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret