joyce8/EMBER2024-capa huggingface dataset:
Function at 0x73a5501d
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x73a81434], 0xffffffff
push esi
je 0x73a55088
mov esi, dword [esp + 8]
test esi, esi
je 0x73a5508a
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x73a58c7a
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x73a58c88
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x73a58c96
mov eax, dword [esi + 0x38]
test eax, eax
jne 0x73a58ca4
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x73a58cb2
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x73a58cc0
push esi
call sym.Ordinal_974
add esp, 4
push 0
mov eax, dword [0x73a81434]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret
mov eax, dword [0x73a81434]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x73a5507a
jmp 0x73a5502f
push eax
call sym.Ordinal_974
add esp, 4
jmp 0x73a5503a
push eax
call sym.Ordinal_974
add esp, 4
jmp 0x73a55045
push eax
call sym.Ordinal_974
add esp, 4
jmp 0x73a55050
push eax
call sym.Ordinal_974
add esp, 4
jmp 0x73a5505b
push eax
call sym.Ordinal_974
add esp, 4
jmp 0x73a55066
push eax
call sym.Ordinal_974
add esp, 4
jmp 0x73a55071

Function at 0x73a5509e
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0x73a81434]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x73a58cce
mov eax, esi
pop esi
ret
push 0x70
push 1
call sym.Ordinal_944
add esp, 8
mov esi, eax
test esi, esi
je 0x73a58d13
push esi
mov eax, dword [0x73a81434]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x73a58d13
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x14], 1
mov dword [esi + 0x50], 0x73a811e0
jmp 0x73a550b5
push 0x10
call sym.Ordinal_524
add esp, 4
jmp 0x73a550b5

Function at 0x73a550b9
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.73a53706
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x73a81434], eax
cmp eax, 0xffffffff
je 0x73a58d22
push 0x70
push 1
call sym.Ordinal_944
add esp, 8
mov esi, eax
test esi, esi
je 0x73a58d22
push esi
mov eax, dword [0x73a81434]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x73a58d22
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov eax, 1
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], 0x73a811e0
mov dword [esi + 0x14], 1
pop esi
ret
xor eax, eax
jmp 0x73a55120

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x73a6b7e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.73a60737
add esp, 4
mov eax, 0xffffffff
ret
test al, 1
je 0x73a6b808
test byte [esp + 8], 2
je 0x73a6b808
call sym.Ordinal_561
mov dword [eax], 0xd
call sym.Ordinal_464
mov dword [eax], 5
mov eax, 0xffffffff
jmp 0x73a6b7df
xor eax, eax
jmp 0x73a6b7df
Function at 0x73a6b93e
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x73a6b9a8
lea eax, [ebp - 0x214]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x73a6b9a8
push dword [ebp - 0x214]
mov word [ebp - 8], 0x3d
call sym.Ordinal_1094
mov word [ebp - 6], ax
add esp, 4
lea eax, [ebp - 0x214]
lea ecx, [ebp - 8]
mov word [ebp - 4], 0x3a
mov word [ebp - 2], 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
mov eax, 0
jne 0x73a6b9bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.73a60737
add esp, 4
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret

Function at 0x73a6c518
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
lea eax, [ebp - 0x250]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov edi, eax
jne 0x73a6c584
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x73a6c554
cmp eax, 3
jbe 0x73a6c56a
cmp eax, 8
je 0x73a6c577
cmp eax, 0x12
je 0x73a6c56a
call sym.Ordinal_561
mov dword [eax], 0x16
mov eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call sym.Ordinal_561
mov dword [eax], 2
jmp 0x73a6c55f
call sym.Ordinal_561
mov dword [eax], 0xc
jmp 0x73a6c55f
cmp dword [ebp - 0x250], 0x80
jne 0x73a6c5f2
mov esi, dword [ebp + 0xc]
mov dword [esi], 0
lea eax, [ebp - 0x24c]
push eax
call fcn.73a6c6e1
add esp, 4
mov dword [esi + 4], eax
lea eax, [ebp - 0x244]
push eax
call fcn.73a6c6e1
add esp, 4
mov dword [esi + 8], eax
lea eax, [ebp - 0x23c]
push eax
call fcn.73a6c6e1
mov dword [esi + 0xc], eax
add esp, 4
mov eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x224]
mov dword [esi + 0x10], eax
push ecx
add esi, 0x14
push esi
call sym.Ordinal_1107
add esp, 8
mov eax, edi
jmp 0x73a6c564
mov eax, dword [ebp - 0x250]
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
jmp 0x73a6c599
Function at 0x73a6c5ff
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x73a6c666
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x73a6c637
cmp eax, 3
jbe 0x73a6c64c
cmp eax, 8
je 0x73a6c659
cmp eax, 0x12
je 0x73a6c64c
call sym.Ordinal_561
mov dword [eax], 0x16
mov eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
call sym.Ordinal_561
mov dword [eax], 2
jmp 0x73a6c642
call sym.Ordinal_561
mov dword [eax], 0xc
jmp 0x73a6c642
cmp dword [ebp - 0x250], 0x80
jne 0x73a6c6d4
mov esi, dword [ebp + 0xc]
mov dword [esi], 0
lea eax, [ebp - 0x24c]
push eax
call fcn.73a6c6e1
add esp, 4
mov dword [esi + 4], eax
lea eax, [ebp - 0x244]
push eax
call fcn.73a6c6e1
add esp, 4
mov dword [esi + 8], eax
lea eax, [ebp - 0x23c]
push eax
call fcn.73a6c6e1
mov dword [esi + 0xc], eax
add esp, 4
mov eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x224]
mov dword [esi + 0x10], eax
push ecx
add esi, 0x14
push esi
call sym.Ordinal_1107
add esp, 8
xor eax, eax
jmp 0x73a6c647
mov eax, dword [ebp - 0x250]
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
jmp 0x73a6c67b

Function at 0x73a6cbca
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x73a6cc77
push esi
call fcn.73a64e4d
add esp, 4
test eax, eax
jne 0x73a6cc09
call sym.Ordinal_464
mov dword [eax], 0xf
call sym.Ordinal_561
mov dword [eax], 0xd
xor eax, eax
jmp 0x73a6ccb0
add si, 0x40
lea eax, [ebp - 4]
mov word [ebp - 0xc], si
push eax
lea ecx, [ebp - 0x214]
lea esi, [ebp - 0xc]
mov word [ebp - 0xa], 0x3a
mov word [ebp - 8], 0x2e
mov word [ebp - 6], 0
push ecx
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x73a6cc02
inc eax
cmp eax, 0x104
ja 0x73a6cc02
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x73a6cc8b
mov ecx, dword [ebp + 0x10]
cmp ecx, eax
jg 0x73a6cc59
mov ecx, eax
add ecx, ecx
push ecx
call sym.Ordinal_1025
add esp, 4
mov ecx, eax
test ecx, ecx
jne 0x73a6cca0
call sym.Ordinal_561
mov dword [eax], 0xc
jmp 0x73a6cc02
lea eax, [ebp - 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0x73a6cc3d
cmp dword [ebp + 0x10], eax
jge 0x73a6cca0
call sym.Ordinal_561
mov dword [eax], 0x22
jmp 0x73a6cc02
lea eax, [ebp - 0x214]
push eax
push ecx
call sym.Ordinal_1107
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x73a6d94d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 8], esi
cmp dword [ebp + 0x10], esi
jne 0x73a6d96c
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
test byte [eax + 0x73a82fe0], 0x20
je 0x73a6d985
push 2
push 0
push eax
call fcn.73a6634f
add esp, 0xc
mov eax, dword [ebp + 8]
test byte [eax + 0x73a82fe0], 0x80
je 0x73a6da42
mov dword [ebp - 0xc], 0
mov edi, dword [ebp + 0xc]
mov eax, edi
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jae 0x73a6da0d
lea ebx, [ebp - 0x410]
mov eax, edi
sub eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x10]
jae 0x73a6d9d9
mov al, byte [edi]
inc edi
cmp al, 0xa
jne 0x73a6d9c5
inc esi
mov byte [ebx], 0xd
inc ebx
lea ecx, [ebp - 0x410]
mov byte [ebx], al
inc ebx
mov eax, ebx
sub eax, ecx
cmp eax, 0x400
jl 0x73a6d9af
lea eax, [ebp - 0x410]
push 0
sub ebx, eax
lea ecx, [ebp - 0x410]
lea eax, [ebp - 4]
push eax
push ebx
push ecx
mov eax, dword [ebp + 8]
push dword [eax*4 + 0x73a830e0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x73a6da71
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
cmp eax, ebx
jge 0x73a6d99f
cmp dword [ebp - 8], 0
jne 0x73a6dac4
cmp dword [ebp - 0xc], 0
je 0x73a6da89
cmp dword [ebp - 0xc], 5
jne 0x73a6da7c
call sym.Ordinal_561
mov dword [eax], 9
call sym.Ordinal_464
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, 0xffffffff
jmp 0x73a6d965
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax*4 + 0x73a830e0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x73a6da71
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x73a6da0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x73a6da0d
push dword [ebp - 0xc]
call fcn.73a60737
add esp, 4
jmp 0x73a6da38
mov eax, dword [ebp + 8]
test byte [eax + 0x73a82fe0], 0x40
je 0x73a6daa4
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x73a6daa4
xor eax, eax
jmp 0x73a6d965
call sym.Ordinal_561
mov dword [eax], 0x1c
call sym.Ordinal_464
mov dword [eax], 0
mov eax, 0xffffffff
jmp 0x73a6d965
mov eax, dword [ebp - 8]
sub eax, esi
jmp 0x73a6d965
Function at 0x73a73433
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 4
xor ecx, ecx
mov eax, 0x73a837d0
push edi
cmp dword [eax], edx
je 0x73a73451
add eax, 8
inc ecx
cmp eax, 0x73a83848
jb 0x73a73442
cmp dword [ecx*8 + 0x73a837d0], edx
lea eax, [ecx*8]
jne 0x73a7348a
mov edx, dword [eax + 0x73a837d4]
push 0
lea eax, [esp + 8]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, dword [0x73a830e8]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
add esp, 4
ret
Function at 0x73a7ad1c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
test ebx, ebx
lea esi, [edi + 4]
jle 0x73a7ad62
add edi, 8
push 3
mov eax, dword [esi]
and eax, 0x3800
shr eax, 0xb
push eax
push edi
call fcn.73a7ae7e
add esp, 0xc
mov eax, dword [esi]
lea ecx, [eax + 0x800]
xor ecx, eax
and ecx, 0x3800
xor ecx, eax
dec ebx
mov dword [esi], ecx
jne 0x73a7ad31
pop edi
pop esi
pop ebx
ret
jge 0x73a7ad5e
mov ecx, dword [esi]
push 0
lea eax, [ecx - 0x800]
xor eax, ecx
add edi, 8
and eax, 0x3800
xor eax, ecx
mov dword [esi], eax
and eax, 0x3800
shr eax, 0xb
push eax
push edi
call fcn.73a7ae7e
add esp, 0xc
jmp 0x73a7ad5e
Function at 0x4093fc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40944e
test eax, edx
je 0x409451
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409411
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 0x409437
add ecx, 4
js 0x409427
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409434
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 0x40945d
test edx, edx
jne 0x409404
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405338
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409ec2
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x409ee3
cmp ebx, 3
je 0x409ee3
cmp ebx, 0x7b
je 0x409ee3
mov eax, esi
call fcn.00409e64
test al, al
jne 0x409ee7
xor eax, eax
jmp 0x409ee9
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405338
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x409f05
test al, 0x10
jne 0x409f09
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40ceac
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 0x40cee5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404f7c
jmp 0x40ceee
mov eax, ebx
mov edx, esi
call fcn.00404ee0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40cef8
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 0x40cf1a
movzx eax, byte [esp]
jmp 0x40cf1c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x42678c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4268f6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404f24
mov eax, dword [ebp - 4]
call fcn.00426248
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x4267de
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.004053e0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.00426bf0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4268b3
xor eax, eax
push ebp
push 0x4268ac
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004263b8
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.00426924
test al, al
je 0x42688a
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00404f7c
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x42688a
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00405338
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x426884
mov eax, dword [ebp - 8]
call fcn.00405338
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00405084
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.0042678c
dec ebx
cmp ebx, 0xffffffff
jne 0x42683d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4268b3
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004263b8
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 4]
call fcn.00405338
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004263a4
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4268fd
lea eax, [ebp - 0x3c]
call fcn.00404e8c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404eb0
ret
Function at 0x4268b3
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4268f6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404f24
mov eax, dword [ebp - 4]
call fcn.00426248
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x4267de
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.004053e0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.00426bf0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4268b3
xor eax, eax
push ebp
push 0x4268ac
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004263b8
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.00426924
test al, al
je 0x42688a
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00404f7c
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x42688a
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00405338
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x426884
mov eax, dword [ebp - 8]
call fcn.00405338
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00405084
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.0042678c
dec ebx
cmp ebx, 0xffffffff
jne 0x42683d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4268b3
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004263b8
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 4]
call fcn.00405338
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004263a4
push eax
call sub.advapi32.dll_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4268fd
lea eax, [ebp - 0x3c]
call fcn.00404e8c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404eb0
ret

Function at 0x426924
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.004036b8
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x4dc4b8]
cmp byte [edx + 0xc], 0
je 0x426988
mov edx, dword [0x4dc4a8]
cmp dword [edx], 2
jne 0x426988
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x438468
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
movzx ebx, byte [0x4384a4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43847f
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43848e
or bl, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43849d
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x43ee34
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.00404e8c
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43ee82
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.004050fc
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x443580
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 0x4436b3
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 [0x426148]
call fcn.004262b4
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x443689
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.00426354
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.004050fc
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x4436c8
call fcn.004051c0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004265bc
lea ecx, [ebp - 4]
mov edx, 0x443704
mov eax, dword [ebp - 0xc]
call fcn.00426a34
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040f4bc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x44366c
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x443710
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 [0x4da700]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x443673
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x443760
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 0x4437a7
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44378a
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44379b
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x4437a7
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x45f624
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x45f64a
mov eax, esp
push eax
push 0x45f5ec
call sub.user32.dll_EnumWindows
jmp 0x45f65d
mov eax, esp
push eax
push 0x45f5cc
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x45f6e8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x45f73c]
test si, 4
je 0x45f6fd
or bl, 1
test si, 8
je 0x45f707
or bl, 4
test si, 1
je 0x45f711
or bl, 8
test si, 2
je 0x45f71b
or bl, 0x10
test si, 0x10
je 0x45f725
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45f734
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45f740
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x45f77c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45f75a
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45f769
or bl, 4
test esi, 0x20000000
je 0x45f774
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4657ac
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
mov eax, dword [esi + 8]
dec eax
je 0x4657c2
sub eax, 2
je 0x465808
jmp 0x465848
mov eax, ebx
call fcn.004532a8
call fcn.0045f248
test eax, eax
je 0x4657db
mov byte [ebx + 0x274], 2
jmp 0x4657fc
mov eax, ebx
call fcn.004532a8
push eax
call sub.user32.dll_IsZoomed
test eax, eax
je 0x4657f5
mov byte [ebx + 0x274], 3
jmp 0x4657fc
mov byte [ebx + 0x274], 1
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
pop esi
pop ebx
ret
cmp byte [ebx + 0x274], 0
je 0x465851
movzx eax, byte [ebx + 0x274]
mov eax, dword [eax*4 + 0x4da95c]
push eax
mov eax, ebx
call fcn.004532a8
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x274], 0
mov eax, dword [0x4e1cb0]
cmp ebx, dword [eax + 0x44]
jne 0x465851
mov byte [0x4e1cc0], 0
pop esi
pop ebx
ret
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
pop esi
pop ebx
ret