joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449e64
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x449e9c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449e7d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449e8c
or bl, 4
test esi, 0x20000000
je 0x449e97
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x450560
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x450572
add esp, 0xfffffff0
call fcn.00403a04
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d14c
mov eax, dword [0x4623e4]
mov dword [eax + 4], ebx
mov dword [eax], 0x450904
mov eax, dword [0x4623f0]
mov dword [eax + 4], ebx
mov dword [eax], 0x450910
mov eax, ebx
call fcn.0045091c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x415444]
call fcn.004036b4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x415444]
call fcn.004036b4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x415444]
call fcn.004036b4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x415444]
call fcn.004036b4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x415444]
call fcn.004036b4
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44cd34
push eax
push 0
push 0
mov eax, dword [0x462540]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41eb78]
call fcn.0041ffe0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41eb78]
call fcn.0041ffe0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41eb78]
call fcn.0041ffe0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00450d6c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450c34
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450c34
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450c34
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4506af
call fcn.00403a5c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x450a18
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x450bc3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x450ba4
mov dl, 1
mov eax, dword [0x415860]
call fcn.004036b4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404458
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x450b93
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043e958
test al, al
je 0x450b86
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x450bd4
lea eax, [ebp - 0x254]
call fcn.00409408
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x450b86
xor eax, eax
push ebp
push 0x450b7f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x450c0c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x450b68
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004046c8
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x450b68
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004046c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450b86
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x450a89
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041933c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450bca
lea eax, [ebp - 0x260]
call fcn.00404458
ret

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

Disassembly:
push ecx
mov eax, dword [0x463bb4]
cmp byte [eax + 0xa5], 0
jne 0x45157d
cmp dword [0x463bcc], 0
jne 0x45153e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4514c8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x463bcc], eax
cmp dword [0x463bc8], 0
jne 0x451559
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x463bc8], eax
cmp dword [0x463bd0], 0
jne 0x45157d
push esp
push 0
push 0
push 0x45146c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x463bd0], eax
pop edx
ret
Function at 0x451c10
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x463bb4]
cmp dword [eax + 0x30], 0
je 0x451cba
cmp dword [ebx + 0x94], 0
jne 0x451cb4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x451ba0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x451cb4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x451c7a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x451cb4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004177ac
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x451c89
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x452818
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45284d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404548
jmp 0x45285a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004044ac
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45397c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4539bd
mov eax, esi
call fcn.0043a0cc
test al, al
je 0x4539bd
mov eax, dword [ebx + 0x84]
call fcn.00439dc8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4539bd
push 0
mov eax, dword [ebx + 0x84]
call fcn.00439dc8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x456860
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00420dc0
cmp ebx, dword [ebp - 8]
jge 0x4568c3
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.004210e4
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.004210e4
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00421110
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x456889
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4568cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00420dc0
cmp ebx, dword [ebp - 8]
jge 0x45692f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.004210e4
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.004210e4
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00421110
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x4568f5
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x46098c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x460a9e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
push eax
mov eax, 0x460ab4
mov dword [ebp - 0x24], eax
mov eax, 0x460ac0
mov dword [ebp - 0x20], eax
mov eax, 0x460acc
mov dword [ebp - 0x1c], eax
mov eax, 0x460adc
mov dword [ebp - 0x18], eax
mov eax, 0x460ae8
mov dword [ebp - 0x14], eax
mov eax, 0x460af8
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 8]
call fcn.00404458
mov ecx, eax
mov edx, 5
pop eax
call fcn.00460874
test al, al
je 0x460a83
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
inc eax
call fcn.00402e64
cmp dword [ebp - 0xc], 0
je 0x460a83
lea eax, [ebp - 4]
push eax
mov eax, 0x460b08
mov dword [ebp - 0x34], eax
mov eax, 0x460b18
mov dword [ebp - 0x30], eax
mov eax, 0x460b28
mov dword [ebp - 0x2c], eax
mov eax, 0x460b38
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 8]
call fcn.00404458
mov ecx, eax
mov edx, 3
pop eax
call fcn.00460874
test al, al
je 0x460a65
push 5
mov eax, dword [ebp - 0xc]
call fcn.00404918
push eax
call sub.kernel32.dll_WinExec
jmp 0x460a75
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404918
push eax
call sub.kernel32.dll_WinExec
mov bl, 1
mov eax, dword [0x4625c0]
mov eax, dword [eax]
call fcn.00452d68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460aa5
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0040447c
ret
Function at 0x40fc20
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [0x573090]
lea eax, [ebp - 4]
push ebx
push esi
push edi
xor ebx, ebx
mov edx, str.SELECT_COUNT_TYPE__FROM_sqlite_master_WHERE_typetable_AND_namemigration
push ebx
push eax
push ebx
push 0x80
push 0xffffffffffffffff
call fcn.004933f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x40fc71
call fcn.00401bd0
push esi
push str.is_migration_exist_prepare_fail:__d
push 0x560014
push eax
call fcn.00412dc0
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 4]
xor edi, edi
push esi
call fcn.00448570
add esp, 4
cmp eax, 0x64
jne 0x40fd1a
test esi, esi
je 0x40fcc4
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x40fc9f
push eax
call dword [0x5705c0]
add esp, 4
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x40fcb1
xor eax, eax
cmp ax, word [esi + 0x90]
jb 0x40fcc9
mov ecx, dword [esi]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.0041c5f0
mov ecx, 0x55c108
call fcn.00440740
mov edi, eax
test esi, esi
je 0x40fd01
mov ecx, dword [esi]
mov edx, dword [esi + 0x24]
cmp byte [ecx + 0x57], bl
jne 0x40fce6
test edx, edx
jne 0x40fce6
xor eax, eax
jmp 0x40fceb
call fcn.00419470
mov dword [esi + 0x24], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x40fd01
push eax
call dword [0x5705c8]
add esp, 4
call fcn.00401bd0
push edi
push str.is_migration_exist_count:__d
push 0x560014
push eax
call fcn.00412dc0
add esp, 0x10
push esi
call fcn.00447480
add esp, 4
test edi, edi
je 0x40fe09
mov ecx, dword [0x573090]
lea eax, [ebp - 4]
push 0
push eax
push 0
push 0x80
push 0xffffffffffffffff
mov edx, str.SELECT_VERSION_FROM_migration_WHERE_id1_
call fcn.004933f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x40fd75
call fcn.00401bd0
push esi
push str.get_migration_version_prepare_fail:__d
push 0x560014
push eax
call fcn.00412dc0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 4]
push esi
call fcn.00448570
add esp, 4
cmp eax, 0x64
jne 0x40fe00
test esi, esi
je 0x40fdc2
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x40fd9d
push eax
call dword [0x5705c0]
add esp, 4
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x40fdaf
xor eax, eax
cmp ax, word [esi + 0x90]
jb 0x40fdc7
mov ecx, dword [esi]
mov edx, 0x19
mov dword [ecx + 0x40], 0x19
call fcn.0041c5f0
mov ecx, 0x55c108
call fcn.00440740
mov ebx, eax
test esi, esi
je 0x40fe00
mov ecx, dword [esi]
mov edx, dword [esi + 0x24]
cmp byte [ecx + 0x57], 0
jne 0x40fde5
test edx, edx
jne 0x40fde5
xor eax, eax
jmp 0x40fdea
call fcn.00419470
mov dword [esi + 0x24], eax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x40fe00
push eax
call dword [0x5705c8]
add esp, 4
push esi
call fcn.00447480
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412030
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547cae
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x570400]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.004029c0
lea eax, [esi + 0x18]
mov dword [ebp - 4], 0
lea ecx, [edi + 0x18]
push eax
call fcn.004029c0
mov byte [ebp - 4], 1
lea ecx, [edi + 0x34]
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
lea eax, [esi + 0x34]
push eax
call fcn.004029c0
lea eax, [esi + 0x4c]
mov byte [ebp - 4], 2
lea ecx, [edi + 0x4c]
push eax
call fcn.004029c0
lea eax, [esi + 0x64]
mov byte [ebp - 4], 3
push eax
lea ecx, [edi + 0x64]
call fcn.004029c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x413170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x41319c
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 edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x4131c4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x4131ca
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 0x413232
jg 0x4131e1
test esi, esi
je 0x413232
test ecx, ecx
jl 0x41322d
jg 0x4131eb
test eax, eax
je 0x41322d
cmp edi, ecx
jg 0x4131ff
jl 0x4131f5
cmp esi, eax
jae 0x4131ff
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x413235
mov ecx, dword [ebp + 8]
jmp 0x41323f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x413259
jg 0x41323f
test esi, esi
je 0x413259
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x413259
push eax
push esi
push 1
push ecx
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 ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x413270
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x41329c
jl 0x413290
test ecx, ecx
jne 0x41329c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x4132b5
push eax
push ecx
push esi
mov ecx, ebx
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
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x4132fd
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x413303
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x413303
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x413376
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x41332c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x413364
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x413376
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x413340
test edi, edi
je 0x413376
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
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4136f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x570400]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x413720
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054507b
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x41375c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x41375c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054507b
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x413833
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x413784
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x413790
movsx eax, bl
jmp 0x4137c8
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
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 0x4137f2
sub eax, 1
je 0x4137f2
sub eax, 2
jne 0x413833
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054507b
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x413810
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 0x413833
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054507b
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054507b
mov esp, ebp
pop ebp
ret 4
Function at 0x4139c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x570400]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x413a7c
cmp byte [esi + 0x3d], 0
je 0x413a7c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x413a6a
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 0x413a31
sub eax, 1
je 0x413a35
sub eax, 2
jne 0x413a6a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054507b
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x413a53
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 0x413a6a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054507b
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054507b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0054507b
mov esp, ebp
pop ebp
ret
Function at 0x41bcf0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
call fcn.004ccb00
test eax, eax
jne 0x41be4c
push esi
cmp byte [0x570574], al
jne 0x41bd11
xor esi, esi
jmp 0x41bd2c
push 5
call dword [0x5705b8]
mov esi, eax
add esp, 4
test esi, esi
je 0x41bd2c
push esi
call dword [0x5705c0]
add esp, 4
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
jle 0x41be32
test edi, edi
je 0x41be32
cmp dword [0x573360], 0
jne 0x41bdc5
push 0
call fcn.00418060
movups xmm0, xmmword [str.expand_32_byte_k]
add esp, 4
movups xmmword [0x573360], xmm0
test eax, eax
jne 0x41bd74
push 0x2c
push eax
push 0x573370
call sub.VCRUNTIME140.dll_memset
jmp 0x41bda4
cmp dword [0x570684], 0
je 0x41bd97
push 0x2c
push 0
push 0x573370
call sub.VCRUNTIME140.dll_memset
mov eax, dword [0x570684]
mov dword [0x573370], eax
jmp 0x41bda4
push 0x573370
push 0x2c
push eax
mov eax, dword [eax + 0x38]
call eax
mov eax, dword [0x573390]
add esp, 0xc
xor cl, cl
mov dword [0x57339c], eax
mov dword [0x573390], 0
mov byte [0x5733e0], cl
jmp 0x41bdcb
mov cl, byte [0x5733e0]
movzx eax, cl
cmp ebx, eax
jle 0x41be15
test cl, cl
je 0x41bdf3
movzx eax, cl
push eax
push 0x5733a0
push edi
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [0x5733e0]
add esp, 0xc
sub ebx, eax
add edi, eax
inc dword [0x573390]
mov edx, 0x573360
mov ecx, 0x5733a0
call fcn.0041b970
mov cl, 0x40
mov byte [0x5733e0], cl
cmp ebx, 0x40
jg 0x41bdd2
movzx eax, cl
sub eax, ebx
push ebx
add eax, 0x5733a0
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
sub byte [0x5733e0], bl
jmp 0x41be3c
mov dword [0x573360], 0
test esi, esi
je 0x41be4a
push esi
call dword [0x5705c8]
add esp, 4
pop ebx
pop esi
pop edi
pop ebp
ret