joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400041d0
Capabilities:
Encode data using base64

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 r14
sub rsp, 0x30
mov rbp, qword [rdx + 0x10]
mov rbx, rdx
xorps xmm0, xmm0
xor edi, edi
movups xmmword [rcx], xmm0
movabs rax, 0xaaaaaaaaaaaaaaab
mov qword [rcx + 0x10], rdi
lea r8, [rbp + 2]
mov qword [rcx + 0x18], rdi
mul r8
mov rsi, rcx
shr rdx, 1
shl rdx, 2
mov r8, rdx
xor edx, edx
call fcn.14000bca8
lea r11d, [rdi + 0xf]
mov rdx, rsi
cmp qword [rsi + 0x18], r11
jbe 0x140004235
mov rdx, qword [rsi]
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_P4_a_
cmp rbp, 2
jbe 0x140004308
lea r10, [rbp - 2]
cmp rdi, r10
jae 0x140004308
lea rcx, [rbx + 0x18]
mov rax, rbx
cmp qword [rcx], r11
jbe 0x140004268
mov rax, qword [rbx]
lea r9, [rbx + 0x18]
jmp 0x14000426b
mov r9, rcx
movzx eax, byte [rax + rdi]
shr rax, 2
mov al, byte [rax + r14]
mov byte [rdx], al
cmp qword [rcx], r11
jbe 0x140004287
mov rax, qword [rbx]
lea r8, [rdi + rax]
jmp 0x14000428e
lea r8, [rbx + rdi]
mov rax, rbx
movzx ecx, byte [rax + rdi + 1]
movsx rax, byte [r8]
mov r8, rbx
and eax, 3
shr rcx, 4
shl rax, 4
or rcx, rax
mov al, byte [rcx + r14]
mov byte [rdx + 1], al
cmp qword [r9], r11
jbe 0x1400042b7
mov r8, qword [rbx]
mov rax, rbx
jbe 0x1400042bf
mov rax, qword [rbx]
movzx ecx, byte [rax + rdi + 2]
movsx rax, byte [r8 + rdi + 1]
and rax, r11
shr rcx, 6
shl rax, 2
or rcx, rax
mov al, byte [rcx + r14]
mov byte [rdx + 2], al
mov rax, rbx
cmp qword [rbx + 0x18], r11
jbe 0x1400042eb
mov rax, qword [rbx]
movsx rax, byte [rax + rdi + 2]
and eax, 0x3f
mov al, byte [rax + r14]
mov byte [rdx + 3], al
add rdx, 4
add rdi, 3
jmp 0x14000424a
cmp rdi, rbp
jae 0x1400043b4
lea rcx, [rbx + 0x18]
mov rax, rbx
cmp qword [rcx], r11
jbe 0x140004326
mov rax, qword [rbx]
lea r9, [rbx + 0x18]
jmp 0x140004329
mov r9, rcx
movzx eax, byte [rax + rdi]
shr rax, 2
mov al, byte [rax + r14]
mov byte [rdx], al
lea rax, [rbp - 1]
cmp rdi, rax
jne 0x140004362
cmp qword [rcx], r11
jbe 0x140004348
mov rbx, qword [rbx]
movsx rax, byte [rbx + rdi]
and eax, 3
add rax, rax
mov al, byte [r14 + rax*8]
mov byte [rdx + 1], al
mov al, 0x3d
add rdx, 2
jmp 0x1400043ae
cmp qword [rcx], r11
jbe 0x140004370
mov rax, qword [rbx]
lea r8, [rdi + rax]
jmp 0x140004377
lea r8, [rbx + rdi]
mov rax, rbx
movzx ecx, byte [rax + rdi + 1]
movsx rax, byte [r8]
and eax, 3
shr rcx, 4
shl rax, 4
or rcx, rax
mov al, byte [rcx + r14]
mov byte [rdx + 1], al
add rdx, 2
cmp qword [r9], r11
jbe 0x1400043a1
mov rbx, qword [rbx]
movsx rax, byte [rbx + rdi + 1]
and rax, r11
mov al, byte [r14 + rax*4]
mov byte [rdx], al
mov byte [rdx + 1], 0x3d
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14001fdac
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14001fde6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14001fdeb
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14001fe34
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400454a0]
cmp byte [rcx + rax], 0
je 0x14001fe34
dec r8
sub rdx, 1
jne 0x14001fe1a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140021e58
Capabilities:
Parse pe header

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

Function at 0x14002fe70
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 0x14002fedf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002fedf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002fedf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002fedf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002fedf
cmp dword [rcx + 0x84], 0xe
jbe 0x14002fedf
cmp dword [rcx + 0xf8], 0
je 0x14002fedf
mov ecx, ebx
call fcn.14002ff90
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.14002fd6c
nop
cmp dword [rbp + 0x20], 0
je 0x14002ff2d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002ff38
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14002fe70

Function at 0x140030074
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002fe70
Function at 0x1400383c0
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400383f0
xor eax, eax
jmp 0x1400384b3
mov rbp, rbx
cmp word [rax], si
je 0x140038415
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400383fc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400383f8
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.1400369c0
movsxd r14, eax
test eax, eax
jne 0x140038453
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400383e9
mov rcx, r14
call fcn.140033c68
mov rdi, rax
test rax, rax
jne 0x14003846c
xor ecx, ecx
call fcn.1400321f4
jmp 0x140038448
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.1400369c0
test eax, eax
jne 0x14003849d
mov rcx, rdi
call fcn.1400321f4
jmp 0x1400384a7
xor ecx, ecx
call fcn.1400321f4
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 0x14003b17c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14003381c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14003b21d
cmp ebx, dword [rsp + 0x30]
je 0x14003b216
test esi, esi
je 0x14003b216
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14003b1f1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14003b1fe
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14003b1db
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14003b202
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14003b21f
mov eax, 1
jmp 0x14003b21f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14003e254
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14003e26a
mov al, 1
jmp 0x14003e2ca
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14003e27b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14003e2c8
mov ecx, dword [rcx + 0x18]
nop
call fcn.140038c28
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003e2c8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003e2c8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003e2c8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003e2ca
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14003f0f4
Capabilities:
Set environment variable

Disassembly:
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.140027700
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14003f17e
cmp byte [rbp - 0x21], r15b
je 0x14003f179
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14003f1b4
call fcn.1400324f8
test eax, eax
jne 0x14003f1a0
cmp byte [rbp - 0x21], r15b
je 0x14003f198
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14003f1b4
cmp byte [rbp - 0x21], r15b
je 0x14003f1b1
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.14002ecd4
test eax, eax
jne 0x14003f254
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140027700
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14003f1f3
cmp byte [rbp - 0x21], r15b
je 0x14003f228
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14003f228
call fcn.1400324f8
test eax, eax
jne 0x14003f214
cmp byte [rbp - 0x21], r15b
je 0x14003f20d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14003f228
cmp byte [rbp - 0x21], r15b
je 0x14003f225
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.14002ecd4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14003f254
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14003f257
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14003f265
mov rcx, rdi
call fcn.1400321f4
cmp byte [rbp + 0x3f], r15b
je 0x14003f274
mov rcx, qword [rbp + 0x27]
call fcn.1400321f4
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 0x140041440
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140041468
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140041468
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180005194
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 0x180005203
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180005203
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180005203
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180005203
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180005203
cmp dword [rcx + 0x84], 0xe
jbe 0x180005203
cmp dword [rcx + 0xf8], 0
je 0x180005203
mov ecx, ebx
call fcn.1800052b4
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.180005090
nop
cmp dword [rbp + 0x20], 0
je 0x180005251
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18000525c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180005194
Function at 0x1800087fc
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18000882c
xor eax, eax
jmp 0x1800088ef
mov rbp, rbx
cmp word [rax], si
je 0x180008851
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180008838
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180008834
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.18000871c
movsxd r14, eax
test eax, eax
jne 0x18000888f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180008825
mov rcx, r14
call fcn.180006058
mov rdi, rax
test rax, rax
jne 0x1800088a8
xor ecx, ecx
call fcn.180005f64
jmp 0x180008884
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.18000871c
test eax, eax
jne 0x1800088d9
mov rcx, rdi
call fcn.180005f64
jmp 0x1800088e3
xor ecx, ecx
call fcn.180005f64
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 0x140001dcc
Capabilities:
Parse pe header

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

Function at 0x174d7bc
Capabilities:
Encode data using xor

Disassembly:
jmp 0x174d7c6
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x174d7ef
pop rbp
sub rbp, 0x33
sub rbp, 0x134d7bc
sub rsp, 0x20
jmp 0x174d80e
mov rax, 0x134d7bc
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffff9a7c0f60
xor byte [rax], dl
inc rax
dec rcx
jne 0x174d82d
jmp 0x174d844
sub cl, ch
mov ebx, ebp
jmp 0x61d538a9
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140004450]
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001318
mov ecx, 0x3e8
call rdi
xor eax, eax
lock cmpxchg qword [rbx], rsi
jne 0x1400011b0
mov rsi, qword [0x140004460]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x14000132f
mov eax, dword [rsi]
test eax, eax
je 0x140001390
mov dword [0x140007008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x140001344
test edi, edi
je 0x140001365
mov rax, qword [0x1400043d0]
mov rax, qword [rax]
test rax, rax
je 0x14000121f
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.140001b40
mov rcx, qword [0x1400044e0]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140004440]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.140001950
mov ebx, dword [0x140007028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r12, qword [0x140007020]
mov rbp, rax
test ebx, ebx
jle 0x1400013b0
sub rdi, 8
xor ebx, ebx
nop dword [rax]
mov rcx, qword [r12 + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x140007020], rbp
call fcn.140001750
call fcn.140002850
mov r8, qword [0x140007018]
mov ecx, dword [0x140007028]
mov qword [rax], r8
mov rdx, qword [0x140007020]
call fcn.14000147a
mov ecx, dword [0x14000700c]
mov dword [0x140007010], eax
test ecx, ecx
je 0x1400013b8
mov edx, dword [0x140007008]
test edx, edx
je 0x140001370
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140004460]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011dd
mov ecx, 0x1f
call fcn.1400028f0
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011fc
mov rdx, qword [0x140004480]
mov rcx, qword [0x140004470]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001204
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001204
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x140007010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x1400044a0]
mov rcx, qword [0x140004490]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f1
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
sub rsp, 0x28
mov rax, qword [0x140004400]
mov dword [rax], 1
call fcn.140001180
nop
nop
add rsp, 0x28
ret
Function at 0x14000147a
Capabilities:
Allocate or change rwx memory
Create thread
Encrypt data using rc4 prga
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push rbp
push rdi
push rsi
sub rsp, 0xa60
lea rbp, [rsp + 0x80]
call fcn.140001750
lea rax, [rbp + 0x1b0]
lea rdx, section..data
mov ecx, 0xff
mov rdi, rax
mov rsi, rdx
rep movsq qword [rdi], qword [rsi]
lea rdx, [rbp - 0x50]
mov eax, 0
mov ecx, 0x3f
mov rdi, rdx
rep stosq qword [rdi], rax
mov rdx, rdi
mov dword [rdx], eax
add rdx, 4
mov word [rdx], ax
add rdx, 2
mov dword [rbp + 0x9d4], 9
mov eax, dword [rbp + 0x9a8]
mov dword [rbp + 0x9d0], eax
mov edx, dword [rbp + 0x9d0]
mov eax, dword [rbp + 0x9d4]
mov ecx, eax
call fcn.140001440
mov dword [rbp + 0x9cc], eax
mov dword [rbp + 0x9dc], 0
jmp 0x14000154a
mov eax, 0x1fd
sub eax, dword [rbp + 0x9dc]
cdqe
mov eax, dword [rbp + rax*4 + 0x1b0]
mov edx, eax
mov eax, dword [rbp + 0x9cc]
xor eax, edx
mov byte [rbp + 0x9b7], al
movzx edx, byte [rbp + 0x9b7]
mov eax, dword [rbp + 0x9dc]
cdqe
mov byte [rbp + rax - 0x50], dl
add dword [rbp + 0x9dc], 1
mov eax, dword [rbp + 0x9dc]
cmp eax, 0x7f7
jbe 0x14000150c
mov dword [rbp + 0x9d8], 0
jmp 0x1400015ba
cmp dword [rbp + 0x9d8], 0x1fd
jne 0x140001592
mov eax, dword [rbp + 0x9d8]
cdqe
movzx eax, byte [rbp + rax - 0x50]
movzx eax, al
mov edx, eax
lea rax, str.0x_02x
mov rcx, rax
call fcn.1400027c0
jmp 0x1400015b3
mov eax, dword [rbp + 0x9d8]
cdqe
movzx eax, byte [rbp + rax - 0x50]
movzx eax, al
mov edx, eax
lea rax, str.0x_02x_
mov rcx, rax
call fcn.1400027c0
add dword [rbp + 0x9d8], 1
mov eax, dword [rbp + 0x9d8]
cmp eax, 0x1fd
jbe 0x140001563
mov dword [rbp + 0x9c8], 0
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x1fe
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x9c0], rax
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0x9c0]
mov r8d, 0x1fe
mov rcx, rax
call sub.api_ms_win_crt_private_l1_1_0.dll_memmove
mov rax, qword [rbp + 0x9c0]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp + 0x9b8], rax
mov rax, qword [rbp + 0x9b8]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov eax, 0
add rsp, 0xa60
pop rsi
pop rdi
pop rbp
ret

Function at 0x140001960
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.1400027a0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]
Function at 0x1400019d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007094]
mov rbx, rcx
test esi, esi
jle 0x140001b00
mov rax, qword [0x140007098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001a1b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001aa5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001a00
mov rcx, rbx
call fcn.140002480
mov rdi, rax
test rax, rax
je 0x140001b22
mov rax, qword [0x140007098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400025c0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140007098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001b07
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001a9e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001ab0
add dword [0x140007094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140007098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001a9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001960
nop dword [rax]
xor esi, esi
jmp 0x140001a28
mov rax, qword [0x140007098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001960
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001960
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400020c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140002124
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word cs:[rax + rax]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14000211b
test eax, eax
jne 0x14000211b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002100
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]