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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x14], 0
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
call sym._fpreset
lea rax, [0x1400edcf0]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x14011c210]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x1400edce0]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 8]
mov dword [rdx + 0x70], eax
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rdx, rbp
mov rax, qword [rbp - 8]
add rax, 0xd0
mov rcx, rax
call sym._setjmp
test eax, eax
jne 0x1400e45fa
mov qword [rbp - 0x10], pe_nt_image_headers64
lea rax, [0x1400edcf0]
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x1400e45c8
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov rcx, rax
call rdx
mov qword [rbp - 0x10], rax
nop
nop
lea rax, [0x1400edcf0]
mov rcx, rax
call sym.pthread_mutex_lock
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
jmp 0x1400e4609
lea rax, [0x1400edcf0]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov dword [rbp - 0x14], eax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x1400e4645
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x1400e46b3
mov rax, qword [rbp - 8]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 8], 0
mov eax, dword [0x1400edce0]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x1400e46fd
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 8]
mov dword [rax + 0xbc], 1
jmp 0x1400e46fd
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, [0x1400edcf0]
mov rcx, rax
call sym.pthread_mutex_unlock
test eax, eax
je 0x1400e46ef
mov eax, dword [rbp - 0x14]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x140058790
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x140094180]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
mov rcx, qword [0x1400964d0]
mov rax, qword [rcx + 8]
cmp byte [rax + 0x19], 0
jne 0x1400587d8
nop dword [rax]
cmp dword [rax + 0x20], 4
jge 0x1400587cc
mov rax, qword [rax + 0x10]
jmp 0x1400587d2
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1400587c0
cmp byte [rcx + 0x19], 0
jne 0x1400588b4
cmp dword [rcx + 0x20], 4
jg 0x1400588b4
lea r8, [rcx + 0x28]
mov r10, qword [r8 + 0x10]
mov rdx, r8
cmp qword [r8 + 0x18], 0xf
jbe 0x140058801
mov rdx, qword [r8]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
test r10, r10
je 0x140058833
movabs r11, 0x100000001b3
nop dword [rax]
movzx eax, byte [rdx + rcx]
xor r9, rax
imul r9, r11
inc rcx
cmp rcx, r10
jb 0x140058820
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140058160
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14005886e
cmp rcx, qword [rbx + 8]
je 0x14005886e
cmp qword [rbx + 0x10], 1
jne 0x140058872
mov al, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14006fbb0
add rsp, 0x80
pop rbx
ret
xor al, al
jmp 0x140058858
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.1400588e0
nop
mov r8, rax
lea rdx, str.AcceptEncoding_does_not_accept_any_other_values_if_disabled_is_present._You_set_the_following_encodings:
lea rcx, [rsp + 0x58]
call fcn.140025b10
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140058730
lea rdx, [0x14008fd90]
lea rcx, [rsp + 0x20]
call fcn.140070c4a
nop
lea rcx, str.invalid_map_K__T__key
call fcn.14006f939
int3

Function at 0x14006a130
Capabilities:
Encode data using xor

Disassembly:
mov r9, r8
xor r11d, r11d
mov r10, rdx
mov r8d, r11d
cmp r9, 8
jb 0x14006a167
mov rdx, r9
shr rdx, 3
imul rax, rdx, 0xfffffffffffffff8
add r9, rax
mov rax, qword [rcx]
add rcx, 8
xor rax, qword [r10]
add r10, 8
or r8, rax
sub rdx, 1
jne 0x14006a150
mov rdx, r8
shr rdx, 0x20
or edx, r8d
mov r8d, edx
mov eax, edx
shr r8d, 8
or r8d, edx
shr eax, 0x10
and r8d, 0xff00
or r8d, eax
movzx eax, dl
shr r8d, 8
or r8d, eax
test r9, r9
je 0x14006a258
sub rcx, r10
cmp r9, 8
jb 0x14006a239
mov rax, r9
lea rdx, [r10 + 4]
and rax, 0xfffffffffffffff8
xorps xmm4, xmm4
xorps xmm3, xmm3
nop dword [rax + rax]
movd xmm2, dword [rcx + rdx - 4]
xorps xmm0, xmm0
movd xmm1, dword [rdx - 4]
lea rdx, [rdx + 8]
punpcklbw xmm2, xmm0
add r11, 8
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
movd xmm1, dword [rdx - 8]
punpcklbw xmm1, xmm0
orps xmm4, xmm2
movd xmm2, dword [rcx + rdx - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
orps xmm3, xmm2
cmp r11, rax
jb 0x14006a1c0
orps xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
orps xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
orps xmm3, xmm0
movd eax, xmm3
or r8d, eax
cmp r11, r9
jae 0x14006a258
add r10, r11
sub r9, r11
nop
movzx edx, byte [rcx + r10]
movzx eax, byte [r10]
lea r10, [r10 + 1]
xor edx, eax
or r8d, edx
sub r9, 1
jne 0x14006a240
test r8d, r8d
sete al
ret
Function at 0x1400709e4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x14007a238]
test rax, rax
je 0x140070a2e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140070a2e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140070a2e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140070a2e
cmp dword [rcx + 0x84], 0xe
jbe 0x140070a2e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140070a30
xor al, al
add rsp, 0x28
ret
Function at 0x1400111ae
Capabilities:
Write file on windows

Disassembly:
jmp 0x140027430
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14004a068]
call fcn.140011e83
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x140027487
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140027593
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x14002752c
cmp qword [rbp + 0x28], 0
jle 0x14002752c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x1400274cc
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.140011da7
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x140027582
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x140027582
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140011839
Capabilities:
Terminate process

Disassembly:
jmp 0x14002d890
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
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, 0x28
ret

Function at 0x14001196a
Capabilities:
Get geographical location

Disassembly:
jmp 0x140027b10
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x140027b4d
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.140011e6f
add rsp, 0x58
ret
Function at 0x1400119e2
Capabilities:
Create process on windows

Disassembly:
jmp 0x140027690
push rbp
push rdi
sub rsp, 0x2a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x6e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140040040]
xor rax, rbp
mov qword [rbp + 0x268], rax
lea rcx, [0x14004a106]
call fcn.140011e83
lea rcx, [rbp + 8]
call fcn.140011244
nop
lea rcx, [rbp + 8]
call fcn.1400119c9
movzx eax, al
test eax, eax
je 0x140027705
mov dword [rbp + 0x1a4], 1
lea rcx, [rbp + 8]
call fcn.140011c58
mov eax, dword [rbp + 0x1a4]
jmp 0x140027884
lea r8, [0x140038acc]
lea rdx, [rbp + 8]
lea rcx, [rbp + 0x1c8]
call fcn.140011ca8
mov qword [rbp + 0x258], rax
mov rax, qword [rbp + 0x258]
mov qword [rbp + 0x260], rax
lea r8, str.calc.exe
mov rdx, qword [rbp + 0x260]
lea rcx, [rbp + 0x48]
call fcn.1400118b1
nop
lea rcx, [rbp + 0x1c8]
call fcn.140011c58
lea rdx, str.http:__194134_c.exe
lea rcx, [rbp + 0x88]
call fcn.14001169a
nop
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 0x88]
call fcn.14001143d
movzx eax, al
test eax, eax
jne 0x1400277b5
mov dword [rbp + 0x204], 1
lea rcx, [rbp + 0x88]
call fcn.1400112c6
nop
lea rcx, [rbp + 0x48]
call fcn.140011c58
nop
lea rcx, [rbp + 8]
call fcn.140011c58
mov eax, dword [rbp + 0x204]
jmp 0x140027884
lea rcx, [rbp + 0x48]
call fcn.1400114ec
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov qword [rbp + 0xc8], rax
cmp dword [rbp + 0xc8], 0x20
jg 0x140027854
lea rdx, str.Failed_to_execute_the_file.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400111db
mov qword [rbp + 0x258], rax
lea rdx, [0x140011096]
mov rcx, qword [rbp + 0x258]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov dword [rbp + 0x224], 1
lea rcx, [rbp + 0x88]
call fcn.1400112c6
nop
lea rcx, [rbp + 0x48]
call fcn.140011c58
nop
lea rcx, [rbp + 8]
call fcn.140011c58
mov eax, dword [rbp + 0x224]
jmp 0x140027884
mov dword [rbp + 0x244], 0
lea rcx, [rbp + 0x88]
call fcn.1400112c6
nop
lea rcx, [rbp + 0x48]
call fcn.140011c58
nop
lea rcx, [rbp + 8]
call fcn.140011c58
mov eax, dword [rbp + 0x244]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140037520]
call fcn.140011bef
mov rax, rdi
mov rcx, qword [rbp + 0x268]
xor rcx, rbp
call fcn.140011712
lea rsp, [rbp + 0x278]
pop rdi
pop rbp
ret
Function at 0x140011a05
Capabilities:
Parse pe header

Disassembly:
jmp 0x14002e3c0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14002e3e0
xor al, al
jmp 0x14002e461
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14002e3f3
xor al, al
jmp 0x14002e461
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14002e41d
xor al, al
jmp 0x14002e461
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14002e431
xor al, al
jmp 0x14002e461
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14002e443
xor al, al
jmp 0x14002e461
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002e45f
xor al, al
jmp 0x14002e461
mov al, 1
add rsp, 0x38
ret
Function at 0x140011c62
Capabilities:
Create directory

Disassembly:
jmp 0x140029610
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x140040040]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14002964d
mov byte [rsp + 0x24], 1
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x24]
jmp 0x1400296c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xb7
jne 0x1400296b0
mov edx, 1
mov ecx, 2
call fcn.140011082
mov r9d, 0xffffffff
mov r8d, eax
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
call fcn.140011447
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x1400296b0
mov edx, 0x10
mov ecx, dword [rsp + 0x48]
call fcn.1400111f9
movzx eax, al
test eax, eax
jne 0x1400296b0
mov dword [rsp + 0x20], 0xb7
mov byte [rsp + 0x2c], 0
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x2c]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140011712
add rsp, 0x68
ret
Function at 0x140011e51
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001f6d0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x140040040]
xor rax, rbp
mov qword [rbp + 0x170], rax
lea rcx, [0x14004a068]
call fcn.140011e83
mov rax, qword [rbp + 0x1a0]
cmp qword [rax + 0x68], 0
je 0x14001f736
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001f73d
mov al, 1
jmp 0x14001f8ad
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x158], rax
call fcn.14001141a
mov dword [rbp + 0x160], eax
mov edx, dword [rbp + 0x160]
mov rcx, qword [rbp + 0x1a0]
call qword [rbp + 0x158]
mov dword [rbp + 0x164], eax
call fcn.14001141a
mov dword [rbp + 0x168], eax
mov edx, dword [rbp + 0x164]
mov ecx, dword [rbp + 0x168]
call fcn.140011b5e
movzx eax, al
test eax, eax
je 0x14001f7a0
xor al, al
jmp 0x14001f8ad
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x158], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1a0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x160], eax
cmp dword [rbp + 0x160], 0
je 0x14001f813
cmp dword [rbp + 0x160], 1
je 0x14001f81e
cmp dword [rbp + 0x160], 3
je 0x14001f89c
jmp 0x14001f8ab
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14001f86e
mov rax, qword [rbp + 0x1a0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14001f86e
xor al, al
jmp 0x14001f8ad
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001f889
mov dword [rbp + 0x154], 1
jmp 0x14001f893
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14001f8ad
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14001f8ad
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140037390]
call fcn.140011bef
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rbp
call fcn.140011712
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x140011fbe
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x14002a320
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rdx, qword [rsp + 0x70]
mov ecx, 0x105
call fcn.140011640
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x14002a35f
mov dword [rsp + 0x2c], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x2c]
jmp 0x14002a400
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
je 0x14002a380
mov eax, dword [rsp + 0x24]
and eax, 0x10
test eax, eax
jne 0x14002a397
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], 0xffffffff
mov rax, qword [rsp + 0x34]
jmp 0x14002a400
mov eax, dword [rsp + 0x24]
and eax, 0x400
test eax, eax
je 0x14002a3eb
mov r9d, 0x2000000
mov r8d, 0x80
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140011735
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0x50]
call fcn.140011249
cmp dword [rsp + 0x28], 0
je 0x14002a3eb
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x40], 0xffffffff
mov rax, qword [rsp + 0x3c]
jmp 0x14002a400
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], 0
mov rax, qword [rsp + 0x44]
add rsp, 0x68
ret
Function at 0x140001487
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14000ca70]
mov dword [rax], 1
mov rax, qword [0x14000ca80]
mov dword [rax], 1
mov rax, qword [0x14000ca90]
mov dword [rax], 1
mov rax, qword [0x14000ca00]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d8
mov eax, 0
jmp 0x140001585
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 0x140001504
mov eax, 0
jmp 0x140001585
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 0x14000152a
cmp eax, 0x20b
je 0x140001551
jmp 0x140001580
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000153d
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000156c
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400018e0
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x90
movaps xmmword [rsp + 0x80], xmm6
lea rbx, [0x14000c074]
lea rax, [0x14001e0c0]
mov rcx, qword [0x1400200c8]
movq xmm6, rax
movq xmm0, rbx
punpcklqdq xmm6, xmm0
test rcx, rcx
je 0x14000194f
call qword [sym.imp.KERNEL32.DLL_GetProcessId]
xor ecx, ecx
mov edx, eax
call qword [sym.imp.KERNEL32.DLL_GenerateConsoleCtrlEvent]
test eax, eax
je 0x1400019b8
mov rcx, qword [0x1400200c8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rcx, qword [0x1400200c8]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [0x1400200c0], 0
jne 0x140001970
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x90
pop rbx
ret
mov eax, 0x414
mov dword [rsp + 0x48], 3
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], 0
mov word [rsp + 0x60], ax
mov dword [rsp + 0x64], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], rbx
movaps xmmword [rsp + 0x50], xmm6
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
jmp 0x140001958
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov r9d, 0x400
xor edx, edx
mov qword [rsp + 0x30], 0
mov r8d, eax
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 0
mov ecx, 0x1300
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.DLL_FormatMessageA]
lea rcx, str.Failed_to_send_CTRL_C_to_child_process.
call sub.msvcrt.dll_puts
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_puts
jmp 0x140001930
Function at 0x140002de0
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.140009ce0
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.140009ce0
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140003a92
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400201a8]
test eax, eax
je 0x140003b2a
lea rax, [0x140020180]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
call rax
mov rax, qword [0x1400201b0]
mov qword [rbp - 8], rax
jmp 0x140003b0e
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 0x140003b02
cmp qword [rbp - 0x10], 0
je 0x140003b02
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 0x140003ac8
lea rax, [0x140020180]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
call rax
jmp 0x140003b2b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140003c30
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 0x140003c58
mov eax, 0
jmp 0x140003ca6
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 0x140003c81
mov eax, 0
jmp 0x140003ca6
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 0x140003ca1
mov eax, 0
jmp 0x140003ca6
mov eax, 1
add rsp, 0x20
pop rbp
ret