joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003d650
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1003d6c1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x1003d68f
cmp eax, 2
jne 0x1003d6ab
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x1003d6bb
test ecx, ecx
je 0x1003d6b6
test cl, 1
jne 0x1003d6ab
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x1003d6bb
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x10041f49
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x10071ae1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1007195e

Function at 0x10072290
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
mov edx, dword [ebp + 0xc]
push ebx
sar ecx, 6
push esi
push edi
imul edi, eax, 0x30
mov eax, dword [ecx*4 + 0x100b7650]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100722d1
cmp byte [edx], 0xa
jne 0x100722d1
or byte [eax + edi + 0x28], 4
jmp 0x100722d6
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + ecx]
mov ebx, edx
mov dword [ebp - 8], eax
mov esi, edx
cmp edx, eax
jae 0x100723c7
mov al, byte [ebx]
cmp al, 0x1a
je 0x100723a8
cmp al, 0xd
je 0x100722ff
mov byte [esi], al
inc esi
inc ebx
jmp 0x1007239d
lea eax, [ebx + 1]
cmp eax, dword [ebp - 8]
jae 0x1007231f
cmp byte [eax], 0xa
jne 0x10072314
push 2
mov byte [esi], 0xa
pop eax
jmp 0x1007231a
xor eax, eax
mov byte [esi], 0xd
inc eax
add ebx, eax
inc esi
jmp 0x1007239d
push 0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10072396
cmp dword [ebp - 0x14], 0
je 0x10072396
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100b7650]
test byte [eax + edi + 0x28], 0x48
je 0x1007236d
mov dl, byte [ebp - 1]
cmp dl, 0xa
jne 0x1007235d
mov byte [esi], dl
jmp 0x10072399
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100b7650]
mov byte [eax + edi + 0x2a], dl
jmp 0x10072399
cmp byte [ebp - 1], 0xa
jne 0x1007237f
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x1007237f
mov byte [esi], 0xa
jmp 0x1007231c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10072d91
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1007239a
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 8]
jb 0x100722e8
jmp 0x100723c7
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100b7650]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100723c2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100723c7
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
sub esi, edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100723d2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x100b7650]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x10072416
cmp word [edx], bx
jne 0x10072416
or byte [edi + eax + 0x28], 4
jmp 0x1007241b
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x1007256f
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x1007254f
cmp ax, word [ebp - 0x10]
je 0x10072454
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x10072544
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x1007247a
push 0xa
pop ecx
cmp word [eax], cx
jne 0x1007246a
push ecx
pop eax
push 4
jmp 0x1007246f
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x1007253e
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10072535
cmp dword [ebp - 0x18], 0
je 0x10072535
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x100b7650]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x10072501
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x100724c5
mov word [esi], ax
jmp 0x100724f9
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x100b7650]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x100b7650]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x100b7650]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x10072544
cmp word [ebp - 4], ax
jne 0x10072516
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x10072516
mov word [esi], ax
add esi, 2
jmp 0x10072544
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10072d91
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10072541
jmp 0x10072538
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x10072434
jmp 0x1007256f
mov ecx, dword [ecx*4 + 0x100b7650]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x10072566
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x1007256f
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4032d0
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.00404b68
test esi, esi
jne 0x403306
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.00404c58
jmp 0x403324
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403174
mov edi, eax
test esi, esi
je 0x403324
cmp dword [ebx], 0
je 0x403324
dec esi
jmp 0x40330d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403358
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403aa4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x48b024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403b3c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x403b1c
xor eax, eax
push ebp
push 0x403b15
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 0x403b58
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403b1c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
movzx eax, word [0x48b024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x48b024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404950
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x490048], 0
je 0x4049b1
cmp word [0x49021c], 0xd7b2
jne 0x404979
cmp dword [0x490224], 0
jbe 0x404979
mov eax, 0x490218
call dword [0x490234]
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 0x4049d8
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x48b034], 0
jne 0x4049cd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret

Function at 0x404b08
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x48b038], 0
je 0x404b2e
mov edx, esi
mov eax, ebx
call dword [0x48b038]
jmp 0x404b3d
mov eax, 8
call fcn.00402e84
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x490049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404ad0
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4061a8
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 0x4063d8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x40622b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4063d8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x40622b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4063f4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4062b4
xor eax, eax
push ebp
push 0x4062ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405fe4
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_1
test eax, eax
je 0x406292
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406414
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x406292
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 0x4062b4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
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 0x4063ce
cmp byte [ebp - 0xd], 0
jne 0x4062fb
cmp byte [ebp - 0x12], 0
je 0x4063ce
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406314
dec ebx
cmp byte [ebx], 0x2e
je 0x406323
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406313
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4063ce
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406360
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 0x4063ce
cmp byte [ebp - 0xd], 0
je 0x4063ce
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 0x4063ce
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 0x408ac8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408b1a
test eax, edx
je 0x408b1d
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408add
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 0x408b03
add ecx, 4
js 0x408af3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408b00
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 0x408b29
test edx, edx
jne 0x408ad0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404ff8
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4093e9
test al, 0x10
je 0x4093ed
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404ff8
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40940d
test al, 0x10
jne 0x409411
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40be98
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 0x40bed1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404c58
jmp 0x40beda
mov eax, ebx
mov edx, esi
call fcn.00404bbc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c410
mov eax, dword [0x48f0bc]
cmp byte [eax], 0
je 0x40c614
mov eax, dword [0x48ee94]
call fcn.00403430
call fcn.00402fe0
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.00409604
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 0x40c65c
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
jmp 0x40c64a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x48ee34]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4927f4]
call fcn.00405f8c
push eax
call sub.user32.dll_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA
add esp, 0x444
ret

Function at 0x40cec0
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 0x40cf96
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404c00
lea eax, [ebp - 4]
call fcn.00405050
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404ff8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cf80
mov eax, ebx
call fcn.00402e84
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cf79
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.00404ff8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cf63
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cfa8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cf63
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 0x40cf80
mov eax, dword [ebp - 0x10]
call fcn.00402ea0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cf9d
lea eax, [ebp - 4]
call fcn.00404b68
ret
Function at 0x41c5a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4949e8
cmp dword [edi], 0
jne 0x41c61c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4949e4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x48bae0
mov ecx, 2
call fcn.00403074
mov edx, 0x41c578
lea eax, [esi + 5]
call fcn.0041c598
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041c598
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 0x41c5f1
mov dword [0x4949e4], 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 0x41ec34
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.00404ff8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x41ec8c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x48f200]
mov dl, 1
mov eax, dword [0x41e740]
call fcn.0040c758
call fcn.00404518
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041e848
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 0x41fd44
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 0x41fd4a
ret
Function at 0x43702c
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.00404b68
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43707a
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.00404dd8
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43b0fc
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 0x43b22f
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 [0x41e7a0]
call fcn.0041e870
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x43b205
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041e910
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00404dd8
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x43b244
call fcn.00404e80
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041e974
lea ecx, [ebp - 4]
mov edx, 0x43b280
mov eax, dword [ebp - 0xc]
call fcn.0041ebbc
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040e218
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x43b1e8
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x43b28c
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 [0x48c610]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43b1ef
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FreeLibrary_1
ret

Function at 0x43b2dc
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 0x43b323
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43b306
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43b317
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x43b323
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x440360
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 [0x494c50], 0
je 0x4404a9
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x48f054]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x4404a9
mov eax, dword [0x494c54]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x494c50]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x440478
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x494c50]
call fcn.00414e84
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x440470
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x440470
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x440470
mov eax, dword [ebp - 0x14]
call fcn.0044ab50
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x440470
push ebp
call fcn.0044031c
pop ecx
test al, al
jne 0x440470
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403ea0
test al, al
je 0x440470
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.00403ea0
cmp byte [ebp - 1], 0
je 0x440470
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x440470
mov edx, dword [ebp - 0x14]
mov eax, dword [0x494c54]
call fcn.0043fa8c
inc edi
dec ebx
jne 0x4403c5
mov eax, dword [0x494c54]
cmp dword [eax + 8], 0
jle 0x440490
mov eax, dword [0x494c54]
call fcn.0043fb44
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4404a9
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00440180
pop ecx
test al, al
jne 0x4404a9
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