joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800137e0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x50
mov rax, qword [0x180059080]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, rcx
lea r9, [rsp + 0x20]
xor r14d, r14d
mov ecx, 0xb
xor r8d, r8d
mov dword [rsp + 0x20], r14d
xor edx, edx
mov ebx, r14d
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x180013872
test rbx, rbx
je 0x180013838
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x180013822
test eax, eax
jns 0x180013893
test rbx, rbx
je 0x180013898
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x180013996
test rbx, rbx
jne 0x18001389f
xor eax, eax
jmp 0x180013996
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rdi
mov edi, r14d
cmp dword [rbx], r14d
jbe 0x180013976
nop dword [rax + rax]
mov eax, edi
xorps xmm0, xmm0
imul rcx, rax, 0x128
movups xmmword [rsp + 0x28], xmm0
movzx edx, word [rcx + rbx + 0x2e]
lea rbp, [rcx + rbx]
add rdx, 0x30
mov qword [rsp + 0x38], r14
add rdx, rcx
mov qword [rsp + 0x40], r14
add rdx, rbx
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r14b
jne 0x1800138f5
lea rcx, [rsp + 0x28]
call fcn.18000cb10
cmp qword [rsi + 0x18], 0xf
mov rdx, rsi
jbe 0x180013915
mov rdx, qword [rsi]
cmp qword [rsp + 0x40], 0xf
lea rcx, [rsp + 0x28]
cmova rcx, qword [rsp + 0x28]
call fcn.18001ff6c
test eax, eax
je 0x1800139ac
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x18001396c
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180013967
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800139ff
call fcn.1800166c0
inc edi
cmp edi, dword [rbx]
jb 0x1800138c0
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800166a0
add rsp, 0x50
pop r14
pop rsi
pop rbx
ret
mov rdi, qword [rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x1800139fa
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800139f5
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800139ff
call fcn.1800166c0
mov rax, rdi
jmp 0x180013989
call fcn.180020fbc
int3

Function at 0x18001cf7c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18001cf9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180021104
or eax, 0xffffffff
jmp 0x18001cf9e
xor eax, eax
add rsp, 0x28
ret
Function at 0x1800236d8
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 0x180023747
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180023747
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180023747
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180023747
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180023747
cmp dword [rcx + 0x84], 0xe
jbe 0x180023747
cmp dword [rcx + 0xf8], 0
je 0x180023747
mov ecx, ebx
call fcn.1800237ec
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.1800235e0
nop
cmp dword [rbp + 0x20], 0
jne 0x1800237a8
call fcn.18002ed38
cmp eax, 1
jne 0x180023798
xor dl, dl
jmp 0x1800237a2
call fcn.18002ed04
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x1800237b3
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800237bc
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1800236d8

Function at 0x1800251cc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180064050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x180025231
test rax, rax
jne 0x18002521f
lea r9, str.GetLocaleInfoEx
lea r8, [0x18003fb58]
lea rdx, str.GetLocaleInfoEx
lea ecx, [rax + 0xa]
call fcn.180024ea0
test rax, rax
je 0x180025231
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.180038670
jmp 0x18002524b
xor edx, edx
mov rcx, rbp
call fcn.1800254bc
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 0x18002642c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180026442
mov al, 1
jmp 0x1800264ae
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180026453
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800264ac
mov ecx, dword [rcx + 0x18]
nop
call fcn.180030d38
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800264ac
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800264ac
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800264ac
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800264ae
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18002b728
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1800172d0
sub rsp, rax
mov rax, qword [0x180059080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180026210
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18002b777
mov rax, rbp
jmp 0x18002b883
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x5f250]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18002d1f0
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x5f250]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18002b87f
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + r12*8 + 0x28]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18002b87f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18002d1f0
test rax, rax
js 0x18002b87f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18002b87f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18002b871
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18002b871
cmp byte [rcx], 0xd
jne 0x18002b857
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18002b866
cmp byte [rcx + 1], 0xa
jne 0x18002b866
inc rcx
jmp 0x18002b866
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x594c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18002b839
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18002b883
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800166a0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18002c4d8
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
xor edi, edi
mov rax, r15
lea rcx, [0x18005f250]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x18002c52e
cmp word [rdx], r9w
jne 0x18002c52e
or byte [rax + rbp*8 + 0x38], 4
jmp 0x18002c533
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x18002c6b2
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x18002c67d
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x18002c57b
cmp rcx, r8
jae 0x18002c59b
cmp word [rcx], r9w
jne 0x18002c57b
add rax, 4
mov edx, r9d
jmp 0x18002c57e
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x18002c550
jmp 0x18002c6b2
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18002c676
cmp dword [rsp + 0x80], edi
je 0x18002c676
lea r9, [0x18005f250]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x18002c650
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x18002c603
mov word [rbx], bp
jmp 0x18002c6af
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x18002c61e
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x18002c6af
cmp word [rsp + 0x70], bp
jne 0x18002c65c
cmp rbx, rsi
je 0x18002c5fb
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18002d1f8
cmp word [rsp + 0x70], bp
je 0x18002c6b2
mov word [rbx], 0xd
jmp 0x18002c6af
mov rcx, r15
lea r9, [0x18005f250]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x18002c6ac
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x18002c6b2
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
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
Function at 0x180030370
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 0x1800303a0
xor eax, eax
jmp 0x180030463
mov rbp, rbx
cmp word [rax], si
je 0x1800303c5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800303ac
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800303a8
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.18002ea08
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x180030406
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180030399
call fcn.180029760
mov rdi, rax
test rax, rax
jne 0x18003041c
xor ecx, ecx
call fcn.180024da0
jmp 0x1800303fb
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.18002ea08
test eax, eax
jne 0x18003044d
mov rcx, rdi
call fcn.180024da0
jmp 0x180030457
xor ecx, ecx
call fcn.180024da0
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 0x180034338
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov dword [rsp + 0x30], esi
mov rbx, rcx
test rcx, rcx
je 0x1800343ab
cmp word [rcx], si
je 0x1800343ab
lea rdx, [0x180044be0]
call fcn.18003711c
test eax, eax
je 0x1800343ab
lea rdx, [0x180044bf8]
mov rcx, rbx
call fcn.18003711c
test eax, eax
jne 0x1800343a1
mov ecx, dword [rdi + 8]
lea r9d, [rsi + 2]
lea r8, [rsp + 0x30]
mov edx, 0x2000000b
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1800343c8
mov eax, dword [rsp + 0x30]
jmp 0x1800343da
mov rcx, rbx
call fcn.180024c38
jmp 0x1800343da
mov ecx, dword [rdi + 8]
lea r8, [rsp + 0x30]
mov r9d, 2
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1800343cc
xor eax, eax
jmp 0x1800343da
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x1800343da
call qword [sym.imp.KERNEL32.dll_GetACP]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800343ec
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov dword [rax + 8], ebx
mov edi, ecx
call fcn.180026acc
mov ecx, edi
lea r9d, [rbx + 2]
and ecx, 0x3ff
lea r8, [rsp + 0x30]
bts ecx, 0xa
mov edx, 0x20000001
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x18003448f
cmp edi, dword [rsp + 0x30]
je 0x180034488
test ebp, ebp
je 0x180034488
mov r9, qword [rsi + 0x98]
mov r8d, ebx
movzx edx, word [r9]
lea rcx, [r9 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
jbe 0x180034464
sub dx, 0x61
cmp dx, 0x19
ja 0x180034470
movzx edx, word [rcx]
inc r8d
add rcx, 2
jmp 0x180034451
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x180034474
cmp r8d, eax
setne bl
mov eax, ebx
jmp 0x180034491
mov eax, 1
jmp 0x180034491
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180036e2c
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.18002d1f8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18002d1f8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180036f79
cmp rax, 0xffffffffffffffff
je 0x180036f79
xor edi, edi
test rbp, rbp
jle 0x180036f27
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180024d20
mov rbx, rax
test rax, rax
jne 0x180036eb4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180036f1d
mov edx, 0x8000
mov ecx, r14d
call fcn.180036cb0
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.180029028
cmp eax, 0xffffffff
je 0x180036efd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180036ec4
mov edx, r15d
mov ecx, r14d
call fcn.180036cb0
jmp 0x180036f1d
cmp byte [rsi + 0x38], dil
je 0x180036f14
cmp dword [rsi + 0x34], 5
jne 0x180036f14
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180036f1d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180024da0
jmp 0x180036f8b
jns 0x180036f8b
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18002d1f8
cmp rax, 0xffffffffffffffff
jne 0x180036f45
cmp byte [rsi + 0x30], dil
je 0x180036f8b
jmp 0x180036f81
mov ecx, r14d
call fcn.180030d38
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180036f8b
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 0x180036f8b
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180036f86
mov edi, dword [rsi + 0x2c]
jmp 0x180036f8b
mov edi, 0x16
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18002d1f8
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 0x1800382c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800382e8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800382e8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1406d7c00
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword gs:[0x60]
movabs r11, 0x6d7c70
movabs r10, 0x6d7c74
mov r9, qword [rax + 0x10]
xor eax, eax
movsxd rcx, dword [r9 + 0x3c]
movsxd r11, dword [r9 + r11]
add rcx, r9
mov r10d, dword [r9 + r10]
movzx r8d, word [rcx + 0x14]
add r8, rcx
cmp dword [r8 + 0x20], eax
jbe 0x1406d7c66
mov edx, eax
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [r8 + 0x24]
inc eax
add rcx, rdx
inc rdx
xor byte [rcx + r9], r10b
cmp eax, dword [r8 + 0x20]
jb 0x1406d7c50
lea rax, [r9 + r11]
jmp rax
Function at 0x100001d44
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x1000036f8], rdi
je 0x100001da4
cmp rax, rdi
jne 0x100001d97
mov r12d, 1
jmp 0x100001da4
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100001d7d
mov eax, dword [0x1000036f0]
cmp eax, 1
jne 0x100001db9
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x100001e20
mov eax, dword [0x1000036f0]
cmp eax, ebx
jne 0x100001e16
mov dword [0x1000036f0], 1
lea r13, [0x100001220]
lea rdi, [0x100001208]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x100001e08
cmp eax, ebx
jne 0x100001e08
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x100001dfd
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x100001de6
cmp eax, ebx
je 0x100001e20
mov eax, 0xff
jmp 0x100001f68
mov dword [0x100003144], 1
mov eax, dword [0x1000036f0]
cmp eax, 1
jne 0x100001e48
lea rdx, [0x100001200]
lea rcx, [0x1000011f0]
call sub.msvcrt.dll__initterm
mov dword [0x1000036f0], 2
cmp r12d, ebx
jne 0x100001e57
mov rax, rbx
xchg qword [0x1000036f8], rax
cmp qword [0x100003700], rbx
je 0x100001e7f
lea rcx, [0x100003700]
call fcn.1000021cc
cmp eax, ebx
je 0x100001e7f
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100003700]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x100001e95
mov eax, 0xff
jmp 0x100001f68
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x100001f1a
cmp word [rcx], bx
je 0x100001eb0
cmp edx, ebx
jne 0x100001f1a
cmp word [rcx], bx
je 0x100001ec6
cmp word [rcx], 0x20
ja 0x100001ec6
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x100001eb0
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.100001a10
mov dword [0x100003140], eax
cmp dword [0x100003124], ebx
jne 0x100001f04
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x100003144], ebx
jne 0x100001f18
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x100003140]
jmp 0x100001f68
cmp word [rcx], 0x22
jne 0x100001f2d
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x100001ea1
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.1000022e0
add rsp, 0x28
jmp 0x100001d44
Function at 0x100002090
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x100003110]
jne 0x1000020ab
rol rcx, 0x10
test cx, 0xffff
jne 0x1000020a7
ret 0
ror rcx, 0x10
jmp 0x10000239c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x100003200]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1000032f8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x100002421
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x100003200]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x100002443
mov rax, qword [rsp + 0x88]
mov qword [0x1000032f8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x100003298], rax
mov rax, qword [0x1000032f8]
mov qword [0x100003170], rax
mov rax, qword [rsp + 0x90]
mov qword [0x100003280], rax
mov dword [0x100003160], 0xc0000409
mov dword [0x100003164], 1
mov rax, qword [0x100003110]
mov qword [rsp + 0x68], rax
mov rax, qword [0x100003118]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100001250]
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]
add rsp, 0x88
ret

Function at 0x100002238
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100002285
cmp rcx, 0xffffffffffffffff
je 0x100002285
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10000227d
cmp dword [rcx + 0x3c], edx
jl 0x10000227d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10000227d
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100002285
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1400363f0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400f7368]
xor rax, rsp
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140036489
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword gs:[0x58]
mov edi, eax
mov eax, 8
mov dword [rsp + 0x24], 0
mov rdx, qword [rcx]
mov ecx, dword [rax + rdx]
cmp dword [0x1400ffd74], ecx
jle 0x140036470
lea rcx, [0x1400ffd74]
call fcn.14008c9f8
cmp dword [0x1400ffd74], 0xffffffff
jne 0x140036470
lea rcx, [0x1400cb950]
call fcn.14008cce4
lea rcx, [0x1400ffd74]
call fcn.14008c98c
lea rax, [0x1400f7fa0]
mov dword [rsp + 0x20], edi
test edi, edi
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0x50]
jne 0x14003649e
mov eax, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14008c930
add rsp, 0x40
pop rbx
ret
lea rdx, [0x1400d9db0]
lea rcx, [rsp + 0x20]
call fcn.1400362c0
int3

Function at 0x140036570
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400f7368]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 8]
mov rbx, rcx
mov r9d, 0xffffffff
mov qword [rsp + 0x28], rax
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x1400ffd78], eax
mov rcx, qword [rbx + 8]
test eax, eax
je 0x1400365e9
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14008c930
add rsp, 0x40
pop rbx
ret
mov rdx, rcx
xor r8d, r8d
lea rcx, [fcn.140036620]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14008c930
add rsp, 0x40
pop rbx
ret