joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002f120
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
xor esi, esi
call fcn.140001830
mov ebx, eax
test eax, eax
jne 0x14002f205
mov rcx, qword [r14]
lea rdx, [0x1400016a0]
xor r8d, r8d
call fcn.1400019d0
mov ebx, eax
test eax, eax
jne 0x14002f205
mov rcx, qword [r14]
lea rdx, [0x1400460b0]
xor r8d, r8d
call fcn.140001a50
mov ebx, eax
test eax, eax
jne 0x14002f205
mov esi, reloc.OLEAUT32.dll_SafeArrayGetDim
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
mov rdi, rax
sete bl
test rax, rax
je 0x14002f201
xorps xmm0, xmm0
mov qword [rsp + 0x48], 0
lea r9d, [rsi - 0xf]
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rsp + 0x48]
xor edx, edx
movups xmmword [rax], xmm0
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14002f201
mov rcx, qword [rsp + 0x48]
mov r8, rdi
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x14002f201
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [r14]
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
call fcn.140001ab0
mov ebx, eax
test ebx, ebx
je 0x14002f211
mov rcx, r14
call fcn.140001960
test esi, esi
je 0x14002f21e
mov r8d, esi
xor edx, edx
mov rcx, rdi
call fcn.14003a050
test rdi, rdi
je 0x14002f22c
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14002f7a0
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14004b2a8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
xor edi, edi
mov qword [rcx], rdi
mov qword [rcx + 8], rdi
lea ecx, [rdi + 0x18]
call fcn.140038c74
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rbx], rax
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
lea ecx, [rdi + 0x18]
call fcn.140038c74
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rbx + 0x10], rax
lea rdx, str.HKEY_CURRENT_USERSoftwareAdobeAdobe_AcrobatDC
mov rcx, rbx
call fcn.140030320
lea rdx, str.HKEY_CURRENT_USERSoftwareAdobeAcrobat_ReaderDC
mov rcx, rbx
call fcn.140030320
lea rdx, str.HKEY_CURRENT_USERSoftwareAdobeAdobe_SynchronizerDC
mov rcx, rbx
call fcn.140030320
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x30]
call fcn.14003a050
xor r9d, r9d
lea r8d, [rdi + 0x1a]
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x14002f878
lea r8, str.AdobeAcrobatDC
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14002ffd0
xor r9d, r9d
lea r8d, [r9 + 0x1c]
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x14002f8b4
lea r8, str.AdobeAcrobatDC
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14002ffd0
xor r9d, r9d
lea r8d, [r9 + 0x1a]
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x14002f8f0
lea r8, str.AdobeLinguisticsDictionaries
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14002ffd0
lea rdx, str.SOFTWAREPoliciesAdobeAdobe_AcrobatDCFeatureLockDown
mov rcx, rbx
call fcn.1400300f0
lea rdx, str.SOFTWAREPoliciesAdobeAcrobat_ReaderDCFeatureLockDown
mov rcx, rbx
call fcn.1400300f0
nop
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140039070
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x1400300f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
lea rbp, [rsp - 0x770]
sub rsp, 0x870
mov rax, qword [0x14004b2a8]
xor rax, rsp
mov qword [rbp + 0x760], rax
mov rbx, rcx
lea rax, [rsp + 0x40]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400302f2
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x890], rdi
lea rdx, str.cAllowedRegistryPaths
mov dword [rsp + 0x30], 0x400
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edi, edi
test eax, eax
jne 0x140030213
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.tWhiteList
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140030208
mov eax, dword [rsp + 0x30]
add rax, rax
cmp rax, 0x800
jae 0x140030318
lea r8, [rsp + 0x38]
mov word [rsp + rax + 0x60], di
lea rdx, [0x14003d9f0]
mov qword [rsp + 0x38], rdi
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
mov rdx, rax
mov rcx, rbx
call fcn.140030320
lea r8, [rsp + 0x38]
xor ecx, ecx
lea rdx, [0x14003d9f0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
test rax, rax
jne 0x1400301e4
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.cAllowedFolderPaths
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400302df
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.tWhiteList
lea rax, [rsp + 0x60]
mov dword [rsp + 0x30], 0x400
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400302d4
mov eax, dword [rsp + 0x30]
add rax, rax
cmp rax, 0x800
jae 0x140030312
lea r8, [rsp + 0x38]
mov word [rsp + rax + 0x60], di
lea rdx, [0x14003d9f0]
mov qword [rsp + 0x38], rdi
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
nop dword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.14002ffd0
lea r8, [rsp + 0x38]
xor ecx, ecx
lea rdx, [0x14003d9f0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
test rax, rax
jne 0x1400302b0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x890]
mov rcx, qword [rbp + 0x760]
xor rcx, rsp
call fcn.140039070
mov rbx, qword [rsp + 0x898]
add rsp, 0x870
pop rbp
ret
call fcn.140039434
int3
call fcn.140039434
int3
Function at 0x140034a6c
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x60
xor r9d, r9d
mov rbx, rcx
xor edx, edx
xor ecx, ecx
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx + 8], eax
cmp eax, 0xffffffff
je 0x140034aaa
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rax, rbx
add rsp, 0x60
pop rbx
ret
lea rdx, str.unable_to_create_tls_index
lea rcx, [rsp + 0x20]
call fcn.140030f6c
lea rdx, [0x140043f50]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140034b1c
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rcx
mov ecx, dword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140034b56
add dword [rax], 0xffffffff
jne 0x140034b50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rbx + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140034b79
add rsp, 0x60
pop rbx
ret
lea rdx, str.likely_unbalanced_enter_exit_monitor_pair__extra_exit_
lea rcx, [rsp + 0x20]
call fcn.140030f6c
lea rdx, [0x140043f50]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.unable_to_set_tls_value
lea rcx, [rsp + 0x20]
call fcn.140030f6c
lea rdx, [0x140043f50]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140034b9c
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [rcx + 8]
mov ecx, dword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140034bb9
cmp dword [rax], 0
jne 0x140034bc3
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, rbx
call fcn.140034c84
inc dword [rax]
add rsp, 0x20
pop rbx
ret

Function at 0x140034bd4
Capabilities:
Get thread local storage value

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x140034be0
push rbx
sub rsp, 0x60
mov rbx, rcx
mov ecx, dword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140034c27
cmp dword [rax], 0
jbe 0x140034c27
mov rcx, rbx
call fcn.140034b1c
mov ecx, dword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140034c17
cmp dword [rax], 0
jne 0x140034c21
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x60
pop rbx
ret
lea rdx, str.must_own_monitor_prior_to_calling_exit__
lea rcx, [rsp + 0x20]
call fcn.140030f6c
lea rdx, [0x140043f50]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140034be0
Capabilities:
Get thread local storage value

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x140034be0
push rbx
sub rsp, 0x60
mov rbx, rcx
mov ecx, dword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140034c27
cmp dword [rax], 0
jbe 0x140034c27
mov rcx, rbx
call fcn.140034b1c
mov ecx, dword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140034c17
cmp dword [rax], 0
jne 0x140034c21
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x60
pop rbx
ret
lea rdx, str.must_own_monitor_prior_to_calling_exit__
lea rcx, [rsp + 0x20]
call fcn.140030f6c
lea rdx, [0x140043f50]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140034c84
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rdi, rcx
mov ecx, dword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140034cc9
lea edx, [rax + 4]
lea ecx, [rax + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140034cd7
and dword [rax], 0
mov rdx, rax
mov ecx, dword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140034cfa
mov rax, rbx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
lea rdx, str.unable_to_create_tls_data
lea rcx, [rsp + 0x20]
call fcn.140030f6c
lea rdx, [0x140043f50]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.unable_to_set_tls_value
lea rcx, [rsp + 0x20]
call fcn.140030f6c
lea rdx, [0x140043f50]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x1400351c0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x1400351e3
call fcn.140037bf0
and qword [rbx + 8], 0
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1400380e0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140032444
xor ebx, ebx
cmp qword [rdi + 8], rbx
je 0x14003811e
mov rcx, rdi
call fcn.140032444
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14003811e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
setne bl
mov eax, ebx
jmp 0x140038120
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140037ed8
Capabilities:
Get disk information

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, 0x20
mov rbx, rcx
xor esi, esi
call fcn.140032444
cmp qword [rbx + 8], rsi
je 0x1400380c2
mov rcx, rbx
call fcn.140032444
lea r14d, [rsi + 1]
cmp qword [rbx + 8], r14
jne 0x140037f35
xor edx, edx
mov rcx, rbx
call fcn.140031280
cmp ax, 0x2f
je 0x140037f2d
cmp ax, 0x5c
jne 0x140037f35
mov eax, r14d
jmp 0x1400380c4
mov rcx, rbx
call fcn.140032444
cmp qword [rbx + 8], 3
mov edi, 2
jne 0x140037fa6
xor edx, edx
mov rcx, rbx
call fcn.140031280
movzx ecx, ax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswalpha]
test eax, eax
je 0x140037fa6
mov rdx, r14
mov rcx, rbx
call fcn.140031280
cmp ax, 0x3a
jne 0x140037fa6
mov edx, edi
mov rcx, rbx
call fcn.140031280
cmp ax, 0x2f
je 0x140037f87
cmp ax, 0x5c
jne 0x140037fa6
mov rcx, rbx
call fcn.140032444
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, r14d
seta sil
mov eax, esi
jmp 0x1400380c4
mov rcx, rbx
call fcn.140032444
cmp qword [rbx + 8], rdi
jbe 0x140037f9f
xor edx, edx
mov rcx, rbx
call fcn.140031280
cmp ax, 0x2f
je 0x140037fca
cmp ax, 0x5c
jne 0x140037f9f
mov rdx, r14
mov rcx, rbx
call fcn.140031280
cmp ax, 0x2f
je 0x140037fe1
cmp ax, 0x5c
jne 0x140037f9f
mov rdx, rdi
mov rcx, rbx
call fcn.140031280
cmp ax, 0x2f
je 0x1400380c2
cmp ax, 0x5c
je 0x1400380c2
mov rcx, rbx
add edi, r14d
call fcn.140032444
mov ebp, edi
cmp rbp, qword [rbx + 8]
jae 0x140038029
mov edx, ebp
mov rcx, rbx
call fcn.140031280
cmp ax, 0x2f
je 0x140038029
cmp ax, 0x5c
jne 0x140038000
mov rcx, rbx
call fcn.140032444
cmp qword [rbx + 8], rbp
je 0x1400380c2
mov rcx, rbx
add edi, r14d
call fcn.140032444
mov edx, edi
cmp qword [rbx + 8], rdx
je 0x1400380c2
mov rcx, rbx
call fcn.140031280
cmp ax, 0x2f
je 0x1400380c2
cmp ax, 0x5c
je 0x1400380c2
mov rcx, rbx
add edi, r14d
call fcn.140032444
mov ebp, edi
cmp rbp, qword [rbx + 8]
jae 0x14003808b
mov edx, ebp
mov rcx, rbx
call fcn.140031280
cmp ax, 0x2f
je 0x14003808b
cmp ax, 0x5c
jne 0x140038062
mov rcx, rbx
call fcn.140032444
lea ecx, [rdi + 1]
cmp qword [rbx + 8], rcx
ja 0x1400380c2
mov rcx, rbx
call fcn.140032444
cmp qword [rbx + 8], rbp
jne 0x140037f87
movzx edx, word [0x14004b298]
mov rcx, rbx
call fcn.140031758
jmp 0x140037f87
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400380e0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x1400351e3
call fcn.140037bf0
and qword [rbx + 8], 0
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1400380e0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140032444
xor ebx, ebx
cmp qword [rdi + 8], rbx
je 0x14003811e
mov rcx, rdi
call fcn.140032444
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14003811e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
setne bl
mov eax, ebx
jmp 0x140038120
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140038ae8
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
and dword [rbp - 0x60], 0
and qword [rbp - 0x58], 0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x40], xmm1
call fcn.140032444
cmp qword [rdi + 8], 0
je 0x140038bfd
mov rcx, rdi
call fcn.140032444
mov rsi, rax
movzx edx, word [0x14004b298]
mov rcx, rdi
call fcn.140032078
test eax, eax
je 0x140038be3
mov rcx, rdi
call fcn.140032444
mov r9, qword [rdi + 8]
dec r9
xor r8d, r8d
lea rdx, [rbp - 0x30]
mov rcx, rdi
call fcn.140032840
nop
or r8, 0xffffffffffffffff
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.1400318f0
nop
mov rcx, qword [rbp - 0x10]
and qword [rbp - 0x10], 0
test rcx, rcx
je 0x140038ba1
call fcn.140038cb0
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140038ba1
mov edx, 2
call fcn.140038cb0
mov rcx, qword [rbp - 0x20]
and qword [rbp - 0x20], 0
test rcx, rcx
je 0x140038bc7
call fcn.140038cb0
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140038bc7
mov edx, 1
call fcn.140038cb0
lea rcx, [rbp - 0x60]
call fcn.140032444
cmp qword [rbp - 0x58], 0
je 0x140038bfd
lea rcx, [rbp - 0x60]
call fcn.140032444
mov rsi, rax
test rsi, rsi
je 0x140038bfd
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor edi, edi
test eax, eax
sete dil
jmp 0x140038c02
mov edi, 1
mov rcx, qword [rbp - 0x40]
and qword [rbp - 0x40], 0
test rcx, rcx
je 0x140038c28
call fcn.140038cb0
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140038c28
mov edx, 2
call fcn.140038cb0
mov rcx, qword [rbp - 0x50]
and qword [rbp - 0x50], 0
test rcx, rcx
je 0x140038c4e
call fcn.140038cb0
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140038c4e
mov edx, 1
call fcn.140038cb0
mov eax, edi
lea r11, [rsp + 0x80]
mov rsi, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x1400054d0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1400054e0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call sym._amsg_exit
jmp 0x14000123c
mov rax, qword [0x1400054e0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400054e0]
mov dword [rax], 1
mov rax, qword [0x140005520]
mov rdx, rax
mov rax, qword [0x140005510]
mov rcx, rax
call sym._initterm
jmp 0x14000123c
mov dword [0x14000a024], 1
mov rax, qword [0x1400054e0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x140005500]
mov rdx, rax
mov rax, qword [0x1400054f0]
mov rcx, rax
call sym._initterm
mov rax, qword [0x1400054e0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x1400054d0]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x140005420]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x140005420]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call sym._pei386_runtime_relocator
mov rax, qword [sym._gnu_exception_handler]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x1400054c0]
mov qword [rdx], rax
lea rax, [sym.__mingw_invalidParameterHandler]
mov rcx, rax
call sym._set_invalid_parameter_handler
call sym._fpreset
mov eax, dword [0x14000a004]
lea rdx, [0x14000a008]
mov ecx, eax
call sym.duplicate_ppstrings
call sym.__main
mov rax, qword [0x140005450]
mov rax, qword [rax]
mov rdx, qword [0x14000a010]
mov qword [rax], rdx
mov rcx, qword [0x14000a010]
mov rdx, qword [0x14000a008]
mov eax, dword [0x14000a004]
mov r8, rcx
mov ecx, eax
call dbg.main
mov dword [0x14000a01c], eax
mov eax, dword [0x14000a020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14000a01c]
mov ecx, eax
call sym.exit
mov eax, dword [0x14000a024]
test eax, eax
jne 0x14000136c
call sym._cexit
mov eax, dword [0x14000a01c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005480]
mov dword [rax], 1
mov rax, qword [0x140005490]
mov dword [rax], 1
mov rax, qword [0x1400054a0]
mov dword [rax], 1
mov rax, qword [0x140005440]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
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 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001b00
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x1400027d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000a168]
test eax, eax
je 0x14000286a
lea rax, [0x14000a140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000a170]
mov qword [rbp - 8], rax
jmp 0x14000284e
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 0x140002842
cmp qword [rbp - 0x10], 0
je 0x140002842
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 0x140002808
lea rax, [0x14000a140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000286b
nop
add rsp, 0x30
pop rbp
ret