joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e11b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00424d06
xor ebx, ebx
cmp dword [0x445ad0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x42e1f1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42e2d1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x42e2d1
push eax
call fcn.00424c98
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x445ad0], eax
call esi
push eax
call fcn.00424c98
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x445ad4], eax
call esi
push eax
call fcn.00424c98
mov dword [0x445ad8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041f53b
test eax, eax
pop ecx
pop ecx
je 0x42e1bf
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041fa20
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x42e1f1
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00424c98
cmp eax, ebx
pop ecx
mov dword [0x445ae0], eax
je 0x42e1f1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00424c98
pop ecx
mov dword [0x445adc], eax
mov eax, dword [0x445adc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x42e276
cmp dword [0x445ae0], ecx
je 0x42e276
push eax
call fcn.00424d0f
push dword [0x445ae0]
mov esi, eax
call fcn.00424d0f
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x42e276
cmp edi, ebx
je 0x42e276
call esi
cmp eax, ebx
je 0x42e243
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42e243
test byte [ebp - 0x18], 1
jne 0x42e276
lea eax, [ebp - 0x10]
push eax
call fcn.0041f572
test eax, eax
pop ecx
je 0x42e25e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041fa20
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x42e26d
or dword [ebp + 0x10], 0x200000
jmp 0x42e2b1
or dword [ebp + 0x10], 0x40000
jmp 0x42e2b1
mov eax, dword [0x445ad4]
cmp eax, dword [ebp - 8]
je 0x42e2b1
push eax
call fcn.00424d0f
cmp eax, ebx
pop ecx
je 0x42e2b1
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42e2b1
mov eax, dword [0x445ad8]
cmp eax, dword [ebp - 8]
je 0x42e2b1
push eax
call fcn.00424d0f
cmp eax, ebx
pop ecx
je 0x42e2b1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x445ad0]
call fcn.00424d0f
cmp eax, ebx
pop ecx
je 0x42e2d1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42e2d3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402156
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4bc14c]
jne 0x402160
repz ret
jmp fcn.00402dbd

Function at 0x40fcea
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4bc14c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405b6b
and dword [ebp - 0x14], 0
cmp dword [0x4befe4], 0
mov dword [ebp - 0x18], eax
jne 0x40fd9d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40fe45
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40fe45
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4befe4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4befe8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4befec], eax
call edi
push eax
call esi
mov dword [0x4beff4], eax
test eax, eax
je 0x40fd9d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4beff0], eax
mov eax, dword [0x4beff0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40fdf6
cmp dword [0x4beff4], ecx
je 0x40fdf6
push eax
call esi
push dword [0x4beff4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40fdf6
test ebx, ebx
je 0x40fdf6
call edi
test eax, eax
je 0x40fded
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40fded
test byte [ebp - 8], 1
jne 0x40fdf6
or dword [ebp + 0x10], 0x200000
jmp 0x40fe29
mov eax, dword [0x4befe8]
cmp eax, dword [ebp - 0x18]
je 0x40fe29
push eax
call esi
test eax, eax
je 0x40fe29
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40fe29
mov eax, dword [0x4befec]
cmp eax, dword [ebp - 0x18]
je 0x40fe29
push eax
call esi
test eax, eax
je 0x40fe29
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4befe4]
call esi
test eax, eax
je 0x40fe45
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40fe47
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402156
leave
ret
Function at 0x4ad3b0
Capabilities:
Create pipe

Disassembly:
sub esp, 0x41c
mov eax, dword [0x4bc14c]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [esp + 0x420]
mov eax, dword [eax]
push ebx
mov ebx, dword [0x4c0d7c]
push edi
mov edi, dword [0x4c31fc]
call fcn.004ad320
cmp dword [0x4c31fc], 0x2f
jne 0x4ad444
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
call fcn.004ad350
mov ecx, dword [esp + 0x420]
pop edi
pop ebx
xor ecx, esp
call fcn.00402156
add esp, 0x41c
ret
Function at 0x4ad900
Capabilities:
Get disk information
Read file on windows

Disassembly:
sub esp, 0x41c
mov eax, dword [0x4bc14c]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [0x4c31fc]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTimes]
push edi
mov ebx, 0x1519a5
mov edi, 0x8e46a7b8
lea esp, [esp]
mov dword [0x4c2e64], edi
cmp eax, 0x3dc
jne 0x4ad94a
push 0
push 0
push 0
call esi
mov eax, dword [0x4c31fc]
dec ebx
jne 0x4ad930
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
xor esi, esi
jmp 0x4ad960
cmp eax, 0x997
jne 0x4ad9a7
xor eax, eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x30]
push ecx
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call ebx
mov eax, dword [0x4c31fc]
cmp esi, 0x845fb3
jne 0x4ad9be
mov eax, dword [0x4bdd70]
add eax, 0xa231
mov dword [0x4c31fc], eax
cmp eax, 0x141
jne 0x4ad9d9
mov dword [0x4bf508], 0xec58acac
mov dword [0x4bf50c], 0xffffffff
inc esi
cmp esi, 0x12d131e
jl 0x4ad960
call fcn.004ad460
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00402156
add esp, 0x41c
ret 0x10
Function at 0x58d120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x136000]
push edi
jmp 0x58d13a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x58d141
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x58d130
mov eax, 1
add ebx, ebx
jne 0x58d153
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x58d164
jne 0x58d183
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x58d183
dec eax
add ebx, ebx
jne 0x58d170
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x58d148
add ebx, ebx
jne 0x58d17f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x58d1d5
xor ecx, ecx
sub eax, 3
jb 0x58d19b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x58d20a
sar eax, 1
mov ebp, eax
jmp 0x58d1a6
add ebx, ebx
jne 0x58d1a6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x58d174
inc ecx
add ebx, ebx
jne 0x58d1b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x58d174
add ebx, ebx
jne 0x58d1c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x58d1b6
jne 0x58d1d2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x58d1b6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x58d1f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x58d1e6
jmp 0x58d136
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x58d1f4
add edi, ecx
jmp 0x58d136
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x58d212
cmp byte [edi], 0x11
jne 0x58d212
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x58d217
lea edi, [esi + 0x186000]
mov eax, dword [edi]
or eax, eax
je 0x58d28f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2411d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x241354]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x58d244
mov ecx, edi
jns 0x58d273
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x241358]
or eax, eax
je 0x58d289
mov dword [ebx], eax
add ebx, 4
jmp 0x58d261
call dword [esi + 0x241368]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x58d2c0
cmp al, 0xef
ja 0x58d2b3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x58d295
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x58d2a2
mov ebp, dword [esi + 0x24135c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x58d2f4
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x4026ac
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x4026e9
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x108]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402709
lea eax, [esp + 0x108]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x104
call fcn.0040389c
add esp, 0x20c
pop esi
pop ebx
ret

Function at 0x4027d0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x4027ff
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403754
jmp 0x40281d
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402764
mov edi, eax
test ebx, ebx
je 0x40281d
cmp dword [esi], 0
je 0x40281d
dec ebx
jmp 0x402806
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402aa4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402b3c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402b1c
xor eax, eax
push ebp
push 0x402b15
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 0x402b58
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 0x402b1c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x40432c
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 0xf003f
push 0
push 0x4044c8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4043dc
xor eax, eax
push ebp
push 0x4043d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
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 0x4043be
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4044e8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4043dc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
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 0x4044bd
cmp byte [ebp - 0xd], 0
jne 0x40441e
cmp byte [ebp - 0x12], 0
je 0x4044bd
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404437
dec ebx
cmp byte [ebx], 0x2e
je 0x404446
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404436
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4044bd
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404473
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4044bd
cmp byte [ebp - 0xd], 0
je 0x4044bd
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4044bd
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
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 0x4049a0
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x4049d0
push 0
push dword [ebx]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x4049c6
xor edx, edx
div dword [ebx + 8]
pop ebx
ret
call fcn.004026a0
or eax, 0xffffffff
jmp 0x4049c4
mov eax, 0x67
call fcn.00402690
or eax, 0xffffffff
jmp 0x4049c4
Function at 0x407248
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 0x407281
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403754
jmp 0x40728a
mov eax, ebx
mov edx, esi
call fcn.00403708
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x410728
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 0x41072e
ret
Function at 0x4187c0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x114], 0
je 0x4187dc
cmp dword [esi + 4], 0
je 0x418803
mov eax, ebx
call fcn.004179f4
test eax, eax
jne 0x4187f5
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x418913
mov edx, esi
mov eax, ebx
call fcn.00418464
jmp 0x418913
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x41890c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00419dc0
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.004168fc
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004187c0
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00419dc0
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418913
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41b8a8
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.00403670
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x41b909
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x41b909
cmp byte [ebp - 0x102], 0
je 0x41b909
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.0040389c
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41cc98
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x28], 0
je 0x41cd19
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41ccca
add word [ebp - 6], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41ccdc
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x41cce8
add word [ebp - 6], 0x8000
xor ebx, ebx
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.0041cb24
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41cd0d
push ebp
mov eax, dword [ebp - 4]
call fcn.0041cc08
pop ecx
mov ebx, eax
cmp bl, 2
je 0x41cce8
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41eb10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x42c6dc
cmp dword [edi], 0
jne 0x41eb8c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x42c6d8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x42b6f4
mov ecx, 2
call fcn.00402724
mov edx, 0x41eae8
lea eax, [esi + 5]
call fcn.0041eb08
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041eb08
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 0x41eb61
mov dword [0x42c6d8], 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 0x41ecb0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41ed00]
test si, 4
je 0x41ecc4
or bl, 1
test si, 8
je 0x41ecce
or bl, 4
test si, 1
je 0x41ecd8
or bl, 8
test si, 2
je 0x41ece2
or bl, 0x10
test si, 0x10
je 0x41ecec
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41ecfb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x41ed04
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41ed3c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41ed1d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41ed2c
or bl, 4
test esi, 0x20000000
je 0x41ed37
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret