joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400086e0
Capabilities:
Query environment variable

Disassembly:
push r12
mov eax, 0x4020
call fcn.1400115c0
sub rsp, rax
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
lea r12, [rsp + 0x20]
call fcn.140009c00
mov r8d, 0x2000
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140008728
xor eax, eax
add rsp, 0x4020
pop r12
ret
lea rdx, [rsp + 0x2020]
mov r8d, 0x2000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
xor r8d, r8d
mov rdx, r12
call fcn.140009ae0
mov rcx, rax
test rax, rax
je 0x140008717
cmp byte [rax], 0
je 0x140008717
call sub.msvcrt.dll__strdup
add rsp, 0x4020
pop r12
ret

Function at 0x1400087d0
Capabilities:
Set environment variable

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov rdx, rcx
xor ecx, ecx
call fcn.140009c00
xor edx, edx
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, r12
mov r13d, eax
call sub.msvcrt.dll_free
mov eax, r13d
add rsp, 0x28
pop r12
pop r13
ret
Function at 0x140008b70
Capabilities:
Delete directory
Delete file

Disassembly:
push r15
mov eax, 0x54c8
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1400115c0
sub rsp, rax
mov r8d, 0x1000
lea r15, [rsp + 0x34b0]
mov rdx, rcx
lea r13, [rsp + 0x14a0]
mov rcx, r15
call fcn.140009c00
mov rdx, r15
mov rcx, r13
call sub.msvcrt.dll_wcscpy
mov rcx, r13
call sub.msvcrt.dll_wcslen
mov qword [rsp + 0x20], rax
mov rbx, rax
movzx eax, word [rsp + rax*2 + 0x149e]
cmp ax, 0x2f
je 0x140008bd9
cmp ax, 0x5c
jne 0x140008c20
lea rdx, [0x14002749a]
mov rcx, r13
lea rbp, [rsp + 0x30]
call sub.msvcrt.dll_wcscat
mov rdx, rbp
mov rcx, r13
call fcn.14001bb40
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x140008c40
mov rcx, r15
call qword [sym.imp.msvcrt.dll__wrmdir]
nop
add rsp, 0x54c8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [0x140027496]
mov rcx, r13
add rbx, 1
call sub.msvcrt.dll_wcscat
mov qword [rsp + 0x20], rbx
jmp 0x140008bd9
lea rbx, [rsp + 0x260]
mov ecx, 0x46
mov rsi, rbp
mov rdi, rbx
lea r14, [rsp + 0x284]
lea rdx, [0x14002749e]
rep movsq qword [rdi], qword [rsi]
mov rcx, r14
call sub.msvcrt.dll_wcscmp
mov rdi, qword [rsp + 0x20]
lea rsi, [r13 + rdi*2]
mov qword [rsp + 0x20], rsi
test eax, eax
je 0x140008c97
lea rdx, [0x1400274a2]
mov rcx, r14
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140008da0
lea rax, [rsp + 0x490]
mov qword [rsp + 0x28], rax
nop dword [rax]
mov rdx, rbp
mov rcx, r12
call fcn.14001bc10
test eax, eax
jne 0x140008d50
mov ecx, 0x46
mov rdi, rbx
mov rsi, rbp
rep movsq qword [rdi], qword [rsi]
lea rdx, [0x14002749e]
mov rcx, r14
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140008ca8
lea rdx, [0x1400274a2]
mov rcx, r14
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x140008ca8
mov rax, qword [rsp + 0x20]
xor edx, edx
mov rcx, r13
mov word [rax], dx
mov rdx, r14
call sub.msvcrt.dll_wcscat
mov rcx, r13
test byte [rsp + 0x260], 0x10
je 0x140008d60
call fcn.140009fc0
test eax, eax
jne 0x140008d90
mov rdi, qword [rsp + 0x28]
mov rdx, r13
mov r8d, 0x1000
mov rcx, rdi
call fcn.140009ae0
mov rcx, rdi
call fcn.140008b70
mov rdx, rbp
mov rcx, r12
call fcn.14001bc10
test eax, eax
je 0x140008cbb
nop dword [rax + rax]
mov rcx, r12
call qword [sym.imp.msvcrt.dll__findclose]
jmp 0x140008c01
call qword [sym.imp.msvcrt.dll__wremove]
test eax, eax
je 0x140008ca8
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, r13
call qword [sym.imp.msvcrt.dll__wremove]
jmp 0x140008ca8
mov rcx, r13
call qword [sym.imp.msvcrt.dll__wrmdir]
jmp 0x140008ca8
mov rax, qword [rsp + 0x20]
xor ecx, ecx
mov rdx, r14
mov word [rax], cx
mov rcx, r13
call sub.msvcrt.dll_wcscat
mov rcx, r13
test byte [rsp + 0x260], 0x10
je 0x140008df8
call fcn.140009fc0
test eax, eax
jne 0x140008e1e
lea rsi, [rsp + 0x490]
mov r8d, 0x1000
mov rdx, r13
mov rcx, rsi
call fcn.140009ae0
mov rcx, rsi
call fcn.140008b70
jmp 0x140008c97
mov rsi, qword [sym.imp.msvcrt.dll__wremove]
call rsi
test eax, eax
je 0x140008c97
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, r13
call rsi
jmp 0x140008c97
mov rcx, r13
call qword [sym.imp.msvcrt.dll__wrmdir]
jmp 0x140008c97
Function at 0x140008f40
Capabilities:
Query environment variable

Disassembly:
push r15
mov eax, 0x5030
push r14
push r13
push r12
push rbx
call fcn.1400115c0
sub rsp, rax
lea r8, str._s_c_s
mov qword [rsp + 0x28], rdx
lea r14, [rsp + 0x30]
mov r12, rcx
mov r13, rdx
mov dword [rsp + 0x20], 0x5c
mov r9, rcx
mov edx, 0x1000
mov rcx, r14
call fcn.1400085d0
cmp eax, 0xfff
jg 0x140009000
mov rcx, r14
call fcn.140004520
cmp eax, 1
je 0x140008fd0
mov rdx, r13
mov rcx, r12
call fcn.140008e30
test eax, eax
js 0x140009000
lea rdx, [0x140027539]
mov rcx, r14
call fcn.140004760
add rsp, 0x5030
pop rbx
pop r12
pop r13
pop r14
pop r15
ret
mov ebx, dword [0x140024020]
cmp ebx, 0xffffffff
je 0x140009008
test ebx, ebx
jne 0x140009048
mov rdx, r14
lea rcx, str.WARNING:_file_already_exists_but_should_not:__s_n
call fcn.140002500
mov rdx, r13
mov rcx, r12
call fcn.140008e30
test eax, eax
jns 0x140008fa8
nop dword [rax]
xor eax, eax
jmp 0x140008fb7
xor r8d, r8d
xor ecx, ecx
lea rdx, str.PYINSTALLER_STRICT_UNPACK_MODE
call fcn.140009c00
lea r15, [rsp + 0x1030]
mov r8d, 0x2000
mov rcx, rax
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140009060
mov dword [0x140024020], 0
jmp 0x140008fdf
mov rdx, r14
lea rcx, str.ERROR:_file_already_exists_but_should_not:__s_n
call fcn.140002500
xor eax, eax
jmp 0x140008fb7
lea rdx, [rsp + 0x3030]
mov r8d, 0x2000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
xor r8d, r8d
mov rdx, r15
call fcn.140009ae0
mov rcx, rax
test rax, rax
je 0x140009037
cmp byte [rax], 0
je 0x140009037
call sub.msvcrt.dll__strdup
mov rcx, rax
test rax, rax
je 0x140009037
movzx eax, byte [rax]
sub eax, 0x30
jne 0x1400090aa
movzx eax, byte [rcx + 1]
xor ebx, ebx
test eax, eax
setne bl
mov dword [0x140024020], ebx
call sub.msvcrt.dll_free
jmp 0x140008fdb

Function at 0x1400090d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r14
mov eax, 0x1028
push r13
push r12
push rbx
call fcn.1400115c0
sub rsp, rax
mov r13, rdx
mov r14, r8
lea rdx, [0x14002753c]
call fcn.140004760
mov rcx, r13
mov rdx, r14
mov r12, rax
call fcn.140008f40
mov r13, rax
test r12, r12
je 0x1400091da
test rax, rax
je 0x1400091cd
lea rbx, [rsp + 0x20]
nop
mov rcx, r12
call sub.msvcrt.dll_feof
test eax, eax
jne 0x1400091c8
mov r8d, 0x1000
mov r9, r12
mov edx, 1
mov rcx, rbx
call main
mov r8, rax
test rax, rax
jne 0x140009170
mov rcx, r12
call sub.msvcrt.dll_ferror
test eax, eax
je 0x140009120
mov rcx, r12
mov r14d, 0xffffffff
call sub.msvcrt.dll_clearerr
jmp 0x14000919f
mov r9, r13
mov edx, 1
mov rcx, rbx
call sub.msvcrt.dll_fwrite
test rax, rax
je 0x140009191
mov rcx, r13
call sub.msvcrt.dll_ferror
test eax, eax
je 0x140009120
mov rcx, r13
mov r14d, 0xffffffff
call sub.msvcrt.dll_clearerr
mov rcx, r12
call sub.msvcrt.dll_fclose
mov rcx, r13
call sub.msvcrt.dll_fclose
mov eax, r14d
add rsp, 0x1028
pop rbx
pop r12
pop r13
pop r14
ret
xor r14d, r14d
jmp 0x14000919f
test r12, r12
je 0x1400091da
mov rcx, r12
call sub.msvcrt.dll_fclose
mov r14d, 0xffffffff
test r13, r13
jne 0x1400091a7
jmp 0x1400091af
Function at 0x140009250
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push r12
mov eax, 0x2110
push rbp
push rdi
push rsi
push rbx
call fcn.1400115c0
sub rsp, rax
mov r8d, 0x1000
xor ebx, ebx
lea r12, [rsp + 0x110]
mov rdx, rcx
lea rdi, [rsp + 0xa0]
mov dword [rsp + 0x5c], 0
mov rcx, r12
call fcn.140009c00
mov edx, 1
lea rcx, [0x140008580]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov rcx, rdi
mov dword [rsp + 0x60], 0x18
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x70], 1
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
pxor xmm0, xmm0
mov eax, 1
xor ecx, ecx
movups xmmword [rsp + 0xa8], xmm0
mov rbp, qword [fcn.140023c90]
mov qword [rsp + 0xb8], 0
mov dword [rsp + 0xdc], 0x101
mov word [rsp + 0xe0], ax
call rbp
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov rsi, qword [sym.imp.msvcrt.dll__get_osfhandle]
mov ecx, eax
call rsi
mov ecx, 1
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf0], rax
call rbp
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call rsi
mov ecx, 2
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf8], rax
call rbp
mov rcx, rax
call sub.msvcrt.dll__fileno_1
mov ecx, eax
call rsi
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0x100], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
mov qword [rsp + 0x40], rdi
mov rcx, r12
mov rdx, rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x60]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400093f0
mov rcx, qword [rsp + 0x80]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x80]
lea rdx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x5c]
add rsp, 0x2110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rdx, str.Error_creating_child_process__n
lea rcx, str.CreateProcessW
call fcn.1400025a0
mov eax, 0xffffffff
add rsp, 0x2110
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400095e0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rdi, rcx
mov ecx, 0x2000
mov rsi, rdx
mov rbx, r8
call sub.msvcrt.dll_malloc
mov r12, rax
test rax, rax
je 0x1400096d0
xor edx, edx
mov r8d, 2
mov rcx, rdi
call fcn.14001bf20
test eax, eax
js 0x1400096d0
mov rcx, rdi
call fcn.14001bfd0
movsxd r8, eax
cmp r8, rbx
jb 0x1400096d0
mov r13d, 1
sub r13, rbx
mov qword [rsp + 0x28], r13
cmp r8, 0x2000
mov r14d, 0x2000
cmovae r14, r8
lea rbp, [r14 - 0x2000]
sub r8, rbp
mov r15, r8
cmp rbx, r8
ja 0x1400096d0
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call fcn.14001bf20
test eax, eax
js 0x1400096d0
mov r9, rdi
mov r8, r15
mov edx, 1
mov rcx, r12
call main
cmp rax, r15
jne 0x1400096d0
mov rdx, qword [rsp + 0x28]
lea r15, [rdx + rax]
jmp 0x1400096ba
lea r13, [r15 - 1]
mov r8, rbx
mov rdx, rsi
lea rcx, [r12 + r13]
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x1400096f0
mov r15, r13
test r15, r15
jne 0x1400096a0
lea r8, [rbp + rbx - 1]
test rbp, rbp
jne 0x140009649
nop dword [rax]
xor r13d, r13d
mov rcx, r12
call sub.msvcrt.dll_free
mov rax, r13
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r13, [r14 + r15 - 0x2001]
jmp 0x1400096d3
Function at 0x140009e20
Capabilities:
Create directory

Disassembly:
push r15
mov eax, 0x2068
push r14
push r13
push r12
push rsi
push rbx
call fcn.1400115c0
sub rsp, rax
mov r13, rcx
lea r15, [rsp + 0x40]
mov qword [rsp + 0x40], 0xffffffffffffffff
mov dword [rsp + 0x3c], 0
mov qword [rsp + 0x60], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r15
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140009f20
xor r12d, r12d
lea r14, [rsp + 0x60]
mov rcx, r12
call sub.msvcrt.dll_free
mov rcx, qword [rsp + 0x40]
cmp rcx, 0xffffffffffffffff
je 0x140009e99
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12, qword [rsp + 0x60]
lea r9, str.S_1_3_4
mov edx, 0x1000
mov rcx, r14
lea r8, str.D:_A__FA____s_
test r12, r12
cmovne r9, r12
call qword [sym.imp.msvcrt.dll__snwprintf]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor r9d, r9d
lea r8, [rsp + 0x48]
mov rcx, r14
mov dword [rsp + 0x40], 0x18
mov edx, 1
mov dword [rsp + 0x50], 0
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x140009fb0
mov rdx, r15
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
sete al
movzx eax, al
neg eax
add rsp, 0x2068
pop rbx
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [rsp + 0x3c]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rbx
mov r14, qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edx, 1
call r14
test eax, eax
jne 0x140009f57
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140009e78
mov edx, dword [rsp + 0x3c]
mov ecx, 1
mov rsi, rdx
call sub.msvcrt.dll_calloc
mov rcx, qword [rsp + 0x40]
mov r12, rax
test rax, rax
je 0x140009e78
mov qword [rsp + 0x20], rbx
mov r9d, esi
mov r8, rax
mov edx, 1
call r14
lea r14, [rsp + 0x60]
test eax, eax
je 0x140009e80
mov rcx, qword [r12]
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
jmp 0x140009e80
mov eax, 0xffffffff
jmp 0x140009f0e
Function at 0x1400108f0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.140023c90
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140023c90
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140010960
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x140032394]
mov r12, rcx
test ebx, ebx
jle 0x140010a90
mov rax, qword [0x140032398]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x1400109ac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140010a33
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140010990
mov rcx, r12
call fcn.140011300
mov rsi, rax
test rax, rax
je 0x140010ab2
mov rax, qword [0x140032398]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.140011430
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140032398]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140010a97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140010a2c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140010a40
add dword [0x140032394], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x140032398]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140010a2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400108f0
nop dword [rax]
xor ebx, ebx
jmp 0x1400109b7
mov rax, qword [0x140032398]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400108f0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400108f0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140010f70
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140032400]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400323e0]
test rbx, rbx
je 0x140010fc4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140010fbb
test r12, r12
je 0x140010fbb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140010fa0
lea rcx, [0x140032400]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140011300
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14002b8a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140011320
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140011328
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140011320
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140011375
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14001136c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140011320
add rax, 0x28
cmp rax, r9
jne 0x140011358
xor eax, eax
ret

Function at 0x140011380
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14002b8a0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400113a0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400113a8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400113a0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140011430
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14002b8a0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140011450
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140011458
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140012c20
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14002b940]
mov rax, qword [rsi]
test rax, rax
je 0x140012cb0
cmp qword [rax + 0x30], 0
jne 0x140012cd0
lea rbx, [0x140024088]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140012c80
cmp qword [rax + 0x30], 0
jne 0x140012ca0
lea rdx, [0x140024088]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x140023e50
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140017b20
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140012c62
test rax, rax
jne 0x140012ca0
call fcn.140017b20
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140012c70
call fcn.140017b20
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140012c40
test rax, rax
jne 0x140012cd0
call fcn.140017b20
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140012c4b
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x140012ce0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140012df2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140012dca
add rax, 1
cmp rax, 0x6b
je 0x140012de7
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140012dc0
cmp edx, 0x6a
je 0x140012de7
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x140012ddb
Function at 0x140013800
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, qword [0x14002b940]
mov rax, qword [rsi]
test rax, rax
je 0x1400139f0
cmp qword [rax + 0x28], 0
jne 0x1400139d8
lea rcx, [0x1400324b8]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x1400139e5
call fcn.140012e10
mov rax, qword [rsi]
test rax, rax
je 0x140013880
cmp qword [rax + 0x30], 0
jne 0x1400138a0
lea rdx, [0x140024088]
mov qword [rax + 0x30], rdx
mov rax, rdx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x1400138b4
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140017b20
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140013850
test rax, rax
jne 0x1400138a0
call fcn.140017b20
nop dword [rax]
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
jne 0x14001386e
call fcn.140012950
cmp qword [0x140036050], 0
mov rbx, rax
je 0x14001386e
test rax, rax
je 0x14001386e
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.1400199c0
cmp eax, 1
je 0x140013a5d
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, r12
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140023e56
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [rsi]
test rax, rax
je 0x140013a38
cmp qword [rax + 0x30], 0
je 0x140013a20
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140023e56
mov r12, rbx
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x14001383c
mov rax, qword [rsi]
jmp 0x140013849
call fcn.140017b20
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x140013828
test rax, rax
jne 0x1400139d8
call fcn.140017b20
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x14001383c
jmp 0x140013841
lea rdx, [0x140024088]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x1400139ae
call fcn.140017b20
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140013a20
test rax, rax
jne 0x1400139aa
call fcn.140017b20
jmp 0x1400139aa
call fcn.140012ce0
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [0x14002b940]
mov rdx, qword [rax]
lea rax, [0x1400324c8]
mov qword [rdx + 0x10], rax
ret
Function at 0x1400179a0
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400179c0
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x140017a08
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1400179b4
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400179f5