joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40149d
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x448950]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x401532
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4014ef
cmp dword [ebp + 0x10], ebx
jne 0x401526
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.0040149d
test eax, eax
jne 0x401501
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014d6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00406153
cmp eax, ebx
je 0x401539
push ebx
push dword [0x448950]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x401532
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x448950], ebx
jne 0x40152f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40152f
jmp 0x401532
Function at 0x40320c
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x4249ac]
sub esi, dword [0x4289b8]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
mov dword [0x4488c0], eax
cmp esi, ebx
jle 0x40336a
push dword [0x4289b4]
call fcn.004031f5
push ebx
push ebx
push dword [0x4289b8]
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x4249a8], esi
mov dword [0x41491c], ebx
mov ebp, 0x41c9a8
mov eax, dword [0x4289b0]
sub eax, dword [0x4289b4]
mov edi, 0x4000
cmp eax, edi
jg 0x403281
mov edi, eax
push edi
mov esi, 0x4249b0
push esi
call fcn.004031c3
test eax, eax
je 0x40337c
add dword [0x4289b4], edi
mov dword [0x41c938], esi
mov dword [0x41c93c], edi
cmp dword [0x448874], ebx
je 0x4032d8
cmp dword [0x448940], ebx
jne 0x4032d8
mov eax, dword [0x4249a8]
sub eax, dword [0x4249ac]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x4289b8]
mov dword [0x41491c], eax
call fcn.00403124
pop ecx
mov ecx, 0x41c920
mov dword [0x41c940], ebp
mov dword [0x41c944], 0x8000
call fcn.00407095
test eax, eax
js 0x403381
mov esi, dword [0x41c940]
sub esi, ebp
je 0x403336
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403386
cmp esi, dword [esp + 0x10]
jne 0x403386
add dword [0x4289b8], esi
cmp dword [0x41c93c], ebx
jne 0x4032a7
jmp 0x403342
cmp dword [0x41c93c], ebx
jne 0x403381
cmp edi, ebx
je 0x403381
mov eax, dword [0x4249ac]
mov ecx, eax
sub ecx, dword [0x4289b8]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x40326b
push ebx
push ebx
push eax
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00403124
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x403374
push 0xfffffffffffffffd
pop eax
jmp 0x403374
push 0xfffffffffffffffe
jmp 0x403383
Function at 0x40338a
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x4033b4
add eax, dword [0x4488b8]
push edi
push edi
push eax
push dword [0x40a014]
mov dword [0x4249ac], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.0040320c
cmp eax, edi
jl 0x4034ad
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x40a014]
call ebx
test eax, eax
je 0x4034a9
cmp dword [ebp - 4], esi
jne 0x4034a9
push dword [ebp + 8]
add dword [0x4249ac], esi
call fcn.0040320c
mov dword [ebp - 8], eax
cmp eax, edi
jl 0x4034ac
cmp dword [ebp + 0x10], edi
jne 0x403478
cmp dword [ebp + 8], edi
jle 0x4034a4
mov esi, 0x4249b0
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x403428
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x40a014]
call ebx
test eax, eax
je 0x4034a9
cmp edi, dword [ebp - 4]
jne 0x4034a9
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403474
cmp dword [ebp + 0x14], edi
jne 0x403474
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x4249ac], eax
cmp dword [ebp + 8], 0
jg 0x40341b
jmp 0x4034a4
push 0xfffffffffffffffe
jmp 0x4034ab
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403483
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a014]
call ebx
test eax, eax
je 0x4034a9
mov eax, dword [ebp - 4]
add dword [0x4249ac], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x4034ac
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x405b1e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x43aa28
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x43aa28], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405b59
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405cfa
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405d17
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405d1a
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [eax + 1]
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405d49
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405d8d
test edi, edi
jne 0x405d54
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405d87

Function at 0x405d91
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405e02
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x2004
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405df1
cmp dword [ebp + 0x14], 1
je 0x405df3
cmp dword [ebp + 0x14], 2
je 0x405df3
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x2003], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405f72
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x405f97
mov eax, dword [0x40a058]
cmp eax, 0xffffffff
je 0x405f8e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a058], 0xffffffff
jmp 0x406014
cmp dword [0x43fbc0], ebx
je 0x406014
push esi
cmp byte [0x444400], bl
je 0x405fdf
cmp dword [0x40a058], 0xffffffff
jne 0x405fe8
mov esi, 0x444400
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 4
push 0x40000000
push esi
call fcn.00405d1a
mov dword [0x40a058], eax
cmp eax, 0xffffffff
je 0x406013
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a058], 0xffffffff
je 0x406013
push 0x408d60
mov esi, 0x43fbe0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
lea ecx, [ebp + 8]
push ecx
push eax
push esi
push dword [0x40a058]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4
Function at 0x406581
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x43aa70
push esi
call fcn.00405ea8
push esi
call fcn.00405c2b
mov edi, eax
test edi, edi
jne 0x4065a2
xor eax, eax
jmp 0x4065fa
push edi
call fcn.00405ed7
test byte [0x4488c8], 0x80
je 0x4065bb
mov al, byte [edi]
test al, al
je 0x40659e
cmp al, 0x5c
je 0x40659e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x4065db
push esi
call fcn.0040612c
test eax, eax
je 0x4065d5
test byte [eax], 0x10
je 0x4065ff
push esi
call fcn.0040655a
push esi
call ebx
cmp eax, edi
jg 0x4065c6
push esi
call fcn.0040652d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x4065f9
Function at 0x40685e
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x408ed0
mov edi, 0x43ca78
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov ebx, 0x400
test esi, esi
je 0x4068ad
push 1
push 0
push esi
call fcn.00405d1a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x4069ea
cmp eax, ebx
jg 0x4069ea
push ebx
mov esi, 0x43f3c0
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x4069ea
cmp eax, ebx
jg 0x4069ea
push esi
push edi
push str._s_s_r_n
push 0x43cfb8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x448874]
push dword [eax + 0x128]
push esi
call fcn.00406603
push 4
push 0xc0000000
push esi
call fcn.00405d1a
mov ebp, eax
mov dword [esp + 0x1c], ebp
cmp ebp, 0xffffffff
je 0x4069ea
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4069e3
push 0
lea eax, [esp + 0x14]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4069e3
cmp edi, dword [esp + 0x10]
jne 0x4069e3
push str._Rename__r_n
push esi
call fcn.00405c80
test eax, eax
jne 0x406975
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4069ae
push 0x408ec4
add eax, 0xa
push eax
call fcn.00405c80
mov ebp, eax
test ebp, ebp
je 0x4069aa
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
cmp ecx, ebp
jbe 0x40699f
sub eax, ecx
mov dl, byte [ecx]
mov byte [eax + ecx], dl
dec ecx
cmp ecx, ebp
ja 0x406995
sub ebp, esi
lea eax, [ebp + 1]
mov ebp, dword [esp + 0x1c]
jmp 0x4069b0
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
push 0x43cfb8
add eax, esi
push eax
call fcn.00405cd6
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x407004
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x43f7c4], 0
jne 0x407042
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x407018
mov dword [ecx*4 + 0x43f7c0], eax
inc ecx
cmp ecx, 0x100
jl 0x407013
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40706f
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x43f7c0]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x407050
not eax
pop ebp
ret 0xc
Function at 0x10001520
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x10056390], 0
je 0x10001539
mov eax, dword [0x10056390]
jmp 0x100016d6
mov dword [0x10056390], 0x10056368
push 0x28
push 0
push 0x10056368
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x10056368], eax
push str.imagehlp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x1005636c], eax
cmp dword [0x1005636c], 0
jne 0x1000157f
xor eax, eax
jmp 0x100016d6
push str.ImagehlpApiVersionEx
mov eax, dword [0x1005636c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10056370], eax
push str.SymInitialize
mov ecx, dword [0x1005636c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10056374], eax
push str.SymSetOptions
mov edx, dword [0x1005636c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10056378], eax
push str.SymGetOptions
mov eax, dword [0x1005636c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1005637c], eax
push str.SymLoadModule
mov ecx, dword [0x1005636c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10056380], eax
push str.SymGetModuleInfo
mov edx, dword [0x1005636c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10056384], eax
push str.SymGetSymFromName
mov eax, dword [0x1005636c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10056388], eax
push str.BindImage
mov ecx, dword [0x1005636c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1005638c], eax
push 8
push 0
lea edx, [ebp - 8]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov word [ebp - 8], 9
cmp dword [0x10056370], 0
je 0x1000165d
lea eax, [ebp - 8]
push eax
call dword [0x10056370]
cmp dword [0x10056370], 0
je 0x1000166f
movzx ecx, word [ebp - 8]
cmp ecx, 9
jge 0x1000168a
mov edx, dword [0x1005636c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x1005636c], 0
xor eax, eax
jmp 0x100016d6
cmp dword [0x10056374], 0
je 0x100016a3
push 0
push 0
mov eax, dword [0x10056368]
push eax
call dword [0x10056374]
cmp dword [0x1005637c], 0
je 0x100016d1
cmp dword [0x10056378], 0
je 0x100016d1
call dword [0x1005637c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
and ecx, 7
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [0x10056378]
mov eax, dword [0x10056390]
mov esp, ebp
pop ebp
ret
Function at 0x10006780
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x44
mov eax, dword [0x1003e00c]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
mov ebx, dword [esp + 0x4c]
xorps xmm1, xmm1
push esi
mov esi, ecx
lea ecx, [esp + 0x10]
push edi
mov edi, edx
call fcn.10006620
cmp dword [eax + 0x14], 0x10
jb 0x100067ad
mov eax, dword [eax]
push ebx
push 0x20
lea ecx, [esp + 0x34]
push ecx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [esp + 0x28]
cmp ecx, 0x10
jb 0x100067f6
mov edx, dword [esp + 0x14]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100067ec
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100067ec
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100302b6
add esp, 8
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atof]
mov ecx, dword [esp + 0x50]
add esp, 4
fstp dword [esp + 0x10]
movss xmm0, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1002ff8e
add esp, 0x44
ret

Function at 0x100068b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x48
mov eax, dword [0x1003e00c]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
mov esi, dword [esp + 0x58]
mov ebx, edx
mov edx, dword [esp + 0x54]
push edi
mov edi, ecx
lea ecx, [esp + 0x14]
call fcn.1000eef0
cmp dword [esp + 0x28], 0x10
lea ecx, [esp + 0x2c]
push esi
push 0x20
push ecx
lea eax, [esp + 0x20]
cmovae eax, dword [esp + 0x20]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [esp + 0x28]
cmp ecx, 0x10
jb 0x1000692d
mov edx, dword [esp + 0x14]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10006923
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10006923
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100302b6
add esp, 8
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov ecx, dword [esp + 0x50]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1002ff8e
add esp, 0x48
ret
Function at 0x10012200
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x1003e00c]
xor eax, esp
mov dword [esp + 0x54], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edi
mov dword [0x100563b0], 0
xorps xmm0, xmm0
lea edx, [esp + 0x20]
mov ecx, esi
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x30], xmm0
movq qword [esp + 0x40], xmm0
call fcn.10002810
mov eax, dword [esp + 0x26]
cmp eax, 0xffffffff
je 0x10012264
test eax, 0x68000
jne 0x10012264
mov eax, dword [esp + 0x22]
test eax, eax
je 0x100122f0
cmp eax, 5
je 0x100122b4
xorps xmm0, xmm0
lea edx, [esp + 0x20]
mov ecx, esi
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x30], xmm0
movq qword [esp + 0x40], xmm0
call fcn.10002810
mov eax, dword [esp + 0x26]
cmp eax, 0xffffffff
je 0x10012298
test eax, 0x68000
jne 0x10012298
mov ecx, dword [esp + 0x22]
jmp 0x1001229b
or ecx, 0xffffffff
mov eax, dword [0x100563b0]
add eax, ecx
add esi, eax
mov dword [0x100563b0], eax
cmp eax, 5
jl 0x10012225
jmp 0x100122c1
mov eax, dword [0x100563b0]
add eax, 4
mov dword [0x100563b0], eax
push eax
call fcn.10030520
add esp, 4
mov dword [0x100563b8], eax
mov dword [0x100563b4], edi
push 0x40
push 0x3000
push dword [0x100563b0]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x10012305
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1002ff8e
mov esp, ebp
pop ebp
ret 8
push dword [0x100563b0]
push edi
push dword [0x100563b8]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push dword [0x100563b0]
push dword [0x100563b8]
push esi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [0x100563b0]
mov eax, edi
sub eax, esi
mov byte [esp + 0x20], 0xe9
sub eax, 5
add esp, 0xc
mov dword [esp + 0x15], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + esi], eax
mov al, byte [esp + 0x18]
mov byte [ecx + esi + 4], al
lea eax, [esp + 0x1c]
push eax
push 0x40
push dword [0x100563b0]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [0x100563b0], 5
mov cl, 5
jle 0x10012391
mov eax, 5
nop dword [eax + eax]
inc cl
mov byte [eax + edi], 0x90
movzx eax, cl
cmp eax, dword [0x100563b0]
jl 0x10012380
mov eax, dword [ebp + 0xc]
sub eax, edi
sub eax, 5
mov dword [esp + 0x15], eax
mov eax, dword [esp + 0x14]
mov dword [edi], eax
mov al, byte [esp + 0x18]
mov byte [edi + 4], al
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x20]
push dword [0x100563b0]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.1002ff8e
mov esp, ebp
pop ebp
ret 8
Function at 0x1001d490
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
call fcn.1001d230
mov ecx, dword [0x100565c4]
mov eax, dword [ecx]
mov eax, dword [eax + 0x68]
call eax
test al, al
je 0x1001d4d6
cmp byte [0x10f773e4], 0
je 0x1001d4d6
push dword [0x10f77074]
push dword [0x10f77070]
push dword [0x10f7706c]
push dword [0x10f77068]
call fcn.1001cbc0
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x2d
call esi
test al, 1
je 0x1001d4f5
cmp byte [0x10057390], 0
sete al
mov byte [0x10057390], al
jmp 0x1001d4fa
mov al, byte [0x10057390]
test al, al
je 0x1001d671
push 1
call esi
test al, 1
je 0x1001d513
mov byte [0x100573a7], 1
jmp 0x1001d523
push 1
call esi
and al, 1
neg al
sbb al, al
and byte [0x100573a7], al
push 2
call esi
test al, 1
je 0x1001d534
mov byte [0x100573a5], 1
jmp 0x1001d544
push 2
call esi
and al, 1
neg al
sbb al, al
and byte [0x100573a5], al
push 1
call esi
test ax, ax
je 0x1001d556
mov byte [0x10057393], 1
jmp 0x1001d565
push 1
call esi
neg ax
sbb al, al
and byte [0x10057393], al
push 2
call esi
test ax, ax
je 0x1001d577
mov byte [0x100573a6], 1
jmp 0x1001d586
push 2
call esi
neg ax
sbb al, al
and byte [0x100573a6], al
cmp byte [0x10f7745c], 0
je 0x1001d5a0
mov ecx, 0x100563ac
call fcn.100072c0
mov byte [0x10f7745c], 0
cmp byte [0x10f7745b], 0
je 0x1001d5ba
mov ecx, 0x100563ac
call fcn.1000afc0
mov byte [0x10f7745b], 0
push dword [0x10f77064]
mov ecx, 0x100564c8
push dword [0x10f77060]
push dword [0x10f7705c]
push dword [0x10f77058]
call fcn.100190c0
push dword [0x10f77af8]
push dword [0x10f77af0]
call fcn.1002b000
mov esi, dword [0x10f77068]
xor eax, eax
mov edx, dword [0x10f7706c]
test esi, esi
mov edi, dword [0x10056568]
mov ebx, dword [0x100563c4]
cmovs esi, eax
test edx, edx
mov ecx, ebx
cmovs edx, eax
sub ecx, dword [0x10f77070]
mov eax, edi
sub eax, dword [0x10f77074]
cmp esi, eax
cmovg esi, eax
cmp edx, ecx
mov dword [0x10f77068], esi
cmovg edx, ecx
mov ecx, dword [0x10f77058]
xor eax, eax
mov dword [0x10f7706c], edx
test ecx, ecx
cmovs ecx, eax
mov eax, dword [0x10f7705c]
xor edx, edx
test eax, eax
cmovs eax, edx
sub edi, dword [0x10f77060]
sub ebx, dword [0x10f77064]
cmp ecx, edi
cmovg ecx, edi
cmp eax, ebx
mov dword [0x10f77058], ecx
cmovg eax, ebx
mov dword [0x10f7705c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret