joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007120
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400196b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140007140
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140007148
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140007140
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140007195
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 0x14000718c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140007140
add rax, 0x28
cmp rax, r9
jne 0x140007178
xor eax, eax
ret

Function at 0x1400071a0
Capabilities:
Parse pe header

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

Function at 0x140007250
Capabilities:
Parse pe header

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

Function at 0x140008a40
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x140019760]
mov rax, qword [rsi]
test rax, rax
je 0x140008ad0
cmp qword [rax + 0x30], 0
jne 0x140008af0
lea rbx, [0x140017248]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140008aa0
cmp qword [rax + 0x30], 0
jne 0x140008ac0
lea rdx, [0x140017248]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x1400162e0
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14000d940
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140008a82
test rax, rax
jne 0x140008ac0
call fcn.14000d940
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140008a90
call fcn.14000d940
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140008a60
test rax, rax
jne 0x140008af0
call fcn.14000d940
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140008a6b
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x140008b00
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 0x140008c12
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140008bea
add rax, 1
cmp rax, 0x6b
je 0x140008c07
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140008be0
cmp edx, 0x6a
je 0x140008c07
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 0x140008bfb
Function at 0x140009620
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 [0x140019760]
mov rax, qword [rsi]
test rax, rax
je 0x140009810
cmp qword [rax + 0x28], 0
jne 0x1400097f8
lea rcx, [0x14001c3c8]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x140009805
call fcn.140008c30
mov rax, qword [rsi]
test rax, rax
je 0x1400096a0
cmp qword [rax + 0x30], 0
jne 0x1400096c0
lea rdx, [0x140017248]
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 0x1400096d4
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.14000d940
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140009670
test rax, rax
jne 0x1400096c0
call fcn.14000d940
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 0x14000968e
call fcn.140008770
cmp qword [0x14001f050], 0
mov rbx, rax
je 0x14000968e
test rax, rax
je 0x14000968e
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.14000f7e0
cmp eax, 1
je 0x14000987d
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 0x1400162e6
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 0x140009858
cmp qword [rax + 0x30], 0
je 0x140009840
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400162e6
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 0x14000965c
mov rax, qword [rsi]
jmp 0x140009669
call fcn.14000d940
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x140009648
test rax, rax
jne 0x1400097f8
call fcn.14000d940
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x14000965c
jmp 0x140009661
lea rdx, [0x140017248]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x1400097ce
call fcn.14000d940
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140009840
test rax, rax
jne 0x1400097ca
call fcn.14000d940
jmp 0x1400097ca
call fcn.140008b00
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [0x140019760]
mov rdx, qword [rax]
lea rax, [0x14001c3d8]
mov qword [rdx + 0x10], rax
ret
Function at 0x14000d7c0
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 0x14000d7e0
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 0x14000d828
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x14000d7d4
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 0x14000d815
Function at 0x14000d940
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x14001c4c0]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x14000d963
lea rax, [0x14001c4c8]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x14000d9ab
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x14000d9a8
lea rax, [0x14001c500]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x14000d9db
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x14000d9d8
xor ecx, ecx
mov byte [0x14001c519], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x14001c522], rdx
lea r8, [0x14001c4c0]
lea rbx, [0x14001c51a]
mov qword [0x14001c532], rdx
mov qword [0x14001c542], rdx
mov qword [0x14001c552], rdx
xor edx, edx
mov qword [0x14001c51a], rax
mov qword [0x14001c52a], rax
mov qword [0x14001c53a], rax
mov qword [0x14001c54a], rax
mov byte [0x14001c55a], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14000dbb6
lea rcx, [0x14001c500]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x14000db01
lea rsi, [0x14001c400]
lea r8, [0x14001c55a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x14000daad
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x14000daa0
lea rcx, [0x14001c500]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x14000dba3
lea rcx, [0x14000d850]
mov qword [0x14001c400], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x14001c400]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x14001c500]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x14001c55a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x14000dbd6
nop dword [rax]
cmp byte [rax], 0x41
jne 0x14000db53
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x14000db40
mov rax, rdx
mov qword [0x14001c400], rax
lea rsi, [0x14001c400]
jmp 0x14000db79
cmp rdx, rsi
je 0x14000dadf
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x14000db70
cmp rdx, rsi
je 0x14000dadf
mov qword [rdx + 8], rsi
lea rcx, [0x14000d850]
call sub.msvcrt.dll__onexit
jmp 0x14000dadf
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.14000d7c0
xor eax, eax
jmp 0x14000daf8
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.14000d7c0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, str.failed_to_get_string_from_atom_n
call fcn.14000d7c0
xor eax, eax
jmp 0x14000db5f
Function at 0x1400037f0
Capabilities:
Encode data using xor

Disassembly:
push rsi
sub rsp, 0x80
xor eax, eax
mov dword [rsp + 0x6c], 0x6669cab2
mov r9d, dword [rsp + 0x6c]
xor r9d, 0x6669cab2
mov r10d, r8d
xor r10d, 0xffffffff
mov dword [rsp + 0x7c], r10d
cmp r8d, r9d
mov qword [rsp + 0x60], rdx
mov dword [rsp + 0x5c], r8d
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x4c], eax
je 0x1400038a4
mov eax, dword [rsp + 0x4c]
lea rcx, [0x1400252c0]
mov edx, eax
and edx, 0xf
mov edx, edx
mov r8d, edx
mov edx, dword [rsp + 0x6c]
xor edx, 0x6669cab3
mov r9, qword [rsp + 0x50]
mov qword [rsp + 0x40], rcx
mov rcx, r9
mov r10, qword [rsp + 0x60]
mov dword [rsp + 0x3c], edx
mov rdx, r10
mov qword [rsp + 0x30], r8
mov r8d, eax
mov r11, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x30]
movzx r9d, byte [r11 + rsi]
mov dword [rsp + 0x2c], eax
call sym.MFC42u.dll_Ordinal_681
mov eax, dword [rsp + 0x2c]
mov r8d, dword [rsp + 0x3c]
add eax, r8d
mov r8d, dword [rsp + 0x5c]
cmp eax, r8d
mov dword [rsp + 0x4c], eax
jne 0x140003832
add rsp, 0x80
pop rsi
ret

Function at 0x140003980
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x48
mov eax, 0x173a69d7
mov edx, 0x4223d576
mov dword [rsp + 0x3c], 0x25b1be8b
sub edx, dword [rsp + 0x3c]
mov dword [rsp + 0x38], edx
mov edx, dword [rsp + 0x38]
add edx, 0x496e9615
mov r8d, dword [rcx + 0x3c]
mov qword [rsp + 0x40], 0x3a880ee1
movsxd r9, r8d
mov r10, rcx
add r10, r9
mov r8d, dword [rcx + r9]
cmp eax, edx
mov qword [rsp + 0x30], r10
mov dword [rsp + 0x2c], r8d
jae 0x1400039f3
xor eax, eax
mov ecx, dword [rsp + 0x2c]
sub ecx, 0x4550
mov edx, eax
mov r8, qword [rsp + 0x30]
cmove rdx, r8
mov rax, rdx
mov dword [rsp + 0x28], ecx
add rsp, 0x48
ret
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, 0x3a59ad19
call rax
xor ecx, ecx
mov eax, ecx
add rsp, 0x48
ret
Function at 0x180003600
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rdx + 0x18], 0x10
mov rbx, rdx
mov qword [rdx + 0x10], 0
jb 0x18000361d
mov rax, qword [rdx]
jmp 0x180003620
mov rax, rdx
mov byte [rax], 0
cmp qword [rcx + 0x18], 0x10
jb 0x18000362d
mov rcx, qword [rcx]
mov rdx, rcx
lea r8, [0x18008bd08]
lea rcx, [rsp + 0x40]
call fcn.1800661cc
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1800037a4
test eax, eax
jne 0x1800037a4
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
lea r8d, [rax + 2]
xor edx, edx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r13
call fcn.180067f50
mov rcx, qword [rsp + 0x40]
call fcn.180066d28
mov rcx, qword [rsp + 0x40]
movsxd rbp, eax
call fcn.180065724
lea rsi, [rbp + 1]
mov rcx, rsi
xor r13d, r13d
call fcn.18000aa10
mov rdi, qword [rbx + 0x10]
mov r12, rax
cmp rdi, rsi
ja 0x1800036dc
cmp qword [rbx + 0x18], rsi
je 0x1800036dc
mov r8b, 1
mov rdx, rsi
mov rcx, rbx
call fcn.180002c00
test al, al
je 0x1800036dc
cmp qword [rbx + 0x18], 0x10
mov qword [rbx + 0x10], rdi
jb 0x1800036d5
mov rax, qword [rbx]
jmp 0x1800036d8
mov rax, rbx
mov byte [rax + rdi], r13b
test r12, r12
je 0x180003778
mov r9, qword [rsp + 0x40]
mov r8, rbp
mov edx, 1
mov rcx, r12
call fcn.180066864
cmp rax, rbp
jne 0x180003713
mov r8, rbp
mov rdx, r12
mov rcx, rbx
call fcn.18000ab90
mov r13d, 1
mov rcx, qword [rsp + 0x40]
call fcn.180068048
test r13d, r13d
je 0x18000376e
cmp qword [rbx + 0x10], rbp
jae 0x18000376e
cmp qword [rbx + 0x18], 0x10
mov qword [rbx + 0x10], 0
jb 0x18000373c
mov rax, qword [rbx]
jmp 0x18000373f
mov rax, rbx
mov byte [rax], 0
test rbp, rbp
je 0x18000376e
mov rdi, r12
mov rsi, rbp
nop dword [rax]
movzx r8d, byte [rdi]
test r8b, r8b
je 0x180003766
mov edx, 1
mov rcx, rbx
call fcn.18000acd0
inc rdi
dec rsi
jne 0x180003750
mov rcx, r12
call fcn.180065418
jmp 0x180003782
mov rcx, qword [rsp + 0x40]
call fcn.180068048
mov r13, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rax, rbp
mov rbp, qword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x180014380
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
mov rax, qword [0x1800ac6c0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, rdx
lea rbx, [rcx + 0x38]
cmp qword [rbx + 0x18], 0x10
jb 0x1800143c1
mov rdx, qword [rbx]
jmp 0x1800143c4
mov rdx, rbx
mov qword [rbp - 1], 0xf
mov qword [rbp - 9], 0
mov byte [rbp - 0x19], 0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp - 0x19]
call fcn.180002a30
cmp qword [rbp - 9], 0
je 0x180014417
lea rcx, [rbp - 0x19]
cmp qword [rbp - 1], 0x10
cmovae rcx, qword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x180014417
test al, 0x10
je 0x18001443e
cmp qword [rbp - 1], 0x10
jb 0x180014427
mov rcx, qword [rbp - 0x19]
call fcn.180064a00
xor r8d, r8d
lea rdx, [0x18008bc7d]
mov rcx, rsi
call fcn.180002a30
jmp 0x1800144fa
cmp qword [rbp - 1], 0x10
jb 0x18001444e
mov rcx, qword [rbp - 0x19]
call fcn.180064a00
lea rdx, [0x1800af740]
cmp qword [0x1800af758], 0x10
cmovae rdx, qword [0x1800af740]
lea rcx, [rbp - 0x29]
call fcn.1800020d0
nop
mov qword [rbp + 0x27], 0xf
mov qword [rbp + 0x1f], 0
mov byte [rbp + 0xf], 0
lea rdx, [rbp + 0xf]
mov rcx, rbx
call fcn.180003600
test rax, rax
je 0x1800144c3
lea r8, [rbp + 0xf]
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x29]
call fcn.180002570
nop
mov rdx, rax
mov rcx, rsi
call fcn.180002820
nop
cmp qword [rbp - 1], 0x10
jb 0x1800144c3
mov rcx, qword [rbp - 0x19]
call fcn.180064a00
nop
cmp qword [rbp + 0x27], 0x10
jb 0x1800144d3
mov rcx, qword [rbp + 0xf]
call fcn.180064a00
mov qword [rbp + 0x27], 0xf
mov qword [rbp + 0x1f], 0
mov byte [rbp + 0xf], 0
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x1800144fa
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov eax, 1
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1800649e0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x180039750
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbx
sub rsp, 0x20
lea rdx, [rsp + 0x30]
mov rbx, rcx
mov byte [rsp + 0x30], 0x20
call fcn.18000cc30
or r8, 0xffffffffffffffff
mov rcx, rbx
lea rdx, [rax + 1]
call fcn.180002b60
lea rdx, [rsp + 0x30]
mov rcx, rbx
mov byte [rsp + 0x30], 0x20
call fcn.18000cb90
xor edx, edx
mov r8, rax
mov rcx, rbx
call fcn.180002b60
lea rdx, [rsp + 0x30]
mov rcx, rbx
mov byte [rsp + 0x30], 0xa
call fcn.18000cc30
or r8, 0xffffffffffffffff
lea rdx, [rax + 1]
mov rcx, rbx
call fcn.180002b60
lea rdx, [rsp + 0x30]
mov rcx, rbx
mov byte [rsp + 0x30], 0xa
call fcn.18000cb90
xor edx, edx
mov r8, rax
mov rcx, rbx
call fcn.180002b60
lea rdx, [rsp + 0x30]
mov rcx, rbx
mov byte [rsp + 0x30], 9
call fcn.18000cc30
or r8, 0xffffffffffffffff
lea rdx, [rax + 1]
mov rcx, rbx
call fcn.180002b60
lea rdx, [rsp + 0x30]
mov rcx, rbx
mov byte [rsp + 0x30], 9
call fcn.18000cb90
xor edx, edx
mov r8, rax
mov rcx, rbx
call fcn.180002b60
lea rdx, [rsp + 0x30]
mov rcx, rbx
mov byte [rsp + 0x30], 9
call fcn.18000cc30
or r8, 0xffffffffffffffff
lea rdx, [rax + 1]
mov rcx, rbx
call fcn.180002b60
lea rdx, [rsp + 0x30]
mov rcx, rbx
mov byte [rsp + 0x30], 9
call fcn.18000cb90
xor edx, edx
mov r8, rax
mov rcx, rbx
call fcn.180002b60
lea rdx, [rsp + 0x30]
mov rcx, rbx
mov byte [rsp + 0x30], 0xd
call fcn.18000cc30
or r8, 0xffffffffffffffff
lea rdx, [rax + 1]
mov rcx, rbx
call fcn.180002b60
lea rdx, [rsp + 0x30]
mov rcx, rbx
mov byte [rsp + 0x30], 0xd
call fcn.18000cb90
xor edx, edx
mov r8, rax
mov rcx, rbx
call fcn.180002b60
mov rax, qword [rbx + 0x10]
add rsp, 0x20
pop rbx
ret
Function at 0x180040680
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
mov rax, qword [0x1800ac6c0]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rbp - 0x40], 0xf
mov qword [rbp - 0x48], 0
mov byte [rbp - 0x58], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rcx
lea rcx, [rbp - 0x58]
call fcn.180002920
cmp qword [rbp - 0x48], 0
je 0x18004070f
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x18004070f
test al, 0x10
je 0x18004070f
cmp qword [rbp - 0x40], 0x10
jb 0x18004075a
mov rcx, qword [rbp - 0x58]
call fcn.180064a00
jmp 0x18004075a
cmp qword [rbp - 0x40], 0x10
jb 0x18004071f
mov rcx, qword [rbp - 0x58]
call fcn.180064a00
lea rcx, [rbp - 0x58]
call fcn.180005660
nop
mov rdx, rax
mov rcx, rbx
call fcn.180002820
nop
cmp qword [rbp - 0x40], 0x10
jb 0x180040745
mov rcx, qword [rbp - 0x58]
call fcn.180064a00
mov r8d, 7
lea rdx, str.config_
mov rcx, rbx
call fcn.18000ab90
mov qword [rbp - 0x18], 0xf
mov qword [rbp - 0x20], 0
mov byte [rbp - 0x30], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.180002920
nop
mov r8d, 8
lea rdx, str._log.log
lea rcx, [rbp - 0x30]
call fcn.18000ab90
mov qword [rbp - 0x40], 0xf
mov qword [rbp - 0x48], 0
mov byte [rbp - 0x58], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x58]
call fcn.180002920
mov rdx, rdi
lea rcx, [rbp - 0x58]
call fcn.1800037b0
mov ebx, eax
cmp qword [rbp - 0x18], 0x10
jb 0x1800407e0
mov rcx, qword [rbp - 0x30]
call fcn.180064a00
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1800649e0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x180040c80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
mov rax, qword [0x1800ac6c0]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rbp - 0x40], 0xf
mov qword [rbp - 0x48], 0
mov byte [rbp - 0x58], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rcx
lea rcx, [rbp - 0x58]
call fcn.180002920
cmp qword [rbp - 0x48], 0
je 0x180040d0f
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x180040d0f
test al, 0x10
je 0x180040d0f
cmp qword [rbp - 0x40], 0x10
jb 0x180040d5a
mov rcx, qword [rbp - 0x58]
call fcn.180064a00
jmp 0x180040d5a
cmp qword [rbp - 0x40], 0x10
jb 0x180040d1f
mov rcx, qword [rbp - 0x58]
call fcn.180064a00
lea rcx, [rbp - 0x58]
call fcn.180005660
nop
mov rdx, rax
mov rcx, rbx
call fcn.180002820
nop
cmp qword [rbp - 0x40], 0x10
jb 0x180040d45
mov rcx, qword [rbp - 0x58]
call fcn.180064a00
mov r8d, 7
lea rdx, str.config_
mov rcx, rbx
call fcn.18000ab90
mov qword [rbp - 0x18], 0xf
mov qword [rbp - 0x20], 0
mov byte [rbp - 0x30], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.180002920
nop
mov r8d, 0xc
lea rdx, str._log_req.log
lea rcx, [rbp - 0x30]
call fcn.18000ab90
mov qword [rbp - 0x40], 0xf
mov qword [rbp - 0x48], 0
mov byte [rbp - 0x58], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x58]
call fcn.180002920
mov rdx, rdi
lea rcx, [rbp - 0x58]
call fcn.1800037b0
mov ebx, eax
cmp qword [rbp - 0x18], 0x10
jb 0x180040de0
mov rcx, qword [rbp - 0x30]
call fcn.180064a00
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1800649e0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret