joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413bf0
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x413dae
push 0x3d
push edi
call fcn.00415190
mov esi, eax
add esp, 8
test esi, esi
je 0x413dae
cmp edi, esi
je 0x413dae
mov dl, byte [esi + 1]
mov ecx, dword [0x41cb0c]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x41cb08]
cmp eax, ecx
jne 0x413c47
push eax
call fcn.00413e80
add esp, 4
mov dword [0x41cb08], eax
test eax, eax
jne 0x413cc2
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x413c6e
mov eax, dword [0x41cb10]
test eax, eax
je 0x413c6e
call fcn.004111c0
test eax, eax
je 0x413cbd
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x413c7a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.0040c490
add esp, 4
mov dword [0x41cb08], eax
test eax, eax
je 0x413dae
mov dword [eax], 0
mov eax, dword [0x41cb10]
test eax, eax
jne 0x413cbd
push 4
call fcn.0040c490
add esp, 4
mov dword [0x41cb10], eax
test eax, eax
je 0x413dae
mov dword [eax], 0
mov eax, dword [0x41cb08]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.00413e00
mov esi, eax
add esp, 8
test esi, esi
jl 0x413dbf
cmp dword [ebx], 0
je 0x413dbf
test ebp, ebp
je 0x413db7
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.0040c440
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x413d19
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x413d08
lea eax, [esi*4]
push eax
push ebx
call fcn.00414ff0
add esp, 8
test eax, eax
je 0x413d33
mov dword [0x41cb08], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x413da6
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.0040c490
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x413da6
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.0040c440
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x413d37
test ebp, ebp
jne 0x413da6
test esi, esi
jge 0x413dc9
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.00414ff0
add esp, 8
test eax, eax
je 0x413dae
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x41cb08], eax
jmp 0x413d37
Function at 0x414150
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00415310
mov eax, dword [0x41cf40]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x4142b2
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x41ce40]
test byte [edx + ecx*8 + 4], 1
je 0x4142b2
push 1
push ebp
push ebx
call fcn.0040f850
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x4142bc
push 2
push ebp
push ebx
call fcn.0040f850
add esp, 0xc
cmp eax, 0xffffffff
je 0x4142bc
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x414258
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.00415290
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x4141ff
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.0040ea90
add esp, 0xc
cmp eax, 0xffffffff
je 0x41421b
sub esi, eax
test esi, esi
jle 0x414231
jmp 0x4141f0
cmp dword [0x41cae4], 5
jne 0x41422e
mov dword [0x41cae0], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.00415290
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.0040f850
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x414299
push 0
push ecx
push ebx
call fcn.0040f850
add esp, 0xc
push ebx
call fcn.00412750
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x414299
mov dword [0x41cae0], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x41cae4], eax
push 0
push edi
push ebx
call fcn.0040f850
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x41cae0], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x403170
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.00404e4c
test esi, esi
jne 0x4031a6
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.00404f3c
jmp 0x4031c4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403014
mov edi, eax
test esi, esi
je 0x4031c4
cmp dword [ebx], 0
je 0x4031c4
dec esi
jmp 0x4031ad
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403df8
Capabilities:
Query or enumerate registry value

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

Function at 0x404ccc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46c04c], 0
je 0x404d2d
cmp word [0x46c220], 0xd7b2
jne 0x404cf5
cmp dword [0x46c228], 0
jbe 0x404cf5
mov eax, 0x46c21c
call dword [0x46c238]
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 0x404d54
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46902c], 0
jne 0x404d49
push 0
push 0x46975c
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40674c
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 0x40697c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4067cf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40697c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4067cf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406998
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406858
xor eax, eax
push ebp
push 0x406851
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406588
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 0x406836
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4069b8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406836
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 0x406858
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
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 0x406972
cmp byte [ebp - 0xd], 0
jne 0x40689f
cmp byte [ebp - 0x12], 0
je 0x406972
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4068b8
dec ebx
cmp byte [ebx], 0x2e
je 0x4068c7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4068b7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406972
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406904
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 0x406972
cmp byte [ebp - 0xd], 0
je 0x406972
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 0x406972
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 0x408dfc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408e8c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408e8c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408e3f
test edx, 3
jne 0x408e2e
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408e39
jmp 0x408e3f
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408e3f
cmp dword [ecx - 8], 1
je 0x408e49
mov edx, ebx
or edx, 3
call fcn.00405598
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 0x408e5b
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404e4c

Function at 0x408e98
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408f28
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408f28
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408edb
test edx, 3
jne 0x408eca
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408ed5
jmp 0x408edb
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408edb
cmp dword [ecx - 8], 1
je 0x408ee5
mov edx, ebx
or edx, 3
call fcn.00405598
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 0x408ef7
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404e4c

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405310
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4097b9
test al, 0x10
je 0x4097bd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c2b0
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40c2e9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404f3c
jmp 0x40c2f2
mov eax, ebx
mov edx, esi
call fcn.00404ea0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c2fc
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 0x40c31e
movzx eax, byte [esp]
jmp 0x40c320
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40d308
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 0x40d3de
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404ee4
lea eax, [ebp - 4]
call fcn.00405360
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405310
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40d3c8
mov eax, ebx
call fcn.00402d24
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40d3c1
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.00405310
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40d3ab
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40d3f0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40d3ab
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 0x40d3c8
mov eax, dword [ebp - 0x10]
call fcn.00402d40
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d3e5
lea eax, [ebp - 4]
call fcn.00404e4c
ret

Function at 0x4272dc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x46f310
cmp dword [edi], 0
jne 0x427358
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x46f30c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x469f9c
mov ecx, 2
call fcn.00402f14
mov edx, 0x4272b4
lea eax, [esi + 5]
call fcn.004272d4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004272d4
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 0x42732d
mov dword [0x46f30c], 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 0x428d20
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x428e61
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00409918
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.00408e98
mov eax, ebx
call fcn.004097a0
cmp al, 1
jne 0x428d72
mov eax, dword [ebp - 4]
mov edx, 0x428e7c
call fcn.0040525c
je 0x428d85
mov eax, dword [ebp - 4]
mov edx, 0x428e8c
call fcn.0040525c
jne 0x428e43
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.00405310
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
xor edx, edx
push ebp
push 0x428e3c
push dword fs:[edx]
mov dword fs:[edx], esp
test eax, eax
jne 0x428ded
call fcn.00404940
jmp 0x428e43
lea eax, [ebp - 0x18]
push eax
push 0xe
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.IMAGEHLP.DLL_ImageDirectoryEntryToData
test eax, eax
jne 0x428e09
call fcn.00404940
jmp 0x428e43
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428e43
cmp dword [ebp - 0x10], 0
je 0x428e3b
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428e68
lea eax, [ebp - 0x1c]
call fcn.00404e4c
lea eax, [ebp - 4]
call fcn.00404e4c
ret

Function at 0x429e44
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.00405310
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x429e9c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x46b738]
mov dl, 1
mov eax, dword [0x429968]
call fcn.0040cb70
call fcn.00404894
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00429a70
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 0x42acf8
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 0x42acfe
ret
Function at 0x43676c
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.00404e4c
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4367ba
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.004050bc
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43a83c
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 0x43a96f
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 [0x4299c8]
call fcn.00429a98
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x43a945
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.00429b38
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.004050bc
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x43a984
call fcn.0040515c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00429b9c
lea ecx, [ebp - 4]
mov edx, 0x43a9c0
mov eax, dword [ebp - 0xc]
call fcn.00429dcc
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040e5c0
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x43a928
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x43a9cc
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 [0x46a8b8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a92f
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x43aa1c
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 0x43aa63
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43aa46
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43aa57
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x43aa63
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x43f554
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 [0x46f540], 0
je 0x43f69d
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x46b4a4]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x43f69d
mov eax, dword [0x46f544]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x46f540]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x43f66c
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x46f540]
call fcn.0041e0cc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x43f664
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x43f664
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x43f664
mov eax, dword [ebp - 0x14]
call fcn.00449778
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43f664
push ebp
call fcn.0043f510
pop ecx
test al, al
jne 0x43f664
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.004041f4
test al, al
je 0x43f664
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.004041f4
cmp byte [ebp - 1], 0
je 0x43f664
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x43f664
mov edx, dword [ebp - 0x14]
mov eax, dword [0x46f544]
call fcn.0043ec80
inc edi
dec ebx
jne 0x43f5b9
mov eax, dword [0x46f544]
cmp dword [eax + 8], 0
jle 0x43f684
mov eax, dword [0x46f544]
call fcn.0043ed38
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43f69d
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0043f374
pop ecx
test al, al
jne 0x43f69d
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