joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6dcac0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rbx, rcx
mov rsi, rdx
mov ecx, dword [0x007f4530]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x6dcaf0
jmp 0x6dcbb0
mov rax, qword [rax + 0x10]
test rax, rax
je 0x6dcbb0
cmp rbx, qword [rax]
jne 0x6dcae3
cmp qword [rax + 8], 0
je 0x6dcbb0
lfence
mov rax, qword [rsi + 0x28]
mov qword [rsp + 0x30], 0
mov rdi, qword [rsi]
test rax, rax
je 0x6dcb3c
test al, 1
mov qword [rsp + 0x30], rax
je 0x6dcb90
mov rax, qword [rsi + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsi + 0x38]
mov qword [rsp + 0x40], rax
mov rax, qword [rsi + 0x40]
mov qword [rsp + 0x48], rax
lea rbx, [rsp + 0x30]
mov r9, qword [rsi + 0x20]
mov r8, qword [rsi + 0x18]
mov rdx, qword [rsi + 0x10]
mov rcx, qword [rsi + 8]
mov qword [rsp + 0x20], rbx
call rdi
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x6dcb81
test al, 1
jne 0x6dcb81
and rax, 0xfffffffffffffffe
mov rax, qword [rax]
test rax, rax
je 0x6dcb81
lea rcx, [rbx + 8]
mov r8d, 2
mov rdx, rcx
call rax
sfence
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
lea rbx, [rsp + 0x30]
and rax, 0xfffffffffffffffe
xor r8d, r8d
lea rdx, [rbx + 8]
lea rcx, [rsi + 0x30]
call qword [rax]
jmp 0x6dcb41
mov rdx, rsi
mov ecx, pe_nt_image_headers64
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x30], rsi
call fcn.004fc980
test rax, rax
mov rdi, rax
mov qword [rsp + 0x38], rax
je 0x6dcc91
mov qword [rax + 0x20], 0
lea rax, [0x006d56f0]
mov qword [rdi + 0x28], rax
lea rdx, [rsi + 0x28]
mov qword [rdi], 0
mov qword [rdi + 8], 0
mov dword [rdi + 0x10], 0
mov dword [rdi + 0x14], 0
mov qword [rdi + 0x18], 0
mov dword [rdi + 0x30], 0
mov rax, qword [rsi]
mov qword [rdi + 0x38], rax
mov rax, qword [rsi + 8]
mov qword [rdi + 0x40], rax
mov rax, qword [rsi + 0x10]
mov qword [rdi + 0x48], rax
mov rax, qword [rsi + 0x18]
mov qword [rdi + 0x50], rax
mov rax, qword [rsi + 0x20]
mov qword [rdi + 0x60], 0
mov qword [rdi + 0x58], rax
lea rax, [rdi + 0x60]
cmp rdx, rax
je 0x6dcc91
mov rax, qword [rsi + 0x28]
test rax, rax
je 0x6dcc91
test al, 1
mov qword [rdi + 0x60], rax
je 0x6dccaf
mov rax, qword [rsi + 0x30]
mov qword [rdi + 0x68], rax
mov rax, qword [rsi + 0x38]
mov qword [rdi + 0x70], rax
mov rax, qword [rsi + 0x40]
mov qword [rdi + 0x78], rax
mov qword [rsi + 0x28], 0
mov qword [rsp + 0x40], rdi
lock add dword [rbx + 0x30], 1
mov rdx, rdi
mov rcx, rbx
call fcn.005018a0
nop
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
lea rdx, [rdi + 0x68]
and rax, 0xfffffffffffffffe
mov r8d, 1
lea rcx, [rsi + 0x30]
call qword [rax]
jmp 0x6dcc89
Function at 0x75d9d0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rbp, rcx
mov rdi, rdx
mov esi, r8d
mov rcx, rbp
call fcn.0075d8c0
mov r8d, esi
mov rdx, rdi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
je 0x75da20
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x75d9ea
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x7bc260
Capabilities:
Encode data using xor

Disassembly:
movabs r9, 0xc6a4a7935bd1e995
mov rax, rdx
mov r11d, edx
imul rax, r9
and r11d, 0xfffffff8
movsxd r11, r11d
add r11, rcx
xor rax, r8
cmp rcx, r11
je 0x7bc2b9
nop word cs:[rax + rax]
mov r10, r9
add rcx, 8
imul r10, qword [rcx - 8]
mov r8, r10
shr r8, 0x2f
xor r8, r10
imul r8, r9
xor r8, rax
mov rax, r8
imul rax, r9
cmp r11, rcx
jne 0x7bc290
and edx, 7
je 0x7bc2f5
sub edx, 1
xor ecx, ecx
movsxd rdx, edx
nop word cs:[rax + rax]
movzx r8d, byte [r11 + rdx]
shl rcx, 8
sub rdx, 1
add rcx, r8
test edx, edx
jns 0x7bc2d0
xor rcx, rax
movabs rax, 0xc6a4a7935bd1e995
imul rax, rcx
mov r8, rax
shr r8, 0x2f
xor rax, r8
movabs r8, 0xc6a4a7935bd1e995
imul rax, r8
mov r8, rax
shr r8, 0x2f
xor rax, r8
ret
Function at 0x180003520
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x180003546
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
dec rcx
call fcn.180003520
movzx edx, word [rdi + rbx*2]
mov ecx, eax
mov rbx, qword [rsp + 0x30]
xor rdx, rcx
movzx ecx, dl
lea rdx, [0x18002d740]
shr eax, 8
xor eax, dword [rdx + rcx*4]
add rsp, 0x20
pop rdi
ret

Function at 0x180003580
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x1800035a6
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
dec rcx
call fcn.180003580
movsx edx, byte [rbx + rdi]
xor r8d, r8d
mov rbx, qword [rsp + 0x30]
mov r9d, 0x20
lea ecx, [rdx - 0x41]
cmp cl, 0x19
mov ecx, edx
lea rdx, [0x18002d740]
cmovbe r8d, r9d
or r8, rcx
xor r8, rax
shr eax, 8
movzx ecx, r8b
xor eax, dword [rdx + rcx*4]
add rsp, 0x20
pop rdi
ret

Function at 0x1800035f0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x180003616
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
dec rcx
call fcn.1800035f0
movzx edx, word [rdi + rbx*2]
xor r8d, r8d
mov rbx, qword [rsp + 0x30]
mov r9d, 0x20
lea ecx, [rdx - 0x41]
cmp cx, 0x19
lea rcx, [0x18002d740]
cmovbe r8d, r9d
or r8, rdx
movzx edx, al
movzx r9d, r8b
xor r9, rdx
shr eax, 8
xor eax, dword [rcx + r9*4]
add rsp, 0x20
pop rdi
ret

Function at 0x180003660
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x28
mov r11, rcx
mov r10, 0xffffffffffffffff
nop
inc r10
cmp word [rcx + r10*2], 0
jne 0x180003670
dec r10
cmp r10, 0xffffffffffffffff
jne 0x18000368e
mov eax, 0
add rsp, 0x28
ret
lea rcx, [r10 - 1]
mov rdx, r11
call fcn.1800035f0
movzx edx, word [r11 + r10*2]
xor r8d, r8d
mov r9d, 0x20
lea ecx, [rdx - 0x41]
cmp cx, 0x19
lea rcx, [0x18002d740]
cmovbe r8d, r9d
or r8, rdx
movzx edx, al
shr eax, 8
movzx r9d, r8b
xor r9, rdx
xor eax, dword [rcx + r9*4]
not eax
add rsp, 0x28
ret
Function at 0x180006130
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r15
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x180032010]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov r9d, 0x21
mov dword [rbp - 0x19], 0x4e3199d1
mov eax, 0xda59
mov dword [rbp - 0x15], 0x1472d034
lea rdx, [rbp - 0x19]
mov dword [rbp - 0x11], 0x120e4b60
lea rcx, [rbp + 0x17]
mov dword [rbp - 0xd], 0xb2bb4ea7
lea r8d, [r9 + 0x1f]
mov dword [rbp - 9], 0x1f0c3afb
mov word [rbp - 5], ax
mov word [rsp + 0x20], 0x4d
call fcn.180005a00
lea rax, [rbp + 0x17]
mov rbx, 0xffffffffffffffff
mov qword [rbp + 0x3f], rax
mov r8, rbx
mov rsi, qword [rbp + 0x3f]
nop
inc r8
cmp word [rsi + r8*2], 0
jne 0x1800061c0
dec r8
lea r15, [0x18002d740]
mov edi, 0xffffffff
cmp r8, rbx
jne 0x1800061e3
mov eax, edi
jmp 0x180006204
lea rcx, [r8 - 1]
mov rdx, rsi
call fcn.180003520
movzx edx, word [rsi + r8*2]
mov ecx, eax
xor rdx, rcx
shr eax, 8
movzx r8d, dl
xor eax, dword [r15 + r8*4]
not eax
mov ecx, eax
call fcn.180007680
test rax, rax
jne 0x18000621a
mov rcx, rsi
call fcn.180007200
mov edx, 0x1bb06e09
mov rcx, rax
call fcn.180007860
test rax, rax
je 0x18000631d
lea r8, [rbp + 0x3f]
mov qword [rbp + 0x2f], 0
lea rdx, [rbp + 0x2f]
mov dword [rbp + 0x3f], 0
xor ecx, ecx
call rax
cmp dword [rbp + 0x3f], 3
je 0x18000631d
mov r9d, 0x46
mov dword [rbp - 1], 0xdc59d262
lea rdx, [rbp - 1]
mov dword [rbp + 3], 0xe0bb387e
lea rcx, [rbp - 0x19]
mov dword [rbp + 7], 0x502a54bb
mov dword [rbp + 0xb], 0x70c81cbb
lea r8d, [r9 - 0x32]
mov dword [rbp + 0xf], 0xc58921c3
mov word [rsp + 0x20], 7
call fcn.180006350
lea rax, [rbp - 0x19]
mov qword [rbp + 0x2f], rax
mov rsi, qword [rbp + 0x2f]
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x1800062a2
dec rbx
cmp rbx, 0xffffffffffffffff
je 0x1800062d7
lea rcx, [rbx - 1]
mov rdx, rsi
call fcn.180003520
movzx edx, word [rsi + rbx*2]
mov ecx, eax
xor rdx, rcx
mov edi, eax
movzx r8d, dl
shr edi, 8
xor edi, dword [r15 + r8*4]
not edi
mov ecx, edi
call fcn.180007680
test rax, rax
jne 0x1800062ed
mov rcx, rsi
call fcn.180007200
mov edx, 0xb70a5108
mov rcx, rax
call fcn.180007860
test rax, rax
je 0x18000631d
lea rdx, [rbp + 0x37]
mov qword [rbp + 0x37], 0
xor ecx, ecx
call rax
cmp qword [rbp + 0x37], 0
jne 0x18000631d
mov eax, 1
jmp 0x18000631f
xor eax, eax
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.180008cd0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r15, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x180006930
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x180032010]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xor esi, esi
lea r8, [rbp + 0x37]
mov rbx, 0xffffffffffffffff
mov qword [rbp + 0x37], rsi
mov rcx, rbx
mov qword [rbp + 0x43], rsi
lea edx, [rsi + 0x28]
call fcn.180008ca0
test eax, eax
jne 0x180006adc
mov eax, 0x5eaf
mov qword [rsp + 0xe0], rdi
lea r9d, [rsi + 0x21]
mov word [rbp - 0x29], ax
lea r8d, [rsi + 0x40]
mov dword [rbp + 0x3f], 1
lea rdx, [rbp - 0x49]
mov dword [rbp + 0x4b], 2
lea rcx, [rbp + 0xf]
mov dword [rbp - 0x49], 0x4e3f99f5
mov dword [rbp - 0x45], 0x1474d003
mov dword [rbp - 0x41], 0x12124b6e
mov dword [rbp - 0x3d], 0xb28f4eee
mov dword [rbp - 0x39], 0x1f093ae5
mov dword [rbp - 0x35], 0x3836da2f
mov dword [rbp - 0x31], 0xb1c4df5a
mov dword [rbp - 0x2d], 0x8a6905ae
mov word [rsp + 0x20], 0x4d
call fcn.180006610
lea rax, [rbp + 0xf]
mov dword [rbp - 0x21], 0xdc4ed267
mov qword [rbp + 7], rax
lea r9d, [rsi + 0x46]
mov eax, 0x17ef
mov dword [rbp - 0x1d], 0xe0bf387a
lea r8d, [rsi + 0x14]
mov word [rbp - 9], ax
lea rdx, [rbp - 0x21]
mov dword [rbp - 0x19], 0x506d54ac
lea rcx, [rbp - 0x49]
mov dword [rbp - 0x15], 0x70961cec
mov dword [rbp - 0x11], 0xc5ed2181
mov dword [rbp - 0xd], 0xbfad66dd
mov word [rsp + 0x20], 7
call fcn.1800054f0
lea rax, [rbp - 0x49]
mov qword [rbp - 1], rax
mov rdi, qword [rbp - 1]
inc rbx
cmp word [rdi + rbx*2], si
jne 0x180006a53
dec rbx
cmp rbx, 0xffffffffffffffff
jne 0x180006a6c
mov eax, 0xffffffff
jmp 0x180006a93
lea rcx, [rbx - 1]
mov rdx, rdi
call fcn.180003520
movzx edx, word [rdi + rbx*2]
mov ecx, eax
xor rdx, rcx
shr eax, 8
movzx r8d, dl
lea rcx, [0x18002d740]
xor eax, dword [rcx + r8*4]
not eax
mov ecx, eax
call fcn.180007680
test rax, rax
jne 0x180006aa9
mov rcx, rdi
call fcn.180007200
mov edx, 0xd9c348b
mov rcx, rax
call fcn.180007860
mov rdi, qword [rsp + 0xe0]
test rax, rax
je 0x180006adc
mov rdx, qword [rbp + 7]
lea r8, [rbp + 0x43]
xor ecx, ecx
call rax
mov rcx, qword [rbp + 0x37]
test eax, eax
jne 0x180006aff
call fcn.180008ab6
xor eax, eax
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.180008cd0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov qword [rsp + 0x28], rsi
lea r8, [rbp + 0x3f]
mov r9d, 0x10
mov qword [rsp + 0x20], rsi
xor edx, edx
call fcn.180008a9c
mov rcx, qword [rbp + 0x37]
mov ebx, eax
call fcn.180008ab6
test ebx, ebx
sete sil
mov eax, esi
jmp 0x180006ade
Function at 0x180007430
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x470
mov rax, qword [0x180032010]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor esi, esi
mov rbx, rcx
mov ebp, 0x103
test rcx, rcx
jne 0x180007468
mov r8d, esi
jmp 0x180007473
mov rdx, rbp
call fcn.180012c10
mov r8, rax
inc r8w
cmp r8w, bp
jae 0x18000755f
cmp si, r8w
jae 0x1800074e3
mov rcx, rbx
movzx r9d, r8w
lea rdx, [rsp + 0x40]
nop dword [rax]
nop word [rax + rax]
movsx eax, byte [rcx]
lea rcx, [rcx + 1]
mov word [rdx], ax
lea rdx, [rdx + 2]
sub r9, 1
jne 0x1800074a0
cmp r8w, 5
jbe 0x1800074e3
movzx eax, r8w
cmp word [rsp + rax*2 + 0x36], 0x2e
je 0x1800074e3
mov r9d, 5
lea r8, str..dll
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.180013090
lea rax, [rsp + 0x40]
mov r10, 0xffffffffffffffff
nop
inc r10
cmp word [rax + r10*2], si
jne 0x1800074f0
dec r10
cmp r10, 0xffffffffffffffff
jne 0x18000750a
mov eax, 0xffffffff
jmp 0x18000754d
lea rcx, [r10 - 1]
lea rdx, [rsp + 0x40]
call fcn.1800035f0
movzx edx, word [rsp + r10*2 + 0x40]
mov r9d, 0x20
mov r8, rsi
lea ecx, [rdx - 0x41]
cmp cx, 0x19
lea rcx, [0x18002d740]
cmovbe r8, r9
or r8, rdx
movzx edx, al
movzx r9d, r8b
xor r9, rdx
shr eax, 8
xor eax, dword [rcx + r9*4]
not eax
mov ecx, eax
call fcn.180007680
test rax, rax
jne 0x18000764f
mov qword [rsp + 0x488], rdi
test rbx, rbx
jne 0x180007571
mov rdi, rsi
jmp 0x18000757f
mov rdx, rbp
mov rcx, rbx
call fcn.180012c10
mov rdi, rax
inc di
cmp di, bp
jae 0x180007644
cmp si, di
jae 0x1800075e5
lea rcx, [rsp + 0x250]
movzx r10d, di
nop dword [rax]
movsx eax, byte [rbx]
lea rbx, [rbx + 1]
mov word [rcx], ax
lea rcx, [rcx + 2]
sub r10, 1
jne 0x1800075a0
cmp di, 5
jbe 0x1800075e5
movzx eax, di
cmp word [rsp + rax*2 + 0x246], 0x2e
je 0x1800075e5
lea r9d, [r10 + 5]
mov edx, 0x104
lea r8, str..dll
lea rcx, [rsp + 0x250]
call fcn.180013090
add di, di
lea rax, [rsp + 0x250]
mov word [rsp + 0x2a], di
sub di, 2
mov qword [rsp + 0x30], rax
mov rax, qword [0x180082688]
mov word [rsp + 0x28], di
test rax, rax
jne 0x18000762a
mov edx, 0xa09b055e
mov ecx, 0x84c05e40
call fcn.180007c20
mov qword [0x180082688], rax
test rax, rax
je 0x180007644
lea r9, [rsp + 0x20]
mov qword [rsp + 0x20], rsi
lea r8, [rsp + 0x28]
xor edx, edx
xor ecx, ecx
call rax
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x488]
mov rax, rsi
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.180008cd0
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret
Function at 0x180007c20
Capabilities:
Hash data with crc32
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
call fcn.180007680
mov edx, ebx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp fcn.180007860
Function at 0x180008470
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x180032010]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor r15d, r15d
mov ebp, edx
mov r14, r8
mov dword [r8], r15d
mov rsi, rcx
mov qword [rsp + 0x78], r15
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0xb56a556f
lea r9d, [r15 + 0x31]
mov dword [rsp + 0x44], 0x38122f53
lea r8d, [r15 + 6]
mov dword [rsp + 0x48], 0x1b97232e
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x4c], 0x323deb96
mov dword [rsp + 0x50], 0xa2e4aa8a
mov dword [rsp + 0x54], 0x1c077b28
mov word [rsp + 0x20], 0x12
call fcn.180005c10
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x58], rax
mov rbx, qword [rsp + 0x58]
nop dword [rax]
inc r8
cmp word [rbx + r8*2], r15w
jne 0x180008510
dec r8
cmp r8, 0xffffffffffffffff
jne 0x18000852a
mov eax, 0xffffffff
jmp 0x180008550
lea rcx, [r8 - 1]
mov rdx, rbx
call fcn.180003520
movzx edx, word [rbx + r8*2]
mov ecx, eax
xor rdx, rcx
shr eax, 8
movzx ecx, dl
lea rdx, [0x18002d740]
xor eax, dword [rdx + rcx*4]
not eax
mov ecx, eax
call fcn.180007680
test rax, rax
jne 0x180008566
mov rcx, rbx
call fcn.180007200
mov edx, 0xc651d8aa
mov rcx, rax
call fcn.180007860
mov rdi, rax
test rax, rax
je 0x18000861d
test rsi, rsi
jne 0x180008589
mov ebx, r15d
jmp 0x180008597
mov rdx, rbp
mov rcx, rsi
call fcn.180012c10
mov rbx, rax
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov edx, ebx
mov rcx, rsi
mov qword [rsp + 0x20], r14
lea r8d, [r9 + 6]
call rdi
test eax, eax
je 0x18000861d
mov eax, dword [r14]
lea r9, [rsp + 0x80]
xor r8d, r8d
mov dword [rsp + 0x28], 4
inc rax
mov dword [rsp + 0x20], 0x3000
lea rdx, [rsp + 0x78]
mov qword [rsp + 0x80], rax
lea rcx, [r8 - 1]
call fcn.180008ac3
test eax, eax
jne 0x18000861d
mov r9, qword [rsp + 0x78]
lea r8d, [rax + 6]
mov qword [rsp + 0x30], r15
mov edx, ebx
mov qword [rsp + 0x28], r15
mov rcx, rsi
mov qword [rsp + 0x20], r14
call rdi
test eax, eax
je 0x18000861d
mov rax, qword [rsp + 0x78]
jmp 0x18000861f
xor eax, eax
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.180008cd0
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x1800089f0
Capabilities:
Check os version
Execute syscall

Disassembly:
xor al, 0x5a
mov r10, qword gs:[0x60]
cmp word [r10 + 0x118], 0xa
je 0x180008a40
cmp word [r10 + 0x118], 6
jne 0x180008a67
cmp word [r10 + 0x11c], 3
je 0x180008a42
cmp word [r10 + 0x11c], 2
je 0x180008a44
cmp word [r10 + 0x11c], 1
jne 0x180008a67
cmp word [r10 + 0x120], 0x1db1
je 0x180008a46
jmp 0x180008a67
inc eax
inc eax
inc eax
cmp qword [0x180082550], 0
jne 0x180008a5c
cmp eax, 0xc390050f
pop r10
mov r10, rcx
jne 0x180008a51
syscall
nop
ret
pop r10
mov r10, rcx
jmp qword [0x180082550]
ret
Function at 0x180018d4c
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 0x180018d7c
xor eax, eax
jmp 0x180018e3f
mov rbp, rbx
cmp word [rax], si
je 0x180018da1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180018d88
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180018d84
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.180018c9c
movsxd r14, eax
test eax, eax
jne 0x180018ddf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180018d75
mov rcx, r14
call fcn.180016b40
mov rdi, rax
test rax, rax
jne 0x180018df8
xor ecx, ecx
call fcn.180016b04
jmp 0x180018dd4
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.180018c9c
test eax, eax
jne 0x180018e29
mov rcx, rdi
call fcn.180016b04
jmp 0x180018e33
xor ecx, ecx
call fcn.180016b04
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 0x18001d4b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18001d4d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18001d4d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400025ec
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [str.Dz_a_]
mov dword [rax], 1
mov rax, qword [str.Hz_a_]
mov dword [rax], 1
mov rax, qword [str.Lz_a_]
mov dword [rax], 1
mov rax, qword [0x14006d700]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140047e20
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x10078
push rbx
call fcn.1400503e0
sub rsp, rax
xor eax, eax
xor edx, edx
lea rbx, [rsp + 0x20]
lea rsi, [rsp + 0x70]
mov word [rsp + 0x70], ax
mov rcx, rbx
mov word [rsp + 0x20], dx
call fcn.140047d60
mov rdx, rsi
mov r8d, 0x10000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140047e76
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop rbx
pop rsi
ret
Function at 0x14004f0c0
Capabilities:
Write file on windows

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

Function at 0x14004fd92
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140077ae8]
test eax, eax
je 0x14004fe2a
lea rax, [0x140077ac0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140077af0]
mov qword [rbp - 8], rax
jmp 0x14004fe0e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14004fe02
cmp qword [rbp - 0x10], 0
je 0x14004fe02
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14004fdc8
lea rax, [0x140077ac0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14004fe2b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14004ff30
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14004ff58
mov eax, 0
jmp 0x14004ffa6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14004ff81
mov eax, 0
jmp 0x14004ffa6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14004ffa1
mov eax, 0
jmp 0x14004ffa6
mov eax, 1
add rsp, 0x20
pop rbp
ret