joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a3ed0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov esi, ecx
mov rax, qword [0x140105c88]
xor rax, rsp
mov qword [rsp + 0x40], rax
test rdx, rdx
je 0x1400a3f87
cmp dword [0x14010d0dc], esi
jg 0x1400a3f87
mov rdi, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
movsxd r15, eax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r14, rax
mov qword [rsp + 0x30], r15
lea rbp, [rdi + r15]
lea r15, [rsp + 0x3c]
mov r13, qword [sym.imp.KERNEL32.dll_WriteFile]
mov r12, rdi
nop dword [rax]
cmp r12, rbp
jae 0x1400a3f77
mov dword [rsp + 0x3c], 0
mov r8d, ebp
sub r8d, r12d
mov qword [rsp + 0x20], 0
mov rcx, r14
mov rdx, r12
mov r9, r15
call r13
test eax, eax
je 0x1400a3f77
mov eax, dword [rsp + 0x3c]
add r12, rax
test eax, eax
jne 0x1400a3f40
test ebx, ebx
je 0x1400a3f87
mov rax, qword [rsp + 0x30]
cmp byte [rax + rdi - 1], 0xa
jne 0x1400a3faf
cmp esi, 3
je 0x1400a4023
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400a5060
nop
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rdi, rax
lea r15, [0x1400d984f]
lea r12, [0x1400d9850]
lea rbx, [rsp + 0x3c]
mov r14, r15
nop word cs:[rax + rax]
cmp r14, r12
jae 0x1400a3f87
mov dword [rsp + 0x3c], 0
mov r8d, r15d
sub r8d, r14d
inc r8d
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, r14
mov r9, rbx
call r13
test eax, eax
je 0x1400a3f87
mov eax, dword [rsp + 0x3c]
add r14, rax
test eax, eax
jne 0x1400a3fe0
jmp 0x1400a3f87
int3

Function at 0x1400bb680
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 [0x140105c88]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1400edc68]
mov rbp, rcx
call fcn.1400cd61c
xor edi, edi
test rax, rax
je 0x1400bb766
mov ebx, edi
call fcn.1400bb31c
mov r14d, dword [rax]
call fcn.1400bb31c
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1400bfeb8
mov rsi, rax
test rax, rax
je 0x1400bb6f7
call fcn.1400bb31c
mov dword [rax], r14d
jmp 0x1400bb721
call fcn.1400bb31c
cmp dword [rax], 0x22
jne 0x1400bb75e
call fcn.1400bb31c
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1400bfeb8
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1400bb75e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1400bb725
cmp rax, 3
je 0x1400bb740
mov rcx, rsi
call fcn.1400bb5dc
test al, al
je 0x1400bb751
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400bb751
mov dil, 1
mov rcx, rbx
call fcn.1400c21f0
mov al, dil
jmp 0x1400bb768
mov rcx, rbx
call fcn.1400c21f0
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400a5060
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 0x1400bd1d0
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, [0x14010d980]
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 0x1400bd227
cmp word [rdx], r13w
jne 0x1400bd227
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400bd22c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400bd351
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400bd372
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400bd265
mov rdx, r9
mov word [rbx], cx
jmp 0x1400bd28c
cmp r9, r8
jae 0x1400bd29c
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 0x1400bd246
jmp 0x1400bd351
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 0x1400bd346
cmp dword [rsp + 0x80], esi
je 0x1400bd346
lea r8, [0x14010d980]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400bd31e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400bd2ee
mov word [rbx], r13w
jmp 0x1400bd34e
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 0x1400bd2fb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400bd34e
cmp word [rsp + 0x70], r13w
jne 0x1400bd32b
cmp rbx, r14
je 0x1400bd2e8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400cc224
cmp word [rsp + 0x70], r13w
je 0x1400bd351
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, [0x14010d980]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400bd34b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400bd351
Function at 0x1400cedd8
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.1400c8a44
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 0x1400cee79
cmp ebx, dword [rsp + 0x30]
je 0x1400cee72
test esi, esi
je 0x1400cee72
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400cee4d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400cee5a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400cee37
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400cee5e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400cee7b
mov eax, 1
jmp 0x1400cee7b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400cff38
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 0x1400cff68
xor eax, eax
jmp 0x1400d002b
mov rbp, rbx
cmp word [rax], si
je 0x1400cff8d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400cff74
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400cff70
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.1400cfe58
movsxd r14, eax
test eax, eax
jne 0x1400cffcb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400cff61
mov rcx, r14
call fcn.1400caf50
mov rdi, rax
test rax, rax
jne 0x1400cffe4
xor ecx, ecx
call fcn.1400c8100
jmp 0x1400cffc0
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.1400cfe58
test eax, eax
jne 0x1400d0015
mov rcx, rdi
call fcn.1400c8100
jmp 0x1400d001f
xor ecx, ecx
call fcn.1400c8100
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 0x1400d0048
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 0x1400d00cf
mov rsi, rbx
cmp word [rax], bp
je 0x1400d008e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400d0078
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400d0074
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400caf50
mov rdi, rax
test rax, rax
je 0x1400d00bc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400a7bd0
mov rbp, rdi
xor ecx, ecx
call fcn.1400c8100
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 0x1400d334c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140105c88]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400d3396
call fcn.1400bb33c
mov dword [rax], 0xf
call fcn.1400bb31c
mov dword [rax], 0xd
call fcn.1400bd5bc
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400a5060
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400d33a1
lea eax, [rbx + 1]
jmp 0x1400d3383
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 0x1400d3381
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400d3383

Function at 0x1400d41bc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400d41d2
mov al, 1
jmp 0x1400d4232
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400d41e3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400d4230
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400bbbac
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400d4230
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400d4230
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400d4230
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400d4232
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400d6d88
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.1400b2d64
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400d6e12
cmp byte [rbp - 0x21], r15b
je 0x1400d6e0d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400d6e48
call fcn.1400c9214
test eax, eax
jne 0x1400d6e34
cmp byte [rbp - 0x21], r15b
je 0x1400d6e2c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400d6e48
cmp byte [rbp - 0x21], r15b
je 0x1400d6e45
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.1400b837c
test eax, eax
jne 0x1400d6ee8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400b2d64
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400d6e87
cmp byte [rbp - 0x21], r15b
je 0x1400d6ebc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400d6ebc
call fcn.1400c9214
test eax, eax
jne 0x1400d6ea8
cmp byte [rbp - 0x21], r15b
je 0x1400d6ea1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400d6ebc
cmp byte [rbp - 0x21], r15b
je 0x1400d6eb9
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.1400b837c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400d6ee8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400d6eeb
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400d6ef9
mov rcx, rdi
call fcn.1400c8100
cmp byte [rbp + 0x3f], r15b
je 0x1400d6f08
mov rcx, qword [rbp + 0x27]
call fcn.1400c8100
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 0x140002af0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov r15d, r9d
mov r14d, r8d
mov r13, rdx
mov r12, rcx
mov dword [rbp - 8], r9d
sub rsp, 0x200
nop
mov ecx, 0x1000000
mov edx, 0xfb
mov r8d, 0x7f
call fcn.140002ae0
mov dword [rbp + 4], 3
cmp r15d, eax
jae 0x140002bf9
nop
nop
mov ecx, 0xff0000
mov edx, 0x80
mov r8d, 0x24
call fcn.140002ae0
mov rbx, rax
and ebx, r15d
mov dword [rsp + 0x20], ebx
mov r8d, 0xb6
xor ecx, ecx
mov edx, ebx
mov r9d, ebx
call fcn.140002ae0
mov dword [rbp + 4], 2
cmp ebx, eax
jne 0x140002bf9
nop
nop
mov ecx, 0xff00
mov edx, 0x63
mov r8d, 0x11203612
mov r9d, 0x69956a
call fcn.140002ae0
mov rbx, rax
and ebx, r15d
xor ecx, ecx
mov edx, ebx
mov r8d, ebx
call fcn.140002ae0
mov dword [rbp + 4], 1
cmp ebx, eax
jne 0x140002bf9
nop
nop
mov ecx, 0xff
mov edx, 0xea
call fcn.140002ae0
and r15d, eax
mov edx, 0x7f
mov r8d, 0xb020cc
xor ecx, ecx
mov r9d, r15d
call fcn.140002ae0
mov dword [rbp + 4], 0
cmp r15d, eax
jne 0x140002bf9
nop
mov dword [rbp - 4], 0xffffffff
jmp 0x140002c00
mov eax, dword [rbp + 4]
nop
mov dword [rbp - 4], eax
mov ebx, dword [rbp - 4]
mov edx, 0xbd
mov r8d, 0x16
xor ecx, ecx
mov r9d, ebx
call fcn.140002ae0
mov r15, rax
xor ecx, ecx
mov edx, ebx
call fcn.140002ae0
cmp ebx, r15d
je 0x140002cb8
cmp r14d, eax
je 0x140002cb8
mov eax, r14d
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], 0
mov dword [rbp], 0
xor edi, edi
nop
mov esi, dword [rbp]
mov rbx, qword [rbp - 0x10]
mov ecx, 3
mov r8d, 0x6e
mov rdx, rbx
call fcn.140002ae0
cmp esi, eax
cmovg esi, edi
nop
movsxd rsi, esi
movzx eax, byte [rbp + rsi - 8]
xor al, byte [r12 + rbx]
mov byte [r13 + rbx], al
mov ecx, 1
mov rdx, rbx
call fcn.140002ae0
add esi, eax
mov ecx, 1
mov edx, 0xa0
mov r8d, 0xe8
mov r9, rbx
call fcn.140002ae0
add rax, rbx
cmp rax, qword [rbp - 0x18]
mov qword [rbp - 0x10], rax
mov dword [rbp], esi
jb 0x140002c50
add rsp, 0x200
mov rax, r13
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140001918
Capabilities:
Parse pe header

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

Function at 0x140003a38
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140003864
Function at 0x14000b900
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000b928
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000b928
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140015f90
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x140016049
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x140016015
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x14001602d
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x14001602d
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 qword [case.0x1400290d6.0]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp dword [rdi + 8], 0
je case.default.0x14001602d
mov rcx, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp byte [0x1400771f8], 0
jne 0x140016094
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140016084
lea rdx, [0x1400597c8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400771f0], rax
mov byte [0x1400771f8], 1
jmp 0x14001609b
mov rax, qword [0x1400771f0]
mov byte [0x1400771f8], 1
jmp 0x14001609b
mov rax, qword [0x1400771f0]
mov rcx, qword [rbx]
mov rdx, rsi
test rax, rax
je 0x14001601e
mov r8d, dword [rbx + 8]
xor r9d, r9d
call qword [case.0x1400290d6.0]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov cl, 0xa7
out dx, eax
invalid
Function at 0x6d7d4fb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d7f65e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7d5138
mov rax, qword [0x6d7f65e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7d4ffc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7d5085
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7d4fe0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7d516d
mov rax, qword [0x6d7f65e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d7f65e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7d5150
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7d507e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7d50e0
add dword [0x6d7f65e4], 1
cmp edi, 8
jae 0x6d7d50b3
test dil, 4
jne 0x6d7d5124
test edi, edi
je 0x6d7d50a8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7d513f
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 0x6d7d50a8
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 0x6d7d50cc
jmp 0x6d7d50a8
add rsi, qword [0x6d7f65e8]
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 0x6d7d507e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d7d50a8
xor esi, esi
jmp 0x6d7d5007
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7d50a8
mov rax, qword [0x6d7f65e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d7d58c0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d7f68c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d7f68a0]
test rbx, rbx
je 0x6d7d5914
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 0x6d7d590b
test rsi, rsi
je 0x6d7d590b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d7d58f0
lea rcx, [0x6d7f68c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d7d5b50
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d7d5b60
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d7d5b70
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d7d5bb1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d7d5ba8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7d5bb3
add rax, 0x28
cmp rax, r9
jne 0x6d7d5b94
xor eax, eax
ret

Function at 0x6d7d5c50
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f31f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d7d5cbd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d5cbd
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 0x6d7d5cbd
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 0x6d7d5cb4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d5cbf
add rax, 0x28
cmp rax, r9
jne 0x6d7d5ca0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d7d5dc0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f31f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7d5de0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d5dd8
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 0x6d7d5e3d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d5e34
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d5e44
add rax, 0x28
cmp rax, r9
jne 0x6d7d5e20
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7d5e60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7f31f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7d5ece
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d5ece
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7d5ece
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7d5ece
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d7d5ec5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7d5ed5
add rcx, 0x28
cmp rcx, rax
jne 0x6d7d5eb0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7d5ee8
jmp 0x6d7d5ece
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7d5ef6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7d5ece
test r9d, r9d
jg 0x6d7d5ee0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7d6230
Capabilities:
Write file on windows

Disassembly:
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop