joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1010fdb1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x101ae568]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1010fdf1
cmp byte [ebx], 0xa
jne 0x1010fdf1
or byte [edi + eax + 0x28], 4
jmp 0x1010fdf6
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1010fef5
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1010fed8
inc eax
cmp dl, 0xd
je 0x1010fe22
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1010fe48
cmp eax, ecx
jae 0x1010fe56
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1010fe0a
jmp 0x1010fef5
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1010fed3
cmp dword [ebp - 0x10], 0
je 0x1010fed3
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x101ae568]
test byte [eax + edi + 0x28], 0x48
je 0x1010fead
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1010fe98
mov byte [esi], dl
jmp 0x1010fea9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x101ae568]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1010fef5
cmp byte [ebp - 1], 0xa
jne 0x1010febc
cmp esi, ebx
jne 0x1010febc
mov byte [esi], 0xa
jmp 0x1010fef4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1010d627
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1010fef5
mov byte [esi], 0xd
jmp 0x1010fef4
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x101ae568]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1010fef2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1010fef5
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1010ff01
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x101ae568]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1010ff47
cmp word [ebx], dx
jne 0x1010ff47
or byte [eax + edi + 0x28], 4
jmp 0x1010ff4c
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x101100af
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1011008f
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1010ff8d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1010ffc3
cmp eax, edx
jae 0x1010ffd1
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1010ff68
jmp 0x101100af
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1011008a
cmp dword [ebp - 0x18], 0
je 0x1011008a
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x101ae568]
test byte [eax + edi + 0x28], 0x48
je 0x10110060
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10110024
mov word [esi], cx
jmp 0x1011005b
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x101ae568]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x101ae568]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x101ae568]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x101100af
pop eax
cmp word [ebp - 4], ax
jne 0x10110070
cmp esi, ebx
jne 0x10110070
mov word [esi], ax
jmp 0x101100ac
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1010d627
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x101100af
push 0xd
pop eax
jmp 0x1011006b
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x101ae568]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x101100a9
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x101100af
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x101129cb
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10112a68
push ebx
push esi
call fcn.10112994
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10112928
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10112a15
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10112a67
push edi
push eax
call fcn.1010d22d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10112a35
call fcn.1010ca6e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10112a66
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10112928
add esp, 0x20
test eax, eax
jne 0x10112a54
push edi
call fcn.1010ca6e
jmp 0x10112a5c
push ebx
call fcn.1010ca6e
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x101189e5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.10118961
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10118b54
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10118b54
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10118b09
jg 0x10118a41
test eax, eax
je 0x10118aff
push 1
push 0x1000
call fcn.1010ca11
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10118a64
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10118af6
push 0x8000
push ebx
call fcn.1010247c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10118a8d
jg 0x10118a88
cmp ecx, 0x1000
jb 0x10118a8d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1010fb95
add esp, 0x10
cmp eax, 0xffffffff
je 0x10118ad2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10118a88
jl 0x10118ab9
test ecx, ecx
jne 0x10118a7a
push dword [ebp - 0xc]
push ebx
call fcn.1010247c
push esi
call fcn.1010ca6e
add esp, 0xc
xor ebx, ebx
jmp 0x10118b62
cmp byte [edi + 0x24], 0
je 0x10118ae9
cmp dword [edi + 0x20], 5
jne 0x10118ae9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10118af4
mov ebx, dword [edi + 0x18]
jmp 0x10118af6
xor ebx, ebx
push esi
call fcn.1010ca6e
pop ecx
jmp 0x10118b62
test ecx, ecx
jg 0x10118acb
jl 0x10118b09
test eax, eax
jae 0x10118acb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1010d627
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10118b29
cmp byte [edi + 0x1c], 0
je 0x10118acb
jmp 0x10118b5a
push ebx
call fcn.1010f1fe
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10118acb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10118b62
cmp byte [edi + 0x1c], 0
je 0x10118b5f
mov ebx, dword [edi + 0x18]
jmp 0x10118b62
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1010d627
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1011bac0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1011baed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1011baed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402fc4
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4036c4
Capabilities:
Query or enumerate registry value

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

Function at 0x404568
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x51a048], 0
je 0x4045c9
cmp word [0x51a21c], 0xd7b2
jne 0x404591
cmp dword [0x51a224], 0
jbe 0x404591
mov eax, 0x51a218
call dword [0x51a234]
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 0x4045f0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x471030], 0
jne 0x4045e5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4081a8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408238
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408238
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4081eb
test edx, 3
jne 0x4081da
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4081e5
jmp 0x4081eb
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4081eb
cmp dword [ecx - 8], 1
je 0x4081f5
mov edx, ebx
or edx, 3
call fcn.00404e34
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 0x408207
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004046e8

Function at 0x408244
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4082d4
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4082d4
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408287
test edx, 3
jne 0x408276
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408281
jmp 0x408287
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408287
cmp dword [ecx - 8], 1
je 0x408291
mov edx, ebx
or edx, 3
call fcn.00404e34
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 0x4082a3
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004046e8

Function at 0x40b6b0
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 0x40b6e9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004047d8
jmp 0x40b6f2
mov eax, ebx
mov edx, esi
call fcn.0040473c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bc28
mov eax, dword [0x519324]
cmp byte [eax], 0
je 0x40be2c
mov eax, dword [0x51911c]
call fcn.0040308c
call fcn.00402e08
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.00408e48
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 0x40be74
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40be62
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x5190c0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x51c7f4]
call fcn.00405904
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 0x40c6c0
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 0x40c796
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404780
lea eax, [ebp - 4]
call fcn.00404bfc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404bac
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c780
mov eax, ebx
call fcn.00402cac
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c779
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.00404bac
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c763
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c7a8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c763
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 0x40c780
mov eax, dword [ebp - 0x10]
call fcn.00402cc8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c79d
lea eax, [ebp - 4]
call fcn.004046e8
ret
Function at 0x41b760
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x51d300
cmp dword [edi], 0
jne 0x41b7dc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x51d2fc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x471ad8
mov ecx, 2
call fcn.00402e9c
mov edx, 0x41b738
lea eax, [esi + 5]
call fcn.0041b758
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b758
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 0x41b7b1
mov dword [0x51d2fc], 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 0x41df38
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.00404bac
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41df90
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x51945c]
mov dl, 1
mov eax, dword [0x41da5c]
call fcn.0040bf70
call fcn.00404130
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041db64
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 0x41f120
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 0x41f126
ret
Function at 0x43734c
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.004046e8
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43739a
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.00404958
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43b41c
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 0x43b54f
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 [0x41dabc]
call fcn.0041db8c
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x43b525
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041dc2c
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00404958
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x43b564
call fcn.004049f8
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041dc90
lea ecx, [ebp - 4]
mov edx, 0x43b5a0
mov eax, dword [ebp - 0xc]
call fcn.0041dec0
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040da0c
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x43b508
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x43b5ac
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 [0x472554]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43b50f
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x43b5fc
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 0x43b643
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43b626
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43b637
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x43b643
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x4408f8
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 [0x51d53c], 0
je 0x440a41
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x5192bc]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x440a41
mov eax, dword [0x51d540]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x51d53c]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x440a10
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x51d53c]
call fcn.0041457c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x440a08
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x440a08
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x440a08
mov eax, dword [ebp - 0x14]
call fcn.0044ac50
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x440a08
push ebp
call fcn.004408b4
pop ecx
test al, al
jne 0x440a08
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403ab8
test al, al
je 0x440a08
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.00403ab8
cmp byte [ebp - 1], 0
je 0x440a08
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x440a08
mov edx, dword [ebp - 0x14]
mov eax, dword [0x51d540]
call fcn.00440024
inc edi
dec ebx
jne 0x44095d
mov eax, dword [0x51d540]
cmp dword [eax + 8], 0
jle 0x440a28
mov eax, dword [0x51d540]
call fcn.004400dc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x440a41
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00440718
pop ecx
test al, al
jne 0x440a41
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