joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc511cd0
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc5126d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc537108]
test eax, eax
je 0x2fc51276a
lea rax, [0x2fc5370e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc537110]
mov qword [rbp - 8], rax
jmp 0x2fc51274e
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 0x2fc512742
cmp qword [rbp - 0x10], 0
je 0x2fc512742
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 0x2fc512708
lea rax, [0x2fc5370e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc51276b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc512870
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 0x2fc512898
mov eax, 0
jmp 0x2fc5128e6
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 0x2fc5128c1
mov eax, 0
jmp 0x2fc5128e6
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 0x2fc5128e1
mov eax, 0
jmp 0x2fc5128e6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc5128ec
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc51296a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc512961
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc512961
mov rax, qword [rbp - 8]
jmp 0x2fc51297f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc512934
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180003450
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 0x180003476
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
dec rcx
call fcn.180003450
movzx edx, word [rdi + rbx*2]
mov ecx, eax
mov rbx, qword [rsp + 0x30]
xor rdx, rcx
movzx ecx, dl
lea rdx, [0x18002c740]
shr eax, 8
xor eax, dword [rdx + rcx*4]
add rsp, 0x20
pop rdi
ret

Function at 0x1800034d0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x1800034f6
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
dec rcx
mov qword [rsp + 0x38], rdi
call fcn.1800034d0
movsx ebx, byte [rbx + rsi]
mov edi, eax
call fcn.1800034b0
mov byte [rsp + 0x30], al
movzx edx, bl
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x40], 0x1726110b
mov r8d, dword [rsp + 0x40]
movzx ecx, byte [rsp + 0x30]
xor r8d, 0xa1f
movsx eax, byte [rsp + 0x30]
sub dl, cl
xor r8b, 0xe
cmp dl, r8b
mov edx, ebx
mov rbx, qword [rsp + 0x48]
sbb ecx, ecx
add eax, 0xbe
and ecx, 0x20
or edx, ecx
lea rcx, [0x18002c740]
xor edx, edi
shr edi, 8
and rax, rdx
xor edi, dword [rcx + rax*4]
mov eax, edi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret

Function at 0x180003580
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x1800035a6
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
dec rcx
mov qword [rsp + 0x38], rdi
call fcn.180003580
movzx ebx, word [rsi + rbx*2]
mov edi, eax
call fcn.1800034b0
mov byte [rsp + 0x30], al
movzx ecx, bx
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x40], 0x3d75fc31
mov r8d, dword [rsp + 0x40]
movsx edx, byte [rsp + 0x30]
xor r8d, 0xa1f
sub cx, dx
xor r8b, 0x34
movsx edx, byte [rsp + 0x30]
movzx eax, r8b
cmp cx, ax
sbb ax, ax
add edx, 0xbe
and ax, 0x20
or bx, ax
lea rax, [0x18002c740]
movzx ecx, bx
mov rbx, qword [rsp + 0x48]
xor rcx, rdi
shr edi, 8
and rdx, rcx
xor edi, dword [rax + rdx*4]
mov eax, edi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
Function at 0x1800075a0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
call fcn.1800070f0
mov edx, ebx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp fcn.180007290

Function at 0x1800075c0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x180031010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov edi, edx
mov rbx, rcx
mov r8, 0xffffffffffffffff
inc r8
cmp word [rcx + r8*2], 0
jne 0x1800075e5
dec r8
cmp r8, 0xffffffffffffffff
jne 0x180007600
mov eax, 0xffffffff
jmp 0x180007626
lea rcx, [r8 - 1]
mov rdx, rbx
call fcn.180003450
movzx edx, word [rbx + r8*2]
mov ecx, eax
xor rdx, rcx
shr eax, 8
movzx ecx, dl
lea rdx, [0x18002c740]
xor eax, dword [rdx + rcx*4]
not eax
mov ecx, eax
call fcn.1800070f0
test rax, rax
jne 0x1800076bc
mov rax, qword [0x180058b78]
test rax, rax
jne 0x180007667
mov ecx, 0x84c05e40
call fcn.1800070f0
mov edx, 0xfa2a9aa9
mov rcx, rax
call fcn.180007290
mov qword [0x180058b78], rax
test rax, rax
je 0x18000769b
mov rdx, rbx
lea rcx, [rsp + 0x28]
call rax
mov r10, qword [0x180058b80]
test r10, r10
jne 0x18000769f
mov edx, 0xa09b055e
mov ecx, 0x84c05e40
call fcn.1800075a0
mov qword [0x180058b80], rax
mov r10, rax
test rax, rax
jne 0x18000769f
xor eax, eax
jmp 0x1800076bc
xor eax, eax
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
mov qword [rsp + 0x20], rax
xor edx, edx
xor ecx, ecx
call r10
mov rax, qword [rsp + 0x20]
mov edx, edi
mov rcx, rax
call fcn.180007290
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180008610
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x180008330
Capabilities:
Check os version
Execute syscall

Disassembly:
xor al, 0x5a
mov r10, qword gs:[0x60]
cmp word [r10 + 0x118], 0xa
je 0x180008380
cmp word [r10 + 0x118], 6
jne 0x1800083a7
cmp word [r10 + 0x11c], 3
je 0x180008382
cmp word [r10 + 0x11c], 2
je 0x180008384
cmp word [r10 + 0x11c], 1
jne 0x1800083a7
cmp word [r10 + 0x120], 0x1db1
je 0x180008386
jmp 0x1800083a7
inc eax
inc eax
inc eax
cmp qword [0x180058a60], 0
jne 0x18000839c
cmp eax, 0xc390050f
pop r10
mov r10, rcx
jne 0x180008391
syscall
nop
ret
pop r10
mov r10, rcx
jmp qword [0x180058a60]
ret
Function at 0x18001868c
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 0x1800186bc
xor eax, eax
jmp 0x18001877f
mov rbp, rbx
cmp word [rax], si
je 0x1800186e1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800186c8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800186c4
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.1800185dc
movsxd r14, eax
test eax, eax
jne 0x18001871f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800186b5
mov rcx, r14
call fcn.180016480
mov rdi, rax
test rax, rax
jne 0x180018738
xor ecx, ecx
call fcn.180016444
jmp 0x180018714
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.1800185dc
test eax, eax
jne 0x180018769
mov rcx, rdi
call fcn.180016444
jmp 0x180018773
xor ecx, ecx
call fcn.180016444
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 0x18001cdf0
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x18000a010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x180002e0d
xor eax, eax
jmp 0x180002f6a
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x180002e38
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x180002e38
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x180002f6a
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x180002f5d
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x180002e7b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x180002ea6
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 0x180002f62
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 0x180002f15
sub eax, 1
je 0x180002f15
cmp eax, 2
jne 0x180002f5d
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 0x180002f62
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180002f43
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 0x180002f5d
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x180002f62
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180004100
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1800033e0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x18000a010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1800034b3
cmp byte [rcx + 0x71], 0
je 0x1800034b3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1800034af
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 0x180003474
sub eax, 1
je 0x180003478
cmp eax, 2
jne 0x1800034af
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180004100
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1800034a6
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 0x1800034af
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18000345c
xor al, al
jmp 0x18000345c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180004100
add rsp, 0x60
pop rbx
ret
Function at 0x1400076f0
Capabilities:
Query environment variable

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [0x14014eea0]
lea rbp, [0x1401632e0]
xor r8d, r8d
lea r9, [0x14003323e]
mov rcx, rbp
mov qword [rsp + 0x20], rax
mov rsi, rdx
xor edx, edx
call fcn.1400629c6
mov rax, qword [0x140163300]
sub rax, qword [0x1401632f8]
cmp rax, 0xb
ja 0x140007743
mov edx, 0xc
mov rcx, rbp
call fcn.1400629fb
mov rax, qword [0x1401632f8]
mov rcx, rsi
movabs rdi, 0x5f5443454c4c4f43
mov qword [rax], rdi
mov dword [rax + 8], 0x3d434347
mov rax, qword [0x1401632f8]
lea rdi, [rax + 0xc]
mov qword [0x1401632f8], rdi
call sub.msvcrt.dll_strlen
lea rbx, [rax + 1]
mov rax, qword [0x140163300]
sub rax, rdi
cmp rax, rbx
jae 0x140007796
mov rdx, rbx
mov rcx, rbp
call fcn.1400629fb
mov rcx, rbx
mov rdi, qword [0x1401632f8]
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [0x1401632f0]
add rbx, qword [0x1401632f8]
cmp rbx, rcx
jne 0x1400077bc
or byte [0x140163330], 2
mov rax, qword [0x140163310]
mov rdx, qword [0x1401632e8]
add rbx, rax
not rax
and rbx, rax
mov rax, qword [0x140163300]
mov r8, rbx
mov r9, rax
sub r8, rdx
sub r9, rdx
cmp r9, r8
cmovb rbx, rax
mov qword [0x1401632f8], rbx
mov qword [0x1401632f0], rbx
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14000554d

Function at 0x140007808
Capabilities:
Query environment variable

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp dword [0x1401631b8], 0
jne 0x14000797a
lea rcx, [0x140089eb2]
call fcn.140002156
mov rcx, rax
test rax, rax
je 0x14000797a
lea rdx, [0x14000139c]
lea rdi, [0x1401632e0]
call fcn.1400036be
mov r8d, 1
lea rcx, [0x140087968]
mov rdx, rax
call fcn.140003102
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov rax, qword [0x14014eea0]
lea r9, [0x14003323e]
mov qword [rsp + 0x20], rax
call fcn.1400629c6
mov rax, qword [0x140163300]
sub rax, qword [0x1401632f8]
cmp rax, 0x13
ja 0x14000789d
mov edx, 0x14
mov rcx, rdi
call fcn.1400629fb
mov rax, qword [0x1401632f8]
movabs rdx, 0x5f5443454c4c4f43
movabs rcx, 0x504152575f4f544c
mov qword [rax], rdx
mov qword [rax + 8], rcx
mov rcx, qword [0x140087968]
mov dword [rax + 0x10], 0x3d524550
mov rax, qword [0x1401632f8]
lea rsi, [rax + 0x14]
mov qword [0x1401632f8], rsi
call sub.msvcrt.dll_strlen
lea rbx, [rax + 1]
mov rax, qword [0x140163300]
sub rax, rsi
cmp rax, rbx
jae 0x140007902
mov rdx, rbx
mov rcx, rdi
call fcn.1400629fb
mov rcx, rbx
mov rsi, qword [0x140087968]
mov rdi, qword [0x1401632f8]
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [0x1401632f0]
add rbx, qword [0x1401632f8]
cmp rbx, rcx
jne 0x14000792f
or byte [0x140163330], 2
mov rax, qword [0x140163310]
mov rdx, qword [0x1401632e8]
add rbx, rax
not rax
and rbx, rax
mov rax, qword [0x140163300]
mov r8, rbx
mov r9, rax
sub r8, rdx
sub r9, rdx
cmp r9, r8
cmovb rbx, rax
mov qword [0x1401632f8], rbx
mov qword [0x1401632f0], rbx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
jmp fcn.14000554d
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
Function at 0x140011780
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
lea r14, str._w64devkit
lea r15, str._ROOT
mov r12, rcx
mov dl, byte [r12]
cmp dl, 0x40
je 0x1400117b8
cmp dl, 0x24
jne 0x140011880
mov eax, 1
mov cl, byte [r12 + rax]
mov r13, rax
inc rax
cmp cl, 0x2f
setne r9b
test cl, cl
setne r8b
test r9b, r8b
je 0x1400117de
cmp cl, 0x5c
jne 0x1400117bd
lea rax, [r13 + 0xf]
lea rcx, [r13 - 1]
and rax, 0xfffffffffffffff0
call fcn.14006aac0
sub rsp, rax
lea rsi, [r12 + 1]
mov ecx, ecx
lea rax, [rsp + 0x20]
mov rdi, rax
rep movsb byte [rdi], byte [rsi]
mov byte [rax + r13 - 1], 0
cmp dl, 0x40
jne 0x14001184c
xor r8d, r8d
mov rdx, r15
mov rcx, rax
call fcn.140060e90
mov rcx, rax
mov rsi, rax
call sub.msvcrt.dll_getenv
mov rbx, rax
test rax, rax
jne 0x140011836
mov rbx, qword [str._3_t_]
mov rcx, rsi
call fcn.140074210
test rbx, rbx
jne 0x14001185e
mov rbx, qword [str._3_t_]
jmp 0x140011857
mov rcx, rax
call sub.msvcrt.dll_getenv
mov rbx, rax
test rbx, rbx
cmove rbx, r14
lea rdx, [r12 + r13]
mov rcx, rbx
xor r8d, r8d
call fcn.140060e90
mov rcx, r12
mov rbx, rax
call fcn.140074210
mov r12, rbx
jmp 0x1400117a6
mov rax, r12
lea rsp, [rbp + 8]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x2fc5027b0
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc5031b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc527108]
test eax, eax
je 0x2fc50324a
lea rax, [0x2fc5270e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc527110]
mov qword [rbp - 8], rax
jmp 0x2fc50322e
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 0x2fc503222
cmp qword [rbp - 0x10], 0
je 0x2fc503222
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 0x2fc5031e8
lea rax, [0x2fc5270e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc50324b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc503350
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 0x2fc503378
mov eax, 0
jmp 0x2fc5033c6
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 0x2fc5033a1
mov eax, 0
jmp 0x2fc5033c6
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 0x2fc5033c1
mov eax, 0
jmp 0x2fc5033c6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc5033cc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc50344a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc503441
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc503441
mov rax, qword [rbp - 8]
jmp 0x2fc50345f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc503414
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d4240
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d5320
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d4c42
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f7108]
test eax, eax
je 0x2fc4d4cda
lea rax, [0x2fc4f70e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f7110]
mov qword [rbp - 8], rax
jmp 0x2fc4d4cbe
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 0x2fc4d4cb2
cmp qword [rbp - 0x10], 0
je 0x2fc4d4cb2
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 0x2fc4d4c78
lea rax, [0x2fc4f70e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d4cdb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d4de0
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 0x2fc4d4e08
mov eax, 0
jmp 0x2fc4d4e56
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 0x2fc4d4e31
mov eax, 0
jmp 0x2fc4d4e56
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 0x2fc4d4e51
mov eax, 0
jmp 0x2fc4d4e56
mov eax, 1
add rsp, 0x20
pop rbp
ret