joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180004660
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov eax, dword [rsp + 0x98]
sub eax, 0xdbe
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0xa0]
add eax, 0x8ea
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x70]
sub eax, 0x2ae
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x70]
sub eax, 0x6ad
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x80]
xor eax, 0xaec
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xa0]
xor eax, 0x3b37
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x98]
sub eax, 0xa8d
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x88]
sub eax, 0x1436
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x98]
xor eax, 0x2d13
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x24]
add eax, 0x8e1
cmp dword [rsp + 0x2c], eax
jne 0x1800047f7
mov eax, dword [rsp + 0x24]
add eax, 0xd2e
cmp dword [rsp + 0x2c], eax
jge 0x180004745
mov rax, qword [rsp + 0x78]
lea rcx, [0x1800affc0]
mov qword [rax + 0x70], rcx
mov eax, dword [rsp + 0x20]
add eax, 0xdbe
mov dword [rsp + 0x20], eax
jmp 0x1800047f7
mov eax, dword [rsp + 0x30]
or eax, 0x2d13
mov rcx, qword [rsp + 0x78]
sub eax, dword [rcx + 0x2c]
cmp dword [rsp + 0x20], eax
jb 0x1800047f7
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x28], eax
jmp 0x180004775
mov eax, dword [rsp + 0x28]
add eax, 2
mov dword [rsp + 0x28], eax
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx + rax + 0xa4]
add eax, dword [rsp + 0x34]
and eax, dword [rsp + 0x24]
cmp dword [rsp + 0x28], eax
jbe 0x1800047f7
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x78]
mov eax, dword [rdx + rax + 0xa4]
mov ecx, dword [rcx + 0x98]
xor ecx, eax
mov eax, ecx
mov eax, eax
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x98]
mov ecx, dword [rsp + 0x38]
or ecx, eax
mov eax, ecx
sub eax, 0x16b3
mov eax, eax
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
jmp 0x18000476a
mov eax, dword [rsp + 0x3c]
sub eax, 0x96d
add rsp, 0x68
ret
Function at 0x180008260
Capabilities:
Get file attributes
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov eax, dword [rsp + 0x68]
add eax, 0xb4
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x78]
xor eax, 0x192e
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x80]
add eax, 0x390
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x88]
sub eax, 0x19b1
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x68]
add eax, 0x36e
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x68]
sub eax, 0x21d2
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x78]
add eax, 0x8a4
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x68]
sub eax, 0x27d
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x2c]
xor eax, 0x28d2
cmp dword [rsp + 0x20], eax
jg 0x180008302
mov eax, dword [rsp + 0x20]
xor eax, 0x2d13
mov dword [rsp + 0x20], eax
jmp 0x180008355
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x24], eax
jmp 0x180008317
mov eax, dword [rsp + 0x24]
add eax, 2
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x34]
and eax, 0x1b76
mov rcx, qword [rsp + 0x70]
or eax, dword [rcx + 0x90]
cmp dword [rsp + 0x24], eax
jb 0x180008355
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x2c]
mov ecx, dword [rsp + 0x28]
sub ecx, eax
mov eax, ecx
mov eax, eax
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x18000830c
mov eax, dword [rsp + 0x28]
sub eax, 0x2f6
add rsp, 0x58
ret
Function at 0x1800215d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov eax, dword [rsp + 0xa8]
sub eax, 0x60
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xb0]
xor eax, 0x3990
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xa8]
xor eax, 0x258
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x90]
sub eax, 0xfa2
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x98]
sub eax, 0x229b
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x80]
xor eax, 0x1c5f
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x90]
sub eax, 0xfa2
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x34]
xor eax, 0x3dce
cmp dword [rsp + 0x2c], eax
jg 0x18002181b
mov eax, dword [rsp + 0x20]
xor eax, 0x2d13
cmp dword [rsp + 0x34], eax
jg 0x1800216ea
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x88]
mov eax, dword [rcx + rax + 0x88]
xor eax, 0x1663b7
mov rcx, qword [rsp + 0x88]
mov ecx, dword [rcx + 0xa0]
imul ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x88]
mov dword [rcx + 0xa0], eax
mov eax, dword [rsp + 0x20]
add eax, 0x2d13
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x88]
mov ecx, dword [rcx + 0xa0]
mov dword [rax + 0x64], ecx
jmp 0x18002181b
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x88]
mov eax, dword [rax + 0x44]
imul eax, dword [rcx + 0x48]
add eax, dword [rsp + 0x20]
cmp dword [rsp + 0x30], eax
jb 0x18002181b
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x24], eax
jmp 0x180021724
mov eax, dword [rsp + 0x24]
add eax, 2
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x2c]
add eax, 0x54ae
cmp dword [rsp + 0x24], eax
jae 0x18002181b
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x88]
mov eax, dword [rcx + rax + 0xb8]
mov dword [rsp + 0x28], eax
jmp 0x180021767
mov eax, dword [rsp + 0x28]
add eax, 3
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x90]
sub eax, 0x26d3
cmp dword [rsp + 0x28], eax
jae 0x180021816
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x2c]
or ecx, eax
mov eax, ecx
cdqe
mov qword [rsp + 0x50], rax
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x88]
mov edx, dword [rdx + 0x18]
mov eax, dword [rcx + rax + 0xb8]
xor eax, edx
mov eax, eax
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
mov eax, dword [rsp + 0x2c]
xor eax, 0x26d3
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x88]
add eax, dword [rdx + rcx + 8]
mov rcx, qword [rsp + 0x88]
mov ecx, dword [rcx + 0xb4]
xor ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x88]
mov dword [rcx + 0xb4], eax
jmp 0x18002175c
jmp 0x180021719
mov eax, dword [rsp + 0x30]
add eax, 0x149
add rsp, 0x68
ret
Function at 0x18001ba84
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 0x18001bab4
xor eax, eax
jmp 0x18001bb77
mov rbp, rbx
cmp word [rax], si
je 0x18001bad9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18001bac0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18001babc
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.18001b9a4
movsxd r14, eax
test eax, eax
jne 0x18001bb17
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18001baad
mov rcx, r14
call fcn.180019dac
mov rdi, rax
test rax, rax
jne 0x18001bb30
xor ecx, ecx
call fcn.180019fdc
jmp 0x18001bb0c
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.18001b9a4
test eax, eax
jne 0x18001bb61
mov rcx, rdi
call fcn.180019fdc
jmp 0x18001bb6b
xor ecx, ecx
call fcn.180019fdc
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 0x1800211b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800211d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800211d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800021c6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x180076b40
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x18009c080]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x18009f3f8]
xor r11d, r11d
lea rdi, [0x180086294]
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 0x180076bb0
mov rax, 0xfffffffffffffffe
jmp 0x180076cfd
cmp word [r10 + 6], r11w
jne 0x180076c1f
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x180076bda
test r14, r14
je 0x180076bcb
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x180076cfd
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x180076be8
mov r8b, 2
jmp 0x180076c06
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x180076bf6
mov r8b, 3
jmp 0x180076c06
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x180076cf2
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 0x180076c48
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x180076cf2
cmp bl, bpl
jb 0x180076cf2
cmp bl, r8b
jae 0x180076cf2
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x180076c75
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x180076cf2
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 0x180076c57
cmp r9, rbp
jae 0x180076ca1
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x180076ba4
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x180076cf2
cmp edx, 0x110000
jae 0x180076cf2
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 0x180076cf2
test r14, r14
je 0x180076ce0
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.180003ae9
jmp 0x180076cfd
mov rdx, rsi
mov rcx, r10
call fcn.18000416f
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18000265d
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
jmp 0x18000b648
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x180000000], ax
jne 0x18000b6d5
movsxd rcx, dword [0x18000003c]
lea rdx, [0x180000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x18000b6d5
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18000b6d5
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 0x18000b6bc
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x18000b6b6
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x18000b6be
add rdx, 0x28
jmp 0x18000b69b
xor edx, edx
test rdx, rdx
jne 0x18000b6c7
xor al, al
jmp 0x18000b6db
cmp dword [rdx + 0x24], 0
jge 0x18000b6d1
xor al, al
jmp 0x18000b6db
mov al, 1
jmp 0x18000b6db
xor al, al
jmp 0x18000b6db
add rsp, 0x18
ret
Function at 0x18000254f
Capabilities:
Get system information on windows

Disassembly:
jmp 0x18007ac18
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rdi, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18007ac46
lea ecx, [rax + 0x19]
int 0x29
test byte [rsp + 0x44], 0x44
je 0x18007ac9f
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r9d, dword [rsp + 0x54]
xor edx, edx
mov r8d, r9d
neg r8
and r8, rbx
lea ecx, [r9 - 1]
mov eax, ecx
and ecx, ebx
and eax, edi
add eax, ecx
dec rax
add rax, r9
div r9
xor edx, edx
mov rcx, rax
mov rax, rdi
div r9
add rcx, rax
mov eax, ecx
test ecx, ecx
je 0x18007ac9f
lock or dword [r8], 0
add r8, r9
sub rax, 1
jne 0x18007ac91
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret

Function at 0x180002798
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x18001c0c8
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x180087400]
mov ecx, 2
lea r8, [0x1800873f8]
lea rdx, str.FlsGetValue
call fcn.18001bb98
mov ecx, ebx
test rax, rax
je 0x18001c102
add rsp, 0x20
pop rbx
jmp qword [0x1800a9020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1800028f1
Capabilities:
Query environment variable

Disassembly:
jmp 0x18005b314
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 0x18005b344
xor eax, eax
jmp 0x18005b407
mov rbp, rbx
cmp word [rax], si
je 0x18005b369
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18005b350
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18005b34c
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.1800032a1
movsxd r14, eax
test eax, eax
jne 0x18005b3a7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18005b33d
mov rcx, r14
call fcn.180001037
mov rdi, rax
test rax, rax
jne 0x18005b3c0
xor ecx, ecx
call fcn.180001177
jmp 0x18005b39c
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.1800032a1
test eax, eax
jne 0x18005b3f1
mov rcx, rdi
call fcn.180001177
jmp 0x18005b3fb
xor ecx, ecx
call fcn.180001177
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 0x1800028f6
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x18001c018
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x1800873c0]
xor ecx, ecx
lea r8, [0x1800873b8]
lea rdx, str.FlsAlloc
call fcn.18001bb98
test rax, rax
je 0x18001c051
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1800a9020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]
Function at 0x18000296e
Capabilities:
Get geographical location

Disassembly:
jmp 0x18005d76c
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, [0x180088ee8]
mov rbp, rcx
lea r8, [0x180088ee0]
lea rdx, str.GetLocaleInfoEx
mov ecx, 7
call fcn.18005cc88
test rax, rax
je 0x18005d7cc
movabs r10, 0xe375262d7cd44270
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [0x1800a9030]
jmp 0x18005d7e6
xor edx, edx
mov rcx, rbp
call fcn.180002266
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 0x180002982
Capabilities:
Terminate process

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

Disassembly:
jmp 0x1800221bc
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x180021f08

Function at 0x180002c75
Capabilities:
Parse pe header

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

Function at 0x18000321f
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x18007b620
movsxd r8, dword [rcx + 0x3c]
xor r9d, r9d
add r8, rcx
mov r10, rdx
movzx eax, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rax, 0x18
add rax, r8
test r11d, r11d
je 0x18007b661
mov edx, dword [rax + 0xc]
cmp r10, rdx
jb 0x18007b655
mov ecx, dword [rax + 8]
add ecx, edx
cmp r10, rcx
jb 0x18007b663
inc r9d
add rax, 0x28
cmp r9d, r11d
jb 0x18007b643
xor eax, eax
ret

Function at 0x180003413
Capabilities:
Terminate process

Disassembly:
jmp 0x180021718
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x180021732
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.180003afd
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 0x180003a12
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x18007acd8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x18000003c]
lea rsi, [0x180000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x18007ad50
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x18007ad50
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x18007ad50
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x18007ad44
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x18007ad62
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x18007ad32
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x18007ad52

Function at 0x180003bd9
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x18001c120
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x180087420]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x180087418]
call fcn.18001bb98
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x18001c160
call qword [0x1800a9020]
jmp 0x18001c166
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180003d64
Capabilities:
Parse pe header

Disassembly:
jmp 0x1800221ac
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 0x180021f77
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180021f77
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180021f77
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180021f77
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180021f77
cmp dword [rcx + 0x84], 0xe
jbe 0x180021f77
cmp dword [rcx + 0xf8], 0
je 0x180021f77
mov ecx, ebx
call fcn.1800220f0
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.180021c60
nop
cmp dword [rbp + 0x20], 0
je 0x180021fc5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180022000
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180021f08
Function at 0x140003f00
Capabilities:
Parse pe header

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

Function at 0x14000e740
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000e53c
Function at 0x140014ffc
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 0x14001502c
xor eax, eax
jmp 0x1400150ef
mov rbp, rbx
cmp word [rax], si
je 0x140015051
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140015038
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140015034
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.140014f1c
movsxd r14, eax
test eax, eax
jne 0x14001508f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140015025
mov rcx, r14
call fcn.140010db0
mov rdi, rax
test rax, rax
jne 0x1400150a8
xor ecx, ecx
call fcn.14000f958
jmp 0x140015084
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.140014f1c
test eax, eax
jne 0x1400150d9
mov rcx, rdi
call fcn.14000f958
jmp 0x1400150e3
xor ecx, ecx
call fcn.14000f958
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 0x14001510c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140015193
mov rsi, rbx
cmp word [rax], bp
je 0x140015152
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14001513c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140015138
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140010db0
mov rdi, rax
test rax, rax
je 0x140015180
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14001dd20
mov rbp, rdi
xor ecx, ecx
call fcn.14000f958
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001986c
Capabilities:
Get file size

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