joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180023dd8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x180023e12
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x180023e17
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180023e60
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180028820]
cmp byte [rcx + rax], 0
je 0x180023e60
dec r8
sub rdx, 1
jne 0x180023e46
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0xfdf410
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0xfdf41d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xfdf42d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xfdf415
lea eax, [rcx + 1]
jmp 0xfdf43b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xfdf44e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xfdf434
sub eax, 3
jb 0xfdf46e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xfdf4bd
sar eax, 1
movsxd rbp, eax
jb 0xfdf4a4
jmp 0xfdf47c
add ebx, ebx
jne 0xfdf47a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xfdf4a4
inc ecx
add ebx, ebx
jne 0xfdf48a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xfdf4a4
call r11
adc ecx, ecx
add ebx, ebx
jne 0xfdf49d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xfdf48c
add ecx, 2
jmp 0xfdf4a9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00fdf3d2
jmp 0xfdf41d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x522400
mov dl, 0x2c
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0xfdf509
cmp rsi, rcx
jae 0xfdf511
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0xfdf4f0
cmp al, 0x8f
ja 0xfdf4f0
cmp byte [rsi - 2], 0xf
je 0xfdf4f6
sub al, 0xe8
cmp al, 1
ja 0xfdf4da
cmp rsi, rcx
jae 0xfdf511
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0xfdf4e0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0xfdf511
lodsb al, byte [rsi]
jmp 0xfdf4f0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xbd1000]
mov eax, dword [rdi]
or eax, eax
je 0xfdf56e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xbdf000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0xfdf51e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0xfdf568
mov qword [rbx], rax
add rbx, 8
jmp 0xfdf53e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0xfdf5b2
cmp al, 0xef
ja 0xfdf59a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xfdf57a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0xfdf589
mov eax, dword [rdi]
add rdi, 4
jmp 0xfdf589
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0xfdf606
sub rsp, 0xffffffffffffff80
jmp 0x46eec0
Function at 0x1409db160
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1409db2e7
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1409db191
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409db177
add dl, dl
jne 0x1409db19e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409db1fe
xor eax, eax
add dl, dl
jne 0x1409db1ad
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409db2b5
add dl, dl
jne 0x1409db1be
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409db1cb
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409db1d8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409db1e5
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409db1f2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1409db186
mov eax, 1
add dl, dl
jne 0x1409db20e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409db21b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409db203
sub eax, ebx
mov ebx, 1
jne 0x1409db254
mov ecx, 1
add dl, dl
jne 0x1409db236
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409db243
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409db22b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409db186
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1409db270
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409db27d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409db265
cmp eax, 0x7d00
jae 0x1409db2a3
cmp eax, 0x500
jb 0x1409db29e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409db186
cmp eax, 0x7f
ja 0x1409db2a6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409db186
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409db2da
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1409db186
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1000025d4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
xor edx, edx
xor ecx, ecx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, ebx
je 0x10000270e
lea edi, [rax + 0x1f]
lea ebp, [rbx + 0x40]
cmp edi, edi
mov ecx, ebp
cmova edi, edi
mov edx, edi
mov esi, edi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [0x100009760], rax
cmp rax, rbx
je 0x10000270e
mov rdx, rsi
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [0x100009768], rax
cmp rax, rbx
je 0x10000270e
mov rdx, rsi
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbp, rax
cmp rax, rbx
je 0x10000270e
mov rcx, qword [0x100009760]
mov r8, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, qword [0x100009768]
mov r8, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov r8, rsi
xor edx, edx
mov rcx, rbp
call sub.msvcrt.dll_memset
mov edx, edi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov rcx, qword [0x100009760]
lea rax, [0x100001358]
lea rdi, [0x100001350]
lea r8, [0x100001360]
mov r9, rbp
mov qword [rsp + 0x30], rdi
mov rdx, rsi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call fcn.1000015f8
cmp eax, ebx
jne 0x100002705
mov rcx, qword [0x100009768]
lea rax, [0x100001370]
mov qword [rsp + 0x30], rdi
lea r8, [0x100001360]
mov r9, rbp
mov rdx, rsi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call fcn.1000015f8
cmp eax, ebx
jne 0x100002705
lea eax, [rbx + 1]
mov dword [0x100009758], eax
mov ebx, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x10000272c
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r13
sub rsp, 0x160
mov rax, qword [0x100009110]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor ebx, ebx
cmp dword [0x10000975c], 1
jne 0x100002766
mov ebx, 1
jmp 0x1000028e2
mov dword [0x10000975c], 1
cmp dword [0x100009758], ebx
jne 0x100002790
lea rcx, [0x100009740]
xor edx, edx
call fcn.1000025d4
mov ebx, eax
test eax, eax
je 0x1000028e2
mov r13d, 0x80
lea rcx, [rsp + 0xd0]
xor edx, edx
mov r8, r13
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x50]
mov r8, r13
xor edx, edx
call sub.msvcrt.dll_memset
and qword [rsp + 0x30], 0
mov rcx, qword [0x100009760]
lea r8d, [r13 - 0x7d]
xor r9d, r9d
mov edx, 0x1f01ff
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x100002854
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10000284b
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov r8d, r13d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
test eax, eax
je 0x10000284b
cmp eax, 1
jne 0x100002830
cmp dword [rsp + 0x40], r13d
jne 0x10000284b
lea rdx, [rsp + 0x50]
lea rcx, [0x100009740]
call fcn.10000355c
mov ebx, eax
test eax, eax
jne 0x1000028d9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsp + 0x30], 0
mov rcx, qword [0x100009760]
xor r9d, r9d
lea r8d, [r9 + 3]
mov edx, 0x1f01ff
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1000028e2
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1000028d9
lea rdx, [rsp + 0xd0]
lea rcx, [0x100009740]
call fcn.100003714
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
lea rdx, [rsp + 0xd0]
mov r8d, r13d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor ebx, ebx
test eax, eax
setne bl
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1000077a0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r13
ret
Function at 0x100002bec
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x100009110]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea rcx, [0x100009740]
mov rbp, r8
mov rsi, rdx
xor edi, edi
call fcn.100002988
mov ebx, eax
test eax, eax
je 0x100002cc3
mov rcx, qword [0x100009748]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x100002cc3
mov ebx, 0x80
mov rcx, qword [0x100009748]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100002cbb
cmp dword [rsp + 0x30], 0
je 0x100002cbb
cmp dword [rsp + 0x40], 2
jne 0x100002c4a
xor al, al
lea rcx, [rsp + 0x40]
mov rdx, rbx
add al, byte [rcx]
inc rcx
sub rdx, 1
jne 0x100002c86
test al, al
jne 0x100002c4a
lea rdx, [rsp + 0x48]
mov rcx, rsi
mov r8d, 0x47
call sub.msvcrt.dll_memcpy
mov r11d, dword [rsp + 0x8f]
mov edi, 1
mov dword [rbp], r11d
jmp 0x100002c4a
xor ebx, ebx
cmp edi, 1
sete bl
lea rcx, [0x100009740]
call fcn.100002a3c
mov eax, ebx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1000077a0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret

Function at 0x100002cfc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x100009110]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea rcx, [0x100009740]
mov rsi, rdx
xor edi, edi
call fcn.100002988
mov ebx, eax
test eax, eax
je 0x100002dc8
mov rcx, qword [0x100009748]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x100002dc8
mov ebx, 0x80
mov rcx, qword [0x100009748]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100002dc0
cmp dword [rsp + 0x30], 0
je 0x100002dc0
cmp dword [rsp + 0x40], 3
jne 0x100002d5a
xor al, al
lea rcx, [rsp + 0x40]
mov rdx, rbx
add al, byte [rcx]
inc rcx
sub rdx, 1
jne 0x100002d96
test al, al
jne 0x100002d5a
lea r8, [rsp + 0x40]
lea rcx, [0x100009740]
mov rdx, rsi
call fcn.100002e04
mov edi, 1
jmp 0x100002d5a
xor ebx, ebx
cmp edi, 1
sete bl
lea rcx, [0x100009740]
call fcn.100002a3c
mov eax, ebx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1000077a0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x100002ecc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xd0
mov rax, qword [0x100009110]
xor rax, rsp
mov qword [rsp + 0xc0], rax
and dword [rdx], 0
lea rcx, [0x100009740]
mov rdi, rdx
call fcn.100002988
mov ebx, eax
test eax, eax
je 0x100002fac
mov rcx, qword [0x100009748]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x100002fac
mov rcx, qword [0x100009748]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, 0x80
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100002faa
cmp eax, 1
jne 0x100002f5b
cmp dword [rsp + 0x30], 0x80
jne 0x100002faa
lea rdx, [rsp + 0x40]
lea rcx, [0x100009740]
call fcn.10000355c
mov ebx, eax
test eax, eax
je 0x100002fac
inc dword [rdi]
mov rcx, qword [0x100009748]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, 0x80
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100002fdb
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x100002fdb
cmp eax, 0x80
je 0x100002f72
xor ebx, ebx
lea rcx, [0x100009740]
call fcn.100002a3c
mov eax, ebx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1000077a0
mov rbx, qword [rsp + 0xe0]
add rsp, 0xd0
pop rdi
ret
mov ebx, 1
jmp 0x100002fac
Function at 0x100002fe8
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push r12
sub rsp, 0xd0
mov rax, qword [0x100009110]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea rsi, [0x100009740]
mov rcx, rsi
call fcn.100002988
mov ebx, eax
test eax, eax
je 0x1000031ec
mov rcx, rsi
call fcn.100002a88
mov ebx, eax
test eax, eax
je 0x1000031ec
mov rcx, qword [0x100009748]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
or r12d, 0xffffffff
cmp eax, r12d
je 0x1000031ec
mov rcx, qword [0x100009750]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, r12d
je 0x1000031ec
mov ebp, 0x80
mov rcx, qword [0x100009748]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000030f0
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1000030f0
cmp eax, ebp
jne 0x1000030f0
mov eax, dword [rsp + 0x40]
cmp eax, 0x400
jb 0x1000030c9
cmp eax, 0xffff0000
jb 0x100003082
cmp eax, r12d
ja 0x100003082
cmp eax, 1
je 0x100003082
mov rcx, qword [0x100009750]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x100003082
mov rcx, rsi
call fcn.100002a3c
mov rcx, rsi
call fcn.100002ba0
mov rcx, rsi
call fcn.100002910
mov ebx, eax
test eax, eax
je 0x1000031ec
mov rcx, rsi
call fcn.100002af8
mov ebx, eax
test eax, eax
je 0x1000031ec
mov rcx, qword [0x100009748]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, r12d
je 0x1000031ec
mov rcx, qword [0x100009750]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, r12d
je 0x1000031ec
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.100003714
mov rcx, qword [0x100009748]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x100009750]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000031bd
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1000031bd
cmp eax, ebp
je 0x10000316d
cmp dword [0x100009758], 0
mov ebx, 1
je 0x1000031ec
cmp qword [0x100009750], 0xffffffffffffffff
je 0x1000031dd
mov rcx, rsi
call fcn.100002ba0
mov rcx, qword [0x100009768]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, eax
mov rcx, rsi
call fcn.100002a3c
mov rcx, rsi
call fcn.100002ba0
mov eax, ebx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1000077a0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop r12
ret
Function at 0x100003230
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
push r13
push r14
sub rsp, 0xd0
mov rax, qword [0x100009110]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea r12, [0x100009740]
mov esi, edx
mov rcx, r12
call fcn.100002988
mov ebx, eax
test eax, eax
je 0x100003447
mov rcx, r12
call fcn.100002a88
mov ebx, eax
test eax, eax
je 0x100003447
mov rcx, qword [0x100009748]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
or r14d, 0xffffffff
cmp eax, r14d
je 0x100003447
mov rcx, qword [0x100009750]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, r14d
je 0x100003447
mov r13d, 0x80
mov rcx, qword [0x100009748]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, r13d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10000334a
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x10000334a
cmp eax, r13d
jne 0x10000334a
mov eax, dword [rsp + 0x40]
cmp eax, 0x400
jb 0x10000331b
cmp eax, 0xffff0000
jb 0x1000032d3
cmp eax, r14d
ja 0x1000032d3
cmp eax, 1
je 0x1000032d3
cmp edi, esi
jb 0x100003346
mov rcx, qword [0x100009750]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, r13d
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1000032d3
inc edi
jmp 0x1000032d3
mov rcx, r12
call fcn.100002a3c
mov rcx, r12
call fcn.100002ba0
mov rcx, r12
call fcn.100002910
mov ebx, eax
test eax, eax
je 0x100003447
mov rcx, r12
call fcn.100002af8
mov ebx, eax
test eax, eax
je 0x100003447
mov rcx, qword [0x100009748]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, r14d
je 0x100003447
mov rcx, qword [0x100009750]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, r14d
je 0x100003447
lea rdx, [rsp + 0x40]
mov rcx, r12
call fcn.100003714
mov rcx, qword [0x100009748]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, r13d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x100009750]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, r13d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100003418
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x100003418
cmp eax, r13d
je 0x1000033c7
cmp dword [0x100009758], 0
mov ebx, 1
je 0x100003447
cmp qword [0x100009750], 0xffffffffffffffff
je 0x100003438
mov rcx, r12
call fcn.100002ba0
mov rcx, qword [0x100009768]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, eax
mov rcx, r12
call fcn.100002a3c
mov rcx, r12
call fcn.100002ba0
mov eax, ebx
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1000077a0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x1000037c4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edx, edx
xor ecx, ecx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, ebx
je 0x1000038f6
lea edi, [rax + 0x20]
lea ebp, [rbx + 0x40]
cmp edi, edi
mov ecx, ebp
cmova edi, edi
mov edx, edi
mov esi, edi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [0x100009790], rax
cmp rax, rbx
je 0x1000038f6
mov rdx, rsi
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [0x100009798], rax
cmp rax, rbx
je 0x1000038f6
mov rdx, rsi
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbp, rax
cmp rax, rbx
je 0x1000038f6
mov rcx, qword [0x100009790]
mov r8, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, qword [0x100009798]
mov r8, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov r8, rsi
xor edx, edx
mov rcx, rbp
call sub.msvcrt.dll_memset
mov edx, edi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov rcx, qword [0x100009790]
lea rax, [0x1000013c0]
lea rdi, [0x100001350]
lea r8, [0x1000013d0]
mov r9, rbp
mov rdx, rsi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.1000015f8
cmp eax, ebx
jne 0x1000038ed
mov rcx, qword [0x100009798]
lea rax, [0x1000013d8]
lea r8, [0x1000013d0]
mov r9, rbp
mov rdx, rsi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.1000015f8
cmp eax, ebx
jne 0x1000038ed
lea eax, [rbx + 1]
mov dword [0x100009788], eax
mov ebx, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x100003914
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r13
sub rsp, 0xe0
mov rax, qword [0x100009110]
xor rax, rsp
mov qword [rsp + 0xd0], rax
xor ebx, ebx
cmp dword [0x10000978c], 1
jne 0x10000394e
mov ebx, 1
jmp 0x100003ace
mov dword [0x10000978c], 1
cmp dword [0x100009788], ebx
jne 0x100003976
lea rcx, [0x100009770]
call fcn.1000037c4
mov ebx, eax
test eax, eax
je 0x100003ace
mov r13d, 0x40
lea rcx, [rsp + 0x90]
xor edx, edx
mov r8, r13
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x50]
mov r8, r13
xor edx, edx
call sub.msvcrt.dll_memset
and qword [rsp + 0x30], 0
mov rcx, qword [0x100009790]
lea r8d, [r13 - 0x3d]
xor r9d, r9d
mov edx, 0x1f01ff
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x100003a3d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x100003a34
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov r8d, r13d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
test eax, eax
je 0x100003a34
cmp eax, 1
jne 0x100003a19
cmp dword [rsp + 0x40], r13d
jne 0x100003a34
lea rdx, [rsp + 0x50]
lea rcx, [0x100009770]
call fcn.100004924
mov ebx, eax
test eax, eax
jne 0x100003ac5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsp + 0x30], 0
mov rcx, qword [0x100009790]
xor r9d, r9d
lea r8d, [r9 + 3]
mov edx, 0x1f01ff
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x100003ace
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x100003ac5
lea rdx, [rsp + 0x90]
lea rcx, [0x100009770]
call fcn.100004acc
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
lea rdx, [rsp + 0x90]
mov r8d, r13d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor ebx, ebx
test eax, eax
setne bl
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1000077a0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r13
ret