joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180023250
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rax, qword [0x1800d24c8]
xor esi, esi
mov rbx, r8
mov r14, rdx
mov ebp, ecx
test rax, rax
jne 0x180023299
xor edx, edx
lea rcx, [0x1800aa300]
call fcn.180025c90
mov qword [0x1800d24c8], rax
test rax, rax
je 0x180023376
cmp qword [0x1800d25f0], rsi
jne 0x1800232c9
lea rdx, [0x1800aa490]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d25f0], rax
test rax, rax
je 0x180023376
mov rax, qword [0x1800d24c8]
cmp qword [0x1800d25f8], rsi
jne 0x1800232f9
lea rdx, [0x1800aa4b0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d25f8], rax
test rax, rax
je 0x180023376
mov rax, qword [0x1800d24c8]
cmp qword [0x1800d2608], rsi
jne 0x180023325
lea rdx, [0x1800aa320]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d2608], rax
test rax, rax
je 0x180023376
mov rax, qword [0x1800d24c8]
cmp qword [0x1800d2600], rsi
jne 0x180023351
lea rdx, [0x1800aa4d0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d2600], rax
test rax, rax
je 0x180023376
mov rax, qword [0x1800d24c8]
cmp qword [0x1800d2618], rsi
jne 0x18002337d
lea rdx, [0x1800aa350]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d2618], rax
test rax, rax
jne 0x18002337d
xor eax, eax
jmp 0x18002341d
mov r9d, 6
mov qword [rsp + 0x30], rdi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [0x1800d25f0]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180023416
xor eax, eax
mov r8, rbx
mov qword [rbx], rax
xor edx, edx
mov qword [rbx + 8], rax
mov rcx, rdi
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov dword [rbx], 0x20
call qword [0x1800d25f8]
test eax, eax
je 0x18002340d
nop word [rax + rax]
mov r8, rbx
mov rdx, rdi
mov ecx, ebp
call fcn.180023ca0
cmp eax, 1
je 0x180023433
xor eax, eax
inc esi
mov qword [rbx], rax
mov r8, rbx
mov qword [rbx + 8], rax
mov edx, esi
mov qword [rbx + 0x10], rax
mov rcx, rdi
mov qword [rbx + 0x18], rax
mov dword [rbx], 0x20
call qword [0x1800d25f8]
test eax, eax
jne 0x1800233d0
mov rcx, rdi
call qword [0x1800d2618]
xor eax, eax
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
mov qword [r14], rdi
mov eax, 1
jmp 0x180023418
Function at 0x1800293c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x1800293c0
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x30
mov rbx, rcx
xor ebp, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x1800295e5
xor edx, edx
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], dx
jne 0x1800293e6
test rax, rax
je 0x180029424
xor ecx, ecx
nop word [rax + rax]
movzx r8d, word [rbx + rcx*2]
cmp r8w, 0x5c
je 0x1800295e5
cmp r8w, 0x2f
je 0x1800295e5
inc edx
mov ecx, edx
cmp rcx, rax
jb 0x180029400
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
call fcn.180003a6c
mov rsi, rax
test rax, rax
je 0x180029515
mov qword [rsp + 0x50], r14
call fcn.180004a7a
mov r14, rax
test rax, rax
je 0x180029502
mov rcx, rsi
call fcn.180022270
test eax, eax
je 0x1800294eb
lea rax, [0x1800aa230]
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x20]
lea rax, [0x1800aa250]
mov qword [rsp + 0x28], rax
nop word [rax + rax]
mov rdx, qword [rdi]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rdx + rbx*2], bp
jne 0x180029497
mov r8, rbx
mov rcx, rsi
call fcn.1800019b5
test eax, eax
je 0x1800294bf
add rdi, 8
lea rax, [rsp + 0x30]
cmp rdi, rax
jb 0x180029490
jmp 0x1800294ce
lea rdx, [rsi + rbx*2]
mov rcx, r14
call fcn.180026a60
mov rbp, rax
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x1800294f9
mov rcx, rsi
call fcn.180022200
test eax, eax
je 0x1800294f9
mov rbp, rsi
xor esi, esi
jmp 0x1800294f9
mov rdx, rsi
mov rcx, r14
call fcn.180026a60
mov rbp, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rsp + 0x50]
jmp 0x1800295b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x1800295ba
mov rcx, rbx
call fcn.180022040
mov rdi, rax
test rax, rax
je 0x1800295ba
mov ecx, 0x37e4
call fcn.1800259e0
test eax, eax
je 0x18002954f
xor ecx, ecx
call fcn.1800039ea
jmp 0x180029554
call fcn.180004a7a
mov rbx, rax
test rax, rax
je 0x1800295a8
mov rdx, rdi
mov rcx, rax
call fcn.180026a60
mov rbp, rax
test rax, rax
je 0x18002959f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180029581
test al, 0x50
je 0x18002959f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x180029594
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ebp, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbp, rbp
je 0x1800295ba
xor ecx, ecx
jmp 0x1800295c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1800295cd
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsp + 0x48]
mov rax, rbp
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rbp
ret
Function at 0x1800296b0
Capabilities:
Get common file path

Disassembly:
jmp 0x1800296b0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov ecx, 0x40
add rdx, rdx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x180029712
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x180029707
cmp edi, eax
jb 0x180029707
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180029bb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x180029bb0
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x40
mov rbx, rcx
mov r14d, r8d
xor ecx, ecx
mov ebp, edx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x180029d19
movzx eax, word [rbx]
cmp ax, 0x5c
je 0x180029c16
cmp ax, 0x2f
je 0x180029c16
movzx ecx, ax
call fcn.18000234c
test eax, eax
je 0x180029d19
cmp word [rbx + 2], 0x3a
jne 0x180029d19
movzx eax, word [rbx + 4]
cmp ax, 0x2f
je 0x180029c16
cmp ax, 0x5c
jne 0x180029d19
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180029cfd
test al, 0x50
jne 0x180029cfd
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov edx, 0x80000000
mov rcx, rbx
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x180029c83
lea ecx, [rax + 0x21]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [rsp + 0x68]
mov rax, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
test r14d, r14d
mov dword [rsp + 0x60], edi
lea rdx, [rsp + 0x60]
mov rcx, rbx
cmove rdx, rdi
call fcn.18000218f
test eax, eax
je 0x180029cb5
test r14d, r14d
je 0x180029cc9
cmp dword [rsp + 0x60], edi
jne 0x180029cc9
mov ecx, 0x80092009
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.180025e20
test eax, eax
je 0x180029ce0
and ebp, 0xffffe8f7
xor edx, edx
mov r8d, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rsi, rsi
je 0x180029c6d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
jmp 0x180029c67
mov ecx, 0x7e
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x70]
mov rax, rdi
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x18004b144
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x18004b144
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea r9, [0x1800b6c68]
xor ecx, ecx
lea r8, [0x1800b6c60]
lea rdx, str.FlsAlloc
call fcn.18004aba4
mov rbx, rax
test rax, rax
je 0x18004b184
mov rcx, rax
call fcn.180002b7b
mov rcx, rdi
call rbx
jmp 0x18004b18a
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18004b218
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x18004b218
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1800b6ca8]
mov ecx, 2
lea r8, [0x1800b6ca0]
lea rdx, str.FlsGetValue
call fcn.18004aba4
mov rdi, rax
test rax, rax
je 0x18004b259
mov rcx, rax
call fcn.180002b7b
mov ecx, ebx
call rdi
jmp 0x18004b261
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18004b284
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x18004b284
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1800b6cc8]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x1800b6cc0]
call fcn.18004aba4
mov rsi, rax
test rax, rax
je 0x18004b2d0
mov rcx, rax
call fcn.180002b7b
mov rdx, rbx
mov ecx, edi
call rsi
jmp 0x18004b2db
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x18009e9c8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r10, [0x1800d3ce0]
mov r14, rdx
mov rax, r15
sar rax, 6
mov rdx, r15
and edx, 0x3f
mov rdi, r15
shl rdx, 6
mov r9, qword [r10 + rax*8]
mov r12, qword [r9 + rdx + 0x28]
test r8, r8
je 0x18009ea2d
cmp byte [r14], 0xa
jne 0x18009ea2d
mov rcx, r15
mov rax, r15
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
or byte [rax + rcx + 0x38], 4
jmp 0x18009ea4e
mov dl, byte [r9 + rdx + 0x38]
mov rcx, rdi
and dl, 0xfb
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rcx + 0x38], dl
lea rbp, [r14 + r8]
mov rsi, r14
mov rbx, r14
cmp r14, rbp
jae 0x18009eba8
mov r13d, 1
mov al, byte [rsi]
cmp al, 0x1a
je 0x18009eb68
cmp al, 0xd
je 0x18009ea82
mov byte [rbx], al
add rbx, r13
add rsi, r13
jmp 0x18009eb5d
lea rax, [rsi + 1]
cmp rax, rbp
jae 0x18009eaa8
cmp byte [rax], 0xa
jne 0x18009ea9a
mov byte [rbx], 0xa
mov eax, 2
jmp 0x18009eaa0
mov byte [rbx], 0xd
mov rax, r13
add rsi, rax
jmp 0x18009eb5a
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, r13d
lea rdx, [rsp + 0x70]
mov rcx, r12
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18009eb50
cmp dword [rsp + 0x78], 0
je 0x18009eb50
mov rcx, rdi
lea r10, [0x1800d3ce0]
and ecx, 0x3f
mov rax, rdi
sar rax, 6
shl rcx, 6
mov rax, qword [r10 + rax*8]
test byte [rax + rcx + 0x38], 0x48
je 0x18009eb20
mov dl, byte [rsp + 0x70]
cmp dl, 0xa
je 0x18009eb2c
mov rcx, rdi
mov byte [rbx], 0xd
mov rax, rdi
and ecx, 0x3f
sar rax, 6
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rcx + 0x3a], dl
jmp 0x18009eb5a
cmp byte [rsp + 0x70], 0xa
jne 0x18009eb31
cmp rbx, r14
jne 0x18009eb31
mov byte [rbx], 0xa
jmp 0x18009eb5a
mov r8d, r13d
or rdx, 0xffffffffffffffff
mov ecx, r15d
call fcn.180004f89
cmp byte [rsp + 0x70], 0xa
lea r10, [0x1800d3ce0]
je 0x18009eb5d
jmp 0x18009eb57
lea r10, [0x1800d3ce0]
mov byte [rbx], 0xd
add rbx, r13
cmp rsi, rbp
jb 0x18009ea67
jmp 0x18009eba8
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r10 + rax*8]
mov dl, byte [rax + rcx + 0x38]
test dl, 0x40
jne 0x18009eba1
mov rax, rdi
or dl, 2
sar rax, 6
and edi, 0x3f
shl rdi, 6
mov rax, qword [r10 + rax*8]
mov byte [rax + rdi + 0x38], dl
jmp 0x18009eba8
mov cl, byte [rsi]
mov byte [rbx], cl
add rbx, r13
sub rbx, r14
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18009ec44
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r11, [0x1800d3ce0]
mov r9, r15
mov rax, r15
sar rax, 6
and r9d, 0x3f
shl r9, 6
mov r14, rdx
mov rdi, r15
mov r10d, 0xa
mov rdx, qword [r11 + rax*8]
mov r12, qword [rdx + r9 + 0x28]
test r8, r8
je 0x18009ecb0
cmp word [r14], r10w
jne 0x18009ecb0
mov rcx, r15
mov rax, r15
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
or byte [rax + rcx + 0x38], 4
jmp 0x18009ecd1
mov dl, byte [rdx + r9 + 0x38]
mov rcx, rdi
and dl, 0xfb
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rcx + 0x38], dl
lea rbp, [r14 + r8*2]
mov rsi, r14
mov rbx, r14
cmp r14, rbp
jae 0x18009eeaa
mov ecx, 0xd
lea r13d, [rcx - 0xb]
movzx eax, word [rsi]
cmp ax, 0x1a
je 0x18009ee68
cmp ax, cx
je 0x18009ed0d
mov word [rbx], ax
add rbx, r13
add rsi, r13
jmp 0x18009ee01
lea rax, [rsi + 2]
cmp rax, rbp
jae 0x18009ed35
cmp word [rax], r10w
jne 0x18009ed27
mov word [rbx], r10w
mov eax, 4
jmp 0x18009ed2d
mov word [rbx], cx
mov rax, r13
add rsi, rax
jmp 0x18009ee4b
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
mov r8d, r13d
lea rdx, [rsp + 0x70]
mov rcx, r12
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18009ee50
cmp dword [rsp + 0x80], 0
je 0x18009ee50
mov rcx, rdi
lea r11, [0x1800d3ce0]
and ecx, 0x3f
mov rax, rdi
sar rax, 6
mov r10d, 0xa
shl rcx, 6
mov rax, qword [r11 + rax*8]
test byte [rax + rcx + 0x38], 0x48
je 0x18009ee0f
movzx eax, word [rsp + 0x70]
cmp ax, r10w
jne 0x18009eda7
mov word [rbx], r10w
jmp 0x18009edf9
mov r8, rdi
mov word [rsp + 0x78], ax
mov r9, rdi
and r8d, 0x3f
sar r9, 6
mov ecx, 0xd
xor edx, edx
mov word [rbx], cx
shl r8, 6
mov rcx, qword [r11 + r9*8]
mov al, byte [rsp + rdx + 0x78]
add rcx, r8
mov byte [rcx + rdx + 0x3a], al
inc rdx
cmp rdx, r13
jl 0x18009edc8
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rcx + 0x3c], r10b
add rbx, r13
mov ecx, 0xd
cmp rsi, rbp
jb 0x18009eced
jmp 0x18009eeaa
cmp word [rsp + 0x70], r10w
jne 0x18009ee1c
cmp rbx, r14
je 0x18009eda1
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180004f89
mov r10d, 0xa
lea r11, [0x1800d3ce0]
cmp word [rsp + 0x70], r10w
je 0x18009edfc
lea ecx, [r10 + 3]
mov word [rbx], cx
add rbx, r13
jmp 0x18009ee01
mov ecx, 0xd
lea r11, [0x1800d3ce0]
mov word [rbx], cx
add rbx, r13
lea r10d, [rcx - 3]
jmp 0x18009ee01
mov rcx, rdi
mov rax, rdi
sar rax, 6
and ecx, 0x3f
shl rcx, 6
mov rax, qword [r11 + rax*8]
mov dl, byte [rax + rcx + 0x38]
test dl, 0x40
jne 0x18009eea1
mov rax, rdi
or dl, r13b
sar rax, 6
and edi, 0x3f
shl rdi, 6
mov rax, qword [r11 + rax*8]
mov byte [rax + rdi + 0x38], dl
jmp 0x18009eeaa
movzx ecx, word [rsi]
mov word [rbx], cx
add rbx, r13
sub rbx, r14
sar rbx, 1
lea rax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800a11f8
Capabilities:
Print debug messages

Disassembly:
jmp 0x1800a11f8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, r8d
mov rbp, rdx
mov rbx, rcx
call fcn.180003256
cmp eax, 2
sete dil
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1800a1245
test rbx, rbx
je 0x1800a1239
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test dil, dil
je 0x1800a127c
mov eax, 4
jmp 0x1800a128b
test dil, dil
je 0x1800a127c
call fcn.1800015f0
test al, al
je 0x1800a127c
call fcn.1800045a2
test al, al
jne 0x1800a1272
bts esi, 0x15
xor ecx, ecx
mov rdx, rbx
mov r8, rbp
mov r9d, esi
call fcn.18000394f
jmp 0x1800a128b
call fcn.1800022a7
mov rcx, rax
jmp 0x1800a1262
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
neg eax
sbb eax, eax
neg eax
add eax, 3
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140002ba0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002bea
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002bea
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002bea
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002bea
cmp dword [rcx + 0x84], 0xe
jbe 0x140002bea
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002bec
xor al, al
add rsp, 0x28
ret
Function at 0x140002020
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000c120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000c100]
test rbx, rbx
je 0x14000207c
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 eax, eax
jne 0x140002073
test rsi, rsi
je 0x140002073
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002058
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 0x14003e000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.14003e0d6
push r9
push r8
push rdx
push rcx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
push rsi
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x14003e037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14003e02d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x14003e0cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x14003e0cb
add rax, rdx
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x20]
add r8, rdx
push rax
jrcxz 0x14003e0ca
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x14003e081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x14003e072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
pop r8
add rax, rdx
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x14003e021
Function at 0x140001f90
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1401387c0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rdx
mov rbx, rcx
mov ecx, 8
call fcn.1400bc930
test rax, rax
je 0x140001fc1
mov qword [rax], rdi
mov qword [rsp + 0x30], rax
lea rdi, [rbx + 8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140002910]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
je 0x14000200e
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400bc910
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rdi], 0
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3

Function at 0x140006a90
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140006af1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140006ab0
mov ecx, dword [r9]
jmp 0x140006bd8
cmp ecx, 0x4e0
jb 0x140006bd8
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140006b10
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140006b60
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x14000bec0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1401387c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000bf96
cmp byte [rcx + 0x71], 0
je 0x14000bf96
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000bf92
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000bf54
sub eax, 1
je 0x14000bf58
cmp eax, 2
jne 0x14000bf92
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400bc910
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000bf89
lfence
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000bf92
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000bf3c
xor al, al
jmp 0x14000bf3c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400bc910
add rsp, 0x60
pop rbx
ret