joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4145c4
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x248], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x414775
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x144]
mov ecx, 0x41478c
mov edx, edi
call fcn.00403388
mov eax, dword [ebp - 0x144]
call fcn.00403500
push eax
call sub.kernel32.dll_FindFirstFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x414751
lea eax, [ebp - 0x140]
mov dword [ebx + 0x10], eax
lea eax, [ebp - 0x244]
lea edx, [ebp - 0x114]
call fcn.004026ec
lea eax, [ebp - 0x244]
mov edx, 0x414790
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.0040265c
je 0x414730
lea eax, [ebp - 0x144]
lea edx, [ebp - 0x114]
call fcn.004032a4
mov eax, dword [ebp - 0x144]
mov edx, 0x41479c
call fcn.0040344c
je 0x414730
test byte [ebp - 0x140], 0x10
je 0x414705
cmp byte [ebx + 0x1f], 0
jbe 0x4146b5
lea eax, [ebp - 0x144]
lea edx, [ebp - 0x114]
mov ecx, 0x104
call fcn.00403310
mov ecx, dword [ebp - 0x144]
mov edx, edi
mov eax, ebx
call fcn.004144bc
cmp byte [ebx + 0x1c], 0
jne 0x414730
push edi
lea eax, [ebp - 0x248]
lea edx, [ebp - 0x114]
mov ecx, 0x104
call fcn.00403310
push dword [ebp - 0x248]
push 0x4147a8
lea eax, [ebp - 0x144]
mov edx, 3
call fcn.004033fc
mov edx, dword [ebp - 0x144]
mov eax, ebx
call fcn.004145c4
lea eax, [ebp - 0x140]
mov dword [ebx + 0x10], eax
jmp 0x414730
cmp byte [ebx + 0x1f], 1
je 0x414730
lea eax, [ebp - 0x144]
lea edx, [ebp - 0x114]
mov ecx, 0x104
call fcn.00403310
mov ecx, dword [ebp - 0x144]
mov edx, edi
mov eax, ebx
call fcn.004144bc
cmp byte [ebx + 8], 0
jne 0x41474b
lea eax, [ebp - 0x140]
push eax
push esi
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x41462e
push esi
call sub.kernel32.dll_FindClose
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41477c
lea eax, [ebp - 0x248]
call fcn.004030f0
lea eax, [ebp - 0x144]
call fcn.004030f0
ret

Function at 0x4185f0
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 1], cl
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x418660
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x41864a
mov esi, 0x20000000
cmp byte [ebp - 1], 0
je 0x418628
or esi, 0x80000000
push esi
mov eax, ebx
call fcn.0040333c
push eax
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004037f0
mov eax, dword [ebp - 8]
call fcn.00403800
push eax
push edi
call sub.winhttp.dll_WinHttpAddRequestHeaders
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418667
lea eax, [ebp - 8]
call fcn.004036e8
ret
Function at 0x41876c
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x418835
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.004030f0
xor eax, eax
mov dword [ebp - 0x10], eax
test edi, edi
je 0x41881f
mov dword [ebp - 0xc], 0xfa
lea eax, [ebp - 8]
mov edx, 0xfa
call fcn.00403834
test esi, esi
je 0x4187bd
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
push esi
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00403800
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.winhttp.dll_WinHttpQueryHeaders
neg eax
sbb ebx, ebx
neg ebx
test bl, bl
jne 0x418803
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x7a
jne 0x418803
mov edx, dword [ebp - 0xc]
shr edx, 1
lea eax, [ebp - 8]
call fcn.00403834
test esi, esi
je 0x4187b4
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
jmp 0x4187b4
test bl, bl
je 0x41881f
mov edx, dword [ebp - 0xc]
shr edx, 1
lea eax, [ebp - 8]
call fcn.00403834
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
call fcn.00403328
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41883c
lea eax, [ebp - 8]
call fcn.004036e8
ret

Function at 0x418b98
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
test ebx, ebx
je 0x418bfb
cmp dword [ebx + 0x3c], 0
je 0x418bca
mov eax, ebx
call fcn.004076dc
xor edx, edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
jmp 0x418bfb
lea eax, [ebp - 4]
push eax
mov eax, ebx
call fcn.004076e4
push eax
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x418bfb
call sub.kernel32.dll_GetLastError_1
test eax, eax
Function at 0x41a14c
Capabilities:
Clear file content
Receive http response

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
lea edi, [ebp - 8]
xor eax, eax
push ebp
push 0x41a2cc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 0x68], 0
jne 0x41a17a
xor esi, esi
jmp 0x41a2b0
mov esi, 0x3e3
cmp byte [ebx + 0xc4], 0
je 0x41a1b5
mov eax, dword [ebx + 0x34]
sub eax, 0xc8
je 0x41a19e
sub eax, 6
je 0x41a19e
xor esi, esi
jmp 0x41a2b0
mov eax, dword [ebx + 0x68]
call fcn.00418b98
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
fild qword [ebp - 0x18]
fstp qword [ebp - 0x10]
wait
jmp 0x41a1bd
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x68]
cmp dword [eax + 0x3c], 0
je 0x41a204
cmp dword [ebx + 0x3c], 0
jne 0x41a1d7
cmp dword [ebx + 0x38], 0x2800
jbe 0x41a204
jmp 0x41a1d9
jle 0x41a204
cmp byte [ebx + 0xc4], 0
je 0x41a1f9
mov eax, dword [ebx + 0x68]
call fcn.004076dc
mov edx, dword [ebx + 0x38]
sub edx, eax
mov eax, dword [ebx + 0x68]
call fcn.004076ec
jmp 0x41a204
mov eax, dword [ebx + 0x68]
mov edx, dword [ebx + 0x38]
call fcn.004076ec
push 0x2800
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x41a138]
call fcn.0040407c
add esp, 4
jmp 0x41a2a6
push edi
push 0x2800
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebx + 0x50]
push eax
call sub.winhttp.dll_WinHttpReadData
test eax, eax
jne 0x41a244
call sub.kernel32.dll_GetLastError_1
mov esi, eax
jmp 0x41a2b0
cmp byte [ebx + 8], 0
jne 0x41a2b0
cmp dword [edi], 0
jne 0x41a261
xor esi, esi
mov eax, dword [ebx + 0x68]
call fcn.004076e4
push eax
call sub.kernel32.dll_SetEndOfFile_1
jmp 0x41a2b0
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x68]
mov ecx, dword [edi]
call fcn.00407718
cmp eax, dword [edi]
jae 0x41a27b
call sub.kernel32.dll_GetLastError_1
mov esi, eax
jmp 0x41a2b0
cmp byte [ebx + 8], 0
jne 0x41a2b0
mov eax, dword [edi]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fadd qword [ebp - 0x10]
fstp qword [ebp - 0x10]
wait
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea eax, [ebx + 0x18c]
call fcn.0040c7b8
cmp byte [ebx + 8], 0
je 0x41a224
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a2d3
lea eax, [ebp - 4]
mov edx, dword [0x41a138]
call fcn.00404088
ret
Function at 0x406d00
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6d4
mov eax, dword [0x439040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push eax
push esi
push 0x42b790
lea eax, [ebp - 0x414]
mov dword [ebp - 0x6b0], esi
push 0x104
push eax
call fcn.004076c0
add esp, 0x14
lea eax, [ebp - 0x6a8]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x6ac], eax
cmp eax, 0xffffffff
je 0x406ed8
push ebx
mov ebx, eax
push edi
lea eax, [ebp - 0x67c]
push eax
push esi
push str._s_s
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004076c0
add esp, 0x14
lea eax, [ebp - 0x458]
push eax
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x406eb9
mov eax, dword [ebp - 0x444]
mov ecx, dword [ebp - 0x440]
mov dword [ebp - 0x6bc], eax
lea eax, [ebp - 0x434]
push eax
mov dword [ebp - 0x6b8], ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x6cc]
push eax
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x6c4]
push eax
lea eax, [ebp - 0x6bc]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
mov eax, dword [ebp - 0x6c0]
mov ebx, dword [ebp - 0x6c4]
mov edi, dword [ebp - 0x6cc]
mov esi, dword [ebp - 0x6c8]
mov dword [ebp - 0x6b4], eax
mov dword [ebp - 0x6d0], eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x6d4]
mov dword [ebp - 0x6d4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [ebp - 0x20c]
push eax
push str.___Macro_file_detected:__s_n
call fcn.00404070
movzx eax, word [ebp - 0x418]
push eax
movzx eax, word [ebp - 0x41a]
push eax
movzx eax, word [ebp - 0x41c]
push eax
movzx eax, word [ebp - 0x41e]
push eax
movzx eax, word [ebp - 0x422]
push eax
movzx eax, word [ebp - 0x424]
push eax
push str.___Macro_file_modification_time:__d__d__d__d:_d:_d._Ban_if_it_is_just_after_the_time_you_freezed_the_player._n
call fcn.00404070
add esp, 0x24
sub edi, ebx
mov ecx, edi
sbb esi, dword [ebp - 0x6b4]
mov edx, esi
call fcn.004265f0
movsd xmm1, qword [0x42cec0]
comisd xmm1, xmm0
jbe 0x406ead
lea eax, [ebp - 0x20c]
push eax
push str.Warning:_Macro_file__s_was_recently_modified__n
call fcn.00404070
add esp, 8
mov esi, dword [ebp - 0x6b0]
mov ebx, dword [ebp - 0x6ac]
lea eax, [ebp - 0x6a8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406d62
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00426399
mov esp, ebp
pop ebp
ret
Function at 0x406f00
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x439040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push eax
push esi
push 0x42b790
lea eax, [ebp - 0x414]
mov dword [ebp - 0x668], esi
push 0x104
push eax
call fcn.004076c0
push 0x43b500
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00407620
add esp, 0x20
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40707c
push edi
lea eax, [ebp - 0x638]
push eax
push esi
push str._s_s
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004076c0
mov esi, 0x43b500
add esp, 0x14
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x406fa0
lea eax, [ebp - 0x20c]
sub esi, ecx
push str._username_
push eax
sar esi, 1
call sub.VCRUNTIME140.dll_wcsstr
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x40703b
nop dword [eax]
lea eax, [ebp - 0x20c]
mov edi, ecx
sub edi, eax
mov eax, 0xfa
sar edi, 1
sub eax, edi
cmp esi, eax
ja 0x40701b
add eax, eax
push eax
lea eax, [ecx + 0x14]
push eax
lea ecx, [ebp - 0x20c]
lea eax, [edi + esi]
lea eax, [ecx + eax*2]
push eax
call sub.VCRUNTIME140.dll_memmove
lea eax, [esi + esi]
push eax
lea eax, [ebp - 0x20c]
lea eax, [eax + edi*2]
push 0x43b500
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x18
lea ecx, [ebp - 0x20c]
lea eax, [edi + esi]
lea eax, [ecx + eax*2]
push str._username_
push eax
call sub.VCRUNTIME140.dll_wcsstr
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x406fd0
test byte [ebp - 0x664], 1
je 0x407058
lea eax, [ebp - 0x20c]
push eax
push str.Warning:_Macro_file:__s_is_marked_as_read_only._This_is_bannable._n
call fcn.00404070
add esp, 8
lea eax, [ebp - 0x664]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, dword [ebp - 0x668]
test eax, eax
jne 0x406f72
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00426399
mov esp, ebp
pop ebp
ret
Function at 0x40dac0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x40daf1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x40dae0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x40efb0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x40efe1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x40efd0
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x411f90
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x439040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x124
lea eax, [ebp - 0x128]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x12c], 0x128
xor bl, bl
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x411feb
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00426399
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x12c]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x412047
push edi
mov edi, dword [ebp + 8]
mov eax, edi
lea ecx, [ebp - 0x108]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x412028
test dl, dl
je 0x412024
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x412028
add ecx, 2
add eax, 2
test dl, dl
jne 0x412008
xor eax, eax
jmp 0x41202d
sbb eax, eax
or eax, 1
test eax, eax
je 0x412044
lea eax, [ebp - 0x12c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x412000
jmp 0x412046
mov bl, 1
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.00426399
mov esp, ebp
pop ebp
ret 4
Function at 0x419af0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x439040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
mov dword [ebp - 0x64], 0
cmp dword [esi + 0x14], 7
jbe 0x419b16
mov eax, dword [esi]
lea ecx, [ebp - 0x64]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeW]
test eax, eax
je 0x419c3b
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x419c22
cmp eax, 6
je 0x419c22
cmp dword [esi + 0x14], 7
jbe 0x419b45
mov esi, dword [esi]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x419c3b
push 0x40
lea eax, [ebp - 0x5c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x60]
add esp, 0xc
push 0
push eax
push 0x40
lea eax, [ebp - 0x5c]
push eax
push esi
call edi
test eax, eax
je 0x419c34
cmp dword [ebp - 0x60], 0x40
jne 0x419c34
mov eax, 0x5a4d
cmp word [ebp - 0x5c], ax
jne 0x419c34
push 0
push 0
push dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x419c34
push 0
lea eax, [ebp - 0x60]
mov dword [ebp - 0x68], 0
push eax
push 4
lea eax, [ebp - 0x68]
push eax
push esi
call edi
test eax, eax
je 0x419c34
cmp dword [ebp - 0x60], 4
jne 0x419c34
cmp dword [ebp - 0x68], 0x4550
jne 0x419c34
push 0
lea eax, [ebp - 0x60]
mov dword [ebp - 0xc], 0
push eax
push 0x14
lea eax, [ebp - 0x1c]
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x1c], xmm0
call edi
test eax, eax
je 0x419c34
cmp dword [ebp - 0x60], 0x14
jne 0x419c34
test dword [ebp - 0xa], 0x2000
je 0x419c34
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00426399
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.00426399
mov esp, ebp
pop ebp
ret
Function at 0x419c90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x439040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x419d54
cmp byte [esi + 0x3e], 0
je 0x419d54
mov eax, dword [esi]
push edi
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
je 0x419d42
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x419d09
sub eax, 1
je 0x419d0d
sub eax, 2
jne 0x419d42
mov byte [esi + 0x3e], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00426399
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3e], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x419d2b
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x419d42
cmp byte [esi + 0x3e], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00426399
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00426399
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00426399
mov esp, ebp
pop ebp
ret
Function at 0x41f380
Capabilities:
Log keystrokes via application hook

Disassembly:
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push 0x41f3b0
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
test eax, eax
mov dword [0x43b4f4], eax
setne al
ret

Function at 0x4217b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x439040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x42186c
cmp byte [esi + 0x3d], 0
je 0x42186c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x42185a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 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, 0
je 0x421821
sub eax, 1
je 0x421825
sub eax, 2
jne 0x42185a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00426399
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x421843
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x42185a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00426399
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00426399
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00426399
mov esp, ebp
pop ebp
ret
Function at 0x4233a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x4233c1
jl 0x4233b7
test esi, esi
jne 0x4233c1
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x4233d8
push eax
push esi
push dword [ebp + 8]
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__]
pop esi
pop ebx
pop ebp
ret 0xc
push edi
mov edi, esi
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const]
test eax, eax
je 0x42340e
cmp eax, dword [ebp + 0xc]
mov ecx, ebx
cmovb esi, eax
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const]
push esi
push eax
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
add dword [ebp + 8], esi
add esp, 0xc
mov ecx, ebx
sub edi, esi
push esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int_]
cmp dword [ebx + 0x4c], 0
mov esi, dword [ebp + 8]
je 0x42347d
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const]
lea ecx, [ebx + 0x3c]
cmp eax, ecx
jne 0x423436
push dword [ebx + 0x54]
mov eax, dword [ebx + 0x50]
mov ecx, ebx
push eax
push eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char___char___char__]
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, edi
cmp edi, 0xfff
jbe 0x42346b
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x42347d
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x423445
test ecx, ecx
je 0x42347d
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
pop ebp
ret 0xc
Function at 0x423490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4234b5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
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__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edi
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const]
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x423520
jg 0x4234db
test esi, esi
je 0x423520
test ecx, ecx
jl 0x42355a
jg 0x4234e5
test eax, eax
je 0x42355a
cmp edi, ecx
jg 0x4234f5
jl 0x4234ef
cmp esi, eax
jae 0x4234f5
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
push dword [ebp + 0x10]
push dword [ebp + 8]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 0x10]
add esp, 0xc
add dword [ebp + 8], eax
mov ecx, ebx
sub esi, eax
sbb edi, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int_]
mov eax, dword [ebp + 8]
test edi, edi
jl 0x423547
jg 0x42352d
test esi, esi
je 0x423547
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
je 0x423547
push ecx
push esi
push 1
push eax
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 [ebp - 8]
mov edx, dword [ebp - 0xc]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
jmp 0x42352d

Function at 0x423a80
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x430d9c
push dword [ebp + 8]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
add esp, 0xc
test eax, eax
jne 0x423ae9
mov eax, dword [ebp - 4]
test eax, eax
je 0x423ae9
push esi
push 2
push 0
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
test esi, esi
pop esi
jne 0x423ae3
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 4
test eax, eax
jne 0x423ae9
mov al, 1
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret