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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], ecx
push 0x104
mov ecx, dword [ebp + 0xc]
call fcn.1000ef00
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0x208
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xea
jne 0x100110df
push 0xffffffffffffffff
mov ecx, dword [ebp + 0xc]
call fcn.1000efc0
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shr ecx, 1
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.1000ef00
mov dword [ebp - 8], eax
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 0xc]
call fcn.1000efc0
cmp dword [ebp - 0xc], 0
jne 0x100110f8
mov dword [ebp - 0x14], 1
jmp 0x100110ff
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100116e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e930
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x10028018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push str.SOFTWAREMicrosoftVBA
push 0x80000002
call fcn.10011380
add esp, 0xc
lea ecx, [ebp - 0x18]
push ecx
push str.VBA7.1
mov edx, dword [ebp - 0x20]
push edx
call fcn.10011380
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 1
call fcn.100119c0
add esp, 8
call fcn.10010e80
mov byte [ebp - 0x11], al
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
je 0x10011774
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDisableReflectionKey]
mov dword [ebp - 0x28], 1
push 4
lea eax, [ebp - 0x28]
push eax
push 4
push 0
push str.Installed
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x1c], eax
call fcn.10010e80
mov byte [ebp - 0x12], al
movzx edx, byte [ebp - 0x12]
test edx, edx
je 0x100117b1
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnableReflectionKey]
cmp dword [ebp - 0x1c], 0
je 0x100117f1
cmp dword [ebp - 0x1c], 0
jg 0x100117c5
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], ecx
jmp 0x100117dd
mov edx, dword [ebp - 0x1c]
and edx, 0xffff
or edx, 0x70000
or edx, 0x80000000
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
push 0x100241d0
lea ecx, [ebp - 0x2c]
push ecx
call sub.MSVCR110.dll__CxxThrowException
jmp 0x10011825
mov dword [ebp - 4], 0xffffffff
jmp 0x10011835
lea eax, [ebp - 0x18]
push eax
call fcn.10011410
add esp, 4
lea ecx, [ebp - 0x20]
push ecx
call fcn.10011410
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10011860
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e910
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x10028018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
push str.SOFTWAREMicrosoftVBA
push 0x80000002
call fcn.100112f0
add esp, 0xc
lea ecx, [ebp - 0x18]
push ecx
push str.VBA7.1
mov edx, dword [ebp - 0x1c]
push edx
call fcn.100112f0
add esp, 0xc
call fcn.10010e80
mov byte [ebp - 0x11], al
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x100118e6
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDisableReflectionKey]
mov dword [ebp - 0x24], 4
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push str.Installed
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x1001191c
mov edx, dword [ebp + 8]
mov dword [edx], 0
jmp 0x1001193a
cmp dword [ebp - 0x2c], 1
jne 0x1001192b
mov dword [ebp - 0x20], 1
jmp 0x10011932
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
call fcn.10010e80
mov byte [ebp - 0x12], al
movzx edx, byte [ebp - 0x12]
test edx, edx
je 0x10011954
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnableReflectionKey]
jmp 0x1001197d
mov dword [ebp - 4], 0xffffffff
jmp 0x1001198d
lea ecx, [ebp - 0x18]
push ecx
call fcn.10011410
add esp, 4
lea edx, [ebp - 0x1c]
push edx
call fcn.10011410
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10011ca0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x44
push 0
lea eax, [ebp - 0x74]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
mov dword [ebp - 0x74], 0x44
mov dword [ebp - 0x20], 0xc
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x74]
push edx
push 0
push 0
push 8
push 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10011d52
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10011d58
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x1001cee0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push 0x11c
lea eax, [ebp - 0x144]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x144]
push eax
mov dword [ebp - 0x144], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1001cf3e
lea eax, [ebp - 0x144]
push eax
mov dword [ebp - 0x144], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1001cf3e
mov eax, 0x80000000
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x134]
sub eax, 0
je 0x1001d0d3
dec eax
je 0x1001d093
dec eax
jne 0x1001cf35
mov eax, dword [ebp - 0x140]
cmp eax, 6
jne 0x1001d019
mov eax, dword [ebp - 0x13c]
cmp eax, 2
jne 0x1001cfa6
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
mov eax, 0x4000
je 0x1001d0d8
cmp dword [ebp - 4], 0
mov ecx, 0x8000
cmovne eax, ecx
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x1001cfe0
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
mov eax, 0x1000
je 0x1001d0d8
cmp dword [ebp - 4], 0
mov ecx, 0x2000
cmovne eax, ecx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x1001cf35
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
mov eax, 0x100
je 0x1001d0d8
cmp dword [ebp - 4], 0
mov ecx, 0x800
cmovne eax, ecx
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x1001d081
mov eax, dword [ebp - 0x13c]
cmp eax, 2
jne 0x1001d067
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1001d03e
mov eax, 0x400
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp byte [ebp - 0x2a], 1
jne 0x1001d05e
cmp word [ebp - 0x28], 9
jne 0x1001d05e
mov eax, 0x200
mov esp, ebp
pop ebp
ret
mov eax, 0x20
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x1001d070
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x1001cf35
mov eax, 2
mov esp, ebp
pop ebp
ret
cmp eax, 4
ja 0x1001cf35
mov eax, 0x10
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x140], 4
jne 0x1001cf35
mov eax, dword [ebp - 0x13c]
test eax, eax
jne 0x1001d0b3
mov eax, 4
mov esp, ebp
pop ebp
ret
cmp eax, 0xa
jne 0x1001d0c1
mov eax, 8
mov esp, ebp
pop ebp
ret
cmp eax, 0x5a
jne 0x1001cf35
mov eax, 0x40
mov esp, ebp
pop ebp
ret
mov eax, 0x80
mov esp, ebp
pop ebp
ret
Function at 0x405c83
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4345c0
call fcn.004339e0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407553
mov esi, dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x405caf
push edi
call esi
cmp eax, 0xffffffff
jne 0x405cf1
test ebx, ebx
je 0x405cee
lea ecx, [ebp - 0x18]
call fcn.004028e9
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0040765c
test al, al
push dword [ebp - 0x18]
je 0x405ce8
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401abd
pop ecx
mov eax, esi
jmp 0x405cf1
call fcn.00401abd
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406306
Capabilities:
Get disk information

Disassembly:
mov eax, 0x434664
call fcn.004339e0
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.0041c900
mov edi, dword [sym.imp.kernel32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x14], ebx
je 0x4063d4
mov eax, SysReAllocString
cmp ebx, eax
ja 0x406342
mov eax, ebx
add eax, eax
push eax
call fcn.0040826a
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x10], ebx
je 0x4063cd
cmp ebx, dword [ebp - 0x14]
ja 0x4063cd
lea ecx, [ebp - 0x2c]
call fcn.004028e9
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], edi
jbe 0x4063b5
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x4063aa
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.0040826a
mov ecx, dword [ebp - 0x18]
lea eax, [edi + 1]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.0040150c
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x10]
jb 0x406380
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x2c]
call fcn.00401abd
push esi
call fcn.00401abd
cmp dword [ebp - 0x14], ebx
pop ecx
pop ecx
sete al
jmp 0x4063d6
push esi
call fcn.00401abd
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40826a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x408279
pop dword [ebp - 0x50]
mov eax, 0x92a16e38
add eax, 0x6d9f1441
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x3c1f1
push 0
mov eax, 0x39d4f955
sub eax, 0x39917925
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x1153d98d
sub ecx, 0x11538bbe
mov edi, eax
mov edx, 0x80dbb36b
add edx, 0x7f691295
add edx, dword [ebp - 0x50]
mov esi, 0xd443390e
sub esi, 0xa225d8d5
sub dword [ebp - 0x44], eax
mov ebx, dword [edx]
xor dword [ebp - 0x28], 0xf0ad4cd
sub ebx, esi
sub dword [ebp - 0x3c], 0x99d152af
mov dword [edi], ebx
add dword [ebp - 0x14], edi
add edi, 0xe94bdf73
sub edi, 0xe94bdf6f
add edx, 0xe33fab3e
add edx, 0x1cc054c6
loop 0x4082d8
add eax, 0x12a0f
mov ebx, eax
add eax, 0xb6da8e8f
add eax, 0x49257176
mov ecx, 0x3b278037
sub ecx, 0x3ae78037
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x4027b0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x4027df
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004033cc
jmp 0x4027fd
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402744
mov edi, eax
test ebx, ebx
je 0x4027fd
cmp dword [esi], 0
je 0x4027fd
dec ebx
jmp 0x4027e6
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403f30
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x403f8c
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_ReadFile
dec eax
pop eax
pop ecx
jne 0x403f7e
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x403f73
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x403f6e
mov eax, 0x64
jmp 0x403f83
call sub.kernel32.dll_GetLastError
call fcn.004026d0
xor eax, eax
jmp 0x403f6e
mov eax, 0x67
jmp 0x403f83

Function at 0x403f94
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov eax, dword [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x403fef
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_WriteFile
dec eax
pop eax
pop ecx
jne 0x403fe1
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x403fd6
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x403fd1
mov eax, 0x65
jmp 0x403fe6
call sub.kernel32.dll_GetLastError
call fcn.004026d0
xor eax, eax
jmp 0x403fd1
mov eax, 0x67
jmp 0x403fe6

Function at 0x404034
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x404064
push 0
push dword [ebx]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x40405a
xor edx, edx
div dword [ebx + 8]
pop ebx
ret
call fcn.004026e0
or eax, 0xffffffff
jmp 0x404058
mov eax, 0x67
call fcn.004026d0
or eax, 0xffffffff
jmp 0x404058

Function at 0x405eec
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
test eax, eax
jle 0x405f25
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004033cc
jmp 0x405f2e
mov eax, ebx
mov edx, esi
call fcn.00403380
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405f38
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
test eax, eax
jle 0x405f59
mov al, byte [esp]
jmp 0x405f5b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40e2b8
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.004032ec
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x40e319
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x40e319
cmp byte [ebp - 0x102], 0
je 0x40e319
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00403448
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40f558
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x24], 0
je 0x40f5d9
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x40f58a
add word [ebp - 6], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x40f59c
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x40f5a8
add word [ebp - 6], 0x8000
xor ebx, ebx
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.0040f430
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40f5cd
push ebp
mov eax, dword [ebp - 4]
call fcn.0040f4cc
pop ecx
mov ebx, eax
cmp bl, 2
je 0x40f5a8
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x416be0
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 0x416be6
ret

Function at 0x41a60c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x429650
cmp dword [edi], 0
jne 0x41a688
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x42964c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4274ec
mov ecx, 2
call fcn.00402704
mov edx, 0x41a5e4
lea eax, [esi + 5]
call fcn.0041a604
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a604
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 0x41a65d
mov dword [0x42964c], 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 0x41a78c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41a7dc]
test si, 4
je 0x41a7a0
or bl, 1
test si, 8
je 0x41a7aa
or bl, 4
test si, 1
je 0x41a7b4
or bl, 8
test si, 2
je 0x41a7be
or bl, 0x10
test si, 0x10
je 0x41a7c8
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41a7d7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x41a7e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41a818]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41a7f9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41a808
or bl, 4
test esi, 0x20000000
je 0x41a813
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x41e71c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x429628]
cmp byte [eax + 0x7f], 0
jne 0x41e76f
cmp dword [0x429654], 0
jne 0x41e74b
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, 0x41e6d8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x429654], eax
cmp dword [0x429658], 0
jne 0x41e76f
push esp
push 0
push 0
push 0x41e688
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x429658], eax
pop edx
ret

Function at 0x41e774
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x429654], 0
je 0x41e788
mov eax, dword [0x429654]
push eax
call sub.user32.dll_UnhookWindowsHookEx
xor eax, eax
mov dword [0x429654], eax
cmp dword [0x429658], 0
je 0x41e7a5
push 0
mov eax, dword [0x429658]
push eax
call sub.kernel32.dll_TerminateThread
xor eax, eax
mov dword [0x429658], eax
ret

Function at 0x41e844
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x41e85b
add esp, 0xfffffff0
call fcn.00402c1c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0040d418
mov dl, 1
mov eax, 0x407b58
call fcn.00402a1c
mov dword [ebx + 0x70], eax
mov dl, 1
mov eax, 0x407b58
call fcn.00402a1c
mov dword [ebx + 0x80], eax
xor eax, eax
mov dword [ebx + 0x40], eax
xor eax, eax
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x3c], 0x80000018
mov dword [ebx + 0x54], 0x1f4
mov dword [ebx + 0x58], 0x32
mov dword [ebx + 0x5c], 0x9c4
mov byte [ebx + 0x64], 0
mov byte [ebx + 0x7d], 1
mov dl, 1
mov eax, 0x416ad8
call fcn.00418bec
mov esi, eax
mov dword [ebx + 0x78], esi
push 0x41e99c
mov eax, dword [0x429014]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00418f78
mov eax, dword [ebx + 0x78]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x41fc1c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x429014]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.00405a54
test eax, eax
je 0x41e938
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00405968
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.00405a34
test eax, eax
je 0x41e94c
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x6c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403448
cmp byte [0x429034], 0
jne 0x41e97c
mov eax, ebx
call fcn.0041ea2c
mov byte [ebx + 0x39], 1
mov byte [ebx + 0x3a], 1
cmp byte [ebp - 1], 0
je 0x41e994
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41f434
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x7e], 0
je 0x41f466
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x20]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004033cc
jmp 0x41f470
mov eax, esi
mov edx, dword [ebx + 0x6c]
call fcn.00403380
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x41fdf4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x60]
test esi, esi
je 0x41fe2c
mov eax, esi
call fcn.00415548
test al, al
je 0x41fe2c
mov eax, dword [ebx + 0x60]
call fcn.004153b0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x41fe2c
push 0
mov eax, dword [ebx + 0x60]
call fcn.004153b0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret