joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140087124
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14007c4f8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14007c4f8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140087271
cmp rax, 0xffffffffffffffff
je 0x140087271
xor edi, edi
test rbp, rbp
jle 0x14008721f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400758a0
mov rbx, rax
test rax, rax
jne 0x1400871ac
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140087215
mov edx, 0x8000
mov ecx, r14d
call fcn.14007319c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14007641c
cmp eax, 0xffffffff
je 0x1400871f5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400871bc
mov edx, r15d
mov ecx, r14d
call fcn.14007319c
jmp 0x140087215
cmp byte [rsi + 0x38], dil
je 0x14008720c
cmp dword [rsi + 0x34], 5
jne 0x14008720c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140087215
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140076750
jmp 0x140087283
jns 0x140087283
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14007c4f8
cmp rax, 0xffffffffffffffff
jne 0x14008723d
cmp byte [rsi + 0x30], dil
je 0x140087283
jmp 0x140087279
mov ecx, r14d
call fcn.14007fd48
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140087283
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140087283
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14008727e
mov edi, dword [rsi + 0x2c]
jmp 0x140087283
mov edi, 0x16
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14007c4f8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140087af0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140087b18
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140087b18
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002140
Capabilities:
Read file on windows

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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400026fd
xor eax, eax
jmp 0x140002869
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002737
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002737
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140002869
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000285c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000277a
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 0x1400027a5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002861
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002814
sub eax, 1
je 0x140002814
cmp eax, 2
jne 0x14000285c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002861
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002842
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000285c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002861
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003c10
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002cc0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002d93
cmp byte [rcx + 0x71], 0
je 0x140002d93
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140002d8f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002d54
sub eax, 1
je 0x140002d58
cmp eax, 2
jne 0x140002d8f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003c10
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002d86
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140002d8f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140002d3c
xor al, al
jmp 0x140002d3c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003c10
add rsp, 0x60
pop rbx
ret

Function at 0x140004590
Capabilities:
Parse pe header

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

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

Function at 0x1400370e4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003722c
Function at 0x1805ab058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1805ab1df
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 0x1805ab089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1805ab06f
add dl, dl
jne 0x1805ab096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1805ab0f6
xor eax, eax
add dl, dl
jne 0x1805ab0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1805ab1ad
add dl, dl
jne 0x1805ab0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805ab0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805ab0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805ab0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1805ab0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1805ab07e
mov eax, 1
add dl, dl
jne 0x1805ab106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805ab113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1805ab0fb
sub eax, ebx
mov ebx, 1
jne 0x1805ab14c
mov ecx, 1
add dl, dl
jne 0x1805ab12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1805ab13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1805ab123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1805ab07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1805ab168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1805ab175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1805ab15d
cmp eax, 0x7d00
jae 0x1805ab19b
cmp eax, 0x500
jb 0x1805ab196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1805ab07e
cmp eax, 0x7f
ja 0x1805ab19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1805ab07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1805ab1d2
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 0x1805ab07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14003d3bb
Capabilities:
Parse pe header

Disassembly:
jmp 0x14008b5d8
xor r8d, r8d
xor edx, edx
jmp 0x14008b2bc

Function at 0x14003e248
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x14009947c
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea rbx, [0x1400ddd20]
xor r12d, r12d
lea rdi, [0x1400c4dd4]
test r9, r9
mov rax, rdx
mov r15, rdx
cmovne rbx, r9
test rdx, rdx
lea ebp, [r12 + 1]
cmovne rbp, r8
cmovne rdi, rdx
neg rax
sbb r14, r14
and r14, rcx
test rbp, rbp
jne 0x1400994ea
mov rax, 0xfffffffffffffffe
jmp 0x14009961d
cmp word [rbx + 6], r12w
jne 0x140099540
mov rcx, rdi
call fcn.14003fb20
movsxd r8, eax
movzx eax, byte [rdi]
inc rdi
cmp r8d, 1
jbe 0x140099530
lea ecx, [r8 - 2]
cmp ecx, 2
ja 0x140099612
movzx edx, r8b
mov ecx, 7
sub ecx, edx
mov r9b, r8b
mov edx, 1
shl edx, cl
dec edx
and edx, eax
jmp 0x140099569
test r14, r14
je 0x140099538
mov dword [r14], eax
mov rax, r8
jmp 0x14009961d
mov r8b, byte [rbx + 4]
mov edx, dword [rbx]
mov r9b, byte [rbx + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x140099612
cmp r9b, 1
jb 0x140099612
cmp r9b, r8b
jae 0x140099612
movzx r11d, r9b
cmp r11, rbp
mov r10d, r11d
cmovae r10, rbp
jmp 0x140099597
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x140099612
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r15
cmp rax, r10
jb 0x140099579
cmp r10, r11
jae 0x1400995c1
movzx eax, r8b
sub r9b, r10b
mov word [rbx + 4], ax
movzx eax, r9b
mov word [rbx + 6], ax
mov dword [rbx], edx
jmp 0x1400994de
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x140099612
cmp edx, 0x110000
jae 0x140099612
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 0x140099612
test r14, r14
je 0x140099600
mov dword [r14], edx
neg edx
mov rdx, rbx
sbb rcx, rcx
and rcx, r11
call fcn.14003fbfc
jmp 0x14009961d
mov rdx, rsi
mov rcx, rbx
call fcn.140040282
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14003e70c
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
jmp 0x140046e88
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140046f15
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140046f15
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140046f15
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 0x140046efc
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140046ef6
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140046efe
add rdx, 0x28
jmp 0x140046edb
xor edx, edx
test rdx, rdx
jne 0x140046f07
xor al, al
jmp 0x140046f1b
cmp dword [rdx + 0x24], 0
jge 0x140046f11
xor al, al
jmp 0x140046f1b
mov al, 1
jmp 0x140046f1b
xor al, al
jmp 0x140046f1b
add rsp, 0x18
ret
Function at 0x14003e86f
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140055014
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1400c5d98]
mov ecx, 2
lea r8, [0x1400c5d90]
lea rdx, str.FlsGetValue
call fcn.140054ae4
mov ecx, ebx
test rax, rax
je 0x14005504e
add rsp, 0x20
pop rbx
jmp qword [0x1400e9020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x14003e9b4
Capabilities:
Query environment variable

Disassembly:
jmp 0x1400a0abc
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 0x1400a0aec
xor eax, eax
jmp 0x1400a0baf
mov rbp, rbx
cmp word [rax], si
je 0x1400a0b11
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400a0af8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400a0af4
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.14003f396
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x1400a0b52
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400a0ae5
call fcn.14003d037
mov rdi, rax
test rax, rax
jne 0x1400a0b68
xor ecx, ecx
call fcn.14003d16d
jmp 0x1400a0b47
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.14003f396
test eax, eax
jne 0x1400a0b99
mov rcx, rdi
call fcn.14003d16d
jmp 0x1400a0ba3
xor ecx, ecx
call fcn.14003d16d
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 0x14003e9c3
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140054f64
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x1400c5d58]
xor ecx, ecx
lea r8, [0x1400c5d50]
lea rdx, str.FlsAlloc
call fcn.140054ae4
test rax, rax
je 0x140054f9d
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1400e9020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x14003ea3b
Capabilities:
Get geographical location

Disassembly:
jmp 0x140094658
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1400ea050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x1400946bd
test rax, rax
jne 0x1400946ab
lea r9, [0x1400c7a38]
lea r8, [0x1400c7a30]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.140093ae8
test rax, rax
je 0x1400946bd
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.1400403f4
jmp 0x1400946d7
xor edx, edx
mov rcx, rbp
call fcn.14003e2e3
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 0x14003ea4f
Capabilities:
Terminate process

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

Disassembly:
jmp 0x14008b570
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x14008b2bc

Function at 0x14003f076
Capabilities:
Parse pe header

Disassembly:
jmp 0x140047438
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140047482
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140047482
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140047482
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140047482
cmp dword [rcx + 0x84], 0xe
jbe 0x140047482
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140047484
xor al, al
add rsp, 0x28
ret
Function at 0x14003f4f9
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
jmp 0x1400438d0
mov qword [rsp + 8], rcx
push rbp
push rdi
mov eax, 0x2688
call fcn.14003d893
sub rsp, rax
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x81a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x26a8]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x2658], rax
lea rcx, [0x1400e80ab]
call fcn.14003ff62
nop
mov dword [rbp + 4], socket
mov dword [rbp + 0x24], 0xc0000004
mov qword [rbp + 0x48], 0
mov eax, dword [rbp + 4]
shl eax, 1
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbp + 0x48], rax
lea r9, [rbp + 4]
mov r8d, dword [rbp + 4]
mov rdx, qword [rbp + 0x48]
mov ecx, 0x40
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0xc0000004
je 0x140043936
cmp dword [rbp + 0x24], 0
je 0x140043995
mov edx, dword [rbp + 0x24]
lea rcx, str.NtQuerySystemInformation___failed_with_error:__x_n
call fcn.14003e685
nop
mov eax, 1
jmp 0x140043a65
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [rbp + 0x64], eax
lea rax, [rbp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, 0x1f40
rep stosb byte [rdi], al
mov dword [rbp + 0x1fe4], 0
jmp 0x1400439d4
mov eax, dword [rbp + 0x1fe4]
inc eax
mov dword [rbp + 0x1fe4], eax
movsxd rax, dword [rbp + 0x1fe4]
mov rcx, qword [rbp + 0x48]
cmp rax, qword [rcx]
jae 0x140043a5e
movsxd rax, dword [rbp + 0x1fe4]
imul rax, rax, 0x28
mov rcx, qword [rbp + 0x48]
mov rax, qword [rcx + rax + 0x10]
mov qword [rbp + 0x2008], rax
movsxd rax, dword [rbp + 0x1fe4]
imul rax, rax, 0x28
mov rcx, qword [rbp + 0x48]
mov rax, qword [rcx + rax + 0x20]
mov qword [rbp + 0x2028], rax
movsxd rax, dword [rbp + 0x1fe4]
imul rax, rax, 0x28
mov rcx, qword [rbp + 0x48]
mov eax, dword [rcx + rax + 0x18]
mov dword [rbp + 0x2044], eax
mov eax, dword [rbp + 0x64]
cmp dword [rbp + 0x2044], eax
je 0x140043a40
jmp 0x1400439c6
mov rax, qword [rbp + 0x2680]
cmp qword [rbp + 0x2028], rax
jne 0x140043a59
mov rax, qword [rbp + 0x2008]
jmp 0x140043a65
jmp 0x1400439c6
mov rax, 0xffffffffffffffff
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400c3030]
call fcn.14003f71f
mov rax, rdi
mov rcx, qword [rbp + 0x2658]
xor rcx, rbp
call fcn.14003e70c
lea rsp, [rbp + 0x2668]
pop rdi
pop rbp
ret