joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3001f3a8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, 3
je 0x3001f3dc
cmp byte [eax], 0
je 0x3001f420
lea eax, [eax + 1]
test eax, 3
je 0x3001f3dc
cmp byte [eax], 0
je 0x3001f420
lea eax, [eax + 1]
test eax, 3
je 0x3001f3dc
cmp byte [eax], 0
je 0x3001f420
lea eax, [eax + 1]
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x1010101
xor edx, ecx
and edx, 0x80808080
je 0x3001f3dc
test cl, cl
lea eax, [eax - 4]
je 0x3001f420
test ecx, 0xff00
lea eax, [eax + 1]
je 0x3001f420
test ecx, 0xff0000
lea eax, [eax + 1]
je 0x3001f420
test ecx, 0xff000000
lea eax, [eax + 1]
je 0x3001f420
lea eax, [eax + 1]
jmp 0x3001f3dc
sub eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x3001f42f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, 3
je 0x3001f456
cmp word [eax], 0
je 0x3001f44f
lea eax, [eax + 2]
test eax, 3
je 0x3001f456
jmp 0x3001f43d
sub eax, dword [ebp + 8]
shr eax, 1
jmp 0x3001f491
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x10001
xor edx, ecx
and edx, 0x80008000
je 0x3001f456
sub eax, dword [ebp + 8]
shr eax, 1
test cx, cx
lea eax, [eax - 2]
je 0x3001f491
test ecx, 0xffff0000
lea eax, [eax + 1]
je 0x3001f491
lea eax, [eax*2 + 2]
add eax, dword [ebp + 8]
jmp 0x3001f456
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x3002138d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
mov esi, ecx
cmp si, 0xffff
push edi
mov dword [ebp - 4], edx
je 0x30021402
test si, 0x3ff
je 0x30021402
push dword [ebp + 8]
call fcn.30021317
test eax, eax
jne 0x3002140b
movzx edi, si
mov esi, dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
push eax
push eax
push 0x58
push edi
call esi
test eax, eax
je 0x3002140b
lea eax, [ebp - 0x24]
push 0x20
push eax
push 0x58
push edi
call esi
and dword [ebp - 0x10], 0
lea edx, [ebp - 0x44]
push 3
lea ecx, [ebp - 0x14]
call fcn.3002128d
test eax, eax
je 0x300213fa
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x44]
mov byte [ecx], al
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x40]
mov dword [ecx], eax
jmp 0x3002140b
mov eax, dword [ebp - 4]
mov byte [eax], 1
jmp 0x30021405
mov byte [edx], 1
mov eax, dword [ebp + 8]
and dword [eax], 0
pop edi
pop esi
leave
ret 4
Function at 0x41ff5c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push edi
push dword [esi + 0x144]
lea ebx, [esi + 0x78]
push dword [esi + 0x20]
lea eax, [esi + 0x1f0]
push ebx
push eax
mov dword [ebp - 8], 1
call fcn.0042fc34
mov edi, eax
test edi, edi
jns 0x41ff99
push 0x43bb08
jmp 0x420119
lea eax, [esi + 0xe8]
push ebx
push eax
call fcn.00434d2e
mov edi, eax
test edi, edi
jns 0x41ffb6
push 0x43bad4
jmp 0x420119
cmp dword [esi + 0x268], 1
jne 0x42000a
lea eax, [ebp - 4]
push eax
push 1
lea ebx, [esi + 0x274]
push ebx
call fcn.00420ffa
mov edi, eax
test edi, edi
jns 0x41ffe1
push 0x43ba96
jmp 0x420119
push ebx
call fcn.00421216
mov edi, eax
test edi, edi
jns 0x41fff7
push 0x43ba68
jmp 0x420119
cmp dword [ebp - 4], 0
je 0x42000a
push dword [ebp - 4]
call dword [0x401270]
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
lea eax, [esi + 0xe4]
push eax
push dword [esi + 0x144]
lea eax, [esi + 0x9c]
push dword [esi + 0x20]
lea ebx, [esi + 0x78]
push eax
push ebx
call fcn.00433ffe
mov edi, eax
xor eax, eax
cmp edi, eax
jge 0x420040
push 0x43ba46
jmp 0x420119
cmp dword [ebp - 8], eax
jne 0x420058
push 0xe0000035
push 1
call fcn.0041fc04
xor edi, edi
jmp 0x42011f
cmp dword [esi + 0xa8], eax
je 0x420073
cmp dword [esi + 0x20], 2
jle 0x420073
lea ecx, [esi + 0x34]
push ecx
push eax
push dword [ebp + 8]
call fcn.00432fe6
push esi
push dword [ebp + 8]
call fcn.0042f344
mov edi, eax
test edi, edi
jns 0x42008c
push 0x43b7c4
jmp 0x420119
push esi
call fcn.0042a99c
mov edi, eax
test edi, edi
jns 0x42009f
push 0x43ba28
jmp 0x420119
push ebx
push dword [esi + 0x1c]
call fcn.00430e8a
mov edi, eax
test edi, edi
jns 0x4200b5
push 0x43ba08
jmp 0x420119
push ebx
lea eax, [esi + 0xe8]
push eax
call fcn.0042564e
mov edi, eax
test edi, edi
jns 0x4200cf
push 0x43b9e2
jmp 0x420119
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4200f7
cmp word [eax], 0
je 0x4200f7
push 0
push eax
push 0x402658
push ebx
call fcn.004292d8
mov edi, eax
test edi, edi
jns 0x4200f7
push 0x43b994
jmp 0x420119
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
mov eax, esi
call fcn.0041fe06
mov edi, eax
test edi, edi
js 0x420114
cmp dword [ebp + 8], 0
jne 0x4200f7
jmp 0x420121
push 0x43b97e
push edi
call 0x444d84
pop ecx
pop ecx
push esi
call fcn.0042f06c
lea eax, [esi + 0x78]
push eax
call fcn.0042a0e0
cmp dword [esi + 0x284], 0xffffffff
je 0x42015c
cmp dword [esi + 0x268], 1
jne 0x420147
mov eax, dword [esi + 0x18]
jmp 0x420149
xor eax, eax
push eax
push dword [esi + 0xe4]
lea eax, [esi + 0x274]
push eax
call fcn.00421504
push dword [esi + 0x34]
call dword [fcn.00401358]
test eax, eax
je 0x420178
push 0
push 0
push 0x10
push dword [esi + 0x34]
call dword [fcn.0040135c]
cmp dword [ebp - 4], 0
je 0x420187
push dword [ebp - 4]
call dword [0x401270]
mov eax, edi
pop edi
pop ebx
leave
ret 4
Function at 0x406079
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4060cf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4060cf
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x4060c1
cmp esi, ecx
jae 0x4060cf
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x4060af
cmp esi, ecx
jae 0x4060cf
cmp word [esi], 0
je 0x4060cf
mov eax, esi
jmp 0x4060d1
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40639f
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call fcn.0040619a
test eax, eax
je 0x406530
mov edx, dword [eax]
mov ecx, eax
push ebx
push esi
push edi
call dword [edx + 0xc]
add eax, 0x10
mov ebx, 0x104
mov dword [ebp - 4], eax
or edi, 0xffffffff
lea eax, [ebp - 4]
mov dword [ebp - 0x14], edi
push ebx
mov ecx, eax
mov dword [ebp - 0x1c], eax
call fcn.00406936
push ebx
push eax
xor ebx, ebx
mov dword [ebp - 0x18], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.00406910
test esi, esi
je 0x406521
cmp esi, 0x104
ja 0x406521
mov esi, dword [ebp - 4]
call fcn.0040619a
push eax
lea ecx, [ebp - 8]
call fcn.00406ab5
test esi, esi
je 0x406432
test esi, 0xffff0000
jne 0x406432
movzx eax, si
lea ecx, [ebp - 8]
push eax
call fcn.00406ade
jmp 0x40643b
push esi
lea ecx, [ebp - 8]
call fcn.00406884
mov eax, dword [ebp - 8]
lea ecx, [ebp - 8]
push dword [eax - 0xc]
call fcn.00406936
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov esi, dword [ebp - 8]
test esi, esi
jne 0x40645b
mov eax, ebx
jmp 0x406466
push dword [esi - 8]
push esi
call fcn.0040a039
pop ecx
pop ecx
push eax
lea ecx, [ebp - 8]
call fcn.004069b8
lea ecx, [esi - 0x10]
call fcn.00406b5d
add eax, 0x10
lea ecx, [ebp - 4]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.004068af
lea ecx, [ebp - 0x10]
call fcn.00406a9a
call fcn.0040619a
test eax, eax
je 0x406530
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push 0x104
mov ecx, eax
mov dword [ebp - 0x1c], eax
call fcn.00406936
push eax
push ebx
push ebx
push 0x26
push ebx
mov dword [ebp - 0x18], eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.00406910
test esi, esi
js 0x406511
lea ecx, [ebp - 0xc]
call fcn.0040684a
lea ecx, [ebp - 4]
call fcn.0040684a
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x40650c
mov ecx, dword [ebp - 4]
cmp dword [ecx - 0xc], ebx
jl 0x40650c
call fcn.00406da7
test eax, eax
je 0x40650c
mov edi, eax
sub edi, dword [ebp - 4]
sar edi, 1
test edi, edi
sete bl
lea ecx, [ebp - 0xc]
call fcn.00406a9a
lea ecx, [ebp - 8]
call fcn.00406a9a
lea ecx, [ebp - 4]
call fcn.00406a9a
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
push 0x80004005
call fcn.00405ff5
int3
Function at 0x40653b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0x20019
push edi
movzx eax, cl
mov esi, edx
push 0x405ac0
sub eax, 0x7fffffff
mov dword [ebp - 4], edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x406578
jle 0x4065d5
movzx eax, ax
or eax, 0x80070000
jmp 0x4065d5
or dword [ebp - 0x10], 0xffffffff
mov ecx, esi
push 0x32
pop eax
push eax
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], esi
call fcn.00406936
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x14], eax
push ecx
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x405aac
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.00406910
test esi, esi
je 0x4065c8
jle 0x4065c4
movzx esi, si
or esi, 0x80070000
mov eax, esi
jmp 0x4065d5
mov eax, dword [ebp - 8]
dec eax
neg eax
sbb eax, eax
and eax, 0x8000ffff
pop edi
pop esi
leave
ret

Function at 0x406788
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0x405a90
push 0x405a18
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4067af
push 0x800
call eax
call fcn.0040639f
mov byte [ebp - 1], al
call fcn.0040619a
mov ecx, eax
test ecx, ecx
je 0x40683f
mov eax, dword [ecx]
push esi
push edi
call dword [eax + 0xc]
mov dl, byte [ebp - 1]
add eax, 0x10
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.004065d9
mov esi, eax
pop ecx
test esi, esi
js 0x40682f
push 0
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x406801
call fcn.0040633c
mov esi, eax
jmp 0x40682f
push 0x405ab4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x406823
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call esi
mov esi, eax
jmp 0x406828
mov esi, 0x80004005
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 8]
call fcn.00406a9a
pop edi
mov eax, esi
pop esi
leave
ret 0x10
push 0x80004005
call fcn.00405ff5
int3
Function at 0x10019a40
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov ecx, 0x1027056f
call fcn.10172e30
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movsx eax, byte [edx + ecx]
test eax, eax
jne 0x10019a6e
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x44], ecx
jmp 0x10019a9e
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx + eax]
xor edx, dword [ebp + 0xc]
imul eax, edx, 0x1000193
push eax
mov ecx, 1
shl ecx, 0
add ecx, dword [ebp + 8]
push ecx
call fcn.10019a40
add esp, 8
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100259c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x10247340]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ecx, 0x102712af
call fcn.10172e30
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x100259f7
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x3d]
test ecx, ecx
jne 0x100259fe
mov al, 1
jmp 0x10025af7
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x7c], edx
call fcn.100263c0
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp - 8]
call dword [ebp - 0x7c]
mov dword [ebp - 0x84], eax
call fcn.100263c0
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0x88]
push edx
call fcn.10026420
add esp, 8
movzx eax, al
test eax, eax
je 0x10025a50
xor al, al
jmp 0x10025af7
mov dword [ebp - 0xc], 0x20
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x7c], ecx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 8]
add edx, 0x40
push edx
mov ecx, dword [ebp - 0x7c]
call dword [sym.imp.MSVCP140D.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
je 0x10025a93
cmp dword [ebp - 0x80], 1
je 0x10025a9a
cmp dword [ebp - 0x80], 3
je 0x10025aea
jmp 0x10025af5
mov eax, dword [ebp - 8]
mov byte [eax + 0x3d], 0
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x30]
sub eax, ecx
mov dword [ebp - 0x38], eax
je 0x10025aca
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ucrtbased.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x10025aca
xor al, al
jmp 0x10025af7
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 0x3d]
test ecx, ecx
jne 0x10025ade
mov dword [ebp - 0x7c], 1
jmp 0x10025ae5
mov dword [ebp - 0x7c], 0
mov al, byte [ebp - 0x7c]
jmp 0x10025af7
mov eax, dword [ebp - 8]
mov byte [eax + 0x3d], 0
mov al, 1
jmp 0x10025af7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10172e70
mov esp, ebp
pop ebp
ret
Function at 0x10027c90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, 0x102712af
call fcn.10172e30
cmp dword [ebp + 0x10], 0
jg 0x10027cbd
jl 0x10027cb4
cmp dword [ebp + 0xc], 0
ja 0x10027cbd
xor eax, eax
xor edx, edx
jmp 0x10027e04
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x10027ce0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
jmp 0x10027e04
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x10027d52
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.10006f90
add esp, 8
mov edx, dword [eax]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140D.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10010340
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140D.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int_]
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4c], 0
je 0x10027df5
mov ecx, dword [ebp - 4]
call fcn.10025f30
mov dword [ebp - 0x1c], 0xfff
cmp dword [ebp - 8], 0xfff
jbe 0x10027dc3
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c]
push ecx
push 0xfff
push 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ucrtbased.dll_fread]
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x20]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 8], eax
cmp dword [ebp - 0x20], 0xfff
je 0x10027dc1
xor eax, eax
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
sbb edx, eax
mov eax, ecx
jmp 0x10027e04
jmp 0x10027d6e
cmp dword [ebp - 8], 0
jbe 0x10027df5
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 8]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ucrtbased.dll_fread]
add esp, 0x10
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
sub edx, dword [ebp - 0x64]
mov dword [ebp - 8], edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
sbb edx, eax
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10027e10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, 0x102712af
call fcn.10172e30
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x10027e49
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
jmp 0x10027f2f
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
cmp dword [ebp + 0x10], 0
jl 0x10027ee0
jg 0x10027e72
cmp dword [ebp + 0xc], 0
jbe 0x10027ee0
cmp dword [ebp - 0x10], 0
jl 0x10027ee0
jg 0x10027e80
cmp dword [ebp - 0x14], 0
jbe 0x10027ee0
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x10]
jg 0x10027e9e
jl 0x10027e92
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0x14]
jae 0x10027e9e
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140D.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
push eax
call fcn.10010340
add esp, 0xc
mov eax, dword [ebp - 0x14]
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
sbb ecx, dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], ecx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140D.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int_]
cmp dword [ebp + 0x10], 0
jl 0x10027f23
jg 0x10027eee
cmp dword [ebp + 0xc], 0
jbe 0x10027f23
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4c], 0
je 0x10027f23
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ucrtbased.dll_fwrite]
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
sbb edx, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10052500
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101cc7c5
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x10247340]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov ecx, 0x102716fa
call fcn.10172e30
push str..json
lea eax, [ebp + 8]
push eax
push 0x101dab2c
lea ecx, [ebp - 0x6c]
push ecx
call fcn.100284b0
add esp, 0xc
mov dword [ebp - 0x8c], eax
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x90], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x90]
push eax
lea ecx, [ebp - 0x88]
push ecx
call fcn.100283c0
add esp, 0xc
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
call fcn.10023420
push eax
call dword [sym.imp.ucrtbased.dll_remove]
add esp, 4
lea ecx, [ebp - 0x88]
call fcn.100085a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c]
call fcn.100085a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.100085a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10172e70
mov esp, ebp
pop ebp
ret
Function at 0x100b5330
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
mov ecx, 0x10274273
call fcn.10172e30
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ucrtbased.dll_fread]
add esp, 0x10
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100b5370
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
mov ecx, 0x10274273
call fcn.10172e30
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ucrtbased.dll_fwrite]
add esp, 0x10
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100b55f0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov ecx, 0x10274273
call fcn.10172e30
mov eax, dword [ebp + 0x10]
not eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0x101e2bd0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp + 0xc]
sub ecx, 1
mov dword [ebp + 0xc], ecx
cmp dword [ebp - 0x50], 0
je 0x100b565e
mov eax, dword [ebp - 4]
shr eax, 8
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov edx, dword [ebp - 8]
movzx edx, byte [edx]
xor ecx, edx
mov edx, dword [ebp - 0xc]
xor eax, dword [edx + ecx*4]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 4], ecx
jmp 0x100b5618
mov eax, dword [ebp - 4]
not eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret