joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003af3
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140018500
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1400879d8]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x1400879d0]
call fcn.140017f78
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x140018540
call qword [0x1400a9020]
jmp 0x140018546
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140003b89
Capabilities:
Set environment variable

Disassembly:
jmp 0x140073e3c
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.14000214e
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140073ec6
cmp byte [rbp - 0x21], r15b
je 0x140073ec1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140073efc
call fcn.140003f49
test eax, eax
jne 0x140073ee8
cmp byte [rbp - 0x21], r15b
je 0x140073ee0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140073efc
cmp byte [rbp - 0x21], r15b
je 0x140073ef9
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.140004115
test eax, eax
jne 0x140073f9c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000214e
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140073f3b
cmp byte [rbp - 0x21], r15b
je 0x140073f70
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140073f70
call fcn.140003f49
test eax, eax
jne 0x140073f5c
cmp byte [rbp - 0x21], r15b
je 0x140073f55
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140073f70
cmp byte [rbp - 0x21], r15b
je 0x140073f6d
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.140004115
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140073f9c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140073f9f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140073fad
mov rcx, rdi
call fcn.140001172
cmp byte [rbp + 0x3f], r15b
je 0x140073fbc
mov rcx, qword [rbp + 0x27]
call fcn.140001172
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 0x140003c7e
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004eae4
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 0x14004e8bf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004e8bf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004e8bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004e8bf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004e8bf
cmp dword [rcx + 0x84], 0xe
jbe 0x14004e8bf
cmp dword [rcx + 0xf8], 0
je 0x14004e8bf
mov ecx, ebx
call fcn.14004ea28
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.14004e5a8
nop
cmp dword [rbp + 0x20], 0
je 0x14004e90d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14004e948
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14004e850
Function at 0x140007450
Capabilities:
Parse pe header

Disassembly:
jmp 0x140007450
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x3f0
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x94
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x418]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x3c8], rax
lea rcx, [0x1400a80a0]
call fcn.140003d55
cmp qword [rbp + 0x3f0], 0
je 0x1400074b3
mov eax, dword [rbp + 0x3f8]
test rax, rax
jne 0x1400074ba
xor eax, eax
jmp 0x140007630
mov rax, qword [rbp + 0x3f0]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400074e2
xor eax, eax
jmp 0x140007630
mov rax, qword [rbp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
cmp dword [rax], 0x4550
je 0x14000750b
xor eax, eax
jmp 0x140007630
lea rax, [rbp + 0x70]
mov rcx, qword [rbp + 0x48]
mov rdi, rax
lea rsi, [rcx + 0x18]
mov ecx, 0xf0
rep movsb byte [rdi], byte [rsi]
mov eax, 8
imul rax, rax, 0
mov eax, dword [rbp + rax + 0xe0]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x178], rax
mov rax, qword [rbp + 0x178]
mov eax, dword [rax + 0x20]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x198], rax
mov rax, qword [rbp + 0x178]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x1b8], rax
mov rax, qword [rbp + 0x178]
mov eax, dword [rax + 0x24]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x1d8], rax
mov dword [rbp + 0x1f4], 0
jmp 0x1400075ad
mov eax, dword [rbp + 0x1f4]
inc eax
mov dword [rbp + 0x1f4], eax
mov rax, qword [rbp + 0x178]
mov eax, dword [rax + 0x14]
cmp dword [rbp + 0x1f4], eax
jae 0x14000762e
mov eax, dword [rbp + 0x1f4]
mov rcx, qword [rbp + 0x198]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x218], rax
mov eax, dword [rbp + 0x1f4]
mov rcx, qword [rbp + 0x1d8]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rbp + 0x1b8]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x238], rax
mov rcx, qword [rbp + 0x218]
call fcn.1400024be
cmp dword [rbp + 0x3f8], eax
jne 0x140007629
mov rax, qword [rbp + 0x238]
jmp 0x140007630
jmp 0x14000759f
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140085000]
call fcn.140003549
mov rax, rdi
mov rcx, qword [rbp + 0x3c8]
xor rcx, rbp
call fcn.1400025ea
lea rsp, [rbp + 0x3d0]
pop rdi
pop rsi
pop rbp
ret
Function at 0x140007800
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x140007800
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x2b8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x76
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x2d8]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x288], rax
lea rcx, [0x1400a80a0]
call fcn.140003d55
mov eax, dword [rbp + 0x2b0]
test rax, rax
jne 0x140007859
xor eax, eax
jmp 0x140007968
mov rax, qword gs:[0x60]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
mov rax, qword [rax + 0x20]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x140007966
mov rax, qword [rbp + 0x48]
movzx eax, word [rax + 0x48]
test rax, rax
je 0x140007954
mov rax, qword [rbp + 0x48]
movzx eax, word [rax + 0x48]
cmp eax, 0x104
jge 0x140007954
mov dword [rbp + 0x194], 0
mov eax, dword [rbp + 0x194]
mov rcx, qword [rbp + 0x48]
mov rcx, qword [rcx + 0x50]
movzx eax, word [rcx + rax*2]
test eax, eax
je 0x140007900
mov eax, dword [rbp + 0x194]
mov rcx, qword [rbp + 0x48]
mov rcx, qword [rcx + 0x50]
movzx eax, word [rcx + rax*2]
mov ecx, eax
call fcn.1400031b1
mov ecx, dword [rbp + 0x194]
mov byte [rbp + rcx + 0x70], al
mov eax, dword [rbp + 0x194]
inc eax
mov dword [rbp + 0x194], eax
jmp 0x1400078b7
mov eax, dword [rbp + 0x194]
mov qword [rbp + 0x278], rax
cmp qword [rbp + 0x278], 0x104
jae 0x14000791c
jmp 0x140007921
call fcn.14000307b
mov rax, qword [rbp + 0x278]
mov byte [rbp + rax + 0x70], 0
lea rcx, [rbp + 0x70]
call fcn.1400024be
cmp eax, dword [rbp + 0x2b0]
jne 0x140007952
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x48]
mov rax, qword [rcx + rax + 0x20]
jmp 0x140007968
jmp 0x140007956
jmp 0x140007966
mov rax, qword [rbp + 0x48]
mov rax, qword [rax]
mov qword [rbp + 0x48], rax
jmp 0x14000787e
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140084f80]
call fcn.140003549
mov rax, rdi
mov rcx, qword [rbp + 0x288]
xor rcx, rbp
call fcn.1400025ea
lea rsp, [rbp + 0x298]
pop rdi
pop rbp
ret

Function at 0x14000a980
Capabilities:
Parse pe header

Disassembly:
jmp 0x14000a980
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000a9ca
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000a9ca
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000a9ca
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000a9ca
cmp dword [rcx + 0x84], 0xe
jbe 0x14000a9ca
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000a9cc
xor al, al
add rsp, 0x28
ret
Function at 0x14006be24
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
lea r9, [0x14009e970]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14006be7b
cmp word [rdx], r13w
jne 0x14006be7b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14006be80
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14006bfa5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14006bfc6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14006beb9
mov rdx, r9
mov word [rbx], cx
jmp 0x14006bee0
cmp r9, r8
jae 0x14006bef0
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14006be9a
jmp 0x14006bfa5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006bf9a
cmp dword [rsp + 0x80], esi
je 0x14006bf9a
lea r8, [0x14009e970]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14006bf72
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14006bf42
mov word [rbx], r13w
jmp 0x14006bfa2
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14006bf4f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14006bfa2
cmp word [rsp + 0x70], r13w
jne 0x14006bf7f
cmp rbx, r14
je 0x14006bf3c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140001762
cmp word [rsp + 0x70], r13w
je 0x14006bfa5
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
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
lea r8, [0x14009e970]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14006bf9f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14006bfa5
Function at 0x140072870
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140072886
mov al, 1
jmp 0x1400728e6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140072897
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400728e4
mov ecx, dword [rcx + 0x18]
nop
call fcn.140003ef4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400728e4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400728e4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400728e4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400728e6
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x140e44058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140e441df
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 0x140e44089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e4406f
add dl, dl
jne 0x140e44096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e440f6
xor eax, eax
add dl, dl
jne 0x140e440a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e441ad
add dl, dl
jne 0x140e440b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e440c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e440d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e440dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140e440ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140e4407e
mov eax, 1
add dl, dl
jne 0x140e44106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e44113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e440fb
sub eax, ebx
mov ebx, 1
jne 0x140e4414c
mov ecx, 1
add dl, dl
jne 0x140e4412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e4413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e44123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e4407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140e44168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e44175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e4415d
cmp eax, 0x7d00
jae 0x140e4419b
cmp eax, 0x500
jb 0x140e44196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e4407e
cmp eax, 0x7f
ja 0x140e4419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e4407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140e441d2
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 0x140e4407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14002b285
Capabilities:
Write file on windows

Disassembly:
jmp 0x140058a40
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400a71ee]
call fcn.14002c815
nop
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x140058a98
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.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 0x140058baa
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x140058b43
cmp qword [rbp + 0x28], 0
jle 0x140058b43
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x140058ae1
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.14002c685
nop
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
nop
cmp qword [rbp + 0x130], 0
jle 0x140058b99
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x140058b99
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x14002b451
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x140049850
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1400a7211]
call fcn.14002c815
nop
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x270
jne 0x14004988e
mov rcx, qword [rbp + 0x100]
call fcn.14002b4f6
nop
jmp 0x1400498aa
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x4e0
jb 0x1400498aa
mov rcx, qword [rbp + 0x100]
call fcn.14002bbfe
nop
mov rax, qword [rbp + 0x100]
mov eax, dword [rax]
mov rcx, qword [rbp + 0x100]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rbp + 0xd4], eax
mov rax, qword [rbp + 0x100]
mov eax, dword [rax]
inc eax
mov rcx, qword [rbp + 0x100]
mov dword [rcx], eax
mov eax, dword [rbp + 0xd4]
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shr eax, 0xb
mov rcx, qword [rbp + 0x100]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shr eax, 0x12
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x14002bbfe
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x14004eff0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x20]
lea rcx, [0x1400a7211]
call fcn.14002c815
nop
mov qword [rbp + 8], 0x26f
mov qword [rbp + 0x28], 0xe3
mov qword [rbp + 0x48], 0
jmp 0x14004f035
mov rax, qword [rbp + 0x48]
inc rax
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0xe3
jae 0x14004f0c6
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x48]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x64]
and eax, 1
test eax, eax
je 0x14004f08b
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x14004f095
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0x64]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14004f02a
mov qword [rbp + 0x88], 0xe3
jmp 0x14004f0e4
mov rax, qword [rbp + 0x88]
inc rax
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0x26f
jae 0x14004f18d
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x88]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0xa4], eax
mov eax, dword [rbp + 0xa4]
and eax, 1
test eax, eax
je 0x14004f149
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x14004f153
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0xa4]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14004f0d3
mov qword [rbp + 0xc8], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rbp + 0x1e0]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x1e0]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0xe4], eax
mov eax, dword [rbp + 0xe4]
and eax, 1
test eax, eax
je 0x14004f1ed
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x14004f1f7
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0xe4]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rbp + 0x1e0]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rbp + 0x1e0]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rbp + 0x1e0]
mov dword [rax], 0
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret

Function at 0x14002bdde
Capabilities:
Terminate process

Disassembly:
jmp 0x14007ed30
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x14002bfc8
Capabilities:
Get geographical location

Disassembly:
jmp 0x140078760
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14007879d
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.14002c7f2
add rsp, 0x58
ret

Function at 0x14002c0c2
Capabilities:
Parse pe header

Disassembly:
jmp 0x14007f580
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14007f5a0
xor al, al
jmp 0x14007f621
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14007f5b3
xor al, al
jmp 0x14007f621
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14007f5dd
xor al, al
jmp 0x14007f621
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14007f5f1
xor al, al
jmp 0x14007f621
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14007f603
xor al, al
jmp 0x14007f621
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14007f61f
xor al, al
jmp 0x14007f621
mov al, 1
add rsp, 0x38
ret