joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d6330
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 r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x1400d6f62
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14011d788]
test eax, eax
je 0x1400d6ffa
lea rax, [0x14011d760]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14011d790]
mov qword [rbp - 8], rax
jmp 0x1400d6fde
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 0x1400d6fd2
cmp qword [rbp - 0x10], 0
je 0x1400d6fd2
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 0x1400d6f98
lea rax, [0x14011d760]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400d6ffb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400d7100
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400d7128
mov eax, 0
jmp 0x1400d7176
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 0x1400d7151
mov eax, 0
jmp 0x1400d7176
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400d7171
mov eax, 0
jmp 0x1400d7176
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400d717c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400d71fa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400d71f1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400d71f1
mov rax, qword [rbp - 8]
jmp 0x1400d720f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400d71c4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400e2be4
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x1400e2d2e
mov rcx, qword [rbp + 0x10]
call sym.pthread_spin_destroy
cmp eax, 1
jne 0x1400e2d21
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov word [rbp - 8], 0
mov byte [rbp - 6], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.msvcrt.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x1400e2cd7
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x1400e2ced
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x1400e2cd3
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x1400e2d0c
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sym.abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x1400e2d2f
nop
add rsp, 0x90
pop rbp
ret
Function at 0x1400e3d4b
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [sym.imp.KERNEL32.dll_TlsAlloc]
call rax
mov dword [0x1400eed20], eax
mov eax, dword [0x1400eed20]
cmp eax, 0xffffffff
jne 0x1400e3d72
call sym.abort
nop
add rsp, 0x20
pop rbp
ret

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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x14011e210]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x1400eed20]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x1400e3f78
mov rax, qword [rbp - 0x10]
jmp 0x1400e40d8
call sym.pop_pthread_mem
mov qword [rbp - 0x10], rax
mov rax, qword [sym.__dyn_tls_pthread]
test rax, rax
je 0x1400e3f94
cmp qword [rbp - 0x10], 0
jne 0x1400e3f9e
mov eax, 0
jmp 0x1400e40d8
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call sym.replace_spin_keys
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x1400e4079
call sym.abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x1400eed20]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x1400e40d4
call sym.abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x1400e41d2
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call sym.__pthread_self_lite
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x1400e423f
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_longjmp]
call rax
mov eax, dword [0x1400eed20]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x1400e4383
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x1400e42dc
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x1400e4297
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 0x10], 0
mov eax, dword [0x1400eed20]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x1400e4383
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x1400e4316
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x1400e4383
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 0x10], 0
mov eax, dword [0x1400eed20]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x1400e4fc5
Capabilities:
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x14], 0
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
call sym._fpreset
lea rax, [0x1400eed30]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x14011e210]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x1400eed20]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 8]
mov dword [rdx + 0x70], eax
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rdx, rbp
mov rax, qword [rbp - 8]
add rax, 0xd0
mov rcx, rax
call sym._setjmp
test eax, eax
jne 0x1400e50da
mov qword [rbp - 0x10], pe_nt_image_headers64
lea rax, [0x1400eed30]
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x1400e50a8
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov rcx, rax
call rdx
mov qword [rbp - 0x10], rax
nop
nop
lea rax, [0x1400eed30]
mov rcx, rax
call sym.pthread_mutex_lock
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
jmp 0x1400e50e9
lea rax, [0x1400eed30]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov dword [rbp - 0x14], eax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x1400e5125
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x1400e5193
mov rax, qword [rbp - 8]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 8], 0
mov eax, dword [0x1400eed20]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x1400e51dd
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 8]
mov dword [rax + 0xbc], 1
jmp 0x1400e51dd
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, [0x1400eed30]
mov rcx, rax
call sym.pthread_mutex_unlock
test eax, eax
je 0x1400e51cf
mov eax, dword [rbp - 0x14]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x1400062dc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006326
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006326
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006326
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006326
cmp dword [rcx + 0x84], 0xe
jbe 0x140006326
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140006328
xor al, al
add rsp, 0x28
ret
Function at 0x1800033f0
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
lea rcx, [rbp + 0x38]
mov qword [rbp + 0x38], rdi
mov qword [rbp - 8], rdi
mov qword [rbp + 0x30], rdi
mov qword [rbp + 0x28], rdi
mov qword [rbp + 0x20], rdi
call fcn.180007210
mov rdx, qword [rbp + 0x38]
lea rcx, [rbp + 0x30]
call fcn.1800062f0
lea r9, [rbp - 0x10]
lea rcx, [0x1800317a8]
xor r8d, r8d
xor edx, edx
mov qword [rbp - 0x10], rdi
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x180003453
mov rdx, qword [rbp - 0x10]
mov rcx, rbx
call fcn.180005fe0
lea rdx, str.BrightData_
mov rcx, rbx
call fcn.180006100
mov rcx, qword [rbp + 0x30]
or rdx, 0xffffffffffffffff
nop word [rax + rax]
inc rdx
cmp byte [rcx + rdx], dil
jne 0x180003470
lea r8, [rbp + 0x28]
call fcn.180007a90
test eax, eax
jne 0x1800034b8
mov rdx, qword [rbp + 0x28]
lea r8d, [rax + 0x14]
lea rcx, [rbp + 0x20]
call fcn.180007e50
mov rcx, qword [rbp + 0x20]
call fcn.180005ed0
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp - 8]
call fcn.1800061e0
mov rcx, rbx
mov rdx, qword [rax]
call fcn.180006100
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x1800034ca
call fcn.180009cb8
mov qword [rbp + 0x28], rdi
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x1800034dc
call fcn.180009cb8
mov qword [rbp + 0x20], rdi
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x1800034ee
call fcn.180009cb8
mov qword [rbp + 0x30], rdi
lea rcx, [rbp - 8]
call fcn.180005f90
lea rcx, [rbp + 0x38]
call fcn.180005f90
mov rax, rbx
add rsp, 0x30
pop rdi
pop rbx
pop rbp
ret
Function at 0x180003710
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x290
mov rax, qword [0x18003f1b0]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor ebp, ebp
lea rcx, [rsp + 0x28]
mov ebx, ebp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
call fcn.180007210
lea rdx, [0x1800305c0]
lea rcx, [rsp + 0x28]
call fcn.180006100
cmp dword [section..data], ebx
je 0x18000377d
mov rcx, qword [rsp + 0x28]
call fcn.180006e80
test eax, eax
jne 0x18000377d
lea rcx, [rsp + 0x28]
call fcn.1800033f0
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x20]
call fcn.180005fe0
lea rdx, [0x1800305d8]
lea rcx, [rsp + 0x20]
call fcn.180006100
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
mov rsi, rax
cmove rsi, rbp
test rsi, rsi
je 0x1800038d3
mov qword [rsp + 0x2a0], rdi
nop dword [rax]
lea rdx, [0x180030600]
lea rcx, [rsp + 0x5c]
call fcn.1800060d0
test rax, rax
jne 0x180003857
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x20]
call fcn.180005fe0
lea rdx, [0x1800305d4]
lea rcx, [rsp + 0x20]
call fcn.180006100
lea rdx, [rsp + 0x5c]
lea rcx, [rsp + 0x20]
call fcn.180006100
mov edx, 1
lea ecx, [rdx + 0x17]
call fcn.180009c74
mov rdx, qword [rsp + 0x20]
lea rcx, [rax + 0x10]
mov rdi, rax
call fcn.180005fe0
test rbx, rbx
je 0x18000384d
mov rcx, qword [rbx + 8]
mov qword [rdi + 8], rcx
mov qword [rbx + 8], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], rdi
jmp 0x180003854
mov qword [rdi + 8], rdi
mov rbx, rdi
mov qword [rdi], rbp
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1800037d0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
test rbx, rbx
je 0x1800038cb
nop dword [rax + rax]
mov rcx, qword [rbx + 0x10]
call fcn.180009df8
mov rdi, rbx
mov rbx, qword [rbx]
mov rcx, qword [rdi]
test rcx, rcx
je 0x1800038a1
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
jmp 0x1800038ae
test rbx, rbx
je 0x1800038ae
mov rax, qword [rdi + 8]
mov qword [rbx + 8], rax
lea rcx, [rdi + 0x10]
mov qword [rdi], rbp
mov qword [rdi + 8], rbp
call fcn.180005f90
mov rcx, rdi
call fcn.180009cb8
test rbx, rbx
jne 0x180003880
mov rdi, qword [rsp + 0x2a0]
lea rcx, [rsp + 0x20]
call fcn.180005f90
lea rcx, [rsp + 0x28]
call fcn.180005f90
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.180009fa0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rsi
ret
Function at 0x1800039a0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rax, qword [0x180040e08]
test rax, rax
jne 0x180003aeb
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
call fcn.180007210
lea rdx, [0x1800307f8]
lea rcx, [rsp + 0x40]
call fcn.180006100
mov rcx, qword [rsp + 0x40]
call fcn.180006e00
test eax, eax
je 0x180003ac6
mov rcx, qword [rsp + 0x40]
lea rdx, [0x180030814]
call fcn.180006d60
mov qword [rsp + 0x30], rax
test rax, rax
je 0x180003ac6
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x20], rbx
lea r8d, [rdx + 2]
call fcn.180008dc8
mov rcx, qword [rsp + 0x30]
call fcn.180009150
mov rcx, qword [rsp + 0x30]
movsxd rbx, eax
call fcn.1800093c8
cmp ebx, 0x32
jg 0x180003ac1
lea rcx, [rsp + 0x38]
mov edx, ebx
call fcn.180005d20
mov r9, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov r8, rbx
mov edx, 1
call fcn.180008c54
mov rax, qword [rsp + 0x38]
mov byte [rbx + rax], 0
mov rdx, qword [rsp + 0x38]
test rbx, rbx
jle 0x180003ab5
mov r9, rdx
mov r8, rdx
movabs r10, 0x21ffffff80ffd
neg r9
nop dword [rax + rax]
movzx ecx, byte [r8]
lea eax, [rcx - 0x2e]
cmp al, 0x31
ja 0x180003aa1
bt r10, rax
jb 0x180003aa9
sub cl, 0x61
cmp cl, 0x19
ja 0x180003ac1
inc r8
lea rax, [r9 + r8]
cmp rax, rbx
jl 0x180003a90
lea rcx, [0x180040e08]
call fcn.1800061e0
mov rbx, qword [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.180006dd0
lea rcx, [rsp + 0x38]
call fcn.180005d60
lea rcx, [rsp + 0x40]
call fcn.180005f90
mov rax, qword [0x180040e08]
add rsp, 0x28
ret

Function at 0x180003de0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
lea r8, [0x180030910]
movzx edx, dx
mov ebx, r9d
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
jne 0x180003e25
imul eax, ebx, 0x64
inc eax
mov dword [0x180040864], eax
xor eax, eax
jmp 0x180003e83
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x180003e46
imul eax, ebx, 0x64
add eax, 2
mov dword [0x180040864], eax
xor eax, eax
jmp 0x180003e83
mov rcx, rax
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
jne 0x180003e6c
imul eax, ebx, 0x64
add eax, 3
mov dword [0x180040864], eax
xor eax, eax
jmp 0x180003e7e
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [r14], eax
mov rax, rdi
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x180003f70
Capabilities:
Move file
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
imul edi, r9d, 0x64
mov rbx, r8
lea r8, [rbp + 0x38]
lea r9d, [rdi + 1]
or esi, 0xffffffff
mov qword [rbp - 0x10], 0
call fcn.180003de0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov r14, rax
test rax, rax
je 0x1800040ff
lea rcx, [rbp - 0x20]
call fcn.180007210
lea rdx, [0x1800305c0]
lea rcx, [rbp - 0x20]
call fcn.180006100
cmp dword [section..data], 0
je 0x180003ff8
mov rcx, qword [rbp - 0x20]
call fcn.180006e80
test eax, eax
jne 0x180003ff8
lea rcx, [rbp - 0x20]
call fcn.1800033f0
lea rdx, [0x1800305fc]
lea rcx, [rbp - 0x20]
call fcn.180006100
lea rcx, [rbp - 0x20]
mov rdx, rbx
call fcn.180006100
mov rdx, qword [rbp - 0x20]
lea rcx, [rbp - 0x18]
call fcn.180005fe0
lea rdx, [0x180030920]
lea rcx, [rbp - 0x18]
call fcn.180006100
mov rcx, qword [rbp - 0x18]
call fcn.180009df8
mov rcx, qword [rbp - 0x20]
call fcn.180006e00
movsxd rbx, dword [rbp + 0x38]
test eax, eax
je 0x18000409d
mov rcx, qword [rbp - 0x20]
mov r8d, ebx
mov rdx, r14
call fcn.180003ea0
test eax, eax
jne 0x1800040fd
mov rcx, qword [rbp - 0x20]
call fcn.180009df8
mov rcx, qword [rbp - 0x20]
call fcn.180006e00
test eax, eax
je 0x180004085
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
call fcn.180009e00
mov rcx, qword [rbp - 0x20]
call fcn.180006e00
test eax, eax
je 0x18000409d
lea eax, [rdi + 2]
mov dword [0x180040864], eax
jmp 0x1800040ff
mov rcx, qword [rbp - 0x20]
lea rdx, [0x180030930]
call fcn.180006d60
mov qword [rbp - 0x10], rax
test rax, rax
jne 0x1800040da
mov rcx, qword [rbp - 0x20]
lea rdx, [0x180030940]
call fcn.180006d60
mov qword [rbp - 0x10], rax
test rax, rax
jne 0x1800040da
lea eax, [rdi + 3]
mov dword [0x180040864], eax
jmp 0x1800040ff
mov r9, rax
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.180009338
cmp rax, rbx
je 0x1800040fd
lea eax, [rdi + 4]
mov dword [0x180040864], eax
jmp 0x1800040ff
xor esi, esi
lea rcx, [rbp - 0x20]
call fcn.180005f90
lea rcx, [rbp - 0x18]
call fcn.180005f90
lea rcx, [rbp - 0x10]
call fcn.180006dd0
mov rbx, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret