joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100015bd0
Capabilities:
Query service status

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x80
and qword [rax - 0x50], 0
mov rbp, rcx
xor ebx, ebx
lea edx, [rbx + 1]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
test rax, rax
jne 0x100015c0d
call fcn.100027b98
mov edi, eax
jmp 0x100015c12
mov rbx, rax
xor edi, edi
test edi, edi
jns 0x100015c2b
test rbx, rbx
je 0x100015c24
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x100015da4
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x30], 0xffffffffb8797400
call qword [sym.imp.KERNEL32.dll_SetWaitableTimer]
test eax, eax
jne 0x100015c60
call fcn.100027b98
mov edi, eax
jmp 0x100015c62
xor edi, edi
test edi, edi
js 0x100015c16
and qword [rsp + 0x40], 0
xor r8d, r8d
xor edx, edx
xor ecx, ecx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
test rax, rax
jne 0x100015c89
call fcn.100027b98
mov esi, eax
jmp 0x100015c8e
mov rdi, rax
xor esi, esi
test esi, esi
js 0x100015d86
and dword [rsp + 0x28], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x30]
xor r9d, r9d
mov r8d, 0x1f4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetWaitableTimer]
test eax, eax
jne 0x100015ccb
call fcn.100027b98
mov esi, eax
jmp 0x100015ccd
xor esi, esi
test esi, esi
js 0x100015d86
and dword [rsp + 0x30], 0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x48]
or r8d, 0xffffffff
mov ecx, 2
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rdi
call fcn.100028ce0
mov esi, eax
test eax, eax
js 0x100015d86
cmp dword [rsp + 0x30], 0
je 0x100015de0
xor edx, edx
lea rcx, [rsp + 0x58]
lea r8d, [rdx + 0x1c]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x58]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x100015d3c
call fcn.100027b98
mov esi, eax
jmp 0x100015d3e
xor esi, esi
test esi, esi
js 0x100015d86
cmp dword [rsp + 0x5c], 2
je 0x100015cd5
cmp dword [rsp + 0x5c], 4
jne 0x100015d70
test rdi, rdi
je 0x100015d5e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x100015d6c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x100015da4
mov eax, dword [rsp + 0x64]
test eax, eax
je 0x100015dbd
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test rdi, rdi
je 0x100015d94
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x100015da2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
test rdi, rdi
je 0x100015dcb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x100015dd9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x8000ffff
jmp 0x100015da4
test rdi, rdi
je 0x100015dee
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x100015dfc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x800705b4
jmp 0x100015da4
Function at 0x1000189f0
Capabilities:
Copy file
Set file attributes

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov r12, rcx
lea rdi, [rcx + 0x10]
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x100018bf2
mov rsi, qword [rbx + 0x10]
test rsi, rsi
je 0x100018a2e
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov qword [rsp + 0x68], rsi
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x38]
shr eax, 3
test al, 1
jne 0x100018a4e
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 8]
jmp 0x100018a9b
mov rax, qword [rsi]
mov edx, 7
mov rcx, rsi
call qword [rax + 0x60]
test rax, rax
je 0x100018be4
mov rax, qword [rsi]
mov edx, 8
mov rcx, rsi
call qword [rax + 0x60]
test rax, rax
jne 0x100018bd4
mov rax, qword [rsi]
mov edx, 7
mov rcx, rsi
call qword [rax + 0x50]
mov rbp, rax
test rax, rax
jne 0x100018aac
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 8]
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x100018a1d
jmp 0x100018bf2
mov r13, qword [0x100007a90]
and qword [rsp + 0x70], 0
and qword [rsp + 0x60], 0
mov r9, r13
mov r8, qword [r12 + 0x30]
lea rdx, [0x100008b78]
lea rcx, [rsp + 0x60]
call fcn.100027324
mov ebx, eax
test eax, eax
jns 0x100018b04
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x100018aef
call qword [sym.imp.msvcrt.dll_free]
nop
test rsi, rsi
je 0x100018afd
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 8]
mov eax, ebx
jmp 0x100018bf4
mov edi, 0x80
mov edx, edi
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor r8d, r8d
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x100018b35
call fcn.100027b98
mov edi, eax
jmp 0x100018b42
mov edx, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor edi, edi
test edi, edi
jns 0x100018b7c
mov r9, rbx
mov r8, rbp
lea rdx, [0x100007df0]
mov ecx, edi
call fcn.1000128bc
nop
test rbx, rbx
je 0x100018b6a
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
nop
test rsi, rsi
je 0x100018b78
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 8]
mov eax, edi
jmp 0x100018bf4
mov rdx, r13
lea rcx, [0x100009838]
call fcn.10001288c
mov r11, qword [rsi]
mov r8, rbx
mov edx, 8
mov rcx, rsi
call qword [r11 + 0x70]
mov rdi, qword [rsi]
mov edx, 7
mov rcx, rsi
call qword [rdi + 0x60]
mov r8, rax
mov edx, 8
mov rcx, rsi
call qword [rdi + 0x68]
nop
test rbx, rbx
je 0x100018bc9
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
nop
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 8]
jmp 0x100018bf2
test rsi, rsi
je 0x100018bf2
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 8]
jmp 0x100018bf2
test rsi, rsi
je 0x100018bf2
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 8]
xor eax, eax
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x10001d4a0
Capabilities:
Read file on windows

Disassembly:
push r12
push r15
sub rsp, 0xb8
mov rax, qword [0x10003d110]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r12, rcx
xor ecx, ecx
mov r15, rdx
mov dword [rdx], ecx
mov dword [r8], ecx
mov dword [r9], ecx
lea rdx, [rsp + 0x30]
mov rcx, r12
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x28], r8
call fcn.10001ee90
test eax, eax
je 0x10001d4ef
mov eax, 0x3e9
jmp 0x10001d61d
cmp dword [rsp + 0x30], 0x58444d52
je 0x10001d513
mov eax, dword [rsp + 0x3c]
and eax, 0x200002
cmp eax, 0x200002
jne 0x10001d513
mov eax, 0x3ee
jmp 0x10001d61d
mov qword [rsp + 0xa0], rsi
mov esi, dword [rsp + 0x4c]
test esi, esi
je 0x10001d658
mov qword [rsp + 0xa8], rbp
mov ebp, dword [rsp + 0x48]
xor r8d, r8d
mov edx, ebp
mov rcx, r12
call sub.msvcrt.dll_fseek
test eax, eax
je 0x10001d54e
mov eax, 0x3ea
jmp 0x10001d60d
mov edx, 1
lea rcx, [rsp + 0x70]
mov r9, r12
lea r8d, [rdx + 7]
call sub.msvcrt.dll_fread
cmp rax, 8
je 0x10001d574
mov eax, 0x3eb
jmp 0x10001d60d
mov qword [rsp + 0xb0], rbx
mov rbx, qword [rsp + 0x70]
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0x90], r13
lea rdx, [0x10003db84]
mov ecx, ebx
mov qword [rsp + 0x88], r14
mov r14d, dword [rsp + 0x74]
mov r13d, ebx
call fcn.10001d37c
mov rdi, rax
test rax, rax
je 0x10001d5e8
mov r9, r12
mov r8, r13
mov edx, 1
mov rcx, rax
call sub.msvcrt.dll_fread
cmp r13, rax
jne 0x10001d5df
mov rdx, r13
mov rcx, rdi
call fcn.10002e840
cmp eax, r14d
je 0x10001d636
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov eax, 0x402
mov r13, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x98]
mov rbx, qword [rsp + 0xb0]
mov r14, qword [rsp + 0x88]
mov rbp, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.10002eee0
add rsp, 0xb8
pop r15
pop r12
ret
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov rax, qword [rsp + 0x20]
lea r11d, [rbp + 8]
mov dword [r15], r11d
mov dword [rax], esi
mov rax, qword [rsp + 0x28]
mov dword [rax], ebx
xor eax, eax
jmp 0x10001d5ed
mov eax, 0x3ed
jmp 0x10001d615

Function at 0x10001d670
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x430
mov rax, qword [0x10003d110]
xor rax, rsp
mov qword [rsp + 0x420], rax
xor r15d, r15d
mov ebp, r8d
mov r14, rdx
mov edi, r15d
mov r13, rcx
nop dword [rax + rax]
mov eax, edi
add rax, 0x400
cmp rax, rbp
jbe 0x10001d6c3
mov ebx, ebp
sub ebx, edi
jmp 0x10001d6c8
mov ebx, 0x400
lea rcx, [rsp + 0x20]
mov r9, r13
mov r8d, ebx
mov edx, 1
mov esi, ebx
call sub.msvcrt.dll_fread
cmp rsi, rax
jne 0x10001d71c
lea rcx, [rsp + 0x20]
mov r9, r14
mov r8, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
cmp rsi, rax
jne 0x10001d715
add edi, ebx
cmp ebx, 0x400
je 0x10001d6b0
mov eax, 0x3f2
cmp edi, ebp
cmove eax, r15d
jmp 0x10001d721
mov eax, 0x3f1
jmp 0x10001d721
mov eax, 0x3f0
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.10002eee0
mov rbx, qword [rsp + 0x488]
add rsp, 0x430
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x10001d760
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push rdi
push r13
push r14
push r15
sub rsp, 0x450
mov rax, qword [0x10003d110]
xor rax, rsp
mov qword [rsp + 0x420], rax
mov eax, r8d
mov r14, rdx
xor r15d, r15d
xor r8d, r8d
mov edx, eax
mov ebp, r9d
mov r13, rcx
mov edi, r15d
call sub.msvcrt.dll_fseek
test eax, eax
je 0x10001d7ac
mov eax, 0x3ef
jmp 0x10001d859
mov qword [rsp + 0x448], rbx
mov qword [rsp + 0x440], rsi
mov qword [rsp + 0x438], r12
nop word [rax + rax]
mov eax, edi
add rax, 0x400
cmp rax, rbp
jbe 0x10001d7e3
mov ebx, ebp
sub ebx, edi
jmp 0x10001d7e8
mov ebx, 0x400
lea rcx, [rsp + 0x20]
mov r9, r13
mov r8d, ebx
mov edx, 1
mov esi, ebx
call sub.msvcrt.dll_fread
cmp rsi, rax
jne 0x10001d83c
lea rcx, [rsp + 0x20]
mov r9, r14
mov r8, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
cmp rsi, rax
jne 0x10001d835
add edi, ebx
cmp ebx, 0x400
je 0x10001d7d0
mov eax, 0x3f2
cmp edi, ebp
cmove eax, r15d
jmp 0x10001d841
mov eax, 0x3f1
jmp 0x10001d841
mov eax, 0x3f0
mov r12, qword [rsp + 0x438]
mov rsi, qword [rsp + 0x440]
mov rbx, qword [rsp + 0x448]
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.10002eee0
add rsp, 0x450
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret

Function at 0x10001d880
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x28
xor edi, edi
mov r14d, r8d
mov r13d, r9d
lea ebx, [r14 + 2]
mov r15, rcx
mov rsi, rdi
cmp ebx, r8d
ja 0x10001d8bc
mov eax, 0x3f4
add rsp, 0x28
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
ret
mov rcx, r13
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x20], r12
call sub.msvcrt.dll_malloc
mov rbp, rax
test rax, rax
jne 0x10001d8e0
mov edi, 0x3f5
jmp 0x10001d981
mov ecx, ebx
call sub.msvcrt.dll_malloc
mov rsi, rax
test rax, rax
jne 0x10001d8f9
mov edi, 0x3f6
jmp 0x10001d981
mov r9, r15
mov r8, r13
mov edx, 1
mov rcx, rbp
call sub.msvcrt.dll_fread
cmp r13, rax
je 0x10001d918
mov edi, 0x3f7
jmp 0x10001d981
lea rdx, [rsp + 0x70]
mov r9d, r13d
mov r8, rbp
mov rcx, rsi
mov dword [rsp + 0x70], ebx
call fcn.100029878
test eax, eax
je 0x10001d93a
mov edi, 0x400
jmp 0x10001d981
mov eax, dword [rsp + 0x70]
cmp eax, 2
jb 0x10001d97c
cmp byte [rsi], 0x78
jne 0x10001d97c
cmp byte [rsi + 1], 0x9c
jne 0x10001d97c
cmp eax, ebx
je 0x10001d959
mov edi, 0x401
jmp 0x10001d981
mov r9, qword [rsp + 0x68]
lea rcx, [rsi + 2]
mov r8, r14
mov edx, 1
call sub.msvcrt.dll_fwrite
mov ecx, 0x3fa
cmp r14, rax
cmovne edi, ecx
jmp 0x10001d981
mov edi, 0x400
mov r12, qword [rsp + 0x20]
test rbp, rbp
je 0x10001d993
mov rcx, rbp
call sub.msvcrt.dll_free
mov rbp, qword [rsp + 0x60]
test rsi, rsi
je 0x10001d9a5
mov rcx, rsi
call sub.msvcrt.dll_free
mov eax, edi
add rsp, 0x28
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
ret
Function at 0x10001d9c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x40
mov rax, qword [0x10003d110]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rdx
lea rdx, [0x10000b0a0]
call sub.msvcrt.dll__wfopen
mov rsi, rax
test rax, rax
jne 0x10001d9fa
mov eax, 0x3fc
jmp 0x10001daca
lea rdx, [0x10000b0a8]
mov rcx, rbx
mov qword [rsp + 0x60], rdi
call sub.msvcrt.dll__wfopen
mov rdi, rax
test rax, rax
jne 0x10001da20
mov ebx, 0x3fd
jmp 0x10001daae
xor ebx, ebx
lea rcx, [rsp + 0x20]
mov r9, rsi
lea edx, [rbx + 1]
lea r8d, [rbx + 0xc]
call sub.msvcrt.dll_fread
test rax, rax
je 0x10001daae
nop dword [rax + rax]
cmp rax, 0xc
jne 0x10001daa9
mov eax, dword [rsp + 0x20]
cmp eax, 0xc0c0c0c0
je 0x10001da71
cmp eax, 0xd1d1d1d1
jne 0x10001daa2
mov r9d, dword [rsp + 0x28]
mov r8d, dword [rsp + 0x24]
mov rdx, rdi
mov rcx, rsi
call fcn.10001d880
mov ebx, eax
jmp 0x10001da83
mov r8d, dword [rsp + 0x24]
mov rdx, rdi
mov rcx, rsi
call fcn.10001d670
mov ebx, eax
test ebx, ebx
jne 0x10001daae
lea edx, [rbx + 1]
lea r8d, [rbx + 0xc]
lea rcx, [rsp + 0x20]
mov r9, rsi
call sub.msvcrt.dll_fread
test rax, rax
jne 0x10001da40
jmp 0x10001daae
mov ebx, 0x3fb
jmp 0x10001daae
mov ebx, 0x3ff
mov rcx, rsi
call sub.msvcrt.dll_fclose
test rdi, rdi
je 0x10001dac3
mov rcx, rdi
call sub.msvcrt.dll_fclose
mov rdi, qword [rsp + 0x60]
mov eax, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.10002eee0
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rsi
ret
Function at 0x10001daf0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rdi
push r15
sub rsp, 0x98
mov edx, r8d
xor edi, edi
xor r8d, r8d
mov ebx, r9d
mov r15, rcx
mov rbp, rdi
call sub.msvcrt.dll_fseek
test eax, eax
je 0x10001db2d
mov eax, 0x3f3
add rsp, 0x98
pop r15
pop rdi
pop rbp
pop rbx
ret
mov qword [rsp + 0xd0], r12
lea r12d, [rbx + 2]
cmp r12d, ebx
ja 0x10001db48
mov eax, 0x3f4
jmp 0x10001dc54
mov ecx, r12d
mov qword [rsp + 0xc0], rsi
call sub.msvcrt.dll_malloc
mov rsi, rax
test rax, rax
jne 0x10001db6a
mov edi, 0x3f5
jmp 0x10001dc30
mov qword [rsp + 0xd8], r13
mov r13d, dword [rsp + 0xe0]
mov qword [rsp + 0x90], r14
mov rcx, r13
call sub.msvcrt.dll_malloc
mov rbp, rax
test rax, rax
jne 0x10001db9c
mov edi, 0x3f6
jmp 0x10001dc20
lea rcx, [rsi + 2]
mov r9, r15
mov r8, rbx
mov edx, 1
call sub.msvcrt.dll_fread
cmp rbx, rax
je 0x10001dbbc
mov edi, 0x3f7
jmp 0x10001dc20
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rbp
mov byte [rsi], 0x78
mov byte [rsi + 1], 0x9c
mov dword [rsp + 0x20], r13d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x38], r12d
call fcn.1000297f0
test eax, eax
je 0x10001dbef
mov edi, 0x3f8
jmp 0x10001dc20
cmp dword [rsp + 0x20], r13d
je 0x10001dbfd
mov edi, 0x3f9
jmp 0x10001dc20
mov r9, qword [rsp + 0xc8]
mov r8, r13
mov edx, 1
mov rcx, rbp
call sub.msvcrt.dll_fwrite
mov ecx, 0x3fa
cmp r13, rax
cmovne edi, ecx
mov r13, qword [rsp + 0xd8]
mov r14, qword [rsp + 0x90]
test rsi, rsi
je 0x10001dc3d
mov rcx, rsi
call sub.msvcrt.dll_free
mov rsi, qword [rsp + 0xc0]
test rbp, rbp
je 0x10001dc52
mov rcx, rbp
call sub.msvcrt.dll_free
mov eax, edi
mov r12, qword [rsp + 0xd0]
add rsp, 0x98
pop r15
pop rdi
pop rbp
pop rbx
ret

Function at 0x10001dc70
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x58
mov rax, qword [0x10003d110]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ebx, dword [rsp + 0xb8]
mov r13d, dword [rsp + 0xb0]
mov esi, r9d
mov dword [rsp + 0x34], r9d
mov rdi, rdx
mov r9, rdx
mov edx, 1
mov r12d, r8d
mov rbp, rcx
lea r8d, [rdx + 0xb]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x38], r13d
call sub.msvcrt.dll_fwrite
cmp rax, 0xc
je 0x10001dcd8
mov eax, 0x3fe
jmp 0x10001dd18
cmp ebx, 0xc0c0c0c0
je 0x10001dd07
cmp ebx, 0xd1d1d1d1
je 0x10001dcef
mov eax, 0x3fb
jmp 0x10001dd18
mov r9d, esi
mov r8d, r12d
mov rdx, rdi
mov rcx, rbp
mov dword [rsp + 0x20], r13d
call fcn.10001daf0
jmp 0x10001dd18
mov r9d, esi
mov r8d, r12d
mov rdx, rdi
mov rcx, rbp
call fcn.10001d760
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.10002eee0
add rsp, 0x58
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x10001dd40
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
sub rsp, 0x78
mov rax, qword [0x10003d110]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rdx
lea rdx, [0x10000b0a0]
call sub.msvcrt.dll__wfopen
mov rsi, rax
test rax, rax
jne 0x10001dd77
mov eax, 0x3fc
jmp 0x10001df63
lea rdx, [0x10000b0a8]
mov rcx, rbx
mov qword [rsp + 0xa8], rdi
call sub.msvcrt.dll__wfopen
mov rdi, rax
test rax, rax
jne 0x10001dda0
mov ebx, 0x3fd
jmp 0x10001df44
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x60], r14
xor r14d, r14d
mov rcx, rsi
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x34], r14d
mov dword [rsp + 0x30], r14d
call sub.msvcrt.dll__fileno
mov ecx, eax
call sub.msvcrt.dll__filelength
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r12d, eax
call fcn.10001d4a0
mov ebx, eax
test eax, eax
jne 0x10001df3a
mov qword [rsp + 0xa0], rbp
mov ebp, dword [rsp + 0x38]
mov qword [rsp + 0x68], r13
test ebp, ebp
jne 0x10001de5a
lea edx, [rax + 1]
lea r8d, [r14 + 0xc]
lea rcx, [rsp + 0x40]
mov r9, rdi
mov dword [rsp + 0x40], 0xc0c0c0c0
mov dword [rsp + 0x44], r12d
mov dword [rsp + 0x48], r14d
call sub.msvcrt.dll_fwrite
cmp rax, 0xc
je 0x10001de3a
mov ebx, 0x3fe
jmp 0x10001df2d
mov r9d, r12d
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call fcn.10001d760
mov ebx, eax
test eax, eax
jne 0x10001df2d
jmp 0x10001df2a
mov r13d, dword [rsp + 0x30]
mov edx, 1
lea rcx, [rsp + 0x40]
lea r8d, [rdx + 0xb]
mov r9, rdi
mov dword [rsp + 0x40], 0xc0c0c0c0
mov dword [rsp + 0x44], r13d
mov dword [rsp + 0x48], r14d
call sub.msvcrt.dll_fwrite
cmp rax, 0xc
je 0x10001de97
mov ebx, 0x3fe
jmp 0x10001df2d
mov r9d, r13d
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call fcn.10001d760
mov ebx, eax
test eax, eax
jne 0x10001df2d
mov ebx, dword [rsp + 0x34]
lea edx, [rax + 1]
lea r8d, [rax + 0xc]
lea rcx, [rsp + 0x40]
mov r9, rdi
mov dword [rsp + 0x40], 0xd1d1d1d1
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x44], ebp
call sub.msvcrt.dll_fwrite
cmp rax, 0xc
je 0x10001dee3
mov ebx, 0x3fe
jmp 0x10001df2d
mov r9d, ebp
mov r8d, r13d
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x20], ebx
call fcn.10001daf0
mov ebx, eax
test eax, eax
jne 0x10001df2d
sub r12d, r13d
lea r8d, [r13 + rbp]
mov rdx, rdi
sub r12d, ebp
mov rcx, rsi
mov dword [rsp + 0x28], 0xc0c0c0c0
mov r9d, r12d
mov dword [rsp + 0x20], r14d
call fcn.10001dc70
mov ebx, eax
test eax, eax
jne 0x10001df2d
mov ebx, r14d
mov r13, qword [rsp + 0x68]
mov rbp, qword [rsp + 0xa0]
mov r12, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
mov rcx, rsi
call sub.msvcrt.dll_fclose
test rdi, rdi
je 0x10001df59
mov rcx, rdi
call sub.msvcrt.dll_fclose
mov rdi, qword [rsp + 0xa8]
mov eax, ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.10002eee0
add rsp, 0x78
pop rsi
pop rbx
ret
Function at 0x10001ea60
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
sub rsp, 0xb8
mov rax, qword [0x10003d110]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov word [rsp + 0x30], r9w
mov rax, r8
mov qword [rsp + 0x38], rdx
mov rbp, rcx
cmp r9w, 0x20
jbe 0x10001ea9c
or eax, 0xffffffff
jmp 0x10001ebcc
xor r8d, r8d
mov edx, eax
call sub.msvcrt.dll_fseek
test eax, eax
jne 0x10001ea94
lea edx, [rax + 1]
lea r8d, [rax + 0x10]
lea rcx, [rsp + 0x50]
mov r9, rbp
call sub.msvcrt.dll_fread
cmp rax, 0x10
jne 0x10001ea94
mov qword [rsp + 0xb0], rsi
movzx esi, word [rsp + 0x5e]
test si, si
jne 0x10001eae0
mov si, word [rsp + 0x5c]
test si, si
je 0x10001eb08
cmp si, 8
ja 0x10001eb08
movzx eax, si
lea rcx, [rsp + 0x50]
mov r9, rbp
shl eax, 3
mov edx, 1
mov r8d, eax
mov ebx, eax
call sub.msvcrt.dll_fread
cmp rax, rbx
je 0x10001eb10
or eax, 0xffffffff
jmp 0x10001ebc4
mov qword [rsp + 0xa8], rdi
xor edi, edi
or ebx, 0xffffffff
cmp di, si
jae 0x10001ebba
nop word [rax + rax]
movzx eax, di
lea eax, [rax*8 + 8]
cmp eax, 0x40
jae 0x10001ebba
movzx eax, di
mov edx, dword [rsp + rax*8 + 0x54]
mov ecx, dword [rsp + rax*8 + 0x50]
bt edx, 0x1f
jae 0x10001eba6
bt ecx, 0x1f
jb 0x10001eb63
mov eax, dword [rsp + 0xf8]
cmp eax, ecx
jne 0x10001ebae
jmp 0x10001eb6a
mov eax, dword [rsp + 0xf8]
mov rcx, qword [rsp + 0x38]
movzx r9d, word [rsp + 0x30]
mov r8d, edx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xf0]
and r8d, 0x7fffffff
add r8, rcx
mov rdx, rcx
inc r9w
mov rcx, rbp
mov dword [rsp + 0x20], eax
call fcn.10001ea60
cmp eax, ebx
jne 0x10001ebbc
jmp 0x10001ebae
cmp word [rsp + 0x30], 1
ja 0x10001ebe6
inc di
cmp di, si
jb 0x10001eb30
mov eax, ebx
mov rdi, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.10002eee0
add rsp, 0xb8
pop rbp
pop rbx
ret
mov r8, qword [rsp + 0x38]
mov rcx, rbp
add edx, r8d
xor r8d, r8d
call sub.msvcrt.dll_fseek
test eax, eax
jne 0x10001ebba
lea edx, [rax + 1]
lea r8d, [rax + 0x10]
lea rcx, [rsp + 0x38]
mov r9, rbp
call sub.msvcrt.dll_fread
mov ecx, dword [rsp + 0x38]
cmp rax, 0x10
cmovne ecx, ebx
mov eax, ecx
jmp 0x10001ebbc
Function at 0x10001ec30
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
push r12
push r13
push r15
sub rsp, 0x330
mov rax, qword [0x10003d110]
xor rax, rsp
mov qword [rsp + 0x310], rax
mov eax, dword [r8 + 0x3c]
or r15, 0xffffffffffffffff
mov r13, rdx
lea ebx, [rdx + rax]
mov r12, rcx
mov rdi, r15
mov eax, ebx
cmp rax, rdx
jbe 0x10001ee60
xor r8d, r8d
mov edx, ebx
call sub.msvcrt.dll_fseek
test eax, eax
jne 0x10001ee60
lea edx, [rax + 1]
lea r8d, [r15 + 0x19]
lea rcx, [rsp + 0x30]
mov r9, r12
call sub.msvcrt.dll_fread
cmp rax, 0x18
jne 0x10001ee60
cmp dword [rsp + 0x30], 0x4550
jne 0x10001ee60
mov qword [rsp + 0x328], rsi
movzx esi, word [rsp + 0x36]
cmp si, 0x10
jae 0x10001ee58
movzx eax, word [rsp + 0x44]
xor r8d, r8d
mov rcx, r12
lea ebx, [rax + rbx + 0x18]
lea edx, [rbx - 0x70]
call sub.msvcrt.dll_fseek
test eax, eax
jne 0x10001ee58
lea edx, [rax + 1]
lea r8d, [r15 + 9]
lea rcx, [rsp + 0x50]
mov r9, r12
call sub.msvcrt.dll_fread
cmp rax, 8
jne 0x10001ee58
xor r8d, r8d
mov edx, ebx
mov rcx, r12
mov qword [rsp + 0x378], rbp
mov ebp, dword [rsp + 0x50]
call sub.msvcrt.dll_fseek
test eax, eax
jne 0x10001ee50
movzx eax, si
lea edx, [r15 + 2]
mov r9, r12
lea ecx, [rax + rax*4]
shl ecx, 3
mov ebx, ecx
mov r8d, ecx
lea rcx, [rsp + 0x90]
call sub.msvcrt.dll_fread
cmp rax, rbx
jne 0x10001ee50
xor ebx, ebx
movzx edx, bx
cmp bx, si
jae 0x10001ee50
nop dword [rax]
movzx eax, dx
lea rcx, [rax + rax*4]
mov r8d, dword [rsp + rcx*8 + 0x9c]
cmp ebp, r8d
jb 0x10001ed83
mov eax, dword [rsp + rcx*8 + 0xa0]
lea ecx, [r8 + rax]
cmp ebp, ecx
jb 0x10001ed90
inc dx
cmp dx, si
jb 0x10001ed60
jmp 0x10001ee50
movzx eax, dx
mov qword [rsp + 0x320], r14
mov r14d, 0xffffffff
lea rdx, [rax + rax*4]
mov eax, dword [rsp + rdx*8 + 0xa4]
sub eax, r8d
add ebp, eax
cmp ebp, r14d
je 0x10001ee48
add ebp, r13d
xor r9d, r9d
mov rcx, r12
mov edx, ebp
mov r8d, ebp
mov dword [rsp + 0x28], 0x3e8
mov dword [rsp + 0x20], 5
call fcn.10001ea60
mov edi, eax
cmp rdi, r14
je 0x10001ee48
nop word [rax + rax]
movzx eax, bx
lea rcx, [rax + rax*4]
mov edx, dword [rsp + rcx*8 + 0x9c]
cmp edi, edx
jb 0x10001ee10
mov eax, dword [rsp + rcx*8 + 0xa0]
lea ecx, [rdx + rax]
cmp edi, ecx
jb 0x10001ee27
inc bx
cmp bx, si
jb 0x10001edf0
mov eax, r14d
mov edi, eax
cmp rdi, r14
jne 0x10001ee3b
mov rdi, r15
jmp 0x10001ee48
movzx eax, bx
lea rcx, [rax + rax*4]
mov eax, dword [rsp + rcx*8 + 0xa4]
sub eax, edx
add eax, edi
jmp 0x10001ee1b
mov ecx, r13d
add rdi, rcx
cmp rdi, r13
cmovbe rdi, r15
mov r14, qword [rsp + 0x320]
mov rbp, qword [rsp + 0x378]
mov rsi, qword [rsp + 0x328]
mov rax, rdi
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.10002eee0
add rsp, 0x330
pop r15
pop r13
pop r12
pop rdi
pop rbx
ret