joyce8/EMBER2024-capa huggingface dataset:
Function at 0x488dc3
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0xf0000000
push 0x18
push 0
push 0
push 0x575cd4
call dword [sym.imp.ADVAPI32.DLL_CryptAcquireContextW]
leave
ret

Function at 0x488dff
Capabilities:
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0xc
push 0x40
call dword [sym.imp.MSVCRT.DLL_malloc]
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, 0
mov dword [ebp - 0xc], 0
push dword [ebp + 0x10]
call fcn.00488453
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
cmp eax, 2
je 0x488e8e
cmp eax, 3
je 0x488e95
cmp eax, 4
je 0x488e9c
cmp eax, 5
je 0x488ea3
cmp eax, 6
je 0x488eaa
push dword [ebp + 0x10]
call fcn.0044d35a
push eax
push 0xb
push dword [0x57ef64]
call fcn.004558fb
push eax
push 3
push dword [0x57ef54]
call fcn.004558fb
push eax
push 0xc
lea esi, [esp + 4]
push esi
push 3
call fcn.0042f8d3
mov eax, 0
jmp 0x488eaf
mov eax, 0x8003
jmp 0x488eaf
mov eax, 0x8004
jmp 0x488eaf
mov eax, 0x800c
jmp 0x488eaf
mov eax, 0x800d
jmp 0x488eaf
mov eax, 0x800e
mov dword [ebp + 0x10], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push dword [ebp + 0x10]
push dword [0x575cd4]
call dword [sym.imp.ADVAPI32.DLL_CryptCreateHash]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.DLL_CryptHashData]
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push 2
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.DLL_CryptGetHashParam]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.DLL_CryptDestroyHash]
mov eax, dword [ebp - 0x10]
leave
ret 0xc

Function at 0x488efe
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x10
mov eax, dword [ebp + 8]
xchg edx, eax
mov eax, dword [0x575cdc]
mov dword [eax], edx
mov eax, 0
mov dword [0x575cd8], 0
mov eax, 1
mov dword [ebp - 0x10], 1
mov eax, 1
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [0x575cdc]
mov edi, dword [ebp - 0x10]
dec edi
mov eax, dword [eax + edi*4]
sar eax, 0x1e
push eax
pop edx
xchg edx, eax
mov eax, dword [0x575cdc]
mov edi, dword [ebp - 0x10]
dec edi
mov eax, dword [eax + edi*4]
xchg edx, eax
xor eax, edx
push edx
mov edx, 0x6c078965
mov ecx, edx
imul ecx
pop edx
mov edx, dword [ebp - 0x10]
add eax, edx
mov edx, eax
mov eax, dword [0x575cdc]
mov edi, dword [ebp - 0x18]
dec edi
mov dword [eax + edi*4], edx
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
cmp eax, 0x270
jne 0x488f3a
leave
ret 4
Function at 0x489e73
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 8
mov eax, dword [0x575d04]
mov edx, dword [0x575d00]
cmp eax, edx
jbe 0x489ece
call fcn.00489866
push eax
push dword [ebp + 8]
call fcn.0045de2d
push dword [ebp + 8]
call fcn.00489e17
mov eax, dword [0x575cfc]
mov dword [ebp - 0xc], eax
xor eax, eax
push eax
push 0x4000000
call fcn.00489a96
mov eax, dword [0x575d04]
sub eax, 0x14
mov dword [0x575d04], eax
mov eax, dword [ebp - 0xc]
mov dword [0x575cfc], eax
mov eax, dword [0x575d04]
mov edx, dword [0x575d00]
cmp eax, edx
jne 0x489f0d
mov eax, dword [0x575d04]
mov eax, dword [eax]
mov edx, eax
mov eax, 0xf000000
and eax, edx
cmp eax, 0x4000000
je 0x489f0d
mov eax, dword [0x575d04]
mov eax, dword [eax]
mov edx, eax
mov eax, 0xf000000
and eax, edx
cmp eax, 0x5000000
je 0x489f0d
jmp 0x489f11
xor eax, eax
jmp 0x489f14
xor eax, eax
inc eax
cmp eax, 0
je 0x489f36
push dword [ebp + 8]
call fcn.0048a67c
xor eax, eax
push eax
call fcn.004792ab
push 0xfffffffffffffffe
call dword [sym.imp.MSVCRT.DLL_exit]
add esp, 4
push dword [ebp + 8]
call fcn.0048a72b
mov eax, 0x7fffffff
jmp 0x489f46
leave
cmp dword [ebp - 4], eax
jb 0x489f45
mov edx, eax
mov eax, dword [0x54702c]
mov dword [eax + 0x24], edx
mov edi, dword [ebp - 8]
cmp edi, 0
je 0x489f62
jmp edi
pop edi
cmp edi, 0
je 0x489f6a
jmp edi
leave
ret 4
Function at 0x49579c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x10
mov eax, 0x58229c
mov dword [ebp - 0x14], str.0000000000000000000000000000000
mov eax, dword [ebp + 0x10]
sar eax, 1
mov edx, eax
mov eax, dword [ebp + 0xc]
mov cl, dl
shl eax, cl
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
jle 0x4957ea
mov eax, dword [ebp + 0xc]
inc eax
sar eax, 2
inc eax
shl eax, 2
sub esp, eax
and esp, 0xfffffffc
mov eax, esp
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.00445b7f
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
and edx, 0xff
cmp eax, 0x27
je 0x49583f
mov eax, dword [ebp - 0xc]
and edx, 0xff
cmp eax, 0x2c
jne 0x49582f
mov eax, 0x2e
and eax, 0xff
mov dword [ebp - 0xc], 0x2e
mov eax, dword [ebp - 0xc]
xchg edx, eax
mov eax, dword [ebp - 0x14]
mov byte [eax], dl
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
add eax, edx
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
cmp eax, edx
jne 0x4957f0
mov al, 0
xchg edx, eax
mov eax, dword [ebp - 0x14]
mov byte [eax], dl
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0xc]
add eax, edx
push eax
push dword [ebp - 0x18]
call fcn.00491470
xor al, 1
cmp eax, 0
je 0x495896
mov eax, 0xffffffff
xchg edx, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
push 0x7ff80000
push 0
fld qword [esp]
add esp, 8
jmp 0x4958a4
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp - 0x18]
call fcn.00445136
leave
ret 0x10

Function at 0x495f54
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov edx, eax
mov eax, 0xffffffff
cmp eax, edx
setne al
xor ah, ah
cwde
leave
ret 4

Function at 0x495f92
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 8
mov eax, 0
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp - 0x10], eax
mov eax, 0
mov edx, dword [ebp - 0x10]
cmp eax, edx
jne 0x495fd3
mov eax, 0xffffffff
jmp 0x495fd6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
leave
ret 0xc

Function at 0x495fe0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 8
mov eax, 0
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov dword [ebp - 0x10], eax
mov eax, 0
mov edx, dword [ebp - 0x10]
cmp eax, edx
jne 0x496021
mov eax, 0xffffffff
jmp 0x496024
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
leave
ret 0xc
Function at 0x49666f
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 8
push dword [ebp + 8]
call fcn.0045449c
mov dword [ebp - 0xc], eax
push dword [ebp + 8]
call fcn.0049652e
cmp eax, 0
je 0x49669e
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
jmp 0x4966a7
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne al
xor ah, ah
cwde
leave
ret 4
Function at 0x4977f8
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 8
push dword [ebp + 8]
call fcn.0045449c
mov dword [ebp - 0xc], eax
push dword [ebp + 0xc]
call fcn.0045449c
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.MSVCRT.DLL__wrename]
add esp, 8
mov edx, eax
mov eax, 0
cmp eax, edx
sete al
xor ah, ah
cwde
leave
ret 8
Function at 0x49d2c5
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x14
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
mov dword [ebp - 0xc], eax
mov eax, 0
mov dword [ebp - 0x18], 0
mov eax, 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0xc]
cmp eax, 0
je 0x49d409
push 0x64
call fcn.00441712
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
jmp 0x49d3ec
mov eax, dword [ebp - 0x1c]
cmp eax, 0
je 0x49d33b
mov esi, dword [ebp - 0x10]
mov al, byte [esi]
cmp al, 0x3d
jne 0x49d33b
mov esi, dword [ebp - 0x10]
mov al, byte [esi + 1]
cmp al, 0
jne 0x49d33b
jmp 0x49d33f
xor eax, eax
jmp 0x49d342
xor eax, eax
inc eax
cmp eax, 0
je 0x49d3da
push 0xffffffffffffffff
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call fcn.00447417
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov dword [ebp - 0x1c], eax
push 0xffffffffffffffff
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call fcn.00447417
mov eax, dword [ebp - 0x1c]
shl eax, 1
mov edx, eax
mov eax, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 0x10]
mov al, byte [esi + 2]
cmp al, 0
jne 0x49d3b0
mov esi, dword [ebp - 0x10]
mov al, byte [esi + 3]
cmp al, 0
jne 0x49d3b0
jmp 0x49d3b4
xor eax, eax
jmp 0x49d3b7
xor eax, eax
inc eax
cmp eax, 0
je 0x49d3c3
jmp 0x49d3f5
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 0x14], eax
mov eax, 0xffffffff
mov dword [ebp - 0x1c], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
xor eax, eax
inc eax
jne 0x49d319
push dword [ebp - 0x18]
call fcn.00440a94
mov dword [ebp - 0x1c], eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push dword [ebp - 0x18]
call fcn.00461826
leave
ret
Function at 0x49d462
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0xe4
push 8
call fcn.0048a6bd
push eax
call fcn.0045742c
mov dword [ebp - 0xc], eax
call fcn.0048a6bd
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov eax, dword [eax]
add eax, 0x14
mov dword [ebp - 0x10], eax
mov eax, 0x9c
xchg edx, eax
lea eax, [ebp - 0xb4]
mov dword [eax], edx
mov eax, 0
xchg edx, eax
lea eax, [ebp - 0xb4]
mov dword [eax + 0x14], edx
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
lea eax, [ebp - 0xb4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xe8], eax
lea eax, [ebp - 0xb4]
mov al, byte [eax + 0x9a]
cmp al, 1
setne al
xor ah, ah
cwde
mov dword [ebp - 0xec], eax
push 0
push dword [ebp - 0x18]
push 8
push str.Windows
call fcn.00447353
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xb4]
mov eax, dword [eax + 4]
cmp eax, 5
je 0x49d5ad
cmp eax, 6
je 0x49d608
mov eax, dword [ebp - 0xec]
cmp eax, 0
je 0x49d57a
mov eax, dword [ebp - 0xe8]
cmp eax, 0x4f3d
jl 0x49d54a
mov eax, str.Server_2022
jmp 0x49d578
mov eax, dword [ebp - 0xe8]
cmp eax, 0x42ee
jl 0x49d55e
mov eax, str.Server_2019
jmp 0x49d578
xor eax, eax
inc eax
je 0x49d56a
mov eax, str.Server_2016
jmp 0x49d578
call fcn.0049d56f
mov eax, dword [ebp - 0xe8]
cmp eax, 0x55f0
jl 0x49d58e
mov eax, 0x58251c
jmp 0x49d5a8
xor eax, eax
inc eax
je 0x49d59a
mov eax, 0x58251f
jmp 0x49d5a8
call fcn.0049d59f
lea eax, [ebp - 0xb4]
mov eax, dword [eax + 8]
cmp eax, 0
je 0x49d5dc
cmp eax, 1
je 0x49d5e3
cmp eax, 2
je 0x49d5ea
call fcn.0049d5d3
mov eax, 0x582496
jmp 0x49d603
mov eax, dword [ebp - 0xec]
cmp eax, 0
je 0x49d5fe
mov eax, str.Server_2003_R2
jmp 0x49d603
mov eax, str.Server_2003
lea eax, [ebp - 0xb4]
mov eax, dword [eax + 8]
cmp eax, 0
je 0x49d63e
cmp eax, 1
je 0x49d659
cmp eax, 2
je 0x49d674
cmp eax, 3
je 0x49d68f
call fcn.0049d635
mov eax, dword [ebp - 0xec]
cmp eax, 0
je 0x49d66d
mov eax, str.Server_2008_R1
jmp 0x49d672
mov eax, 0x5824d5
jmp 0x49d6a8
mov eax, dword [ebp - 0xec]
cmp eax, 0
je 0x49d688
mov eax, str.Server_2012
jmp 0x49d68d
mov eax, 0x5824e3
jmp 0x49d6a8
mov eax, dword [ebp - 0xec]
cmp eax, 0
je 0x49d6a3
mov eax, str.Server_2012_R2
jmp 0x49d6a8
mov eax, 0x5824f4
Function at 0x49da57
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x18
mov eax, 0x1000
mov dword [ebp - 0x18], 0x1000
mov eax, 0
mov dword [ebp - 0x20], 0
mov eax, 0
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
sub eax, edx
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x20]
add eax, edx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [ebp - 0x10]
cmp eax, 0
jle 0x49dafb
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
add eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
cmp eax, edx
jne 0x49dafb
mov eax, 2
push edx
mov edx, dword [ebp - 0x18]
imul edx
pop edx
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.MSVCRT.DLL_realloc]
add esp, 8
mov edx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], edx
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x6d
jne 0x49da79
mov eax, dword [ebp - 0x20]
xchg edx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
leave
ret 8
Function at 0x522c8c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.DLL_exit]
add esp, 4
leave
ret 4

Function at 0x523cd9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x18
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 0xf
je 0x523d07
cmp eax, 5
je 0x523d3e
mov dword [ebp - 0x20], 0
jmp 0x523df3
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
push eax
call fcn.0044e3f8
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
push eax
call fcn.0044e3f8
pop edx
xchg edx, eax
cmp eax, edx
sete al
xor ah, ah
cwde
mov dword [ebp - 0x20], eax
jmp 0x523df3
mov dword [ebp - 0x20], 0
push dword [ebp + 8]
call fcn.00440b68
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
call fcn.00440b9e
mov dword [ebp - 0x14], eax
jmp 0x523dc9
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
and eax, 0xff
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, 0xf
je 0x523d82
mov eax, dword [ebp - 0x1c]
cmp eax, 0x11
je 0x523d82
xor eax, eax
jmp 0x523d85
xor eax, eax
inc eax
cmp eax, 0
je 0x523dbe
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
push eax
call fcn.0044e3f8
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
push eax
call fcn.0044e3f8
pop edx
xchg edx, eax
cmp eax, edx
sete al
xor ah, ah
cwde
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x20]
xor al, 1
cmp eax, 0
je 0x523de1
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
cmp eax, edx
jae 0x523de1
jmp 0x523de5
xor eax, eax
jmp 0x523de8
xor eax, eax
inc eax
cmp eax, 0
jne 0x523d5d
mov eax, dword [0x575cf4]
mov dword [ebp - 0x18], eax
mov eax, 4
xchg edx, eax
mov eax, dword [ebp - 0x18]
mov dword [eax], edx
mov eax, dword [ebp - 0x20]
xchg edx, eax
mov eax, dword [ebp - 0x18]
mov dword [eax + 4], edx
leave
ret 8

Function at 0x524753
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x14
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 5
je 0x524781
cmp eax, 0xf
je 0x5247af
mov eax, 0
jmp 0x5249bc
push dword [ebp + 8]
call fcn.00440b68
mov dword [ebp - 0xc], eax
push dword [ebp + 8]
call fcn.00440a94
mov dword [ebp - 0x10], eax
mov eax, 0
mov edx, dword [ebp - 0x10]
cmp eax, edx
jne 0x5247ad
mov eax, 0
jmp 0x5249bc
jmp 0x5247c1
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, 1
mov dword [ebp - 0x10], 1
mov eax, 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x10]
cmp eax, 0
jle 0x5249b9
Function at 0x52892e
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0xc
mov eax, dword [ebp + 8]
and eax, 0xffff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
and eax, 0xff0000
shr eax, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
and eax, 0x1000000
cmp eax, 0
setne al
xor ah, ah
cwde
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
je 0x528986
cmp eax, 0x11
je 0x528996
cmp eax, 0x12
je 0x5289b1
mov eax, 0
jmp 0x5289ca
push 3
push dword [ebp - 0xc]
call dword [sym.imp.USER32.DLL_MapVirtualKeyW]
mov dword [ebp - 0x10], eax
jmp 0x5289ca
mov eax, dword [ebp - 0x14]
cmp eax, 0
je 0x5289a7
mov eax, 0xa3
jmp 0x5289ac
mov eax, 0xa2
mov dword [ebp - 0x10], eax
jmp 0x5289ca
mov eax, dword [ebp - 0x14]
cmp eax, 0
je 0x5289c2
mov eax, 0xa5
jmp 0x5289c7
mov eax, 0xa4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
leave
ret 8

Function at 0x5289d1
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 4
mov eax, 0
mov dword [ebp - 0xc], 0
push 0x11
call dword [sym.imp.USER32.DLL_GetKeyState]
and eax, 0x8000
cmp eax, 0
je 0x528a07
mov eax, 0x10000000
mov dword [ebp - 0xc], 0x10000000
push 0x10
call dword [sym.imp.USER32.DLL_GetKeyState]
and eax, 0x8000
cmp eax, 0
je 0x528a26
mov eax, dword [ebp - 0xc]
or eax, 0x20000000
mov dword [ebp - 0xc], eax
push 0x12
call dword [sym.imp.USER32.DLL_GetKeyState]
and eax, 0x8000
cmp eax, 0
je 0x528a45
mov eax, dword [ebp - 0xc]
or eax, 0x40000000
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
xor al, 1
cmp eax, 0
je 0x528acd
push 1
call dword [sym.imp.USER32.DLL_GetKeyState]
and eax, 0x8000
cmp eax, 0
je 0x528a70
mov eax, dword [ebp - 0xc]
or eax, 0x2000000
mov dword [ebp - 0xc], eax
push 2
call dword [sym.imp.USER32.DLL_GetKeyState]
and eax, 0x8000
cmp eax, 0
je 0x528a8f
mov eax, dword [ebp - 0xc]
or eax, 0x800000
mov dword [ebp - 0xc], eax
push 4
call dword [sym.imp.USER32.DLL_GetKeyState]
and eax, 0x8000
cmp eax, 0
je 0x528aae
mov eax, dword [ebp - 0xc]
or eax, 0x1000000
mov dword [ebp - 0xc], eax
push 5
call dword [sym.imp.USER32.DLL_GetKeyState]
and eax, 0x8000
cmp eax, 0
je 0x528acd
mov eax, dword [ebp - 0xc]
or eax, 0x400000
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
leave
ret 4
Function at 0x530913
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_ShowWindow]
mov eax, dword [0x58056c]
xor al, 1
cmp eax, 0
je 0x53095b
mov eax, dword [ebp + 0xc]
cmp eax, 5
jne 0x53094a
mov eax, 8
mov dword [ebp + 0xc], 8
push dword [ebp + 0xc]
push 0
push 0
push 0
push dword [ebp + 8]
call fcn.0052e828
leave
ret 8
Function at 0x538531
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0xd0
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 0x25
jne 0x538577
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
push eax
fild dword [esp]
add esp, 4
fstp dword [ebp - 0xc]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
push eax
fild dword [esp]
add esp, 4
fstp dword [ebp - 0x10]
jmp 0x53859e
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xd4]
fld dword [eax + 4]
fstp dword [ebp - 0xc]
mov eax, dword [ebp - 0xd4]
fld dword [eax + 8]
fstp dword [ebp - 0x10]
mov eax, dword [ebp + 0x14]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
push eax
fild dword [esp]
add esp, 4
fstp dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
push eax
fild dword [esp]
add esp, 4
fstp dword [ebp - 0x1c]
mov eax, 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
push 0x3f800000
fld dword [esp]
add esp, 4
fstp dword [ebp - 0x30]
jmp 0x5386fc
Function at 0x53c50b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0xc
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov dword [0x580418], eax
push 0
call dword [sym.imp.USER32.DLL_GetDC]
mov dword [0x580420], eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov dword [0x580424], eax
mov eax, 0x11c
xchg edx, eax
mov eax, dword [0x580434]
mov dword [eax], edx
push dword [0x580434]
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
mov eax, dword [0x580434]
mov eax, dword [eax + 4]
cmp eax, 5
jne 0x53c579
mov eax, dword [0x580434]
mov eax, dword [eax + 8]
cmp eax, 1
jge 0x53c579
jmp 0x53c57d
xor eax, eax
jmp 0x53c580
xor eax, eax
inc eax
xor al, 1
cmp eax, 0
je 0x53c58e
call fcn.0053c2c4
call fcn.0053d109
mov dword [0x580574], eax
mov eax, dword [0x580434]
mov eax, dword [eax + 4]
cmp eax, 0xa
setge al
xor ah, ah
cwde
mov dword [0x580568], eax
mov eax, dword [0x580434]
mov eax, dword [eax + 4]
cmp eax, 0xa
jge 0x53c5fd
mov eax, dword [0x580434]
mov eax, dword [eax + 4]
cmp eax, 6
jl 0x53c5eb
mov eax, dword [0x580434]
mov eax, dword [eax + 8]
cmp eax, 2
jl 0x53c5eb
jmp 0x53c5ef
xor eax, eax
jmp 0x53c5f2
xor eax, eax
inc eax
cmp eax, 0
jne 0x53c5fd
xor eax, eax
jmp 0x53c600
xor eax, eax
inc eax
mov dword [0x58056c], eax
mov eax, dword [0x580434]
mov eax, dword [eax + 4]
cmp eax, 6
setl al
xor ah, ah
cwde
mov dword [0x580570], eax
push 0x18
push dword [0x57f214]
call fcn.0044f621
mov dword [ebp - 0xc], eax
mov eax, 3
shl eax, 0x13
mov edx, eax
mov eax, 0x27
or eax, edx
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, dword [0x580434]
mov eax, dword [eax + 8]
shl eax, 8
xchg edx, eax
mov eax, dword [0x580434]
mov eax, dword [eax + 4]
or eax, edx
and eax, 0xffff
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], edx
call fcn.0053c311
mov eax, dword [0x580570]
xor al, 1
cmp eax, 0
je 0x53c68c
call fcn.00524b8f
push 0
call fcn.0053c0b7
push dword [0x580424]
call fcn.005275f7
push 0x19
push dword [0x57f214]
call fcn.0044f621
mov dword [ebp - 0x10], eax
mov eax, 0xb
xchg edx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax], edx
mov eax, dword [0x580434]
mov eax, dword [eax + 0xc]
mov edx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], edx
mov eax, dword [0x580434]
mov eax, dword [eax + 0xc]
cmp eax, 0x55f0
setge al
xor ah, ah
cwde
mov dword [0x580564], eax
push 0x1a
push dword [0x57f214]
call fcn.0044f621
mov dword [ebp - 0x10], eax
mov eax, 0xb
xchg edx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax], edx
mov eax, dword [0x580434]
mov al, byte [eax + 0x11a]
and eax, 0xff
mov edx, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], edx
call fcn.0053c3fa
mov eax, dword [0x580568]
cmp eax, 0
je 0x53c766
push 0x5831ac
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, 0
je 0x53c766
push 0x84
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x5805c4], eax
call fcn.0053c772
mov dword [0x5805c0], eax
push 0x53c4f1
call fcn.004a0d17
leave
ret