joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400021c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140008008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400021ed
xor eax, eax
jmp 0x140002359
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002227
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002227
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140002359
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000234c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000226a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
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 0x140002295
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 0x140002351
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 0x140002304
sub eax, 1
je 0x140002304
cmp eax, 2
jne 0x14000234c
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 0x140002351
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002332
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 0x14000234c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002351
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003460
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002560
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140008008]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002633
cmp byte [rcx + 0x71], 0
je 0x140002633
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000262f
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 0x1400025f4
sub eax, 1
je 0x1400025f8
cmp eax, 2
jne 0x14000262f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003460
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002626
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 0x14000262f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400025dc
xor al, al
jmp 0x1400025dc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003460
add rsp, 0x60
pop rbx
ret
Function at 0x140002b00
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push r12
push r14
push r15
sub rsp, 0x28
cmp byte [rcx + 8], 0
mov r12, r8
mov r14d, r9d
mov rbx, rcx
mov r15d, edx
jne 0x140002cb7
mov edx, dword [rcx + 0x10]
mov r8d, 0x3000
mov qword [rsp + 0x50], rbp
xor ecx, ecx
mov qword [rsp + 0x58], rsi
add edx, r14d
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x20], r13
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, dword [rbx + 0x10]
mov r13, rax
mov ebp, dword [rbx + 0xc]
add esi, r14d
mov ecx, eax
test r15d, r15d
je 0x140002bbf
test r13d, r13d
jne 0x140002b74
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
jmp 0x140002bb9
test rbp, rbp
je 0x140002b8b
cmp rsi, r15
jb 0x140002b8b
mov r8, r15
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcpy
jmp 0x140002bbf
mov r8, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
test rbp, rbp
jne 0x140002ba8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
jmp 0x140002bb9
cmp rsi, r15
jae 0x140002bbf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov esi, dword [rbx + 0x10]
lea ebp, [r15 + r13]
sub esi, r15d
mov ecx, ebp
add esi, r14d
test r14d, r14d
je 0x140002c30
test ebp, ebp
jne 0x140002be5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
jmp 0x140002c2a
test r12, r12
je 0x140002bfc
cmp rsi, r14
jb 0x140002bfc
mov r8, r14
mov rdx, r12
call sub.VCRUNTIME140.dll_memcpy
jmp 0x140002c30
mov r8, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
test r12, r12
jne 0x140002c19
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
jmp 0x140002c2a
cmp rsi, r14
jae 0x140002c30
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov edx, dword [rbx + 0xc]
lea eax, [r14 + rbp]
mov r8d, dword [rbx + 0x10]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
lea edx, [r15 + rdx]
mov ecx, eax
sub r8d, r15d
je 0x140002c7c
test eax, eax
je 0x140002c6a
test rdx, rdx
je 0x140002c65
call sub.VCRUNTIME140.dll_memcpy
jmp 0x140002c7c
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov r8d, dword [rbx + 0x10]
xor edx, edx
mov ecx, dword [rbx + 0xc]
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [rbx + 0xc]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
add dword [rbx + 0x10], r14d
mov eax, r13d
mov dword [rbx + 0xc], r13d
mov r13, qword [rsp + 0x20]
add rsp, 0x28
pop r15
pop r14
pop r12
pop rbx
ret
xor eax, eax
add rsp, 0x28
pop r15
pop r14
pop r12
pop rbx
ret
Function at 0x140002eb0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x140008008]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor edi, edi
mov rbx, rcx
cmp byte [rcx + 8], dil
jne 0x140002ede
mov edx, dword [rcx + 0xc]
jmp 0x140002ee0
mov edx, edi
lea rcx, str.Loaded_PE_File_at:__t0x_X_n
call fcn.140001020
cmp byte [rbx + 8], dil
jne 0x140002ef7
mov edx, dword [rbx + 0x10]
jmp 0x140002ef9
mov edx, edi
lea rcx, str.Size:__t_t_t0x_X_n
call fcn.140001020
mov word [rsp + 0x20], 0x5a4d
mov word [rsp + 0x24], 0x4550
cmp byte [rbx + 8], dil
jne 0x140002f24
mov eax, dword [rbx + 0xc]
mov ecx, dword [rax + 0x3c]
add ecx, dword [rbx + 0xc]
jmp 0x140002f26
mov ecx, edi
movzx eax, word [rsp + 0x20]
cmp ax, word [rbx + 0xc]
je 0x140002f3c
cmp word [rsp + 0x24], cx
je 0x140002f3c
mov al, 1
jmp 0x140002f3e
xor al, al
test al, al
lea rcx, str.True
lea rdx, str.False
cmovne rdx, rcx
lea rcx, str.Valid_PE_File:__t_t_s_n
call fcn.140001020
cmp byte [rbx + 8], dil
jne 0x140002f7d
mov eax, dword [rbx + 0xc]
mov ecx, dword [rax + 0x3c]
add ecx, dword [rbx + 0xc]
movzx ecx, word [rcx + 6]
lea eax, [rcx + rcx*4]
lea edx, [rax*8 - 0x28]
jmp 0x140002f7f
mov edx, edi
lea rcx, str.Sectiontable_Size:__t0x_X_n
call fcn.140001020
cmp byte [rbx + 8], dil
jne 0x140002fa0
mov eax, dword [rbx + 0xc]
mov ecx, dword [rax + 0x3c]
add ecx, dword [rbx + 0xc]
movzx ecx, word [rcx + 6]
jmp 0x140002fa3
mov rcx, rdi
mov eax, 0x28
mov rsi, 0xffffffffffffffff
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.1400034c4
cmp byte [rbx + 8], dil
jne 0x140003010
mov ecx, dword [rbx + 0xc]
mov eax, 0x28
mov edx, dword [rcx + 0x3c]
add edx, dword [rbx + 0xc]
movzx edx, word [rdx + 6]
mul rdx
cmovo rax, rsi
mov rcx, rax
call fcn.1400034c4
cmp byte [rbx + 8], dil
jne 0x14000300a
mov eax, dword [rbx + 0xc]
mov edx, dword [rax + 0x3c]
mov eax, dword [rbx + 0xc]
add edx, dword [rbx + 0xc]
mov ecx, dword [rax + 0x3c]
add ecx, dword [rbx + 0xc]
lea eax, [rdx + 0x18]
movzx ecx, word [rcx + 0x14]
add eax, ecx
mov esi, eax
jmp 0x140003013
mov eax, edi
mov esi, eax
jmp 0x140003013
mov rsi, rdi
mov rcx, rbx
call fcn.140002ae0
test eax, eax
je 0x140003047
nop
movsxd rax, edi
mov edx, edi
lea rcx, [rax + rax*4]
lea r8, [rsi + rcx*8]
lea rcx, str.Section__d:__t_t_s_n
call fcn.140001020
mov rcx, rbx
inc edi
call fcn.140002ae0
cmp edi, eax
jb 0x140003020
lea rcx, [0x140005714]
call fcn.140001020
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140003460
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140001ff0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
mov rax, qword [0x14000f0e0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r8d, 0x40
lea rdx, [rsp + 0x20]
lea rcx, str._MSI_TEST
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140002052
movzx eax, word [rsp + 0x20]
lea rdx, [rsp + 0x20]
test eax, eax
je 0x140002050
mov ecx, dword [0x14000fbb0]
and eax, 0x1f
lea rdx, [rdx + 2]
bts ecx, eax
movzx eax, word [rdx]
test eax, eax
jne 0x140002039
mov dword [0x14000fbb0], ecx
mov al, 1
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140008d90
add rsp, 0xb8
ret
Function at 0x1400051fc
Capabilities:
Check os version

Disassembly:
sub rsp, 0x38
call qword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x140005247
cmp al, 6
jb 0x140005247
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005247
lea rdx, str.HeapSetInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140005247
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [0x14000a618]
add rsp, 0x38
ret
Function at 0x140008644
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x240
mov rax, qword [0x14000f0e0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20a
call sub.msvcrt.dll_memset
xor r15d, r15d
mov r12d, 0x5c
test rbx, rbx
je 0x1400086c8
cmp word [rbx], r15w
je 0x1400086c8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jl 0x1400086c8
cmp word [rbx], 0x7f
jae 0x1400086b7
cmp word [rbx + 2], 0x3a
je 0x1400087b2
cmp word [rbx], r12w
jne 0x1400086c8
cmp word [rbx + 2], r12w
je 0x1400087b2
cmp byte [0x1400100da], r15b
mov ebp, r15d
jne 0x140008749
cmp byte [0x14000fdc4], r15b
je 0x140008749
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r14, rax
test rax, rax
je 0x1400087b2
lea rdx, str.GetSystemWow64DirectoryW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, 0x105
test rax, rax
jne 0x14000871b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, r15d
jmp 0x140008734
mov edx, esi
lea rcx, [rsp + 0x20]
call qword [0x14000a618]
mov edi, eax
test eax, eax
jne 0x140008736
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14000875d
mov esi, 0x105
lea rcx, [rsp + 0x20]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, eax
test edi, edi
je 0x1400087b2
lea ecx, [rdi + 2]
cmp ecx, esi
ja 0x1400087b2
mov ecx, edi
lea eax, [rdi + 1]
mov r8, rbx
mov rdx, rsi
mov word [rsp + rcx*2 + 0x20], r12w
lea rcx, [rsp + 0x20]
mov word [rsp + rax*2 + 0x20], r15w
call fcn.14000118c
test eax, eax
js 0x1400087b2
lea r8, str..DLL
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.14000118c
test eax, eax
js 0x1400087b2
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x1400087b4
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140008d90
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x1400091e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000922c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140009224
cmp dword [rcx + 0x3c], edx
jl 0x140009224
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140009224
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000922c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1400047e4
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400128b8]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea r14, str.en_US
mov rsi, rcx
mov qword [rcx], r14
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov word [rsp + 0x30], ax
mov ebx, 0x10
mov r9d, ebx
lea rdx, [0x140008110]
lea rax, [0x140004df0]
mov r8d, 0x1b3
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call sub.api_ms_win_crt_private_l1_1_0.dll__o_bsearch
xor ebp, ebp
test rax, rax
jne 0x14000485f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400048e5
cmp dword [rax + 0xc], 0x7c
jne 0x14000486c
cmp word [rax + 8], 0x7f
jne 0x14000484f
mov r8, qword [rax]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r8 + rcx*2], bp
jne 0x140004873
inc rcx
cmp rcx, 0x7ffffffe
jbe 0x140004890
mov word [rsp + 0x38], bp
jmp 0x1400048d7
lea rax, [rsp + 0x38]
mov r9d, ebp
sub r8, rax
lea rdx, [rsp + 0x38]
lea rax, [rbx - 0x10]
add rax, rcx
je 0x1400048c0
movzx eax, word [r8 + rdx]
test ax, ax
je 0x1400048c0
mov word [rdx], ax
add rdx, 2
sub rbx, 1
jne 0x1400048a0
test rbx, rbx
jne 0x1400048cf
sub rdx, 2
mov r9d, 0x8007007a
mov word [rdx], bp
test r9d, r9d
jns 0x1400048e1
mov ecx, 0x7a
jmp 0x140004854
test ecx, ecx
jne 0x1400048f1
mov rcx, qword [rsp + 0x78]
call fcn.14000494c
jmp 0x14000492a
mov rbx, rbp
mov rdi, rbp
mov rdx, qword [rdi + r14]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
je 0x14000491c
inc rbx
add rdi, 0x30
cmp rdi, 0x750
jb 0x1400048f7
jmp 0x14000492a
lea rax, [rbx + rbx*2]
shl rax, 4
add rax, r14
mov qword [rsi], rax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400050e0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140005104
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140012e60], eax
call fcn.1400056f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140012e60], 0
jne case.default.0x14000515a
mov ecx, 1
call fcn.1400056f0
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]
mov word [rdi], fs
invalid
Function at 0x140002ce0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140008ed0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140008ed0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002d50
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000f0a4]
mov rbx, rcx
test esi, esi
jle 0x140002e80
mov rax, qword [0x14000f0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002d9b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002e25
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002d80
mov rcx, rbx
call fcn.1400037a0
mov rdi, rax
test rax, rax
je 0x140002ea2
mov rax, qword [0x14000f0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400038e0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000f0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002e87
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002e1e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002e30
add dword [0x14000f0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000f0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002e1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002ce0
nop dword [rax]
xor esi, esi
jmp 0x140002da8
mov rax, qword [0x14000f0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002ce0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002ce0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003410
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000f100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000f0e0]
test rbx, rbx
je 0x14000346c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003463
test rsi, rsi
je 0x140003463
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003448
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400037a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000bd40]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400037c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400037c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400037c0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000381d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003814
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400037c0
add rax, 0x28
cmp rax, r9
jne 0x140003800
xor eax, eax
ret

Function at 0x140003820
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000bd40]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000383f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003848
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000383f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400038e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000bd40]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400038ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003908
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140007580
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x2040
call fcn.14000bc90
sub rsp, rax
mov rax, qword [0x14003e018]
xor rax, rsp
mov qword [rsp + 0x2030], rax
mov rbx, rdx
mov qword [rsp + 0x2078], rbp
lea rdx, [0x14002b834]
mov rbp, r8
call fcn.140003f80
mov r9, rbx
mov qword [rsp + 0x28], rbp
lea r8, str._s_c_s
mov dword [rsp + 0x20], 0x5c
mov edx, 0x1000
lea rcx, [rsp + 0x30]
mov rdi, rax
call fcn.140001e90
cmp eax, 0x1000
jl 0x1400075f6
xor esi, esi
mov ebx, esi
jmp 0x1400076ac
lea rcx, [rsp + 0x30]
call fcn.140003f10
xor esi, esi
cmp eax, 1
jne 0x140007684
mov eax, dword [0x14003e004]
cmp eax, 0xffffffff
jne 0x140007653
lea rcx, str.PYINSTALLER_STRICT_UNPACK_MODE
call fcn.140007b40
mov r8, rax
test rax, rax
je 0x14000766d
movzx edx, byte [rax]
sub edx, 0x30
jne 0x140007638
movzx edx, byte [rax + 1]
movzx ecx, sil
sub edx, ecx
mov eax, esi
test edx, edx
mov rcx, r8
setne al
mov dword [0x14003e004], eax
call fcn.140014e3c
mov eax, dword [0x14003e004]
test eax, eax
je 0x140007673
lea rdx, [rsp + 0x30]
lea rcx, str.ERROR:_file_already_exists_but_should_not:__s_n
call fcn.140002bf0
mov rbx, rsi
jmp 0x1400076ac
mov dword [0x14003e004], esi
lea rdx, [rsp + 0x30]
lea rcx, str.WARNING:_file_already_exists_but_should_not:__s_n
call fcn.140002bf0
mov rdx, rbp
mov rcx, rbx
call fcn.1400077a0
test eax, eax
jns 0x140007698
mov rbx, rsi
jmp 0x1400076ac
lea rdx, [0x14002dc5c]
lea rcx, [rsp + 0x30]
call fcn.140003f80
mov rbx, rax
mov rbp, qword [rsp + 0x2078]
test rdi, rdi
je 0x140007769
mov rcx, rdi
test rbx, rbx
je 0x140007771
call fcn.140010250
test eax, eax
jne 0x140007755
nop word [rax + rax]
mov r9, rdi
lea rcx, [rsp + 0x1030]
mov edx, 1
mov r8d, 0x1000
call fcn.140010508
test rax, rax
jne 0x140007711
mov rcx, rdi
call fcn.14001027c
test eax, eax
je 0x14000773a
mov rcx, rdi
jmp 0x14000774b
mov r9, rbx
lea rcx, [rsp + 0x1030]
mov r8, rax
mov edx, 1
call fcn.140010c14
test rax, rax
je 0x140007748
mov rcx, rbx
call fcn.14001027c
test eax, eax
jne 0x140007748
mov rcx, rdi
call fcn.140010250
test eax, eax
je 0x1400076e0
jmp 0x140007755
mov rcx, rbx
call fcn.14001886c
mov esi, 0xffffffff
mov rcx, rdi
call fcn.1400101b8
mov rcx, rbx
call fcn.1400101b8
mov eax, esi
jmp 0x14000777b
test rbx, rbx
je 0x140007776
mov rcx, rbx
call fcn.1400101b8
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x2030]
xor rcx, rsp
call fcn.14000bcf0
add rsp, 0x2040
pop rdi
pop rsi
pop rbx
ret