joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4d8780
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d9860
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d9182
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fb108]
test eax, eax
je 0x2fc4d921a
lea rax, [0x2fc4fb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fb110]
mov qword [rbp - 8], rax
jmp 0x2fc4d91fe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d91f2
cmp qword [rbp - 0x10], 0
je 0x2fc4d91f2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d91b8
lea rax, [0x2fc4fb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d921b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d9320
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d9348
mov eax, 0
jmp 0x2fc4d9396
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d9371
mov eax, 0
jmp 0x2fc4d9396
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d9391
mov eax, 0
jmp 0x2fc4d9396
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d939c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d941a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d9411
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d9411
mov rax, qword [rbp - 8]
jmp 0x2fc4d942f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d93e4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14001509c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001511a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140015111
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140015111
mov rax, qword [rbp - 8]
jmp 0x14001512f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400150e4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14097fc4b
Capabilities:
Encode data using xor

Disassembly:
lea r10, [0x14097b280]
lea rsp, [rsp + 8]
movzx r11d, byte [r9]
push 0xfffffffff8373187
xor r11d, eax
and r11d, 0xff
shr qword [rsp], 0x64
mov r11d, dword [r10 + r11*4]
shr eax, 8
xor eax, r11d
inc r9
xor eax, 0xe704e1a2
dec rcx
push 0x7b283589
lea rsp, [rsp + 0x10]
jne 0x14097fc57
Function at 0x14003f3c0
Capabilities:
Parse pe header

Disassembly:
jmp 0x140061d30
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 0x140061a8f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140061a8f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140061a8f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140061a8f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140061a8f
cmp dword [rcx + 0x84], 0xe
jbe 0x140061a8f
cmp dword [rcx + 0xf8], 0
je 0x140061a8f
mov ecx, ebx
call fcn.140061bf8
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.140061764
nop
cmp dword [rbp + 0x20], 0
je 0x140061add
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140061b18
int3
xor r8d, r8d
xor edx, edx
jmp 0x140061a20

Function at 0x14003ff7d
Capabilities:
Terminate process

Disassembly:
jmp 0x1400471b0
push rbp
push rsi
push rdi
sub rsp, 0x1e0
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x40
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400e12c0]
xor rax, rbp
mov qword [rbp + 0x1b0], rax
lea rcx, [0x1400ef172]
call fcn.140041f9e
xor ecx, ecx
call fcn.14004a3b0
mov ecx, eax
call fcn.1400412c4
call fcn.140040d24
cdq
and edx, 3
add eax, edx
and eax, 3
sub eax, edx
add eax, 7
mov dword [rbp + 4], eax
lea rax, [rbp + 0x30]
lea rcx, str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
mov rdi, rax
mov rsi, rcx
mov ecx, 0x6a
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rbp + 4]
lea eax, [rax + rax + 0xc]
cdqe
mov edx, 1
mov rcx, rax
call fcn.140040b2b
mov qword [0x1400e3460], rax
cmp qword [0x1400e3460], 0
je 0x1400472ce
mov dword [rbp + 0xb4], 0
jmp 0x14004726b
mov eax, dword [rbp + 0xb4]
inc eax
mov dword [rbp + 0xb4], eax
mov eax, dword [rbp + 4]
cmp dword [rbp + 0xb4], eax
jge 0x1400472cc
call fcn.140040d24
mov dword [rbp + 0x1a4], eax
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
dec eax
mov dword [rbp + 0x1a8], eax
mov ecx, dword [rbp + 0x1a4]
mov eax, ecx
cdq
mov ecx, dword [rbp + 0x1a8]
idiv ecx
mov eax, edx
mov dword [rbp + 0xd4], eax
movsxd rax, dword [rbp + 0xd4]
movsxd rcx, dword [rbp + 0xb4]
mov rdx, qword [0x1400e3460]
movzx eax, word [rbp + rax*2 + 0x30]
mov word [rdx + rcx*2], ax
jmp 0x14004725d
jmp 0x1400472e2
lea rcx, str.Random_Error__n
call fcn.14004069e
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rcx, [rbp - 0x20]
lea rdx, [0x1400c9bc0]
call fcn.140041729
mov rcx, qword [rbp + 0x1b0]
xor rcx, rbp
call fcn.140040720
lea rsp, [rbp + 0x1c0]
pop rdi
pop rsi
pop rbp
ret
Function at 0x140040252
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400ba968
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1400e12c0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x1400e57c8]
xor r11d, r11d
lea rdi, [0x1400cbfa4]
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 0x1400ba9d8
mov rax, 0xfffffffffffffffe
jmp 0x1400bab25
cmp word [r10 + 6], r11w
jne 0x1400baa47
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x1400baa02
test r14, r14
je 0x1400ba9f3
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x1400bab25
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x1400baa10
mov r8b, 2
jmp 0x1400baa2e
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x1400baa1e
mov r8b, 3
jmp 0x1400baa2e
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x1400bab1a
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 0x1400baa70
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x1400bab1a
cmp bl, bpl
jb 0x1400bab1a
cmp bl, r8b
jae 0x1400bab1a
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x1400baa9d
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x1400bab1a
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 0x1400baa7f
cmp r9, rbp
jae 0x1400baac9
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x1400ba9cc
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x1400bab1a
cmp edx, 0x110000
jae 0x1400bab1a
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 0x1400bab1a
test r14, r14
je 0x1400bab08
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.140041c2e
jmp 0x1400bab25
mov rdx, rsi
mov rcx, r10
call fcn.1400422cd
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140040720
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400402a2
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x14004be54
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14004bee1
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x14004bee1
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004bee1
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 0x14004bec8
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14004bec2
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14004beca
add rdx, 0x28
jmp 0x14004bea7
xor edx, edx
test rdx, rdx
jne 0x14004bed3
xor al, al
jmp 0x14004bee7
cmp dword [rdx + 0x24], 0
jge 0x14004bedd
xor al, al
jmp 0x14004bee7
mov al, 1
jmp 0x14004bee7
xor al, al
jmp 0x14004bee7
add rsp, 0x18
ret
Function at 0x140040568
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140061440
mov rax, rcx
neg rcx
test rax, 7
je 0x14006145d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1400614b8
test al, 7
jne 0x140061450
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x140061471
mov rdx, qword [rax - 8]
test dl, dl
je 0x1400614e2
test dh, dh
je 0x1400614dc
shr rdx, 0x10
test dl, dl
je 0x1400614d6
test dh, dh
je 0x1400614d0
shr rdx, 0x10
test dl, dl
je 0x1400614ca
test dh, dh
je 0x1400614c4
shr edx, 0x10
test dl, dl
je 0x1400614be
test dh, dh
jne 0x140061471
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x140040874
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14005b154
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1400ccf68]
mov ecx, 2
lea r8, [0x1400ccf60]
lea rdx, str.FlsGetValue
call fcn.14005ac24
mov ecx, ebx
test rax, rax
je 0x14005b18e
add rsp, 0x20
pop rbx
jmp qword [0x1400f0020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1400409b9
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400a6144
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 0x1400a6174
xor eax, eax
jmp 0x1400a6237
mov rbp, rbx
cmp word [rax], si
je 0x1400a6199
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400a6180
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400a617c
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.14004139b
movsxd r14, eax
test eax, eax
jne 0x1400a61d7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400a616d
mov rcx, r14
call fcn.14003f037
mov rdi, rax
test rax, rax
jne 0x1400a61f0
xor ecx, ecx
call fcn.14003f177
jmp 0x1400a61cc
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.14004139b
test eax, eax
jne 0x1400a6221
mov rcx, rdi
call fcn.14003f177
jmp 0x1400a622b
xor ecx, ecx
call fcn.14003f177
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 0x1400409c8
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x14005b0a4
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x1400ccf28]
xor ecx, ecx
lea r8, [0x1400ccf20]
lea rdx, str.FlsAlloc
call fcn.14005ac24
test rax, rax
je 0x14005b0dd
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1400f0020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x1400409fa
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x1400459e0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rcx, [0x1400ef0a8]
call fcn.140041f9e
mov qword [rbp + 0x68], 0
cmp qword [rbp + 0x180], 0
jne 0x140045a18
xor eax, eax
jmp 0x140045aa9
mov rax, qword gs:[0x60]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x18]
add rax, 0x20
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
mov rax, qword [rax]
mov qword [rbp + 0x88], rax
jmp 0x140045a56
mov rax, qword [rbp + 0x88]
mov rax, qword [rax]
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x88], rax
je 0x140045aa5
mov rax, qword [rbp + 0x88]
sub rax, 0x10
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
movzx eax, word [rax + 0x58]
mov r8d, eax
mov rdx, qword [rbp + 0x180]
mov rax, qword [rbp + 0x48]
mov rcx, qword [rax + 0x60]
call fcn.140041459
test eax, eax
jne 0x140045aa3
mov rax, qword [rbp + 0x48]
mov rax, qword [rax + 0x30]
mov qword [rbp + 0x68], rax
jmp 0x140045aa5
jmp 0x140045a45
mov rax, qword [rbp + 0x68]
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret

Function at 0x140040a45
Capabilities:
Get geographical location

Disassembly:
jmp 0x14009c604
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, [0x1400cf748]
mov rbp, rcx
lea r8, [0x1400cf740]
lea rdx, str.GetLocaleInfoEx
mov ecx, 8
call fcn.14009bb24
test rax, rax
je 0x14009c664
movabs r10, 0xe375262d7cd44270
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [0x1400f0030]
jmp 0x14009c67e
xor edx, edx
mov rcx, rbp
call fcn.1400402f7
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 0x140040a59
Capabilities:
Terminate process

Disassembly:
jmp 0x14004b65c
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 0x140040b94
Capabilities:
Parse pe header

Disassembly:
jmp 0x140061cc4
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x140061a20
Function at 0x140041071
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004c404
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004c44e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004c44e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004c44e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004c44e
cmp dword [rcx + 0x84], 0xe
jbe 0x14004c44e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14004c450
xor al, al
add rsp, 0x28
ret
Function at 0x1400414f9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x140045af0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x228
lea rbp, [rsp + 0x20]
lea rcx, [0x1400ef0a8]
call fcn.140041f9e
cmp qword [rbp + 0x220], 0
je 0x140045b28
cmp qword [rbp + 0x228], 0
jne 0x140045b2f
xor eax, eax
jmp 0x140045c72
mov rax, qword [rbp + 0x220]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x28]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rbp + 0x220]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x20]
mov rcx, qword [rbp + 0x220]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x24]
mov rcx, qword [rbp + 0x220]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rbp + 0x220]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xa8], rax
mov dword [rbp + 0xc4], 0
jmp 0x140045bdd
mov eax, dword [rbp + 0xc4]
inc eax
mov dword [rbp + 0xc4], eax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x18]
cmp dword [rbp + 0xc4], eax
jae 0x140045c70
mov eax, dword [rbp + 0xc4]
mov rcx, qword [rbp + 0x68]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rbp + 0x220]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0xe8], rax
mov rdx, qword [rbp + 0x228]
mov rcx, qword [rbp + 0xe8]
call fcn.140042449
test eax, eax
jne 0x140045c6b
mov eax, dword [rbp + 0xc4]
mov rcx, qword [rbp + 0x88]
movzx eax, word [rcx + rax*2]
mov word [rbp + 0x104], ax
mov eax, dword [rbp + 0xc4]
mov rcx, qword [rbp + 0xa8]
mov eax, dword [rcx + rax*4]
mov dword [rbp + 0x124], eax
mov eax, dword [rbp + 0x124]
mov rcx, qword [rbp + 0x220]
add rcx, rax
mov rax, rcx
jmp 0x140045c72
jmp 0x140045bcf
xor eax, eax
lea rsp, [rbp + 0x208]
pop rdi
pop rbp
ret

Function at 0x140041517
Capabilities:
Terminate process

Disassembly:
jmp 0x140099ce0
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x140099cfa
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.140041c38
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 0x140041d32
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14005b1ac
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1400ccf88]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x1400ccf80]
call fcn.14005ac24
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x14005b1ec
call qword [0x1400f0020]
jmp 0x14005b1f2
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140041dc8
Capabilities:
Set environment variable

Disassembly:
jmp 0x1400b5d44
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.140040225
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400b5dce
cmp byte [rbp - 0x21], r15b
je 0x1400b5dc9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400b5e04
call fcn.1400421a6
test eax, eax
jne 0x1400b5df0
cmp byte [rbp - 0x21], r15b
je 0x1400b5de8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400b5e04
cmp byte [rbp - 0x21], r15b
je 0x1400b5e01
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.140042395
test eax, eax
jne 0x1400b5ea4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140040225
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400b5e43
cmp byte [rbp - 0x21], r15b
je 0x1400b5e78
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400b5e78
call fcn.1400421a6
test eax, eax
jne 0x1400b5e64
cmp byte [rbp - 0x21], r15b
je 0x1400b5e5d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400b5e78
cmp byte [rbp - 0x21], r15b
je 0x1400b5e75
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.140042395
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400b5ea4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400b5ea7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400b5eb5
mov rcx, rdi
call fcn.14003f177
cmp byte [rbp + 0x3f], r15b
je 0x1400b5ec4
mov rcx, qword [rbp + 0x27]
call fcn.14003f177
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 0x140041ec2
Capabilities:
Parse pe header

Disassembly:
jmp 0x140061cb4
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140061a20
Function at 0x1400421e2
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
jmp 0x1400478d0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rcx, [0x1400ef172]
call fcn.140041f9e
mov edx, 1
mov ecx, 0x100000
call fcn.140040b2b
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140047910
xor eax, eax
jmp 0x1400479a8
xor r9d, r9d
mov r8d, 0x100000
mov rdx, qword [rbp + 8]
mov ecx, 0xb
call fcn.1400412f1
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0
jge 0x140047934
xor eax, eax
jmp 0x1400479a8
mov dword [rbp + 0x44], 0
jmp 0x140047945
mov eax, dword [rbp + 0x44]
inc eax
mov dword [rbp + 0x44], eax
mov rax, qword [rbp + 8]
mov eax, dword [rax]
cmp dword [rbp + 0x44], eax
jae 0x1400479a6
mov eax, dword [rbp + 0x44]
imul rax, rax, 0x128
mov rcx, qword [rbp + 8]
lea rax, [rcx + rax + 8]
mov ecx, dword [rbp + 0x44]
imul rcx, rcx, 0x128
mov rdx, qword [rbp + 8]
movzx ecx, word [rdx + rcx + 0x2e]
lea rax, [rax + rcx + 0x28]
mov rdx, qword [rbp + 0x140]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1400479a4
mov eax, dword [rbp + 0x44]
imul rax, rax, 0x128
mov rcx, qword [rbp + 8]
mov rax, qword [rcx + rax + 0x18]
jmp 0x1400479a8
jmp 0x14004793d
xor eax, eax
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret