joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140118740
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rax, qword [0x1402be168]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, rdx
mov rdi, rcx
mov rcx, qword [rcx]
xor ebp, ebp
test rcx, rcx
je 0x14011877e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], rbp
mov word [rdi + 8], bp
mov qword [rsp + 0x28], rbp
lea rcx, [rsp + 0x28]
call fcn.1400f84c0
nop
mov rbx, qword [rsp + 0x28]
cmp qword [rbx], 0
lea rcx, [rbx + 0x10]
jne 0x1401187a4
mov rcx, rbp
cmp qword [rsi + 0x10], 0
je 0x1401187b7
cmp qword [rsi + 0x18], 8
jb 0x1401187ba
mov rsi, qword [rsi]
jmp 0x1401187ba
mov rsi, rbp
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rdi], rax
test rax, rax
je 0x1401187de
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1401187de
mov byte [rdi + 9], 1
cmp qword [rdi], 0
setne sil
mov rdi, qword [rbx]
test rdi, rdi
je 0x140118805
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], rbp
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140118818
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx + 8], rbp
mov edx, 0x58
mov rcx, rbx
call fcn.140183134
mov qword [rsp + 0x28], rbp
movzx eax, sil
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401836e0
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x14011b050
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x90
mov qword [r11 - 0x50], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x1402be168]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rdx
mov rbx, rcx
mov rdx, qword [rcx]
test rdx, rdx
je 0x14011b167
cmp byte [rdx + 0x78], 0
je 0x14011b167
add rdx, 0x28
lea rcx, [r11 - 0x48]
call fcn.14010e400
nop
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.1400be120
nop
mov rsi, qword [rsp + 0x70]
lea rdi, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rdi, qword [rsp + 0x60]
mov rcx, qword [rbx]
cmp qword [rcx + 0x18], 8
jb 0x14011b0db
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14011b152
mov dword [rsp + 0x40], 0
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, esi
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x60]
call fcn.1400093b0
nop
lea rcx, [rsp + 0x50]
call fcn.14010e460
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401836e0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14014de00
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x14014deb5
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x14014de81
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14014dea0
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14014dea0
mov rdx, qword [rdi]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rdi + 8], 0
je 0x14014dea0
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp byte [0x1402c0c38], 0
jne 0x14014df00
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14014def0
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402c0c30], rax
mov byte [0x1402c0c38], 1
jmp 0x14014df07
mov rax, qword [0x1402c0c30]
mov byte [0x1402c0c38], 1
jmp 0x14014df07
mov rax, qword [0x1402c0c30]
mov rcx, qword [rbx]
mov rdx, rsi
test rax, rax
je 0x14014de8a
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp rax
Function at 0x14014ecb0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1402be168]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor ebp, ebp
mov rsi, rdx
mov qword [rsp + 0x48], rbp
mov r8, rdx
mov dword [rsp + 0x50], ebp
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov qword [rsp + 0x58], rbp
lea rcx, [rsp + 0x48]
call fcn.14014e510
mov ebx, eax
test eax, eax
jne 0x14014edc7
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14014eda1
nop dword [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.14014ecb0
mov ebx, eax
test eax, eax
jne 0x14014edc7
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14014ed50
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14014edb6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov rdx, rsi
mov dword [rsp + 0x50], ebp
mov rcx, rdi
call fcn.14014de00
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14014edd7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401836e0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x14014f2e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x1402be168]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14014f36e
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14014f36e
call fcn.14014db40
mov ebx, eax
jmp 0x14014f493
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14014f38f
call fcn.14014db40
jmp 0x14014f482
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x14014f3b2
call fcn.14014db40
jmp 0x14014f482
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x14014f3d4
mov ebx, 0x8007000e
jmp 0x14014f484
mov ecx, eax
test eax, eax
je 0x14014f409
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x14014f4cb
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14014f409
lea rcx, [rsp + 0x70]
call fcn.14014da20
jmp 0x14014f413
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x14014f426
cmp qword [rsp + 0x70], 0
jne 0x14014f435
mov ebx, 0x8007000e
jmp 0x14014f484
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x14014f45f
call fcn.14014db40
jmp 0x14014f482
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.14014ee00
mov ebx, eax
test rdi, rdi
je 0x14014f493
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14014f4aa
lea rcx, [rsp + 0x70]
call fcn.14014df90
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1401836e0
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.14014db70
int3
Function at 0x140187130
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
lea r14, [rcx + 0x370]
mov r15, rdx
cmp qword [r14 + 0x18], 8
mov rsi, rcx
jb 0x140187167
mov r14, qword [r14]
mov edi, dword [rcx + 0x390]
mov ebx, dword [rcx + 0x38]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movups xmm0, xmmword [rsi + 0x28]
mov dword [rbp - 0x5c], eax
lea r9, [rsp + 0x40]
lea rax, [rsi + 0x5c]
mov dword [rbp - 0x58], ebx
xor ebx, ebx
mov qword [rbp - 0x50], rax
lea rax, [rsi + 0x60]
mov qword [rsp + 0x30], rbx
mov qword [rbp - 0x48], rax
lea rdx, [rbp - 0x60]
lea rax, [rsi + 0x68]
mov dword [rbp - 0x60], 1
mov qword [rbp - 0x40], rax
lea r8d, [rbx + 0x60]
xor eax, eax
mov qword [rbp - 0x28], rbx
mov qword [rsp + 0x68], rax
mov rcx, r15
mov qword [rsp + 0x70], rax
lea rax, [rbp + 0x80]
movups xmmword [rbp - 0x38], xmm0
mov qword [rsp + 0x28], rax
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x60
movdqa xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r14
mov dword [rbp - 8], edi
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], ebx
movdqa xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x78], rbx
movdqa xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rbx
mov dword [rbp - 0x68], ebx
mov dword [rbp + 0x80], ebx
call qword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x1401872c8
cmp dword [rsp + 0x40], 2
jne 0x1401872c8
cmp dword [rsp + 0x44], ebx
je 0x1401872c8
cmp qword [rsp + 0x78], rbx
je 0x1401872c8
cmp qword [rbp - 0x80], rbx
je 0x1401872c8
cmp qword [rbp - 0x78], rbx
je 0x1401872c8
xor eax, eax
mov qword [rbp + 4], rbx
xorps xmm0, xmm0
mov qword [rbp + 0x20], rax
lea r9, [rbp + 0x80]
movdqa xmmword [rbp + 0x10], xmm0
lea r8d, [rbx + 0x60]
mov qword [rbp + 0x28], rax
lea rdx, [rbp]
mov qword [rbp + 0x30], rax
mov rcx, r15
movdqa xmmword [rbp + 0x40], xmm0
mov qword [rbp + 0x38], rbx
mov qword [rbp + 0x50], rbx
mov dword [rbp + 0x58], ebx
mov dword [rbp], 3
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1401872c8
mov rax, qword [rsp + 0x78]
mov qword [rsi + 0x40], rax
mov rax, qword [rbp - 0x80]
mov qword [rsi + 0x48], rax
mov rax, qword [rbp - 0x78]
mov qword [rsi + 0x50], rax
mov eax, dword [rsp + 0x44]
mov dword [rsi + 0x58], eax
mov al, 1
jmp 0x1401872ca
xor al, al
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1401d2054
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401d1d1c
Function at 0x1401dc9e8
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1401dc610
call fcn.1401960b0
mov dword [rax], 0x16
call fcn.140195efc
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401dc5f8
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1401dc5f8
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1401dc642
lock or dword [rax + 0x14], 0x10
jmp 0x1401dc5f8
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1401dc65f
mov rcx, qword [rbp + 0x10]
call fcn.1401dea4c
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1401d9044
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1401da034
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1401dc6b6
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1401dc5f8
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1401dc722
mov rcx, qword [rbp + 0x10]
call fcn.1401d9044
cmp eax, 0xffffffff
je 0x1401dc709
mov rcx, qword [rbp + 0x10]
call fcn.1401d9044
cmp eax, 0xfffffffe
je 0x1401dc709
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1401d9044
movsxd rdi, eax
lea rsi, [0x1402c2840]
mov rcx, rbx
sar rdi, 6
call fcn.1401d9044
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1401dc710
lea rax, [0x1402be510]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401dc722
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1401dc758
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1401dc754
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1401dc754
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1401dc5fb
jmp 0x1401dc5c8
Function at 0x14007c914
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1400b8cd0
mov rax, rcx
neg rcx
test rax, 7
je 0x1400b8ced
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1400b8d48
test al, 7
jne 0x1400b8ce0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1400b8d01
mov rdx, qword [rax - 8]
test dl, dl
je 0x1400b8d72
test dh, dh
je 0x1400b8d6c
shr rdx, 0x10
test dl, dl
je 0x1400b8d66
test dh, dh
je 0x1400b8d60
shr rdx, 0x10
test dl, dl
je 0x1400b8d5a
test dh, dh
je 0x1400b8d54
shr edx, 0x10
test dl, dl
je 0x1400b8d4e
test dh, dh
jne 0x1400b8d01
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x14007cb30
Capabilities:
Parse pe header

Disassembly:
jmp 0x14008da10
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rcx, [0x1401cd0f7]
call fcn.14007e7b9
cmp qword [rbp + 0x160], 0
jne 0x14008da3d
xor eax, eax
jmp 0x14008daa1
mov rax, qword [rbp + 0x160]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14008da5a
xor eax, eax
jmp 0x14008daa1
mov dword [rbp + 0x24], 0x400
mov rax, qword [rbp + 8]
mov eax, dword [rax + 0x3c]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0x400
jle 0x14008da78
xor eax, eax
jmp 0x14008daa1
movsxd rax, dword [rbp + 0x44]
mov rcx, qword [rbp + 0x160]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
cmp dword [rax], 0x4550
je 0x14008da9d
xor eax, eax
jmp 0x14008daa1
mov rax, qword [rbp + 0x68]
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x14007cb49
Capabilities:
Read file on windows
Write file on windows

Disassembly:
jmp 0x14008f550
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x718
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x12a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x738]
mov rax, qword [0x1401ba040]
xor rax, rbp
mov qword [rbp + 0x6d8], rax
lea rcx, [0x1401cd1d0]
call fcn.14007e7b9
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rbp + 0x718]
mov rcx, qword [rbp + 0x700]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp + 0x444], 0
jmp 0x14008f5e3
mov eax, dword [rbp + 0x424]
mov ecx, dword [rbp + 0x444]
add ecx, eax
mov eax, ecx
mov dword [rbp + 0x444], eax
mov eax, dword [rbp + 0x710]
cmp dword [rbp + 0x444], eax
jge 0x14008f6d5
mov dword [rbp + 0x464], 0x400
mov eax, dword [rbp + 0x444]
add eax, 0x400
cmp eax, dword [rbp + 0x710]
jle 0x14008f639
mov r8d, 0x400
xor edx, edx
lea rcx, [rbp + 0x10]
call fcn.14007d972
mov eax, dword [rbp + 0x444]
mov ecx, dword [rbp + 0x710]
sub ecx, eax
mov eax, ecx
mov dword [rbp + 0x464], eax
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x424]
mov r8d, dword [rbp + 0x464]
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x700]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rbp + 0x484], 0
jmp 0x14008f67b
mov eax, dword [rbp + 0x484]
inc eax
mov dword [rbp + 0x484], eax
mov eax, dword [rbp + 0x464]
cmp dword [rbp + 0x484], eax
jge 0x14008f6a8
movsxd rax, dword [rbp + 0x484]
movsx eax, byte [rbp + rax + 0x10]
sub eax, dword [rbp + 0x720]
movsxd rcx, dword [rbp + 0x484]
mov byte [rbp + rcx + 0x10], al
jmp 0x14008f66d
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x424]
mov r8d, dword [rbp + 0x464]
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x708]
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14008f5cd
lea rcx, [rbp - 0x30]
lea rdx, [0x140184270]
call fcn.14007ddd7
mov rcx, qword [rbp + 0x6d8]
xor rcx, rbp
call fcn.14007cb17
lea rsp, [rbp + 0x6e8]
pop rdi
pop rbp
ret

Function at 0x14007ccb6
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400b58f0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400b5270
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400b592f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401ce020]
jmp 0x1400b5939
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x14007ce37
Capabilities:
Query environment variable

Disassembly:
jmp 0x140149350
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140149180
lea rcx, [rsp + 0x40]
call fcn.140149300
movzx eax, al
test eax, eax
jne 0x140149398
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1401491b0
mov rax, qword [rsp + 0x70]
jmp 0x140149569
lea rcx, [rsp + 0x40]
call fcn.1401492d0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140149270
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.1401492d0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.14007d9cc
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14014943e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1401491b0
mov rax, qword [rsp + 0x80]
jmp 0x140149569
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.14007cba3
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14007ca45
lea rcx, [rsp + 0x48]
call fcn.14007c685
movzx eax, al
test eax, eax
jne 0x1401494a5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.14007b861
lea rcx, [rsp + 0x40]
call fcn.1401491b0
mov rax, qword [rsp + 0x88]
jmp 0x140149569
lea rcx, [rsp + 0x48]
call fcn.14007d17f
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1401492d0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.14007d9cc
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14014953b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.14007b861
lea rcx, [rsp + 0x40]
call fcn.1401491b0
mov rax, qword [rsp + 0xa0]
jmp 0x140149569
lea rcx, [rsp + 0x48]
call fcn.14007ca18
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.14007b861
lea rcx, [rsp + 0x40]
call fcn.1401491b0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x14007ce4b
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1400b5820
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.1400b51f0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400b5861
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401ce020]
jmp 0x1400b5867
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x14007cec8
Capabilities:
Get geographical location

Disassembly:
jmp 0x140131250
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.140130180
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1401312b7
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1401ce030]
jmp 0x1401312d9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.14007c617
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x14007cedc
Capabilities:
Terminate process

Disassembly:
jmp 0x1400937c0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x14007d125
Capabilities:
Print debug messages

Disassembly:
jmp 0x14015abf0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1401ba040]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14015ac16
jmp 0x14015ac93
mov rcx, qword [rbp + 0x30]
call fcn.14007c914
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14015ac2f
jmp 0x14015ac93
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14015ac4c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14007b9d3
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.14007be42
test eax, eax
jne 0x14015ac93
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.14007cb17
lea rsp, [rbp + 0x20]
pop rbp
ret