joyce8/EMBER2024-capa huggingface dataset:
Function at 0x833250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x847808
push 0x837288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x833329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x833329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.008361d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x833329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x833329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x83332c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00833351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x833d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x833d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x833d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x833d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x833d94
push eax
push esi
call fcn.0083620b
add esp, 8
pop esi
ret 0x10

Function at 0x833da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x833e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x833e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x84c320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00835dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x833dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x833e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x833ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x833eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x84c320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00835dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x833eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x833e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x834000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x834131
push esi
call fcn.00837145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00826080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x834131
push 0
push ebp
call fcn.008263a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00826260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x83408b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.008262f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x834121
push 0x84c918
push edi
call fcn.008353f0
push eax
push ebx
push esi
call fcn.00833f60
push 0x84c8f8
push edi
call fcn.008353f0
push eax
push ebx
push esi
call fcn.00833f60
push 0x84c8d8
push edi
call fcn.008353f0
push eax
push ebx
push esi
call fcn.00833f60
push 0x84c8c0
push edi
call fcn.008353f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00833f60
push 0x84c8a0
push edi
call fcn.008353f0
push eax
push ebx
push esi
call fcn.00833f60
push 0x84c888
push edi
call fcn.008353f0
push eax
push ebx
push esi
call fcn.00833f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x8351b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00835140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00835140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00835140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00835140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x835bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x835c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x84787c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x835c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x835c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x46c610
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x58000]
push edi
jmp 0x46c62a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x46c631
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46c620
mov eax, 1
add ebx, ebx
jne 0x46c643
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x46c654
jne 0x46c673
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46c673
dec eax
add ebx, ebx
jne 0x46c660
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x46c638
add ebx, ebx
jne 0x46c66f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x46c6c5
xor ecx, ecx
sub eax, 3
jb 0x46c68b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46c6fa
sar eax, 1
mov ebp, eax
jmp 0x46c696
add ebx, ebx
jne 0x46c696
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46c664
inc ecx
add ebx, ebx
jne 0x46c6a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46c664
add ebx, ebx
jne 0x46c6b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x46c6a6
jne 0x46c6c2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46c6a6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46c6e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46c6d6
jmp 0x46c626
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46c6e4
add edi, ecx
jmp 0x46c626
pop esi
mov edi, esi
mov ecx, 0x20b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46c702
cmp byte [edi], 0xa
jne 0x46c702
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x46c707
lea edi, [esi + 0x69000]
mov eax, dword [edi]
or eax, eax
je 0x46c77f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6c000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6c118]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46c734
mov ecx, edi
jns 0x46c763
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6c11c]
or eax, eax
je 0x46c779
mov dword [ebx], eax
add ebx, 4
jmp 0x46c751
call dword [esi + 0x6c12c]
mov ebp, dword [esi + 0x6c120]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x46c7b3
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x4027b8
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 0x4027e7
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.0040345c
jmp 0x402805
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.0040274c
mov edi, eax
test ebx, ebx
je 0x402805
cmp dword [esi], 0
je 0x402805
dec ebx
jmp 0x4027ee
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x404020
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 0x40407c
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 0x40406e
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x404063
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x40405e
mov eax, 0x64
jmp 0x404073
call sub.kernel32.dll_GetLastError
call fcn.004026d8
xor eax, eax
jmp 0x40405e
mov eax, 0x67
jmp 0x404073

Function at 0x404084
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 0x4040df
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 0x4040d1
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x4040c6
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x4040c1
mov eax, 0x65
jmp 0x4040d6
call sub.kernel32.dll_GetLastError
call fcn.004026d8
xor eax, eax
jmp 0x4040c1
mov eax, 0x67
jmp 0x4040d6

Function at 0x404124
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x404167
push 0
push dword [ebx]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x40415e
push eax
push 1
push 0
push 0
push dword [ebx]
call sub.kernel32.dll_SetFilePointer
cmp eax, 0xffffffff
je 0x40415e
pop edx
cmp eax, edx
setae al
pop ebx
ret
call fcn.004026e8
mov al, 1
jmp 0x40415c
mov eax, 0x67
call fcn.004026d8
mov al, 0xff
jmp 0x40415c

Function at 0x4041ac
Capabilities:
Delete file

Disassembly:
mov edx, dword [eax + 4]
sub edx, 0xd7b0
cmp edx, 3
ja 0x4041d3
lea eax, [eax + 0x48]
push eax
call sub.kernel32.dll_DeleteFileA
dec eax
jne 0x4041c7
ret
call sub.kernel32.dll_GetLastError
call fcn.004026d8
jmp 0x4041c6
mov eax, 0x66
jmp 0x4041cc

Function at 0x404220
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x404250
push 0
push dword [ebx]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x404246
xor edx, edx
div dword [ebx + 8]
pop ebx
ret
call fcn.004026e8
or eax, 0xffffffff
jmp 0x404244
mov eax, 0x67
call fcn.004026d8
or eax, 0xffffffff
jmp 0x404244
Function at 0x4043a8
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, eax
mov ecx, dword [ebx + 4]
sub ecx, 0xd7b1
je 0x4043bb
sub ecx, 2
jne 0x4043e4
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x4043d8
cmp edx, dword [ebx + 8]
jne 0x4043eb
pop ebx
ret
call sub.kernel32.dll_GetLastError
call fcn.004026d8
jmp 0x4043d6
mov eax, 0x67
jmp 0x4043dd
mov eax, 0x64
jmp 0x4043dd

Function at 0x406578
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 0x4065b1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040345c
jmp 0x4065ba
mov eax, ebx
mov edx, esi
call fcn.00403410
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4065c4
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 0x4065e5
mov al, byte [esp]
jmp 0x4065e7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40fcfc
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 0x40fd02
ret
Function at 0x41554c
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.0040337c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4155ad
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x4155ad
cmp byte [ebp - 0x102], 0
je 0x4155ad
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004034d8
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4167ec
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 0x41686d
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41681e
add word [ebp - 6], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x416830
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x41683c
add word [ebp - 6], 0x8000
xor ebx, ebx
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.004166c4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x416861
push ebp
mov eax, dword [ebp - 4]
call fcn.00416760
pop ecx
mov ebx, eax
cmp bl, 2
je 0x41683c
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41fa94
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x435650
cmp dword [edi], 0
jne 0x41fb10
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x43564c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x434544
mov ecx, 2
call fcn.0040270c
mov edx, 0x41fa6c
lea eax, [esi + 5]
call fcn.0041fa8c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041fa8c
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 0x41fae5
mov dword [0x43564c], 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 0x41fc14
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41fc64]
test si, 4
je 0x41fc28
or bl, 1
test si, 8
je 0x41fc32
or bl, 4
test si, 1
je 0x41fc3c
or bl, 8
test si, 2
je 0x41fc46
or bl, 0x10
test si, 0x10
je 0x41fc50
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41fc5f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x41fc68
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41fca0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41fc81
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41fc90
or bl, 4
test esi, 0x20000000
je 0x41fc9b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

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

Disassembly:
push ecx
mov eax, dword [0x435628]
cmp byte [eax + 0x7f], 0
jne 0x423bf7
cmp dword [0x435654], 0
jne 0x423bd3
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, 0x423b60
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x435654], eax
cmp dword [0x435658], 0
jne 0x423bf7
push esp
push 0
push 0
push 0x423b10
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x435658], eax
pop edx
ret

Function at 0x423bfc
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x435654], 0
je 0x423c10
mov eax, dword [0x435654]
push eax
call sub.user32.dll_UnhookWindowsHookEx
xor eax, eax
mov dword [0x435654], eax
cmp dword [0x435658], 0
je 0x423c2d
push 0
mov eax, dword [0x435658]
push eax
call sub.kernel32.dll_TerminateThread
xor eax, eax
mov dword [0x435658], eax
ret

Function at 0x423ccc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x423ce3
add esp, 0xfffffff0
call fcn.00402cac
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0040dbac
mov dl, 1
mov eax, 0x4082d4
call fcn.00402aac
mov dword [ebx + 0x70], eax
mov dl, 1
mov eax, 0x4082d4
call fcn.00402aac
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, 0x40fbf4
call fcn.004149c8
mov esi, eax
mov dword [ebx + 0x78], esi
push 0x423e24
mov eax, dword [0x435014]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00414d54
mov eax, dword [ebx + 0x78]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x4250b4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x435014]
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.004060cc
test eax, eax
je 0x423dc0
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00405fc0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.004060ac
test eax, eax
je 0x423dd4
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.004034d8
cmp byte [0x435034], 0
jne 0x423e04
mov eax, ebx
call fcn.00423eb4
mov byte [ebx + 0x39], 1
mov byte [ebx + 0x3a], 1
cmp byte [ebp - 1], 0
je 0x423e1c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4248bc
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 0x4248ee
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.0040345c
jmp 0x4248f8
mov eax, esi
mov edx, dword [ebx + 0x6c]
call fcn.00403410
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x42528c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x60]
test esi, esi
je 0x4252c4
mov eax, esi
call fcn.0041cb04
test al, al
je 0x4252c4
mov eax, dword [ebx + 0x60]
call fcn.0041c96c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4252c4
push 0
mov eax, dword [ebx + 0x60]
call fcn.0041c96c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x431d6c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004036a4
xor eax, eax
push ebp
push 0x431e2b
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00405ed0
push pe_nt_image_headers32
lea eax, [ebp - 0x109]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea edx, [ebp - 8]
lea eax, [ebp - 0x109]
call fcn.004060f0
mov eax, dword [ebp - 8]
call fcn.004034f0
mov edx, dword [ebp - 8]
cmp byte [edx + eax - 1], 0x5c
je 0x431de7
lea eax, [ebp - 8]
mov edx, 0x431e44
call fcn.004034f8
lea edx, [ebp - 0x110]
mov eax, dword [ebp - 4]
call fcn.00405ed0
mov ecx, dword [ebp - 0x110]
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040353c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x431e32
lea eax, [ebp - 0x110]
call fcn.0040337c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040339c
ret