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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x180493400]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x180322390]
mov rbp, rcx
call fcn.180241428
xor edi, edi
test rax, rax
je 0x180233156
mov ebx, edi
call fcn.1802275e8
mov r14d, dword [rax]
call fcn.1802275e8
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.180241374
mov rsi, rax
test rax, rax
je 0x1802330e7
call fcn.1802275e8
mov dword [rax], r14d
jmp 0x180233111
call fcn.1802275e8
cmp dword [rax], 0x22
jne 0x18023314e
call fcn.1802275e8
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.180241374
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x18023314e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x180233115
cmp rax, 3
je 0x180233130
mov rcx, rsi
call fcn.180232fcc
test al, al
je 0x180233141
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x180233141
mov dil, 1
mov rcx, rbx
call fcn.18022450c
mov al, dil
jmp 0x180233158
mov rcx, rbx
call fcn.18022450c
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.18021e680
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x180233284
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
test rcx, rcx
jne 0x1802332a3
call fcn.180241854
jmp 0x180233358
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x28], 0
xor edx, edx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
call fcn.1802271b8
mov rax, qword [rbp - 0x48]
mov r9d, 0xfde9
cmp dword [rax + 0xc], r9d
jne 0x1802332ee
cmp byte [rbp - 0x38], 0
je 0x180233323
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x180233323
call fcn.180239e80
test eax, eax
jne 0x18023330f
cmp byte [rbp - 0x38], al
je 0x180233307
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x180233323
cmp byte [rbp - 0x38], 0
je 0x180233320
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
xor r9d, r9d
lea r8, [rbp + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call fcn.18022f728
test eax, eax
je 0x18023333c
or ebx, 0xffffffff
jmp 0x180233347
mov rcx, qword [rbp - 0x20]
call fcn.180241854
mov ebx, eax
cmp byte [rbp - 8], 0
je 0x180233356
mov rcx, qword [rbp - 0x20]
call fcn.1802394d8
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret
Function at 0x180235d60
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 0x180235dcf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180235dcf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180235dcf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180235dcf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180235dcf
cmp dword [rcx + 0x84], 0xe
jbe 0x180235dcf
cmp dword [rcx + 0xf8], 0
je 0x180235dcf
mov ecx, ebx
call fcn.180235e80
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.180235c5c
nop
cmp dword [rbp + 0x20], 0
je 0x180235e1d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180235e28
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180235d60
Function at 0x18023c018
Capabilities:
Get file size

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

Function at 0x18023c160
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, [0x180498420]
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 0x18023c1b7
cmp word [rdx], r13w
jne 0x18023c1b7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18023c1bc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18023c2e1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18023c302
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18023c1f5
mov rdx, r9
mov word [rbx], cx
jmp 0x18023c21c
cmp r9, r8
jae 0x18023c22c
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 0x18023c1d6
jmp 0x18023c2e1
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 0x18023c2d6
cmp dword [rsp + 0x80], esi
je 0x18023c2d6
lea r8, [0x180498420]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18023c2ae
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18023c27e
mov word [rbx], r13w
jmp 0x18023c2de
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 0x18023c28b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18023c2de
cmp word [rsp + 0x70], r13w
jne 0x18023c2bb
cmp rbx, r14
je 0x18023c278
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18023cdc8
cmp word [rsp + 0x70], r13w
je 0x18023c2e1
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, [0x180498420]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18023c2db
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18023c2e1
Function at 0x1802402a8
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1802402c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18022755c
or eax, 0xffffffff
jmp 0x1802402ca
xor eax, eax
add rsp, 0x28
ret
Function at 0x180243c20
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 0x180243c50
xor eax, eax
jmp 0x180243d13
mov rbp, rbx
cmp word [rax], si
je 0x180243c75
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180243c5c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180243c58
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.18023fdf8
movsxd r14, eax
test eax, eax
jne 0x180243cb3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180243c49
mov rcx, r14
call fcn.18023dee4
mov rdi, rax
test rax, rax
jne 0x180243ccc
xor ecx, ecx
call fcn.1802394d8
jmp 0x180243ca8
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.18023fdf8
test eax, eax
jne 0x180243cfd
mov rcx, rdi
call fcn.1802394d8
jmp 0x180243d07
xor ecx, ecx
call fcn.1802394d8
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 0x180243d30
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x180243db7
mov rsi, rbx
cmp word [rax], bp
je 0x180243d76
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x180243d60
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x180243d5c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.18023dee4
mov rdi, rax
test rax, rax
je 0x180243da4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.18024cd40
mov rbp, rdi
xor ecx, ecx
call fcn.1802394d8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180246e70
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.180237474
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 0x180246f11
cmp ebx, dword [rsp + 0x30]
je 0x180246f0a
test esi, esi
je 0x180246f0a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180246ee5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180246ef2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180246ecf
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180246ef6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180246f13
mov eax, 1
jmp 0x180246f13
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18024a318
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x180493400]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x18024a362
call fcn.1802275c8
mov dword [rax], 0xf
call fcn.1802275e8
mov dword [rax], 0xd
call fcn.180224384
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18021e680
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x18024a36d
lea eax, [rbx + 1]
jmp 0x18024a34f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x18024a34d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x18024a34f
Function at 0x18024b02c
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.1802271b8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x18024b0b6
cmp byte [rbp - 0x21], r15b
je 0x18024b0b1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x18024b0ec
call fcn.180239e80
test eax, eax
jne 0x18024b0d8
cmp byte [rbp - 0x21], r15b
je 0x18024b0d0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x18024b0ec
cmp byte [rbp - 0x21], r15b
je 0x18024b0e9
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.18022f728
test eax, eax
jne 0x18024b18c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1802271b8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x18024b12b
cmp byte [rbp - 0x21], r15b
je 0x18024b160
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x18024b160
call fcn.180239e80
test eax, eax
jne 0x18024b14c
cmp byte [rbp - 0x21], r15b
je 0x18024b145
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x18024b160
cmp byte [rbp - 0x21], r15b
je 0x18024b15d
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.18022f728
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x18024b18c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x18024b18f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x18024b19d
mov rcx, rdi
call fcn.1802394d8
cmp byte [rbp + 0x3f], r15b
je 0x18024b1ac
mov rcx, qword [rbp + 0x27]
call fcn.1802394d8
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 0x18024c024
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.18023cdc8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18023cdc8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18024c174
cmp rax, 0xffffffffffffffff
je 0x18024c174
xor edi, edi
test rbp, rbp
jle 0x18024c11f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180239ae8
mov rbx, rax
test rax, rax
jne 0x18024c0ac
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18024c115
mov edx, 0x8000
mov ecx, r14d
call fcn.18024bea8
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.18023bab0
cmp eax, 0xffffffff
je 0x18024c0f5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18024c0bc
mov edx, r15d
mov ecx, r14d
call fcn.18024bea8
jmp 0x18024c115
cmp byte [rsi + 0x38], dil
je 0x18024c10c
cmp dword [rsi + 0x34], 5
jne 0x18024c10c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18024c115
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1802394d8
jmp 0x18024c188
jns 0x18024c188
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18023cdc8
cmp rax, 0xffffffffffffffff
jne 0x18024c140
cmp byte [rsi + 0x30], dil
je 0x18024c188
mov edi, dword [rsi + 0x2c]
jmp 0x18024c188
mov ecx, r14d
call fcn.180232684
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18024c188
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 0x18024c188
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18024c181
mov eax, dword [rsi + 0x2c]
jmp 0x18024c186
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18023cdc8
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 0x18024c790
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18024c7b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18024c7b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x4025c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x004bd624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x402748
mov rax, qword [0x004bd628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40260c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x402695
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x4025f0
mov rcx, rbx
call fcn.00403260
test rax, rax
mov r12, rax
je 0x40277d
mov rax, qword [0x004bd628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00403390
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004bd628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x402760
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40268e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x4026f0
add dword [0x004bd624], 1
cmp edi, 8
jae 0x4026c3
test dil, 4
jne 0x402734
test edi, edi
je 0x4026b8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40274f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x4026b8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x4026dc
jmp 0x4026b8
add rsi, qword [0x004bd628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40268e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00403750
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x4026b8
xor esi, esi
jmp 0x402617
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x4026b8
mov rax, qword [0x004bd628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00403750
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00403750
nop
nop dword [rax]

Function at 0x402ed0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004bd900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004bd8e0]
test rbx, rbx
je 0x402f24
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x402f1b
test rsi, rsi
je 0x402f1b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402f00
lea rcx, [0x004bd900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x403260
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004ba660]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x4032cd
mov rcx, r8
call fcn.00403140
test eax, eax
je 0x4032cd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4032cd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4032c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4032cf
add rax, 0x28
cmp rax, r9
jne 0x4032b0
xor eax, eax
add rsp, 0x28
ret

Function at 0x403750
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.00403620
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.00403620
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x1400050b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, r8
mov dword [rsp + 0x38], 0x208
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov r14, rdx
mov rbp, rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
mov dword [rsp + 0x30], 0x208
lea rcx, [0x14002dcf0]
mov r8d, 0x208
test eax, eax
jne 0x14000523a
mov qword [rsp + 0x58], rdi
call fcn.14001c3d0
lea rax, [rsp + 0x30]
mov r9d, 0x208
lea r8, [0x14002dcf0]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbp
call qword [0x14002df10]
mov r9d, 0xc0
mov qword [rsp + 0x28], rbx
mov r8, r14
mov dword [rsp + 0x20], 0xc4
lea rdx, [0x14002dcf6]
lea rcx, str._ws_ws_n_c_c__ws___
call fcn.140001010
xor edi, edi
mov rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x140005174
test rax, rax
je 0x140005202
mov qword [rsp + 0x98], rsi
mov rcx, rdi
mov qword [rsp + 0x50], r15
lea r15, [0x14002cab0]
nop dword [rax]
lea rsi, [rbx + rcx*2]
mov edx, 0x80
movzx ecx, word [rsi]
call fcn.14000cc14
test eax, eax
je 0x1400051db
call fcn.1400099b0
cdqe
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [r15 + rcx*2], 0
jne 0x1400051c3
xor edx, edx
div rcx
movzx eax, word [r15 + rdx*2]
mov word [rsi], ax
inc edi
mov rax, 0xffffffffffffffff
mov ecx, edi
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400051e6
cmp rcx, rax
jb 0x1400051a0
mov r15, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x98]
mov eax, dword [rsp + 0x38]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x20], rbx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdx, rbx
lea rcx, str._ws_n_n
call fcn.140001010
mov rdi, qword [rsp + 0x58]
jmp 0x14000527a
call fcn.14001c3d0
lea rax, [rsp + 0x30]
mov r9d, 0x208
lea r8, [0x14002dcf0]
mov qword [rsp + 0x20], rax
mov edx, 3
mov rcx, rbp
call qword [0x14002df10]
mov r8, r14
lea rdx, [0x14002dcf6]
lea rcx, str.Failed_to_read:__ws_ws_n_n
call fcn.140001010
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140006210
add rsp, 0x60
pop r14
pop rbp
pop rbx
ret