joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001389
Capabilities:
Parse pe header

Disassembly:
jmp 0x140020e90
xor r8d, r8d
xor edx, edx
jmp 0x140020b74

Function at 0x140002121
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140075530
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140094038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x140096aa0]
xor r11d, r11d
lea rdi, [0x14007f9a4]
test r9, r9
mov rax, rdx
mov r12, rdx
cmovne r10, r9
test rdx, rdx
lea ebp, [r11 + 1]
cmovne rdi, rdx
mov r15d, ebp
cmovne r15, r8
neg rax
sbb r14, r14
and r14, rcx
test r15, r15
jne 0x1400755a0
mov rax, 0xfffffffffffffffe
jmp 0x1400756ed
cmp word [r10 + 6], r11w
jne 0x14007560f
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x1400755ca
test r14, r14
je 0x1400755bb
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x1400756ed
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x1400755d8
mov r8b, 2
jmp 0x1400755f6
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x1400755e6
mov r8b, 3
jmp 0x1400755f6
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x1400756e2
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x140075638
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x1400756e2
cmp bl, bpl
jb 0x1400756e2
cmp bl, r8b
jae 0x1400756e2
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x140075665
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x1400756e2
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r12
cmp rax, r9
jb 0x140075647
cmp r9, rbp
jae 0x140075691
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x140075594
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x1400756e2
cmp edx, 0x110000
jae 0x1400756e2
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x1400756e2
test r14, r14
je 0x1400756d0
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.140003909
jmp 0x1400756ed
mov rdx, rsi
mov rcx, r10
call fcn.140003f3a
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14000256d
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002167
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x14000a430
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14000a4bd
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x14000a4bd
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000a4bd
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x14000a4a4
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14000a49e
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14000a4a6
add rdx, 0x28
jmp 0x14000a483
xor edx, edx
test rdx, rdx
jne 0x14000a4af
xor al, al
jmp 0x14000a4c3
cmp dword [rdx + 0x24], 0
jge 0x14000a4b9
xor al, al
jmp 0x14000a4c3
mov al, 1
jmp 0x14000a4c3
xor al, al
jmp 0x14000a4c3
add rsp, 0x18
ret

Function at 0x14000269e
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140017e98
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x140080968]
mov ecx, 2
lea r8, [0x140080960]
lea rdx, str.FlsGetValue
call fcn.140017968
mov ecx, ebx
test rax, rax
je 0x140017ed2
add rsp, 0x20
pop rbx
jmp qword [0x14009f020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1400027e3
Capabilities:
Query environment variable

Disassembly:
jmp 0x140059378
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400593a8
xor eax, eax
jmp 0x14005946b
mov rbp, rbx
cmp word [rax], si
je 0x1400593cd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400593b4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400593b0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140003120
movsxd r14, eax
test eax, eax
jne 0x14005940b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400593a1
mov rcx, r14
call fcn.140001037
mov rdi, rax
test rax, rax
jne 0x140059424
xor ecx, ecx
call fcn.14000116d
jmp 0x140059400
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140003120
test eax, eax
jne 0x140059455
mov rcx, rdi
call fcn.14000116d
jmp 0x14005945f
xor ecx, ecx
call fcn.14000116d
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400027ed
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140017de8
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x140080928]
xor ecx, ecx
lea r8, [0x140080920]
lea rdx, str.FlsAlloc
call fcn.140017968
test rax, rax
je 0x140017e21
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x14009f020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x140002865
Capabilities:
Get geographical location

Disassembly:
jmp 0x140061d54
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov esi, edx
lea r9, [0x1400843f8]
mov rbp, rcx
lea r8, [0x1400843f0]
lea rdx, str.GetLocaleInfoEx
mov ecx, 7
call fcn.140061270
test rax, rax
je 0x140061db4
movabs r10, 0xe375262d7cd44270
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [0x14009f030]
jmp 0x140061dce
xor edx, edx
mov rcx, rbp
call fcn.1400021b7
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 0x14000286f
Capabilities:
Terminate process

Disassembly:
jmp 0x14007871c
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x1400029aa
Capabilities:
Parse pe header

Disassembly:
jmp 0x140020e28
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x140020b74

Function at 0x140002e37
Capabilities:
Parse pe header

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

Function at 0x140003283
Capabilities:
Terminate process

Disassembly:
jmp 0x140054704
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14005471e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.140003918
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x1400039f9
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140017ef0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x140080988]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x140080980]
call fcn.140017968
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x140017f30
call qword [0x14009f020]
jmp 0x140017f36
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140003a8a
Capabilities:
Set environment variable

Disassembly:
jmp 0x14006869c
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400020f9
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140068726
cmp byte [rbp - 0x21], r15b
je 0x140068721
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14006875c
call fcn.140003e27
test eax, eax
jne 0x140068748
cmp byte [rbp - 0x21], r15b
je 0x140068740
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14006875c
cmp byte [rbp - 0x21], r15b
je 0x140068759
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140003fee
test eax, eax
jne 0x1400687fc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400020f9
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14006879b
cmp byte [rbp - 0x21], r15b
je 0x1400687d0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400687d0
call fcn.140003e27
test eax, eax
jne 0x1400687bc
cmp byte [rbp - 0x21], r15b
je 0x1400687b5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400687d0
cmp byte [rbp - 0x21], r15b
je 0x1400687cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140003fee
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400687fc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400687ff
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14006880d
mov rcx, rdi
call fcn.14000116d
cmp byte [rbp + 0x3f], r15b
je 0x14006881c
mov rcx, qword [rbp + 0x27]
call fcn.14000116d
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140003b7a
Capabilities:
Parse pe header

Disassembly:
jmp 0x140020e18
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 0x140020be3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140020be3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140020be3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140020be3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140020be3
cmp dword [rcx + 0x84], 0xe
jbe 0x140020be3
cmp dword [rcx + 0xf8], 0
je 0x140020be3
mov ecx, ebx
call fcn.140020d5c
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.1400208c4
nop
cmp dword [rbp + 0x20], 0
je 0x140020c31
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140020c6c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140020b74

Function at 0x14000a9f0
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], r12
push r13
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor r12d, r12d
xor eax, eax
lock cmpxchg qword [0x10002ef00], rdi
je 0x1000214a3
cmp rax, rdi
jne 0x100021496
mov r12d, 1
jmp 0x1000214a3
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10002147c
mov eax, dword [0x10002eef0]
cmp eax, 1
jne 0x1000214b8
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x10002151d
mov eax, dword [0x10002eef0]
test eax, eax
jne 0x100021513
mov dword [0x10002eef0], 1
lea r13, [0x100009b88]
lea rdi, [0x100006b58]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x24], eax
cmp rdi, r13
jae 0x100021505
test eax, eax
jne 0x100021505
mov rcx, qword [rdi]
test rcx, rcx
je 0x1000214fa
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1000214e3
test eax, eax
je 0x10002151d
mov eax, 0xff
jmp 0x10002166a
mov dword [0x10002e96c], 1
mov eax, dword [0x10002eef0]
cmp eax, 1
jne 0x100021545
lea rdx, [0x100005b48]
lea rcx, [0x100002190]
call sub.msvcrt.dll__initterm
mov dword [0x10002eef0], 2
test r12d, r12d
jne 0x100021553
xor eax, eax
xchg qword [0x10002ef00], rax
cmp qword [0x10002ef28], 0
je 0x10002157c
lea rcx, [0x10002ef28]
call fcn.100021d30
test eax, eax
je 0x10002157c
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x10002ef28]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], 0
jne 0x100021593
mov eax, 0xff
jmp 0x10002166a
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x10002161c
cmp word [rcx], 0
je 0x1000215af
test edx, edx
jne 0x10002161c
cmp word [rcx], 0
je 0x1000215c6
cmp word [rcx], 0x20
ja 0x1000215c6
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1000215af
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.10000172b
mov dword [0x10002e968], eax
cmp dword [0x10002e94c], 0
jne 0x100021605
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x10002e96c], 0
jne 0x10002161a
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x10002e968]
jmp 0x10002166a
cmp word [rcx], 0x22
jne 0x10002162f
xor eax, eax
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10002159f
lea r11, [rsp + 0xb0]
mov rdi, qword [r11 + 0x10]
mov r12, qword [r11 + 0x18]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.10014f000
add rsp, 0x28
jmp 0x100021448

Function at 0x100021df4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100021e3e
cmp rcx, 0xffffffffffffffff
je 0x100021e3e
cmp word [rcx], 0x5a4d
jne 0x100021e36
cmp dword [rcx + 0x3c], edx
jl 0x100021e36
cmp dword [rcx + 0x3c], 0x10000000
jae 0x100021e36
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100021e3e
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1403ea244
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov eax, 0x5a4d
xor edi, edi
mov rbx, r8
mov rsi, rcx
cmp word [rdx], ax
je 0x1403ea285
mov qword [rcx], rdi
mov qword [rcx + 8], rdi
mov rdx, qword [r8 + 0x18]
cmp rdx, 0x10
jb 0x1403ea337
mov rcx, qword [r8]
jmp 0x1403ea30e
movsxd rcx, dword [rdx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1403ea29d
mov qword [rsi], rdi
mov qword [rsi + 8], rdi
jmp 0x1403ea26f
movzx r11d, word [rcx + 0x14]
movzx ebp, word [rcx + 6]
add r11, rcx
movzx ecx, di
cmp di, bp
jae 0x1403ea2fa
mov r14d, 1
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
jb 0x1403ea2c4
mov rdx, qword [rbx]
movzx eax, cx
lea r10, [rax + rax*4]
lea rax, [r11 + 0x18]
lea rax, [rax + r10*8]
sub rdx, rax
movzx r8d, byte [rax]
movzx r9d, byte [rax + rdx]
sub r8d, r9d
jne 0x1403ea2ec
add rax, r14
test r9d, r9d
jne 0x1403ea2d6
test r8d, r8d
je 0x1403ea35c
add cx, r14w
cmp cx, bp
jb 0x1403ea2b7
mov qword [rsi], rdi
mov qword [rsi + 8], rdi
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1403ea337
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x1403ea332
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1403ea36f
mov rcx, r8
call fcn.140439914
mov rbp, qword [rsp + 0x58]
mov rax, rsi
mov byte [rbx], dil
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], rdi
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
mov eax, dword [r11 + r10*8 + 0x20]
mov qword [rsi], rax
mov eax, dword [r11 + r10*8 + 0x24]
mov qword [rsi + 8], rax
jmp 0x1403ea301
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x1403eec7c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x1403eecac
call 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]
jmp 0x1403eed24
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x1403eecc3
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1403eecc5
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1403eed1e
test ecx, ecx
jle 0x1403eecfe
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 0x1403eed1e
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1403eed1e
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
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x1403eed40
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1403eed60
xor eax, eax
jmp 0x1403eee49
cmp qword [rcx + 0x68], 0
je 0x1403eed72
call 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]
jmp 0x1403eee49
mov rax, qword [rcx + 0x38]
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1403eed89
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1403eed8b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1403eedbd
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rdi, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1403eee43
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1403eedf4
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
mov ebx, 0xfff
jmp 0x1403eee1e
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]
add r14, rax
sub rdi, rax
cmp rax, rbx
jne 0x1403eee43
cmp rdi, rbx
ja 0x1403eedfb
test rdi, rdi
je 0x1403eee43
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
sub rbp, rdi
mov rax, rbp
add rsp, 0x20
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1403ef1ec
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140499010]
xor rax, rsp
mov qword [rbp - 8], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x1403ef225
xor eax, eax
jmp 0x1403ef345
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x1403ef25f
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x1403ef25f
lea ecx, [r8 - 1]
mov eax, esi
mov dword [rdx], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
jmp 0x1403ef345
cmp qword [rbx + 0x80], 0
je 0x1403ef343
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1403ef29a
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 0x1403ef2bb
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
jmp 0x1403ef340
lea rax, [rbp - 0x40]
mov byte [rbp - 0x30], sil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x2f]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x30]
lea rax, [rbp - 0x38]
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 0x1403ef309
sub eax, 1
je 0x1403ef309
cmp eax, 2
jne 0x1403ef343
movsx ecx, byte [rbp - 0x30]
jmp 0x1403ef2a7
mov r14, qword [rbp - 0x40]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x1403ef334
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r14, rax
jne 0x1403ef343
lea rax, [rbp - 0x30]
mov byte [rbx + 0x71], 1
cmp qword [rbp - 0x38], rax
cmovne edi, esi
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140439620
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret