joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427970
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x0042bec0]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
je 0x427990
mov rax, rdx
add rsp, 0x28
ret
mov rcx, r9
call fcn.00427850
test eax, eax
je 0x427988
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add rax, r9
movzx edx, word [rax + 0x14]
lea rdx, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x4279ed
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x4279e4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x427988
add rdx, 0x28
cmp rdx, r9
jne 0x4279d0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x428920
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x38
call fcn.00426850
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x2c]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
lea rdx, [rax + 8]
mov eax, dword [rsp + 0x2c]
lea ecx, [rax - 1]
call fcn.00420ac0
mov r9, qword [0x0043aac0]
cmp r9, 0x8000
ja 0x428964
xor eax, eax
add rsp, 0x38
ret
mov edx, dword [0x00434680]
lea rcx, str._r_c_r__ERROR__Memory_leak__iK__n
sar r9d, 0xa
xor r8d, r8d
call sub.msvcrt.dll_printf
mov ecx, 1
call sub.msvcrt.dll_exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400028f0
Capabilities:
Read .ini file

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x14001b0a0]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rax, [rsp + 0x20]
mov rbx, rcx
mov r9d, 0x104
sub rdx, rax
lea r8, [rsp + 0x20]
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x140002947
movzx eax, word [rdx + r8]
test ax, ax
je 0x140002947
mov word [r8], ax
add r8, 2
sub r9, 1
jne 0x140002921
jmp 0x14000294c
test r9, r9
jne 0x140002950
sub r8, 2
lea rdx, str.logsetting.ini
lea rcx, [rsp + 0x20]
mov word [r8], 0
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea r9, [rsp + 0x20]
lea rdx, str.LogLevel
lea rcx, str.Setting
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea r9, [rsp + 0x20]
lea rdx, str.DebugOut
lea rcx, str.Setting
xor r8d, r8d
mov dword [rbx], eax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [rbx + 4], eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140003130
add rsp, 0x240
pop rbx
ret

Function at 0x140002e34
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x14001b0a0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.140003ec0
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x140000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call fcn.140003ec0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x140002ec7
cmp dword [rsp + 0x24], 5
jb 0x140002ee1
jmp 0x140002edd
cmp dword [rsp + 0x30], esi
jne 0x140002ee1
cmp dword [rsp + 0x24], 4
ja 0x140002edd
jne 0x140002ee1
cmp dword [rsp + 0x28], 0
jbe 0x140002ee1
mov byte [rbx + 0x18], sil
lea rax, [0x140015418]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.140002cf4
movzx ecx, byte [0x14001d9b0]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x14001d9b0], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140003130
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400043f0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x14001c7a0]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.140006dd0
test rax, rax
je 0x140004444
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x1400044d9
mov ecx, 2
call fcn.14000b220
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.140003ec0
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x1400044c5
test ebx, ebx
jne 0x1400044c5
lea ecx, [rax + 2]
call fcn.14000b220
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140005ca7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14001b0a0]
jne 0x14000314a
rol rcx, 0x10
test cx, 0xffff
jne 0x140003146
repz ret
ror rcx, 0x10
jmp 0x140005c00
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14001c860]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14001c958]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140005c85
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14001c860]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140005ca7
mov rax, qword [rsp + 0x88]
mov qword [0x14001c958], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14001c8f8], rax
mov rax, qword [0x14001c958]
mov qword [0x14001c7d0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14001c8e0], rax
mov dword [0x14001c7c0], 0xc0000409
mov dword [0x14001c7c4], 1
mov rax, qword [0x14001b0a0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14001b0a8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14001c858], eax
mov ecx, 1
call fcn.14000b220
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140015438]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14001c858], 0
jne 0x140005d2e
mov ecx, 1
call fcn.14000b220
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140009a10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x14001bcd0]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x140009a4e
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x140009a30
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x140009c35
mov ecx, 3
call fcn.14000fda0
cmp eax, 1
je 0x140009bec
mov ecx, 3
call fcn.14000fda0
test eax, eax
jne 0x140009a85
cmp dword [0x14001b060], 1
je 0x140009bec
cmp edi, 0xfc
je 0x140009c35
mov qword [rsp + 0x50], rbp
lea rbp, [0x14001ce00]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.14000b4f0
test eax, eax
je 0x140009ac9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140004350
lea rdx, [0x14001ce19]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14001cf1d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x140009b19
lea r8, str._program_name_unknown_
lea rcx, [0x14001ce19]
mov edx, 0x2fb
call fcn.14000b4f0
test eax, eax
je 0x140009b19
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140004350
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x14001ce19]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x140009b68
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x14001d114]
lea r9d, [rax + 3]
lea r8, [0x140015b24]
sub rdx, rcx
call fcn.14000d6d0
test eax, eax
je 0x140009b68
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140004350
lea r8, [0x140015b20]
mov edx, 0x314
mov rcx, rbp
call fcn.14000d610
test eax, eax
je 0x140009b94
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140004350
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.14000d610
test eax, eax
je 0x140009bc4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.140004350
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.14000fb40
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x140009c35
cmp rax, 0xffffffffffffffff
je 0x140009c35
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x140009c50
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.14000fda0
cmp eax, 1
je 0x140009c82
mov ecx, 3
call fcn.14000fda0
test eax, eax
jne 0x140009d36
cmp dword [0x14001b060], 1
jne 0x140009d36
mov qword [rsp + 0x48], rbx
lea rbx, [0x14001bcd0]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x140009cae
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x140009c98
jmp 0x140009d22
cmp edi, 0x17
jae 0x140009d22
mov ecx, 3
call fcn.14000fda0
cmp eax, 1
je 0x140009cd9
mov ecx, 3
call fcn.14000fda0
test eax, eax
jne 0x140009d22
cmp dword [0x14001b060], 1
jne 0x140009d22
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x140009d22
cmp rax, 0xffffffffffffffff
je 0x140009d22
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xff
call fcn.140009a10
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x14000a560
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov eax, dword [0x14001d32c]
xor r12d, r12d
test eax, eax
mov ebp, r12d
jne 0x14000a5bc
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14000a59c
mov dword [0x14001d32c], 1
jmp 0x14000a5cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x14000a5b6
mov dword [0x14001d32c], 2
jmp 0x14000a639
mov eax, dword [0x14001d32c]
cmp eax, 1
jne 0x14000a630
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14000a60a
cmp word [rdi], bp
mov rax, rdi
je 0x14000a5e9
add rax, 2
cmp word [rax], bp
jne 0x14000a5d7
add rax, 2
cmp word [rax], bp
jne 0x14000a5d7
sub eax, edi
add eax, 2
movsxd rsi, eax
mov rcx, rsi
call fcn.1400075a0
test rax, rax
mov rbx, rax
jne 0x14000a611
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x14000a72b
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.140004650
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbx
jmp 0x14000a72b
cmp eax, 2
je 0x14000a639
test eax, eax
jne 0x14000a60a
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rsi, rax
je 0x14000a60a
cmp byte [rax], bpl
mov rbx, rax
je 0x14000a688
nop
or r9d, 0xffffffff
mov r8, rbx
xor ecx, ecx
lea edx, [r9 + 2]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14000a60a
or rcx, 0xffffffffffffffff
add ebp, eax
mov rdi, rbx
xor eax, eax
repne scasb al, byte [rdi]
not rcx
add rbx, rcx
cmp byte [rbx], al
jne 0x14000a650
add ebp, 1
mov edx, 2
movsxd rcx, ebp
call fcn.140007610
test rax, rax
mov r12, rax
jne 0x14000a6ad
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x14000a72b
cmp byte [rsi], 0
mov qword [rsp + 0x50], r13
mov rbx, rax
mov r13, rsi
je 0x14000a715
nop
or r9d, 0xffffffff
mov eax, ebp
mov rcx, rbx
sub rcx, r12
lea edx, [r9 + 2]
mov r8, r13
sar rcx, 1
sub eax, ecx
xor ecx, ecx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14000a73e
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
repne scasb al, byte [rdi]
mov rdi, rbx
not rcx
add r13, rcx
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
cmp byte [r13], al
not rcx
lea rbx, [rbx + rcx*2]
jne 0x14000a6c0
mov rcx, rsi
mov word [rbx], 0
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rax, r12
mov r13, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov rcx, r12
call fcn.140003e60
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x14000a726
Function at 0x14000fb40
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.140006ce0
xor ebx, ebx
cmp qword [0x14001d660], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x14000fc6c
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x14000fd7f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000fd7f
mov rcx, rax
call fcn.140006c10
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14001d660], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140006c10
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14001d668], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140006c10
lea rcx, [rsp + 0x98]
mov qword [0x14001d670], rax
call fcn.140007850
test eax, eax
je 0x14000fc1f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140004350
cmp dword [rsp + 0x98], 2
jne 0x14000fc6c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140006c10
test rax, rax
mov qword [0x14001d680], rax
je 0x14000fc6c
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140006c10
mov qword [0x14001d678], rax
mov rcx, qword [0x14001d678]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x14000fd18
cmp qword [0x14001d680], rbp
je 0x14000fd18
call fcn.140006dd0
mov rcx, qword [0x14001d680]
mov rsi, rax
call fcn.140006dd0
test rsi, rsi
mov r12, rax
je 0x14000fd18
test rax, rax
je 0x14000fd18
call rsi
test rax, rax
je 0x14000fce3
lea rcx, [rsp + 0x34]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14000fce3
test byte [rsp + 0x40], 1
jne 0x14000fd18
lea rcx, [rsp + 0x30]
call fcn.1400078a0
test eax, eax
je 0x14000fd05
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140004350
cmp dword [rsp + 0x30], 4
jb 0x14000fd12
bts edi, 0x15
jmp 0x14000fd56
bts edi, 0x12
jmp 0x14000fd56
mov rcx, qword [0x14001d668]
cmp rcx, rbp
je 0x14000fd56
call fcn.140006dd0
test rax, rax
je 0x14000fd56
call rax
test rax, rax
mov rbx, rax
je 0x14000fd56
mov rcx, qword [0x14001d670]
cmp rcx, rbp
je 0x14000fd56
call fcn.140006dd0
test rax, rax
je 0x14000fd56
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14001d660]
call fcn.140006dd0
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x14000fd7f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14000fd81
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x140010490
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14001b0a0]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1400104d7
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140003130
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.14000feb0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140003130
add rsp, 0x38
ret

Function at 0x140010ca0
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
sub rsp, 0x20
mov rbp, rdx
xor edi, edi
xor edx, edx
lea r8d, [rdi + 1]
mov esi, ecx
call fcn.14000b5a0
cmp rax, 0xffffffffffffffff
mov r13, rax
je 0x140010e44
lea r8d, [rdi + 2]
xor edx, edx
mov ecx, esi
call fcn.14000b5a0
cmp rax, 0xffffffffffffffff
je 0x140010e44
mov qword [rsp + 0x40], rbx
mov rbx, rbp
mov qword [rsp + 0x50], r14
sub rbx, rax
test rbx, rbx
jle 0x140010dc3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r14d, 0x1000
lea edx, [rdi + 8]
mov rcx, rax
mov r8, r14
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
jne 0x140010d49
call fcn.140004550
mov dword [rax], 0xc
call fcn.140004550
mov eax, dword [rax]
mov rbx, qword [rsp + 0x40]
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
mov edx, 0x8000
mov ecx, esi
mov qword [rsp + 0x48], r12
call fcn.140011820
mov r12d, eax
nop
mov r8d, ebx
cmp rbx, r14
mov rdx, rbp
cmovge r8d, r14d
mov ecx, esi
call fcn.14000b7a0
cmp eax, 0xffffffff
je 0x140010d85
cdqe
sub rbx, rax
test rbx, rbx
jg 0x140010d60
jmp 0x140010d9e
call fcn.140004580
cmp dword [rax], 5
jne 0x140010d9a
call fcn.140004550
mov dword [rax], 0xd
or rdi, 0xffffffffffffffff
mov edx, r12d
mov ecx, esi
call fcn.140011820
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x48]
jmp 0x140010e1c
test rbx, rbx
jns 0x140010e26
xor r8d, r8d
mov rdx, rbp
mov ecx, esi
call fcn.14000b5a0
cmp rax, 0xffffffffffffffff
je 0x140010d2a
mov ecx, esi
call fcn.14000f5f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb rdi, rdi
neg rdi
sub rdi, 1
cmp rdi, 0xffffffffffffffff
jne 0x140010e26
call fcn.140004550
mov dword [rax], 0xd
call fcn.140004580
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
cmp rdi, 0xffffffffffffffff
je 0x140010d2a
xor r8d, r8d
mov rdx, r13
mov ecx, esi
call fcn.14000b5a0
cmp rax, 0xffffffffffffffff
je 0x140010d2a
xor eax, eax
jmp 0x140010d31
call fcn.140004550
mov rbp, qword [rsp + 0x58]
mov eax, dword [rax]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
Function at 0x1400090a0
Capabilities:
Hash data with crc32

Disassembly:
mov rax, qword [rcx + 0x1e8]
mov r10, r8
movsxd r9, dword [rcx + 0x1e0]
mov r11, rdx
mov rcx, r11
mov r8d, dword [rax + r9*4 - 4]
mov eax, r10d
sub eax, edx
neg r10
sbb edx, edx
and edx, eax
jmp fcn.140009aa4

Function at 0x140009734
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movsxd r15, r9d
mov rsi, r8
test r8, r8
je 0x14000975b
and qword [r8], 0
call fcn.140009870
mov rbx, rax
test rax, rax
je 0x140009854
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000984b
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14000984b
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000984b
mov rax, qword [0x140052e60]
mov rbp, rdi
test rax, rax
je 0x1400097c3
inc dword [rax + 0x3c8]
mov rdx, qword [0x140052e70]
lea rcx, [r15 + rdi]
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x14000984b
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rbp
je 0x140009822
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140052e60]
test rax, rax
je 0x140009810
dec dword [rax + 0x3c8]
mov rdx, qword [0x140052e70]
mov rcx, rdi
call qword [0x140051008]
jmp 0x140009854
test r15d, r15d
jle 0x140009835
lea rcx, [rdi + rbp]
mov r8, r15
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x140009846
mov qword [rsi], rbp
mov rax, rdi
jmp 0x140009856
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140009aa4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
cmp dword [0x140052e94], 0
lea rsi, [0x140052e90]
mov ebx, r8d
mov edi, edx
mov r10, rcx
jne 0x140009b0b
xor r9d, r9d
mov r11, rsi
mov r8d, r9d
mov edx, 8
mov ecx, r8d
mov eax, r8d
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
mov r8d, ecx
xor r8d, eax
sub rdx, 1
jne 0x140009ad9
mov dword [r11], r8d
inc r9d
add r11, 4
cmp r9d, 0x100
jb 0x140009ad1
not ebx
mov edx, ebx
test edi, edi
jle 0x140009b2d
movzx eax, byte [r10]
inc r10
movzx ecx, dl
xor rcx, rax
shr edx, 8
xor edx, dword [rsi + rcx*4]
sub edi, 1
jne 0x140009b13
jmp 0x140009b67
mov r8b, byte [r10]
inc r10
test r8b, r8b
je 0x140009b67
mov r9b, 0x23
cmp r8b, r9b
jne 0x140009b4c
cmp byte [r10], r9b
jne 0x140009b4c
cmp byte [r10 + 1], r9b
cmove edx, ebx
movzx ecx, dl
movzx eax, r8b
mov r8b, byte [r10]
xor rcx, rax
shr edx, 8
inc r10
xor edx, dword [rsi + rcx*4]
test r8b, r8b
jne 0x140009b3b
mov rbx, qword [rsp + 8]
not edx
mov rsi, qword [rsp + 0x10]
mov eax, edx
mov rdi, qword [rsp + 0x18]
ret
Function at 0x14000f9dc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x140052e60]
mov rbx, rcx
and dword [rax + 0x2d9c], 0
test rcx, rcx
je 0x14000fa45
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.14000fa50
lea rdx, [0x140043b04]
mov rcx, rbx
mov rdi, rax
call fcn.140009870
mov rbx, rax
test rax, rax
je 0x14000fa45
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret