joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401ccea0
Capabilities:
Initialize winhttp library
Reference cloudflare dns server

Disassembly:
push rbx
push rdi
sub rsp, 0x48
test byte [0x1402c2600], 1
lea rdi, str.1.1.1.1
mov rbx, rcx
jne 0x1401cd075
lock bts qword [0x1402c2600], 0x1f
setb al
test al, al
je 0x1401cceef
test byte [0x1402c2600], 1
jne 0x1401cd075
xor edx, edx
lea rcx, [0x1402c2600]
call sym.SystemInformer.exe_Ordinal_1388
jmp 0x1401cd075
xor edx, edx
mov qword [rsp + 0x40], rsi
cmp dword [0x1402bbf68], 0x3f
mov esi, 4
mov dword [rsp + 0x20], 0
cmovae edx, esi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [0x1402ca358], rax
test rax, rax
je 0x1401cd064
cmp dword [0x1402bbf68], 0x3f
mov r9d, esi
mov edx, 0x54
mov rcx, rax
jae 0x1401ccf51
mov dword [rsp + 0x68], 0xa00
lea r8, [rsp + 0x68]
jmp 0x1401cd00c
lea r8, ds:[rsp + 0x70]
mov dword [rsp + 0x70], 0x2800
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov rcx, qword [0x1402ca358]
lea r8, [rsp + 0x78]
mov r9d, esi
mov dword [rsp + 0x78], 3
mov edx, 0x76
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov eax, dword [0x1402bbf68]
cmp eax, 0x64
jb 0x1401ccfbb
mov rcx, qword [0x1402ca358]
lea r8, [rsp + 0x30]
mov r9d, esi
mov dword [rsp + 0x30], 1
mov edx, 0x85
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov eax, dword [0x1402bbf68]
nop dword [rax + rax]
cmp eax, 0x72
jb 0x1401cd012
mov rcx, qword [0x1402ca358]
lea r8, [rsp + 0x34]
mov r9d, esi
mov dword [rsp + 0x34], 1
mov edx, 0xc3
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp dword [0x1402bbf68], 0x72
jb 0x1401cd012
mov rcx, qword [0x1402ca358]
lea r8, [rsp + 0x38]
mov dword [rsp + 0x38], 1
mov r9d, esi
mov edx, 0x9a
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov rcx, qword [0x1402ca358]
lea r8, [rsp + 0x3c]
mov r9d, esi
mov dword [rsp + 0x3c], 1
mov edx, 0x49
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp dword [0x1402bbf68], 0x64
jb 0x1401cd064
mov rcx, qword [0x1402ca358]
test rbx, rbx
mov rdx, rdi
mov r8d, 0x1bb
cmovne rdx, rbx
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [0x1402ca360], rax
lea rcx, [0x1402c2600]
call sym.SystemInformer.exe_Ordinal_1386
mov rsi, qword [rsp + 0x40]
cmp dword [0x1402bbf68], 0x64
jae 0x1401cd0ac
mov rcx, qword [0x1402ca358]
test rbx, rbx
mov r8d, 0x1bb
cmovne rdi, rbx
xor r9d, r9d
mov rdx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [0x1402ca360], rax
add rsp, 0x48
pop rdi
pop rbx
ret
mov rax, qword [0x1402ca360]
add rsp, 0x48
pop rdi
pop rbx
ret
Function at 0x1401cdda0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
test byte [0x1402c2620], 1
movzx edi, dl
mov rbx, rcx
jne 0x1401cddfe
lock bts qword [0x1402c2620], 0x1f
setb al
test al, al
je 0x1401cdde7
test byte [0x1402c2620], 1
jne 0x1401cddfe
xor edx, edx
lea rcx, [0x1402c2620]
call sym.SystemInformer.exe_Ordinal_1388
jmp 0x1401cddfe
call fcn.14014b720
lea rcx, [0x1402c2620]
mov dword [0x1402c9414], eax
call sym.SystemInformer.exe_Ordinal_1386
mov eax, dword [0x1402c9414]
cmp eax, 0xffffffff
je 0x1401cde6d
test dil, dil
je 0x1401cde2d
mov rdx, rbx
mov ecx, eax
call fcn.14014b8e0
test eax, eax
js 0x1401cde6d
lfence
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp dword [0x1402bbf68], 0xffffffff
jae 0x1401cde5a
cmp eax, 0x40
jae 0x1401cde5a
lfence
mov rcx, qword gs:[0x30]
mov rax, qword [rcx + rax*8 + 0x1480]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ecx, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x1401d5590
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1402bb040]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov edi, dword [rcx + 0x30]
mov eax, 0x38
mov r8d, edi
mov rsi, rdx
and r8d, 0x3f
mov rbp, rcx
sub eax, r8d
lea rcx, [rsp + 0x21]
mov ebx, 0x78
sub ebx, r8d
cmp r8d, 0x38
cmovb ebx, eax
xor edx, edx
lea eax, [rbx - 1]
movsxd r8, eax
call fcn.14020c410
movsxd rax, ebx
lea rdx, [rsp + 0x20]
add rdx, rax
mov byte [rsp + 0x20], 0x80
mov eax, dword [rbp + 0x2c]
lea r8d, [rbx + 8]
shl eax, 3
mov ecx, edi
shr ecx, 0x1d
or ecx, eax
lea eax, [rdi*8]
bswap ecx
mov dword [rdx], ecx
mov rcx, rbp
bswap eax
mov dword [rdx + 4], eax
lea rdx, [rsp + 0x20]
call fcn.1401d54c0
mov ecx, dword [rbp + 0x18]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [rsi], edx
mov ecx, dword [rbp + 0x1c]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [rsi + 4], edx
mov ecx, dword [rbp + 0x20]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [rsi + 8], edx
mov ecx, dword [rbp + 0x24]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [rsi + 0xc], edx
mov ecx, dword [rbp + 0x28]
mov eax, ecx
and eax, 0xff00
mov edx, ecx
shl edx, 0x10
or edx, eax
mov eax, ecx
and eax, 0xff0000
shr ecx, 0x10
or eax, ecx
shl edx, 8
shr eax, 8
or edx, eax
mov dword [rsi + 0x10], edx
xor eax, eax
mov qword [rbp + 0x2c], rax
mov dword [rbp + 0x18], 0x67452301
mov dword [rbp + 0x1c], 0xefcdab89
mov dword [rbp + 0x20], 0x98badcfe
mov dword [rbp + 0x24], 0x10325476
mov dword [rbp + 0x28], 0xc3d2e1f0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401e5e40
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret

Function at 0x1401dcca0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rbx, rcx
test rcx, rcx
je 0x1401dcd14
xor eax, eax
lea rdi, [rcx + 0x18]
mov rcx, qword [rcx]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor edx, edx
mov dword [rsp + 0x30], 0x2000
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
test eax, eax
js 0x1401dcd14
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x1401dcd14
add rax, 0x18
mov qword [rbx + 8], rdi
add rax, rbx
mov qword [rbx + 0x10], rax
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
mov rbx, qword [rsp + 0x70]
mov eax, 0xffffffff
add rsp, 0x60
pop rdi
ret
Function at 0x1401e6d64
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401e6dae
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401e6dae
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401e6dae
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401e6dae
cmp dword [rcx + 0x84], 0xe
jbe 0x1401e6dae
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401e6db0
xor al, al
add rsp, 0x28
ret

Function at 0x1401fa764
Capabilities:
Read 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, 0x30
movsxd r15, ecx
xor edi, edi
mov rax, r15
lea rcx, [0x1402c4470]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x1401fa7ba
cmp word [rdx], r9w
jne 0x1401fa7ba
or byte [rax + rbp*8 + 0x38], 4
jmp 0x1401fa7bf
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x1401fa93e
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x1401fa909
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x1401fa807
cmp rcx, r8
jae 0x1401fa827
cmp word [rcx], r9w
jne 0x1401fa807
add rax, 4
mov edx, r9d
jmp 0x1401fa80a
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x1401fa7dc
jmp 0x1401fa93e
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401fa902
cmp dword [rsp + 0x80], edi
je 0x1401fa902
lea r9, [0x1402c4470]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x1401fa8dc
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x1401fa88f
mov word [rbx], bp
jmp 0x1401fa93b
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x1401fa8aa
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x1401fa93b
cmp word [rsp + 0x70], bp
jne 0x1401fa8e8
cmp rbx, rsi
je 0x1401fa887
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1402071c0
cmp word [rsp + 0x70], bp
je 0x1401fa93e
mov word [rbx], 0xd
jmp 0x1401fa93b
mov rcx, r15
lea r9, [0x1402c4470]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1401fa938
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1401fa93e
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401fd698
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1401fd707
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401fd707
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401fd707
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401fd707
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401fd707
cmp dword [rcx + 0x84], 0xe
jbe 0x1401fd707
cmp dword [rcx + 0xf8], 0
je 0x1401fd707
mov ecx, ebx
call fcn.1401fd7ac
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1401fd5a0
nop
cmp dword [rbp + 0x20], 0
jne 0x1401fd768
call fcn.140207bbc
cmp eax, 1
jne 0x1401fd758
xor dl, dl
jmp 0x1401fd762
call fcn.140207b88
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x1401fd773
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401fd77c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1401fd698

Function at 0x1401fd880
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401fd698

Function at 0x1401ff628
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1402e1050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x1401ff68d
test rax, rax
jne 0x1401ff67b
lea r9, str.GetLocaleInfoEx
lea r8, [0x140232708]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.1401ff348
test rax, rax
je 0x1401ff68d
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.14020c3d0
jmp 0x1401ff6a7
xor edx, edx
mov rcx, rbp
call fcn.1401ff918
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140205d58
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x140205dcb
cmp word [rcx], si
je 0x140205dcb
lea rdx, [0x1402338f8]
call fcn.140209b24
test eax, eax
je 0x140205dcb
lea rdx, [0x140233910]
mov rcx, rbx
call fcn.140209b24
test eax, eax
jne 0x140205dc1
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140205de8
mov eax, dword [rsp + 0x30]
jmp 0x140205dfa
mov rcx, rbx
call fcn.1401fe048
jmp 0x140205dfa
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x140205dec
xor eax, eax
jmp 0x140205dfa
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x140205dfa
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140205e0c
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.1401fe658
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x140205eaf
cmp edi, dword [rsp + 0x30]
je 0x140205ea8
test ebp, ebp
je 0x140205ea8
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x140205e84
sub dx, 0x61
cmp dx, 0x19
ja 0x140205e90
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x140205e71
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x140205e94
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x140205eb1
mov eax, 1
jmp 0x140205eb1
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14020741c
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1402071c0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1402071c0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140207569
cmp rax, 0xffffffffffffffff
je 0x140207569
xor edi, edi
test rbp, rbp
jle 0x140207517
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1401ff1c0
mov rbx, rax
test rax, rax
jne 0x1402074a4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14020750d
mov edx, 0x8000
mov ecx, r14d
call fcn.1401fd8fc
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1401fbe98
cmp eax, 0xffffffff
je 0x1402074ed
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1402074b4
mov edx, r15d
mov ecx, r14d
call fcn.1401fd8fc
jmp 0x14020750d
cmp byte [rsi + 0x38], dil
je 0x140207504
cmp dword [rsi + 0x34], 5
jne 0x140207504
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14020750d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1401ff240
jmp 0x14020757b
jns 0x14020757b
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1402071c0
cmp rax, 0xffffffffffffffff
jne 0x140207535
cmp byte [rsi + 0x30], dil
je 0x14020757b
jmp 0x140207571
mov ecx, r14d
call fcn.140206edc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14020757b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14020757b
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140207576
mov edi, dword [rsi + 0x2c]
jmp 0x14020757b
mov edi, 0x16
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1402071c0
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14020b660
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14020b688
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14020b688
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001600
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
mov r10d, edx
test r9d, r9d
jle 0x14000162e
lea r11, str.Gqi9R_Np__Fz58_pLKc4EEX_tF_erkVg8_2owmujAFa_
mov eax, ecx
lea r8, [r8 + 1]
cdq
inc ecx
idiv r10d
movsxd rax, edx
movzx eax, byte [rax + r11]
xor byte [r8 - 1], al
cmp ecx, r9d
jl 0x140001611
ret

Function at 0x140001d20
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x140001d41
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140001d6e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140001d70
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140001dc9
test ecx, ecx
jle 0x140001da9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140001dc9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140001dc9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
Function at 0x140001df0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140001e12
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140001e21
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140001e44
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140001e46
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140001e82
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140001f1e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140001ebd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140001efe
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140001f1e
cmp rbx, rax
ja 0x140001ed0
test rbx, rbx
je 0x140001f1e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
Function at 0x140002380
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400023ad
xor eax, eax
jmp 0x140002519
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400023e7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400023e7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140002519
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000250c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000242a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140002455
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002511
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400024c4
sub eax, 1
je 0x1400024c4
cmp eax, 2
jne 0x14000250c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002511
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400024f2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000250c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002511
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003130
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret