joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449354
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4be3b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
call fcn.00447e72
pop ecx
test eax, eax
jne 0x449451
cmp dword [0x4c1e18], 2
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
jne 0x4493b4
cmp dword [0x4c1e0c], 6
jb 0x4493b4
push 0x49ec6c
push esi
call ebx
push esi
call fcn.00447e72
pop ecx
test eax, eax
jne 0x449451
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.shell32.dll
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x210], eax
test eax, eax
je 0x449454
push edi
push str.SHGetSpecialFolderPathW
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x449440
push edi
push 0x20
push esi
push edi
call eax
test eax, eax
je 0x449440
push esi
call fcn.00447e72
pop ecx
test eax, eax
je 0x449417
inc edi
jmp 0x449440
cmp dword [0x4c1e18], 2
jne 0x449440
cmp dword [0x4c1e0c], 6
jb 0x449440
push 0x49ec6c
push esi
call ebx
push esi
call fcn.00447e72
pop ecx
xor ecx, ecx
inc ecx
test eax, eax
cmovne edi, ecx
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
jmp 0x449454
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c567
leave
ret

Function at 0x4495d6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
cmp dword [eax + 0x10], 0x10000
je 0x44962a
cmp dword [eax + 0x18], 0x20000
je 0x44962a
mov edi, dword [eax + 4]
push 0x40
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x44962a
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x44962a
mov esi, dword [edi + 0x3c]
push 0xf8
add esi, edi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x44962a
cmp dword [esi], 0x4550
cmove eax, esi
jmp 0x44962c
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x44f8e7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x47b03c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047aeb2

Function at 0x4813ff
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00480f52
Function at 0x497c24
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x500b95
call fcn.00500754
sub esp, 0x60
push ebx
push esi
xor esi, esi
cmp byte [0x65b51a], 0
push edi
jne 0x497d42
push 0x2220
call dword [sym.imp.SDL2.dll_SDL_Init]
pop ecx
test eax, eax
je 0x497cb4
call dword [sym.imp.SDL2.dll_SDL_GetError]
push dword [ebp - 0x18]
mov ebx, eax
push ecx
lea ecx, [ebp - 0x50]
call fcn.004a30e6
push ecx
push 0x1a
lea ecx, [ebp - 0x34]
mov edi, eax
call fcn.004a28e9
mov edx, esi
mov cl, byte [edi + edx + 1]
lea eax, [ebp - 0x34]
xor cl, byte [edi]
cmp dword [ebp - 0x20], 0xf
cmova eax, dword [ebp - 0x34]
mov byte [eax + edx], cl
inc edx
cmp edx, 0x1a
jb 0x497c76
mov dword [ebp - 4], esi
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], 0xf
push ebx
cmova eax, dword [ebp - 0x34]
push eax
call fcn.004e0ca4
pop ecx
pop ecx
lea ecx, [ebp - 0x34]
call fcn.004a2890
jmp 0x497d42
push esi
call dword [sym.imp.SDL2.dll_SDL_GameControllerOpen]
mov dword [0x65a560], eax
pop ecx
test eax, eax
jne 0x497d23
call dword [sym.imp.SDL2.dll_SDL_GetError]
push dword [ebp - 0x18]
mov ebx, eax
push ecx
lea ecx, [ebp - 0x69]
call fcn.004a31a6
push ecx
push 0x33
lea ecx, [ebp - 0x34]
mov edi, eax
call fcn.004a28e9
mov cl, byte [edi + esi + 1]
lea eax, [ebp - 0x34]
xor cl, byte [edi]
cmp dword [ebp - 0x20], 0xf
cmova eax, dword [ebp - 0x34]
mov byte [eax + esi], cl
inc esi
cmp esi, 0x33
jb 0x497ce6
mov dword [ebp - 4], 1
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], 0xf
push ebx
cmova eax, dword [ebp - 0x34]
push eax
call fcn.004e0ca4
pop ecx
pop ecx
lea ecx, [ebp - 0x34]
call fcn.004a2890
lea ecx, [ebp - 0x1c]
call fcn.0049267c
mov byte [0x65b51a], 1
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [0x65a4f8], ecx
mov dword [0x65a4fc], eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x498102
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x500c0d
call fcn.00500754
sub esp, 0x6c
cmp dword [0x65a6cc], 0
push esi
push edi
jne 0x498172
push dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x60]
call fcn.004a32d3
push ecx
push 0x18
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.004a28e9
xor edx, edx
mov cl, byte [esi + edx + 1]
lea eax, [ebp - 0x44]
xor cl, byte [esi]
cmp dword [ebp - 0x30], 0xf
cmova eax, dword [ebp - 0x44]
mov byte [eax + edx], cl
inc edx
cmp edx, 0x18
jb 0x498135
and dword [ebp - 4], 0
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 0xf
cmova eax, dword [ebp - 0x44]
push eax
call fcn.004e0ca4
pop ecx
lea ecx, [ebp - 0x44]
call fcn.004a2890
jmp 0x4982bc
mov edi, dword [0x65a6c8]
mov dword [ebp - 0x20], edi
mov esi, dword [edi]
jmp 0x4982b4
push dword [ebp - 0x20]
mov eax, dword [esi + 8]
lea ecx, [esi + 0xc]
mov dword [ebp - 0x18], ecx
push ecx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x1c], eax
call fcn.004a3377
push ecx
push 0xe
lea ecx, [ebp - 0x60]
mov edi, eax
call fcn.004a28e9
xor edx, edx
mov cl, byte [edi + edx + 1]
lea eax, [ebp - 0x60]
xor cl, byte [edi]
cmp dword [ebp - 0x4c], 0xf
cmova eax, dword [ebp - 0x60]
mov byte [eax + edx], cl
inc edx
cmp edx, 0xe
jb 0x4981a9
push dword [ebp - 0x1c]
mov dword [ebp - 4], 1
lea eax, [ebp - 0x60]
cmp dword [ebp - 0x4c], 0xf
cmova eax, dword [ebp - 0x60]
push eax
call fcn.004e0ca4
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0x60]
call fcn.004a2890
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x20]
cmp dword [eax + 0x14], 0xf
jbe 0x4981fd
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
push 0x65b940
mov ecx, 0x659578
call fcn.004a64ab
push 0x7e
pop ecx
xor edx, edx
mov byte [ebp - 0x21], 0
div ecx
mov cl, dl
inc cl
mov al, cl
mov byte [ebp - 0x11], cl
xor al, 0x4e
mov byte [ebp - 0x2a], cl
mov byte [ebp - 0x29], al
mov al, cl
xor al, 0x61
mov byte [ebp - 0x28], al
mov al, cl
xor al, 0x6d
mov byte [ebp - 0x27], al
mov al, cl
xor al, 0x65
mov byte [ebp - 0x26], al
mov al, cl
xor al, 0x3a
mov byte [ebp - 0x25], al
mov al, cl
xor al, 0x20
mov byte [ebp - 0x24], al
mov al, cl
xor al, 0x25
mov byte [ebp - 0x23], al
mov al, cl
push ecx
xor al, 0x73
lea ecx, [ebp - 0x78]
push 8
mov byte [ebp - 0x22], al
call fcn.004a28e9
mov ch, byte [ebp - 0x11]
xor edx, edx
mov cl, byte [ebp + edx - 0x29]
lea eax, [ebp - 0x78]
xor cl, ch
cmp dword [ebp - 0x64], 0xf
cmova eax, dword [ebp - 0x78]
mov byte [eax + edx], cl
inc edx
cmp edx, 8
jb 0x498269
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x78]
mov dword [ebp - 4], 2
cmp dword [ebp - 0x64], 0xf
push ecx
cmova eax, dword [ebp - 0x78]
push eax
call fcn.004e0ca4
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0x78]
call fcn.004a2890
call fcn.004e2d60
mov esi, dword [esi]
cmp esi, edi
jne 0x498182
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x4985e7
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov al, byte [0x65a8c3]
sub esp, 0x10
push esi
push edi
mov edi, ecx
test al, al
jne 0x498617
mov eax, dword [edi]
push ecx
mov ecx, dword [eax*4 + 0x505918]
call fcn.004e136c
pop ecx
test al, al
je 0x49866c
mov byte [0x65a8c3], 1
jmp 0x49866c
cmp al, 1
jne 0x49866c
push ecx
mov ecx, 0x504d80
call fcn.004e136c
and dword [ebp - 4], 0
lea edx, [ebp - 8]
pop ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 8], 0x46
call fcn.004a33f7
mov ecx, eax
call fcn.004a6b1d
mov esi, 0x505640
push dword [esi]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x498661
mov eax, dword [esi]
mov dword [edi], eax
mov byte [0x65a8c3], 0
add esi, 4
cmp esi, 0x505918
jne 0x498649
pop edi
pop esi
leave
ret
Function at 0x499837
Capabilities:
Create process on windows
Self delete
Terminate process

Disassembly:
push esi
call fcn.00499417
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
xor esi, esi
push esi
push esi
push 0x504da0
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push esi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x499864
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push edi
push 0
push 2
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x22c], 0x22c
lea eax, [ebp - 0x22c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x499905
push esi
mov ecx, ebx
lea eax, [ebp - 0x208]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4998c8
test dx, dx
je 0x4998c4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4998c8
add eax, 4
add ecx, 4
test dx, dx
jne 0x4998a2
xor eax, eax
jmp 0x4998cd
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4998f2
push dword [ebp - 0x224]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x22c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x49989a
pop esi
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
leave
ret
Function at 0x4a1f80
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4a1fa3
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
jmp 0x4a2076
mov eax, dword [ebx + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x2c]
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
push edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x24], edi
test ecx, ecx
je 0x4a1fd0
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x4a1fd6
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x4a203e
jg 0x4a1fed
test esi, esi
je 0x4a203e
test ecx, ecx
jl 0x4a2038
jg 0x4a1ff7
test eax, eax
je 0x4a2038
cmp edi, ecx
jg 0x4a200b
jl 0x4a2001
cmp esi, eax
jae 0x4a200b
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
mov ebp, dword [esp + 0x2c]
push eax
push ebp
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov ecx, dword [esp + 0x10]
add ebp, ecx
sub esi, ecx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x4a2042
mov ebp, dword [esp + 0x2c]
jmp 0x4a204c
mov ebp, dword [esp + 0x2c]
test edi, edi
jl 0x4a2067
jg 0x4a204c
test esi, esi
je 0x4a2067
cmp dword [ebx + 0x4c], 0
je 0x4a2067
push dword [ebx + 0x4c]
push esi
push 1
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc
Function at 0x4a2080
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ebp, ecx
test esi, esi
jg 0x4a20a1
jl 0x4a2098
test ebx, ebx
jne 0x4a20a1
xor eax, eax
xor edx, edx
jmp 0x4a2168
cmp dword [ebp + 0x38], 0
je 0x4a20b8
push esi
push ebx
push dword [esp + 0x1c]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
jmp 0x4a2168
mov eax, dword [ebp + 0x1c]
push edi
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x4a20fd
mov eax, dword [ebp + 0x2c]
cmp dword [eax], 0
jbe 0x4a20fd
cmp dword [eax], ebx
mov esi, ebx
cmovb esi, dword [eax]
push esi
push ecx
push dword [esp + 0x20]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
sub edi, esi
add eax, esi
add esp, 0xc
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x2c]
sub dword [eax], esi
mov eax, dword [ebp + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x20]
jmp 0x4a2105
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
cmp dword [ebp + 0x4c], 0
je 0x4a215e
mov ecx, ebp
call fcn.004a2b9e
mov ecx, dword [esp + 0x10]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x4a2148
push dword [ebp + 0x4c]
push eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, dword [esp + 0x20]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [esp + 0x10], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x4a215e
jmp 0x4a2118
test edx, edx
je 0x4a215e
push dword [ebp + 0x4c]
push edi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb esi, 0
mov edx, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x4a2410
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, dword [esp + 0x34]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x4a242a
xor eax, eax
jmp 0x4a24f8
mov eax, dword [esi + 0x20]
push ebp
mov ecx, dword [eax]
test ecx, ecx
je 0x4a2453
mov edx, dword [esi + 0x30]
mov ebp, dword [edx]
lea eax, [ecx + ebp]
cmp ecx, eax
jae 0x4a2453
lea ecx, [ebp - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x4a24c2
cmp dword [esi + 0x4c], 0
je 0x4a24f5
mov ecx, esi
call fcn.004a2b9e
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a2470
movsx eax, bl
jmp 0x4a24b1
lea eax, [esp + 0x14]
mov byte [esp + 0x13], bl
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x27]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x4a24c6
sub eax, 1
je 0x4a24c6
dec eax
sub eax, 1
jne 0x4a24f5
movsx eax, byte [esp + 0x13]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
pop ecx
pop ecx
cmove ebx, edi
mov eax, ebx
jmp 0x4a24f7
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x1c]
sub ebp, eax
je 0x4a24e6
push dword [esi + 0x4c]
push ebp
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp ebp, eax
jne 0x4a24f5
lea eax, [esp + 0x13]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x18], eax
cmovne edi, ebx
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x2c
ret 4

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

Disassembly:
or dword [ecx + 0x1384], 0xffffffff
mov edx, dword [esp + 4]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jb 0x4a27ba
pop edi
pop esi
mov dword [ecx], ebx
mov eax, ecx
pop ebx
ret 4
Function at 0x4a2bc1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x38], ebx
je 0x4a2c1b
cmp byte [edi + 0x3d], bl
je 0x4a2c1b
mov eax, dword [edi]
push 0xffffffffffffffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x5035d8]
mov ecx, edi
call esi
cmp eax, 0xffffffff
je 0x4a2c4b
mov ecx, dword [edi + 0x38]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [edi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, ebx
je 0x4a2c22
sub eax, 1
je 0x4a2c25
dec eax
sub eax, 1
jne 0x4a2c4b
mov byte [edi + 0x3d], bl
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
mov byte [edi + 0x3d], bl
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x4a2c43
push dword [edi + 0x4c]
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x4a2c4b
cmp byte [edi + 0x3d], bl
sete al
jmp 0x4a2c1d
xor al, al
jmp 0x4a2c1d

Function at 0x4a6af9
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
mov esi, dword [esp + 8]
mov edx, 0x811c9dc5
xor ecx, ecx
movzx eax, byte [esi + ecx]
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
cmp ecx, 4
jb 0x4a6b05
pop esi
mov eax, edx
ret 4

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

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, 0x270
cmp dword [esi], edi
jne 0x4a7017
lea edx, [esi + 8]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x4a6fdf
jmp 0x4a7024
cmp dword [esi], 0x4e0
jb 0x4a7024
call fcn.004a705e
mov eax, dword [esi]
pop edi
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
pop esi
ret
Function at 0x4a705e
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov ebx, dword [edi]
mov eax, ebx
lea edx, [edi]
mov ecx, eax
lea edi, [edx + 4]
mov ebx, dword [edi]
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x634]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub ebp, 1
jne 0x4a7071
lea edi, [esi + 0xd50]
mov ebp, 0x18c
mov ebx, dword [edi]
mov eax, ebx
lea edx, [edi]
mov ecx, eax
lea edi, [edx + 4]
mov ebx, dword [edi]
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx - 0xd4c]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub ebp, 1
jne 0x4a70b8
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
and dword [esi], ebp
and eax, 0x9908b0df
shr ecx, 1
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
pop esi
pop ebp
pop ebx
ret

Function at 0x4a8865
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp byte [0x65b662], 0
push esi
jne 0x4a88a5
cmp dword [0x6590c4], 0xffffffff
jne 0x4a8885
mov ecx, str.Set_HotKey
jmp 0x4a8891
mov eax, dword [0x65900c]
mov ecx, dword [eax*4 + 0x505ed0]
push ecx
call fcn.004e136c
pop ecx
test al, al
je 0x4a8905
mov byte [0x65b662], 1
jmp 0x4a8905
push ecx
mov ecx, 0x504d80
call fcn.004e136c
and dword [ebp - 4], 0
lea edx, [ebp - 8]
pop ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 8], 1
call fcn.004a33f7
mov ecx, eax
call fcn.004a6b1d
xor esi, esi
push dword [esi*4 + 0x505bf8]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x4a88ed
inc esi
cmp esi, 0xb6
jb 0x4a88d0
jmp 0x4a8905
mov eax, dword [esi*4 + 0x505bf8]
mov dword [0x65900c], eax
mov dword [0x6590c4], eax
mov byte [0x65b662], 0
pop esi
leave
ret

Function at 0x4a8908
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push dword [ebp - 4]
push ecx
lea ecx, [ebp - 0x20]
call fcn.004aa4b7
xor edx, edx
mov cl, byte [eax + edx + 1]
xor cl, byte [eax]
mov byte [edx + 0x65e174], cl
inc edx
cmp edx, 0x16
jb 0x4a891c
mov ecx, 0x65e174
mov byte [0x65e18a], 0
call fcn.004e311c
call fcn.00498102
lea edx, [ebp - 8]
mov dword [ebp - 8], 0x42be0000
mov dword [ebp - 4], 0x41e00000
call fcn.004a8865
call fcn.004c739e
push dword [ebp - 4]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004aa55f
xor edx, edx
mov cl, byte [eax + edx + 1]
xor cl, byte [eax]
mov byte [edx + 0x65e140], cl
inc edx
cmp edx, 0x12
jb 0x4a896d
push 0x65ad81
push 0x65e140
mov byte [0x65e152], 0
call fcn.004f10f5
call fcn.004c73f2
mov ecx, 0x503dbe
call fcn.004e311c
xorps xmm0, xmm0
call fcn.004c9b59
leave
ret
Function at 0x4a934b
Capabilities:
Delete file

Disassembly:
mov eax, 0x501630
call fcn.00500754
sub esp, 0xb8
cmp byte [ebp + 8], 0
push esi
push edi
mov esi, edx
mov edi, ecx
je 0x4a93ef
sub esp, 0xc
lea ecx, [ebp - 0xc0]
push str.log.config
call fcn.004a2d2f
and dword [ebp - 4], 0
cmp dword [ebp - 0x70], 0
je 0x4a93dc
mov edx, edi
lea ecx, [ebp - 0xc0]
call fcn.004a34d6
mov edi, 0x4a34f0
mov ecx, eax
push edi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov edx, esi
lea ecx, [ebp - 0xc0]
call fcn.004a34d6
push edi
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push dword [ebp + 8]
lea ecx, [ebp - 0xc0]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___bool_]
push edi
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea ecx, [ebp - 0xc0]
call fcn.004a2594
lea ecx, [ebp - 0x58]
call fcn.004a25b5
lea ecx, [ebp - 0x58]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
jmp 0x4a93fb
push str.log.config
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret