joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10025029
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x100250e5
lea ecx, [ebp - 0x14]
call fcn.1000d5c0
cmp byte [ebp - 8], 0
je 0x100250dc
push ebx
xor ebx, ebx
mov ecx, 0x190
lea eax, [ebp - 0x1a4]
mov byte [eax], bl
inc eax
dec ecx
jne 0x1002505e
push edi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 1
push dword [ebp + 8]
call dword [ebp - 0x10]
test eax, eax
jne 0x100250db
push esi
mov esi, dword [ebp - 4]
jmp 0x1002509e
cmp ebx, 0x64
jae 0x100250a2
cmp word [esi + 8], 1
jne 0x1002509c
mov edi, dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp + ebx*4 - 0x1a4], edi
inc ebx
xor edi, edi
mov esi, dword [esi]
cmp esi, edi
jne 0x1002507d
push 1
push dword [ebp - 4]
call dword [ebp - 0xc]
cmp ebx, edi
je 0x100250da
call fcn.10018718
mov esi, eax
cmp esi, edi
je 0x100250da
mov eax, ebx
shl eax, 2
push eax
lea eax, [ebp - 0x1a4]
push eax
push 3
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
leave
ret 8
Function at 0x10025716
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x870
and dword [ebp - 4], 0
and word [ebp - 0x460], 0
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x460]
push eax
call fcn.1001a49b
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x460]
push eax
call edi
test eax, eax
je 0x10025886
lea eax, [ebp - 0x460]
push eax
call fcn.100247dc
test al, al
je 0x10025886
and word [ebp - 0x870], 0
lea eax, [ebp - 0x460]
push eax
push esi
lea eax, [ebp - 0x870]
push eax
call fcn.10007472
push 0x1002ff14
push esi
lea eax, [ebp - 0x870]
push eax
call fcn.10019b44
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x870]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x10025886
and word [ebp - 0x668], 0
lea eax, [ebp - 0x460]
push eax
push esi
lea eax, [ebp - 0x668]
push eax
call fcn.10007472
lea eax, [ebp - 0x22c]
push eax
push esi
lea eax, [ebp - 0x668]
push eax
call fcn.10019b44
mov eax, dword [ebp - 0x258]
and eax, 0x10
cmp al, 0x10
jne 0x10025865
push 0x1002e688
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x10025819
lea eax, [ebp - 0x22c]
push eax
call edi
cmp eax, 2
jle 0x10025865
lea eax, [ebp - 0x22c]
push eax
call edi
cmp word [ebp + eax*2 - 0x22e], 0x7d
jne 0x10025865
push dword [ebp + 0x10]
lea eax, [ebp - 0x668]
push eax
call fcn.1002565c
test al, al
je 0x10025865
cmp dword [ebp + 0xc], 0x7fffffff
ja 0x1002585b
lea eax, [ebp - 0x668]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10007472
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 4], eax
jne 0x1002587d
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100257b8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 0xc

Function at 0x1002ac20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push eax
push edx
mov eax, dword [ebp + 8]
xor edx, edx
mov dl, 0x60
cmp dword [ebp + 0xc], 0
je 0x1002ac3e
mov ecx, dword [ebp + 0xc]
xor byte [eax], dl
inc eax
inc edx
dec ecx
jne 0x1002ac35
jmp 0x1002ac4a
xor ecx, ecx
xor byte [eax], dl
inc eax
inc edx
inc ecx
cmp byte [eax], 0
jne 0x1002ac40
pop edx
pop eax
leave
ret 8

Function at 0x1002b0fd
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
lea eax, [ebp - 0x24]
push eax
call sub.KERNEL32.dll_GetSystemInfo
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.1002af24
leave
ret

Function at 0x1002b119
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
lea eax, [ebp - 0x24]
push eax
call sub.KERNEL32.dll_GetSystemInfo
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.1002adb0
leave
ret
Function at 0x1002b255
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x1003be1e]
or eax, eax
jne 0x1002b276
push 0x40
push 0x3000
push 0x400
push 0
call sub.KERNEL32.dll_VirtualAlloc
mov dword [0x1003be1e], eax
push 0x100423f0
call sub.KERNEL32.dll_InitializeCriticalSection
mov byte [0x1003be22], 0
mov byte [0x1003be23], 0
ret

Function at 0x1002ba0c
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push edx
push ecx
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [ebp - 0x20], eax
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [ebp - 0x24], eax
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
je 0x1002ba8c
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 0x1c
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x28]
call sub.KERNEL32.dll_Thread32First
cmp eax, 1
jne 0x1002ba8c
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
cmp dword [ebp - 0x14], ebx
je 0x1002ba7c
cmp dword [ebp - 0x10], edx
jne 0x1002ba7c
push dword [ebp - 0x14]
push 0
push 2
call sub.KERNEL32.dll_OpenThread
or eax, eax
je 0x1002ba7c
mov ebx, eax
push ebx
call sub.KERNEL32.dll_SuspendThread
push ebx
call sub.KERNEL32.dll_CloseHandle
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x28]
call sub.KERNEL32.dll_Thread32Next
or eax, eax
jne 0x1002ba4e
pop ecx
pop edx
pop ebx
leave
ret

Function at 0x1002ba91
Capabilities:
Enumerate threads
Resume thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push edx
push ecx
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [ebp - 0x20], eax
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [ebp - 0x24], eax
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
je 0x1002bb11
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 0x1c
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x28]
call sub.KERNEL32.dll_Thread32First
cmp eax, 1
jne 0x1002bb11
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
cmp dword [ebp - 0x14], ebx
je 0x1002bb01
cmp dword [ebp - 0x10], edx
jne 0x1002bb01
push dword [ebp - 0x14]
push 0
push 2
call sub.KERNEL32.dll_OpenThread
or eax, eax
je 0x1002bb01
mov ebx, eax
push ebx
call sub.KERNEL32.dll_ResumeThread
push ebx
call sub.KERNEL32.dll_CloseHandle
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x28]
call sub.KERNEL32.dll_Thread32Next
or eax, eax
jne 0x1002bad3
pop ecx
pop edx
pop ebx
leave
ret
Function at 0x1002bb16
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push esi
push edi
push ebx
push edx
mov eax, dword [ebp + 8]
cmp byte [eax], 0xe9
je 0x1002bbd3
cmp byte [eax], 0xea
je 0x1002bbd3
cmp byte [eax], 0xeb
je 0x1002bbd3
xor ecx, ecx
mov ebx, eax
jmp 0x1002bb4e
push ebx
call fcn.1002bbe7
add ecx, eax
add ebx, eax
cmp ecx, 6
jb 0x1002bb44
push dword [ebp + 0x14]
push 0x25
call fcn.1002b1e3
mov edi, dword [0x1003be1e]
add edi, eax
mov dword [ebp - 8], edi
mov esi, dword [ebp + 8]
rep movsb byte es:[edi], byte [esi]
mov byte [edi], 0x68
mov dword [edi + 1], ebx
mov byte [edi + 5], 0xc3
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [edx + 0x19], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx + 0x21], eax
lea eax, [ebp - 4]
push eax
push 0x40
push 6
push dword [ebp + 8]
call sub.KERNEL32.dll_VirtualProtect
or eax, eax
je 0x1002bbc5
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov byte [edi], 0x68
mov dword [edi + 1], eax
mov byte [edi + 5], 0xc3
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 6
push dword [ebp + 8]
call sub.KERNEL32.dll_VirtualProtect
mov eax, 1
jmp 0x1002bbdf
push 0x20000303
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x1002bbdf
push 0x20000300
call sub.KERNEL32.dll_SetLastError
xor eax, eax
pop edx
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x405ca8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405d0e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404330
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402d30
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405cf8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d15
lea eax, [ebp - 0x10]
call fcn.004040c0
ret

Function at 0x40af3c
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 0x40af75
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004041b0
jmp 0x40af7e
mov eax, ebx
mov edx, esi
call fcn.00404114
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40af88
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 0x40afa9
mov al, byte [esp]
jmp 0x40afab
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bf6c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c042
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404158
lea eax, [ebp - 8]
call fcn.004045d0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404580
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c02c
mov eax, ebx
call fcn.004026cc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c025
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 - 8]
call fcn.00404580
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c00f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c054
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c00f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c02c
mov eax, dword [ebp - 0x10]
call fcn.004026ec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c049
lea eax, [ebp - 8]
call fcn.004040c0
ret
Function at 0x40c554
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c5b8
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404330
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408200
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c5bf
lea eax, [ebp - 0xc]
call fcn.004040c0
ret

Function at 0x413bf0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xd2
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x7b
mov byte [ebp - 0x67], 0x44
mov byte [ebp - 0x66], 0x5f
mov byte [ebp - 0x65], 0x59
mov byte [ebp - 0x64], 0x58
mov byte [ebp - 0x63], 0x4c
mov byte [ebp - 0x62], 0x41
mov byte [ebp - 0x61], 0x7d
mov byte [ebp - 0x60], 0x5f
mov byte [ebp - 0x5f], 0x42
mov byte [ebp - 0x5e], 0x59
mov byte [ebp - 0x5d], 0x48
mov byte [ebp - 0x5c], 0x4e
mov byte [ebp - 0x5b], 0x59
mov byte [ebp - 0x5a], 0x2d
call fcn.0041385f
push eax
push edi
push dword [ebp + 8]
call fcn.00413814
mov dword [ebp - 0xc4], eax
mov byte [ebp - 0x44], bl
lea eax, [ebp - 0x44]
mov byte [ebp - 0x43], bl
push eax
mov byte [ebp - 0x42], 0xfd
mov byte [ebp - 0x41], bl
mov byte [ebp - 0x40], 0x4e
mov byte [ebp - 0x3f], 0x6d
mov byte [ebp - 0x3e], 0x63
mov byte [ebp - 0x3d], 0x66
mov byte [ebp - 0x3c], 0x4e
mov byte [ebp - 0x3b], 0x6b
mov byte [ebp - 0x3a], 0x60
mov byte [ebp - 0x39], 0x70
mov byte [ebp - 0x38], 0x63
mov byte [ebp - 0x37], 0x70
mov byte [ebp - 0x36], 0x7b
mov byte [ebp - 0x35], 0x43
mov byte [ebp - 0x34], 2
call fcn.0041385f
push eax
push edi
push dword [ebp + 8]
call fcn.00413814
add esp, 0x20
mov dword [ebp - 0xc8], eax
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
inc esi
test dword [esi - 1], edi
invalid
invalid
jnp 0x413c45
popfd
jg 0x413cbf
invalid
inc esi
inc ebp
add bl, 0xc6
inc ebp
and ecx, 0xf08245c6
mov byte [ebp - 0x7d], 0xc9
mov byte [ebp - 0x7c], 0xeb
test bl, ch
xor eax, eax
Function at 0x413f74
Capabilities:
Inspect section memory permissions

Disassembly:
mov esi, dword [ebp - 0x88]
mov ax, word [ebp - 8]
cmp ax, word [esi + 6]
jne 0x413f32
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov esi, 0x60000000
jmp 0x413f5a
call fcn.0041384f
inc ecx
into
mov edx, 0x45b70f09
clc
lea eax, [eax + eax*4]
mov ecx, dword [esi + eax*8 + 0x104]
mov edx, dword [esi + eax*8 + 0x108]
lea eax, [esi + eax*8 + 0xf8]
mov esi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp + 8], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp + 8]
inc ebp
or byte [edi + 0x38], dh
inc ebp
or byte [edi + 0x38], dh
mov edx, esi
mov edi, esi
and edx, 0x20000000
and edi, 0x40000000
and esi, 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x413f99
or byte [eax + ecx], 1
cmp edi, ebx
je 0x413fa1
or byte [eax + ecx], 2
cmp esi, ebx
je 0x413faa
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp + 8]
jbe 0x413f8e
inc dword [ebp - 8]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp - 8]
cmp cx, word [eax + 6]
jbe 0x413f13
mov esi, dword [ebp + 0xc]
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
add bl, byte [ecx + 0xf]
mov dh, 4
pop es
sub eax, ecx
je 0x413ffd
dec eax
je 0x413ff4
sub eax, 3
je 0x413feb
mov dword [ebp - 4], 0x40
jmp 0x414000
mov dword [ebp - 4], 4
jmp 0x414000
mov dword [ebp - 4], 0x20
jmp 0x414000
mov dword [ebp - 4], ecx
call fcn.0041384f
aas
out dx, eax
jb 0x414048
cmp dword [ebp - 4], 0x40
je 0x414027
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push esi
call dword [ebp - 0xc4]
test eax, eax
je 0x41405a
add esi, dword [ebp - 0xac]
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x413fcc
mov eax, dword [ebp - 0x88]
mov esi, dword [eax + 0x28]
add esi, dword [ebp + 0xc]
jne 0x41404e
invalid
invalid

Function at 0x41a860
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x47f884
cmp dword [edi], 0
jne 0x41a8dc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x47f880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47b3f0
mov ecx, 2
call fcn.004028c8
mov edx, 0x41a838
lea eax, [esi + 5]
call fcn.0041a858
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a858
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 0x41a8b1
mov dword [0x47f880], 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 0x41be60
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 0x41be66
ret
Function at 0x41e2fc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41e34d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41e334
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41e324
jmp 0x41e34d
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41e335
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43d35c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x47e3a8]
cmp byte [eax + 0xc], 0
je 0x43d4c9
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43d4c2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x47fb90], 0
jne 0x43d3b0
push 0x43d4d0
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43d4d8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fb90], eax
cmp dword [0x47bb64], 0
jne 0x43d4ab
push 0x43d4e8
call sub.kernel32.dll_LoadLibraryA
mov dword [0x47bb64], eax
cmp dword [0x47bb64], 0
je 0x43d4ab
push 0x43d4f4
mov eax, dword [0x47bb64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fb94], eax
push 0x43d504
mov eax, dword [0x47bb64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fb98], eax
push 0x43d518
mov eax, dword [0x47bb64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fb9c], eax
push 0x43d530
mov eax, dword [0x47bb64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fba0], eax
push 0x43d548
mov eax, dword [0x47bb64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fba4], eax
push 0x43d55c
mov eax, dword [0x47bb64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fba8], eax
push 0x43d574
mov eax, dword [0x47bb64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fbac], eax
push 0x43d58c
mov eax, dword [0x47bb64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fbb0], eax
push 0x43d5a8
mov eax, dword [0x47bb64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fbb4], eax
push 0x43d5b4
mov eax, dword [0x47bb64]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fbb8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43d4c9
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x441354
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.004040c0
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4413a3
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.00404330
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x448ab8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x448b08]
test si, 4
je 0x448acc
or bl, 1
test si, 8
je 0x448ad6
or bl, 4
test si, 1
je 0x448ae0
or bl, 8
test si, 2
je 0x448aea
or bl, 0x10
test si, 0x10
je 0x448af4
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x448b03
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44f1ec
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44f1fe
add esp, 0xfffffff0
call fcn.00403694
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004197d0
mov eax, dword [0x47e024]
mov dword [eax + 4], ebx
mov dword [eax], 0x44f590
mov eax, dword [0x47e030]
mov dword [eax + 4], ebx
mov dword [eax], 0x44f59c
mov eax, ebx
call fcn.0044f5a8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411a94]
call fcn.00403340
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411a94]
call fcn.00403340
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411a94]
call fcn.00403340
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411a94]
call fcn.00403340
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411a94]
call fcn.00403340
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44b9c4
push eax
push 0
push 0
mov eax, dword [0x47e19c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b234]
call fcn.0041c9a8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b234]
call fcn.0041c9a8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b234]
call fcn.0041c9a8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044fa58
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44f8ec
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44f8ec
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44f8ec
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44f33b
call fcn.004036ec
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret