joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18003ddc0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x20
mov rbx, qword [0x18011f1a0]
cmp byte [rbx + 0x3031], 0
jne 0x18003df13
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x18003df0c
lea rdx, [0x1800a7658]
mov qword [rsp + 0x38], rdi
call fcn.180032990
mov rdi, rax
test rax, rax
je 0x18003df07
mov qword [rsp + 0x40], r14
mov rcx, rax
mov qword [rsp + 0x30], rbp
call fcn.18007eb0c
mov r14d, eax
cmp eax, 0xffffffff
je 0x18003def5
xor edx, edx
mov r8d, 2
mov rcx, rdi
call fcn.180077d98
test eax, eax
jne 0x18003def5
mov rcx, rdi
call fcn.18007eb0c
movsxd rbp, eax
cmp ebp, 0xffffffff
je 0x18003def5
xor r8d, r8d
mov edx, r14d
mov rcx, rdi
call fcn.180077d98
test eax, eax
jne 0x18003def5
mov r14, rbp
cmp rbp, 0xffffffffffffffff
je 0x18003def5
mov rax, qword [0x18011f1a0]
test rax, rax
je 0x18003de87
inc dword [rax + 0x3bc]
mov rdx, qword [0x18011f1b0]
mov rcx, r14
call qword [0x18011ac20]
mov rbp, rax
test rax, rax
je 0x18003def5
mov r9, rdi
mov r8, r14
mov edx, 1
mov rcx, rax
call fcn.180077990
mov rcx, rdi
cmp rax, r14
je 0x18003dec1
call fcn.180076d5c
jmp 0x18003ded1
call fcn.180076d5c
mov rdx, r14
mov rcx, rbp
call fcn.180034610
mov rax, qword [0x18011f1a0]
test rax, rax
je 0x18003dee3
dec dword [rax + 0x3bc]
mov rdx, qword [0x18011f1b0]
mov rcx, rbp
call qword [0x18011ac28]
jmp 0x18003defd
mov rcx, rdi
call fcn.180076d5c
mov rbp, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov byte [rbx + 0x3031], 1
movss xmm0, dword [rbx + 0x3034]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x18003df56
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x3034], xmm0
jb 0x18003df56
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x18003df45
call fcn.18003c0e0
jmp 0x18003df4c
mov byte [rbx + 0x3a4], 1
mov dword [rbx + 0x3034], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
Function at 0x180042350
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, 0xff000000
je 0x1800424e3
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movss xmm3, dword [rsp + 0x70]
xorps xmm0, xmm0
comiss xmm3, xmm0
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
jbe 0x1800423c0
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.180045920
mov r8d, dword [rbx + 0x80]
mov r9d, edi
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
call fcn.180040080
mov dword [rbx + 0x80], 0
jmp 0x1800424cf
mov edx, 6
movaps xmmword [rsp + 0x30], xmm6
mov r8d, 4
call fcn.180045ec0
movzx edx, word [rbx + 0x48]
mov rax, qword [rbx + 0x38]
movss xmm1, dword [rsi]
movss xmm2, dword [rbp + 4]
movss xmm3, dword [rbp]
lea ecx, [rdx + 1]
movss xmm6, dword [rax + 4]
movss xmm5, dword [rax]
movss xmm4, dword [rsi + 4]
mov rax, qword [rbx + 0x58]
mov word [rax], dx
mov rax, qword [rbx + 0x58]
mov word [rax + 2], cx
lea ecx, [rdx + 2]
mov rax, qword [rbx + 0x58]
mov word [rax + 4], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 6], dx
add dx, 3
mov rax, qword [rbx + 0x58]
mov word [rax + 8], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 0xa], dx
movsd xmm0, qword [rbp]
mov rax, qword [rbx + 0x50]
movsd qword [rax], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm5
movss dword [rax + 0xc], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], edi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x14], xmm1
movss dword [rax + 0x18], xmm2
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x1c], xmm5
movss dword [rax + 0x20], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x24], edi
movsd xmm0, qword [rsi]
mov rax, qword [rbx + 0x50]
movsd qword [rax + 0x28], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x30], xmm5
movss dword [rax + 0x34], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x38], edi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x3c], xmm3
movss dword [rax + 0x40], xmm4
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x44], xmm5
movss dword [rax + 0x48], xmm6
mov rax, qword [rbx + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
mov dword [rax + 0x4c], edi
add qword [rbx + 0x50], 0x50
add dword [rbx + 0x48], 4
add qword [rbx + 0x58], 0xc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x180067b90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x168
mov rax, qword [0x18011b1c0]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rax, [rsp + 0x40]
mov edi, 0x104
mov dword [rsp + 0x28], edi
lea r9, str._HH:mm:ss_
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0xc00
call qword [sym.imp.KERNEL32.dll_GetTimeFormatA]
lea esi, [rax - 1]
movsxd rbx, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, edi
lea rcx, [rsp + 0x40]
sub rdx, rbx
lea r8, str._TID:_0x_X_
add rcx, rbx
mov r9d, eax
call fcn.180067df0
add esi, eax
lea rbx, [rsp + 0x40]
movsxd rax, esi
lea rbp, [rsp + 0x198]
sub rdi, rax
add rbx, rax
call fcn.18001fc70
mov r9, qword [rsp + 0x190]
mov r8, rdi
mov qword [rsp + 0x28], rbp
mov rdx, rbx
xor ebp, ebp
mov rcx, qword [rax]
or rcx, 2
mov qword [rsp + 0x20], rbp
call fcn.18007a81c
test eax, eax
mov qword [rsp + 0x20], rbp
mov ecx, 0xffffffff
lea rdx, [rsp + 0x40]
cmovs eax, ecx
mov rcx, qword [0x18011f288]
xor r9d, r9d
lea r8d, [rsi + rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180070b40
add rsp, 0x168
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x180067cb0
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rdi
sub rsp, 0x158
mov rax, qword [0x18011b1c0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
lea rdi, [r11 + 0x10]
call fcn.18001fc70
mov qword [rsp + 0x28], rdi
lea rdx, [rsp + 0x30]
xor edi, edi
mov r9, rbx
mov r8d, 0x104
mov qword [rsp + 0x20], rdi
mov rcx, qword [rax]
or rcx, 2
call fcn.18007a81c
test eax, eax
mov qword [rsp + 0x20], rdi
mov ecx, 0xffffffff
lea rdx, [rsp + 0x30]
cmovs eax, ecx
mov rcx, qword [0x18011f298]
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180070b40
add rsp, 0x158
pop rdi
pop rbx
ret

Function at 0x1800681d0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180068201
xor eax, eax
lea r8, [0x1800681c0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x38
ret
Function at 0x18006d430
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x38
cmp dword [0x18011fd30], 0
je 0x18006d444
xor eax, eax
jmp 0x18006d6a3
cmp qword [0x18011fd28], 0
je 0x18006d45a
mov rax, qword [0x18011fd28]
jmp 0x18006d6a3
mov r8d, 0x48
xor edx, edx
lea rcx, [0x18011fce0]
call fcn.18009e3e0
call sub.KERNEL32.dll_GetCurrentProcess
mov qword [0x18011fce0], rax
xor r8d, r8d
xor edx, edx
lea rcx, str.dbghelp.dll
call sub.KERNEL32.dll_LoadLibraryExW
mov qword [0x18011fce8], rax
cmp qword [0x18011fce8], 0
jne 0x18006d510
mov dword [0x18011fd30], 1
cmp qword [0x18011fce8], 0
je 0x18006d4bc
mov rcx, qword [0x18011fce8]
call sub.KERNEL32.dll_FreeLibrary
mov qword [0x18011fcf0], 0
mov qword [0x18011fcf8], 0
mov qword [0x18011fd00], 0
mov qword [0x18011fd08], 0
mov qword [0x18011fd10], 0
mov qword [0x18011fd18], 0
mov qword [0x18011fd20], 0
xor eax, eax
jmp 0x18006d6a3
lea rdx, str.ImagehlpApiVersionEx
mov rcx, qword [0x18011fce8]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x18011fcf0], rax
lea rdx, str.SymInitialize
mov rcx, qword [0x18011fce8]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x18011fcf8], rax
lea rdx, str.SymSetOptions
mov rcx, qword [0x18011fce8]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x18011fd00], rax
lea rdx, str.SymGetOptions
mov rcx, qword [0x18011fce8]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x18011fd08], rax
lea rdx, str.SymLoadModule64
mov rcx, qword [0x18011fce8]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x18011fd10], rax
lea rdx, str.SymGetModuleInfo64
mov rcx, qword [0x18011fce8]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x18011fd18], rax
lea rdx, str.SymFromName
mov rcx, qword [0x18011fce8]
call sub.KERNEL32.dll_GetProcAddress
mov qword [0x18011fd20], rax
mov r8d, 8
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.18009e3e0
mov eax, 0xc
mov word [rsp + 0x28], ax
cmp qword [0x18011fcf0], 0
je 0x18006d614
cmp qword [0x18011fcf8], 0
je 0x18006d614
cmp qword [0x18011fd10], 0
je 0x18006d614
cmp qword [0x18011fd18], 0
je 0x18006d614
cmp qword [0x18011fd20], 0
jne 0x18006d619
jmp 0x18006d49c
lea rcx, [rsp + 0x28]
call qword [0x18011fcf0]
movzx eax, word [rsp + 0x28]
cmp eax, 0xc
jge 0x18006d633
jmp 0x18006d49c
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x18011fce0]
call qword [0x18011fcf8]
test eax, eax
jne 0x18006d64e
jmp 0x18006d49c
cmp qword [0x18011fd08], 0
je 0x18006d68e
cmp qword [0x18011fd00], 0
je 0x18006d68e
call qword [0x18011fd08]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 0xfffffff8
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
or eax, 0x2704
mov dword [rsp + 0x20], eax
mov ecx, dword [rsp + 0x20]
call qword [0x18011fd00]
lea rax, [0x18011fce0]
mov qword [0x18011fd28], rax
mov rax, qword [0x18011fd28]
add rsp, 0x38
ret
Function at 0x18007e88c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.180070ae0
sub rsp, rax
mov rax, qword [0x18011b1c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18008d0a4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18007e8db
mov rax, rbp
jmp 0x18007e9e3
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x120f50]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18008f9c0
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x120f50]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18007e9df
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18007e9df
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18008f9c0
test rax, rax
js 0x18007e9df
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18007e9df
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18007e9d1
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18007e9d1
cmp byte [rcx], 0xd
jne 0x18007e9b7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18007e9c6
cmp byte [rcx + 1], 0xa
jne 0x18007e9c6
inc rcx
jmp 0x18007e9c6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x11b5f0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18007e999
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18007e9e3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180070b40
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x18008944c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1800894bb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800894bb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800894bb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800894bb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800894bb
cmp dword [rcx + 0x84], 0xe
jbe 0x1800894bb
cmp dword [rcx + 0xf8], 0
je 0x1800894bb
mov ecx, ebx
call fcn.18008956c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.180089348
nop
cmp dword [rbp + 0x20], 0
je 0x180089509
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180089514
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18008944c
Function at 0x18008ec18
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18008ec2e
mov al, 1
jmp 0x18008ec8e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18008ec3f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18008ec8c
mov ecx, dword [rcx + 0x18]
nop
call fcn.180099024
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18008ec8c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18008ec8c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18008ec8c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18008ec8e
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x18008ed60
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 r9, [0x180120f50]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x18008edb7
cmp word [rdx], r13w
jne 0x18008edb7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18008edbc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18008eee1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18008ef02
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18008edf5
mov rdx, r9
mov word [rbx], cx
jmp 0x18008ee1c
cmp r9, r8
jae 0x18008ee2c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x18008edd6
jmp 0x18008eee1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18008eed6
cmp dword [rsp + 0x80], esi
je 0x18008eed6
lea r8, [0x180120f50]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18008eeae
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18008ee7e
mov word [rbx], r13w
jmp 0x18008eede
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x18008ee8b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18008eede
cmp word [rsp + 0x70], r13w
jne 0x18008eebb
cmp rbx, r14
je 0x18008ee78
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18008f9c8
cmp word [rsp + 0x70], r13w
je 0x18008eee1
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [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
lea r8, [0x180120f50]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18008eedb
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18008eee1
Function at 0x180095cec
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180095d1c
xor eax, eax
jmp 0x180095ddf
mov rbp, rbx
cmp word [rax], si
je 0x180095d41
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180095d28
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180095d24
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1800943d4
movsxd r14, eax
test eax, eax
jne 0x180095d7f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180095d15
mov rcx, r14
call fcn.18008fc2c
mov rdi, rax
test rax, rax
jne 0x180095d98
xor ecx, ecx
call fcn.18008c2c8
jmp 0x180095d74
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1800943d4
test eax, eax
jne 0x180095dc9
mov rcx, rdi
call fcn.18008c2c8
jmp 0x180095dd3
xor ecx, ecx
call fcn.18008c2c8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x180098630
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.18008a6e4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1800986d1
cmp ebx, dword [rsp + 0x30]
je 0x1800986ca
test esi, esi
je 0x1800986ca
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1800986a5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1800986b2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18009868f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1800986b6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1800986d3
mov eax, 1
jmp 0x1800986d3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18009ca10
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.18008f9c8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18008f9c8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18009cb60
cmp rax, 0xffffffffffffffff
je 0x18009cb60
xor edi, edi
test rbp, rbp
jle 0x18009cb0b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18008c304
mov rbx, rax
test rax, rax
jne 0x18009ca98
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18009cb01
mov edx, 0x8000
mov ecx, r14d
call fcn.18009c894
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.18008dfb0
cmp eax, 0xffffffff
je 0x18009cae1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18009caa8
mov edx, r15d
mov ecx, r14d
call fcn.18009c894
jmp 0x18009cb01
cmp byte [rsi + 0x38], dil
je 0x18009caf8
cmp dword [rsi + 0x34], 5
jne 0x18009caf8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18009cb01
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18008c2c8
jmp 0x18009cb74
jns 0x18009cb74
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18008f9c8
cmp rax, 0xffffffffffffffff
jne 0x18009cb2c
cmp byte [rsi + 0x30], dil
je 0x18009cb74
mov edi, dword [rsi + 0x2c]
jmp 0x18009cb74
mov ecx, r14d
call fcn.180099024
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18009cb74
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x18009cb74
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18009cb6d
mov eax, dword [rsi + 0x2c]
jmp 0x18009cb72
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18008f9c8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x18009d890
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18009d8b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18009d8b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14003fb06
Capabilities:
Authenticate hmac

Disassembly:
mov qword [rsp + rcx*4 - 0xb0], rax
bswap r11d
xor r11d, 0x63005285
mov r8d, ecx
pop rdx
sub r11d, 0x9233dcbf
shr r8d, cl
sbb rsi, r8
neg r11d
and rax, 0xffffffff901e0781
shr rax, 0x75
bswap r11d
push rbp
xor dword [rsp + rax], r11d
pop rbp
movsxd r11, r11d
jmp 0x14008dea3
add r9, r11
shr r8b, 0x86
movzx r11d, sil
mov bx, word [rbx + rax*2]
rol ecx, 0x28
sar eax, 0x27
push rsi
pop rcx
je fcn.140079d4c

Function at 0x140048d0e
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + r10*4 - 0x310], rdx
imul edx
add r9, rsi
pop rsi
neg rcx
lea rdi, [rdx + rdi - 0x5c]
xadd r10w, ax
imul r10w
ror r10, cl
movzx ecx, byte [rdi + rdx - 0x4a]
xor cl, bpl
xor cl, sil
shr al, 0x61
sar esi, 0xd2
rol cl, 1
xor cl, 9
cqo
add cl, 0xb0
btr rdx, rsi
movzx r11d, r10b
xor bpl, cl
rol r10b, 3
jb 0x140099ac1
mov edx, 0xfbb42a8d
movzx ecx, dx
movsx ebx, cl
mov ebx, dword [rdi + rcx*2 - 0x551a]
mov r10d, 0xfc85230b
mov ebp, r10d
sub cl, bpl
lea rdi, [rcx + rdi - 0x2a7e]
xor ebx, esi
mov eax, ecx
jmp 0x14006904a
sal rax, cl
dec ebx
ror ebx, 3
movzx r11d, cl
lea ebx, [rbx + rdx - 0x2891fe4]
xor ebx, 0x3e068c0b
xadd rax, rbp
and edx, 0xe81ae0a2
add r11b, cl
not ebx
lea r11, [rbp*8 - 0x6152a043]
ror ebx, 3
push rsi
neg eax
xor dword [rsp + rcx*2 - 0x5504], ebx
rol r10w, cl
sbb eax, 0xaeb59799
lea r11, [rbp - 0xd48f267]
pop rsi
xadd ebp, eax
cmovp r10, rdx
bswap edx
movsxd rbx, ebx
call fcn.14006ebe7
jb 0x14005c3ed
mov ebp, 0x82b49497
mov edx, dword [rdi + riz]
movsx ebx, bpl
add rdi, 4
movzx ecx, bpl
movsx eax, bx
xor edx, esi
movzx r10d, bx
inc edx
neg edx
lea edx, [rcx + rdx + 0x5eac8a05]
not edx
add ax, 0xa98b
rol edx, 1
call fcn.14008c5af

Function at 0x14004d3fc
Capabilities:
Authenticate hmac

Disassembly:
neg rdi
bswap rdi
neg rdi
imul r10b
btr r10w, r11w
sar r10, 0x41
lea rdi, [rcx + rdi + 0x3def1fd1]
rol rdi, 2
neg rdi
cwd
xor rsi, rdi
lea r8, [r8 + rcx - 0x808]
sal r11w, 9
lea rdx, [rcx + rcx*2 + 0x72047422]
mov qword [rcx + r8 - 0x800], rdi
mov qword [rsp + rcx*2 - 0x1000], rdx
btr cx, 0x87
adc edx, ecx
pop rbp
jae fcn.14004b85e
mov r10d, 0x4f01b197
lea rsi, [r10 + r10*4 + 0x30839789]
lea r8, [rsi + rsi - 0xac7764f]
mov dx, word [rbx + r10 - 0x4f01b197]
mov cx, word [rbx + r10 - 0x4f01b195]
imul r8, r8
lea rbx, [rbx + r10 - 0x4f01b195]
movsx eax, r10w
or dx, cx
not dx
inc r10b
cmove r8w, ax
mov word [rbx + r10 - 0x4f01b198], dx
lea rcx, [rsi*4 + 0x7386a1ac]
js 0x14008a954
push rsi
imul r10, rcx
btr r11w, bp
movsx eax, di
xor dword [rsp + rdi*2 - 0x1ecf6], edx
idiv r10b
lea rbp, [rcx*2 - 0x754bd5f2]
pop rsi
lea rcx, [r10*4 - 0x2b4933cd]
movsxd rdx, edx
btc r10w, 0x9b
jae 0x1400b1513
adc rbx, rdx
mul rcx
jb 0x140053f51

Function at 0x14004dce5
Capabilities:
Authenticate hmac

Disassembly:
dec eax
mov qword [rsp + rcx - 0x10ae02], rcx
sub cx, dx
bswap eax
not r10d
setg byte [rsp + r10*2 - 0x6582a36b]
mov qword [rsp + r10*2 - 0x6582a370], rbp
shl cx, 0x8c