joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180067270
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x160
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x18008cb00]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov r12, rdx
mov rbp, rcx
or r8d, 0xffffffff
xor edx, edx
call fcn.180019f60
or r8d, 0xffffffff
xor edx, edx
mov rcx, r12
call fcn.180019f60
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
mov edi, 1
xor ebx, ebx
nop
test esi, edi
je 0x180067391
movzx eax, word [0x18007a488]
mov word [rsp + 0x20], ax
movzx eax, byte [0x18007a48a]
mov byte [rsp + 0x22], al
xor eax, eax
mov byte [rsp + 0x23], al
add byte [rsp + 0x20], bl
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.180018610
nop
lea r8, [rsp + 0x30]
mov edx, dword [rbp + 8]
mov rcx, rbp
call fcn.18001a1b0
mov r11, qword [0x1800723a8]
mov qword [rsp + 0x28], r11
mov byte [rsp + 0x40], 0
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x41]
call fcn.18002a9c0
mov r8d, 0x104
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov byte [rsp + 0x143], 0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x28]
call fcn.180015040
lea r8, [rsp + 0x28]
mov edx, dword [r12 + 8]
mov rcx, r12
call fcn.18001a1b0
nop
lea rcx, [rsp + 0x28]
call fcn.180014ec0
nop
lea rcx, [rsp + 0x30]
call fcn.180014ec0
inc ebx
add edi, edi
cmp ebx, 0x1a
jb 0x1800672d0
mov eax, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.18002a990
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x1800673d0
Capabilities:
Get disk information

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x260
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x2a0], rbx
mov rax, qword [0x18008cb00]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r12, rdx
mov rbp, rcx
or r8d, 0xffffffff
xor edx, edx
call fcn.18001a470
or r8d, 0xffffffff
xor edx, edx
mov rcx, r12
call fcn.18001a470
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
mov edi, 1
xor r13d, r13d
mov ebx, r13d
test esi, edi
je 0x1800674f8
mov eax, dword [0x18007a4e0]
mov dword [rsp + 0x38], eax
movzx eax, word [0x18007a4e4]
mov word [rsp + 0x3c], ax
xor eax, eax
mov word [rsp + 0x3e], ax
add word [rsp + 0x38], bx
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x28]
call fcn.1800191c0
nop
lea r8, [rsp + 0x28]
mov edx, dword [rbp + 8]
mov rcx, rbp
call fcn.18001a6c0
mov r11, qword [0x1800723b0]
mov qword [rsp + 0x20], r11
mov word [rsp + 0x40], r13w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x42]
call fcn.18002a9c0
mov r8d, 0x104
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov word [rsp + 0x246], r13w
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.1800169a0
lea r8, [rsp + 0x20]
mov edx, dword [r12 + 8]
mov rcx, r12
call fcn.18001a6c0
nop
lea rcx, [rsp + 0x20]
call fcn.180016820
nop
lea rcx, [rsp + 0x28]
call fcn.180016820
inc ebx
add edi, edi
cmp ebx, 0x1a
jb 0x180067434
mov eax, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18002a990
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x260
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x180067900
Capabilities:
Get disk information

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov rdi, rdx
mov rsi, rcx
or r8d, 0xffffffff
xor edx, edx
call fcn.180019f60
or r8d, 0xffffffff
xor edx, edx
mov rcx, rdi
call fcn.180019f60
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
mov ecx, dword [0x180094d6c]
test ecx, ecx
je 0x1800679b1
cmp eax, ecx
jne 0x1800679b1
mov eax, dword [0x180094d70]
test eax, eax
je 0x1800679b1
cmp ebx, eax
jb 0x1800679b1
add eax, 0x493e0
cmp eax, ebx
jb 0x1800679b1
inc dword [0x180094d74]
mov r8d, 1
lea rdx, [0x180094e20]
lea rcx, [rsp + 0x28]
call fcn.18001e400
nop
lea rdx, [0x180094df0]
mov rcx, rsi
call fcn.18001a0d0
lea rdx, [0x180094e08]
mov rcx, rdi
call fcn.18001a0d0
nop
jmp 0x180067a2d
mov dword [0x180094d74], 0
mov rdx, rdi
mov rcx, rsi
call fcn.180067270
mov r8d, 1
lea rdx, [0x180094e20]
lea rcx, [rsp + 0x28]
call fcn.18001e400
nop
mov dword [0x180094d6c], ebp
mov dword [0x180094d70], ebx
or r8d, 0xffffffff
xor edx, edx
lea rcx, [0x180094df0]
call fcn.180019f60
mov rdx, rsi
lea rcx, [0x180094df0]
call fcn.18001a0d0
or r8d, 0xffffffff
xor edx, edx
lea rcx, [0x180094e08]
call fcn.180019f60
mov rdx, rdi
lea rcx, [0x180094e08]
call fcn.18001a0d0
nop
lea rcx, [rsp + 0x28]
call fcn.18001e480
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x180067a60
Capabilities:
Get disk information

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov rdi, rdx
mov rsi, rcx
or r8d, 0xffffffff
xor edx, edx
call fcn.18001a470
or r8d, 0xffffffff
xor edx, edx
mov rcx, rdi
call fcn.18001a470
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
mov ecx, dword [0x180094d78]
test ecx, ecx
je 0x180067b11
cmp eax, ecx
jne 0x180067b11
mov eax, dword [0x180094d7c]
test eax, eax
je 0x180067b11
cmp ebx, eax
jb 0x180067b11
add eax, 0x493e0
cmp eax, ebx
jb 0x180067b11
inc dword [0x180094d80]
mov r8d, 1
lea rdx, [0x180094e88]
lea rcx, [rsp + 0x28]
call fcn.18001e400
nop
lea rdx, [0x180094e58]
mov rcx, rsi
call fcn.18001a5e0
lea rdx, [0x180094e70]
mov rcx, rdi
call fcn.18001a5e0
nop
jmp 0x180067b8d
mov dword [0x180094d80], 0
mov rdx, rdi
mov rcx, rsi
call fcn.1800673d0
mov r8d, 1
lea rdx, [0x180094e88]
lea rcx, [rsp + 0x28]
call fcn.18001e400
nop
mov dword [0x180094d78], ebp
mov dword [0x180094d7c], ebx
or r8d, 0xffffffff
xor edx, edx
lea rcx, [0x180094e58]
call fcn.18001a470
mov rdx, rsi
lea rcx, [0x180094e58]
call fcn.18001a5e0
or r8d, 0xffffffff
xor edx, edx
lea rcx, [0x180094e70]
call fcn.18001a470
mov rdx, rdi
lea rcx, [0x180094e70]
call fcn.18001a5e0
nop
lea rcx, [rsp + 0x28]
call fcn.18001e480
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140002258
Capabilities:
Parse pe header

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

Function at 0x140008990
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000878c
Function at 0x14000d400
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 0x14000d430
xor eax, eax
jmp 0x14000d4f3
mov rbp, rbx
cmp word [rax], si
je 0x14000d455
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000d43c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000d438
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.14000bccc
movsxd r14, eax
test eax, eax
jne 0x14000d493
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000d429
mov rcx, r14
call fcn.14000a390
mov rdi, rax
test rax, rax
jne 0x14000d4ac
xor ecx, ecx
call fcn.14000a354
jmp 0x14000d488
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.14000bccc
test eax, eax
jne 0x14000d4dd
mov rcx, rdi
call fcn.14000a354
jmp 0x14000d4e7
xor ecx, ecx
call fcn.14000a354
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 0x14000f7c4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400080e0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000f84e
cmp byte [rbp - 0x21], r15b
je 0x14000f849
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000f884
call fcn.14000afdc
test eax, eax
jne 0x14000f870
cmp byte [rbp - 0x21], r15b
je 0x14000f868
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000f884
cmp byte [rbp - 0x21], r15b
je 0x14000f881
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400081ec
test eax, eax
jne 0x14000f924
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400080e0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000f8c3
cmp byte [rbp - 0x21], r15b
je 0x14000f8f8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000f8f8
call fcn.14000afdc
test eax, eax
jne 0x14000f8e4
cmp byte [rbp - 0x21], r15b
je 0x14000f8dd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000f8f8
cmp byte [rbp - 0x21], r15b
je 0x14000f8f5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400081ec
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000f924
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000f927
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000f935
mov rcx, rdi
call fcn.14000a354
cmp byte [rbp + 0x3f], r15b
je 0x14000f944
mov rcx, qword [rbp + 0x27]
call fcn.14000a354
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140011e60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140011e88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140011e88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000e108
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov r8d, dword [0x140026c80]
lea rdi, [0x140026c80]
mov r9d, 0x270
cmp r8d, r9d
jne 0x14000e17f
lea r8, [0x140026c88]
mov r10d, 0x7fffffff
mov r11d, 0x9908b0df
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
and edx, r10d
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x14000e13e
mov r8d, dword [0x140026c80]
jmp 0x14000e253
cmp r8d, 0x4e0
jb 0x14000e253
xor r8d, r8d
mov r10d, 0x7fffffff
mov ebx, r8d
mov r11d, 0x9908b0df
mov r9d, 0x38c
mov eax, dword [rbx + rdi + 0x9c4]
mov edx, eax
xor edx, dword [rbx + rdi + 0x9c8]
and edx, r10d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [rbx + rdi + 0xff8]
xor ecx, edx
mov dword [rbx + rdi + 4], ecx
add rbx, 4
cmp rbx, r9
jb 0x14000e1a4
mov eax, dword [r9 + rdi + 0x9c4]
mov edx, eax
xor edx, dword [r9 + rdi + 0x9c8]
and edx, r10d
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, dword [r9 + rdi - 0x388]
xor ecx, edx
mov dword [r9 + rdi + 4], ecx
add r9, 4
cmp r9, 0x9bc
jb 0x14000e1dc
mov edx, dword [0x140028000]
xor edx, dword [0x140026c84]
and edx, r10d
mov dword [0x140026c80], r8d
xor edx, dword [0x140028000]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, r11d
xor ecx, edx
xor ecx, dword [0x1400272b4]
mov dword [0x140027640], ecx
mov rbx, qword [rsp + 8]
mov eax, r8d
mov ecx, dword [rdi + rax*4 + 4]
inc eax
mov rdi, qword [rsp + 0x10]
mov dword [0x140026c80], eax
mov eax, ecx
shr eax, 0xb
and eax, dword [0x140028004]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret

Function at 0x14000fc34
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000fc7e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000fc7e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000fc7e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000fc7e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000fc7e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000fc80
xor al, al
add rsp, 0x28
ret
Function at 0x140014b2c
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 0x140014b9b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140014b9b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140014b9b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140014b9b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140014b9b
cmp dword [rcx + 0x84], 0xe
jbe 0x140014b9b
cmp dword [rcx + 0xf8], 0
je 0x140014b9b
mov ecx, ebx
call fcn.140014c4c
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.140014a28
nop
cmp dword [rbp + 0x20], 0
je 0x140014be9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140014bf4
int3
xor r8d, r8d
xor edx, edx
jmp 0x140014b2c

Function at 0x140014d30
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 0x140014b9b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140014b9b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140014b9b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140014b9b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140014b9b
cmp dword [rcx + 0x84], 0xe
jbe 0x140014b9b
cmp dword [rcx + 0xf8], 0
je 0x140014b9b
mov ecx, ebx
call fcn.140014c4c
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.140014a28
nop
cmp dword [rbp + 0x20], 0
je 0x140014be9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140014bf4
int3
xor r8d, r8d
xor edx, edx
jmp 0x140014b2c
Function at 0x140019f28
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 0x140019f58
xor eax, eax
jmp 0x14001a01b
mov rbp, rbx
cmp word [rax], si
je 0x140019f7d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140019f64
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140019f60
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.140019e48
movsxd r14, eax
test eax, eax
jne 0x140019fbb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140019f51
mov rcx, r14
call fcn.14001ace8
mov rdi, rax
test rax, rax
jne 0x140019fd4
xor ecx, ecx
call fcn.14001698c
jmp 0x140019fb0
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.140019e48
test eax, eax
jne 0x14001a005
mov rcx, rdi
call fcn.14001698c
jmp 0x14001a00f
xor ecx, ecx
call fcn.14001698c
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 0x14001d6d8
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14001783c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001d762
cmp byte [rbp - 0x21], r15b
je 0x14001d75d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001d798
call fcn.1400182b4
test eax, eax
jne 0x14001d784
cmp byte [rbp - 0x21], r15b
je 0x14001d77c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001d798
cmp byte [rbp - 0x21], r15b
je 0x14001d795
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400176c0
test eax, eax
jne 0x14001d838
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001783c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001d7d7
cmp byte [rbp - 0x21], r15b
je 0x14001d80c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001d80c
call fcn.1400182b4
test eax, eax
jne 0x14001d7f8
cmp byte [rbp - 0x21], r15b
je 0x14001d7f1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001d80c
cmp byte [rbp - 0x21], r15b
je 0x14001d809
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400176c0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001d838
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001d83b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001d849
mov rcx, rdi
call fcn.14001698c
cmp byte [rbp + 0x3f], r15b
je 0x14001d858
mov rcx, qword [rbp + 0x27]
call fcn.14001698c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400205e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140020608
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140020608
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400279dc
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.14001b104
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b104
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027b2c
cmp rax, 0xffffffffffffffff
je 0x140027b2c
xor edi, edi
test rbp, rbp
jle 0x140027ad7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001da18
mov rbx, rax
test rax, rax
jne 0x140027a64
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027acd
mov edx, 0x8000
mov ecx, r14d
call fcn.140018a68
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.14001bde0
cmp eax, 0xffffffff
je 0x140027aad
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027a74
mov edx, r15d
mov ecx, r14d
call fcn.140018a68
jmp 0x140027acd
cmp byte [rsi + 0x38], dil
je 0x140027ac4
cmp dword [rsi + 0x34], 5
jne 0x140027ac4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027acd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400197c8
jmp 0x140027b40
jns 0x140027b40
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b104
cmp rax, 0xffffffffffffffff
jne 0x140027af8
cmp byte [rsi + 0x30], dil
je 0x140027b40
mov edi, dword [rsi + 0x2c]
jmp 0x140027b40
mov ecx, r14d
call fcn.140017594
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027b40
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 0x140027b40
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027b39
mov eax, dword [rsi + 0x2c]
jmp 0x140027b3e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b104
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 0x140028c30
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140028c58
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140028c58
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x14002c5ec
Capabilities:
Encode data using base64

Disassembly:
xor r10b, sil
mov qword [rsp + rbp - 0xb2bb], 0xfffffffffa829103
mov r9d, dword [rsp + rbp*4 - 0x2caec]
add r10b, 0x35
ror r10b, 1
sal bp, 0x2d
sub edx, 0xee85ad8e
call fcn.14004d8e0
Function at 0x14000701c
Capabilities:
Parse pe header

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