joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003beb0
Capabilities:
Set registry value

Disassembly:
jmp 0x14003beb0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x40
mov rsi, r9
mov r14, r8
mov r15, rdx
mov rdx, rcx
movzx ecx, byte [rsp + 0x70]
xor rcx, 1
sub rcx, 0x7fffffff
mov r8d, 0xf003f
call fcn.140003927
mov rbx, rax
xor dil, dil
test r14, r14
jne 0x14003bf01
test rsi, rsi
jne 0x14003bf25
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r14
mov r9d, 3
xor r8d, r8d
mov rdx, r15
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete dil
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
movzx eax, dil
jmp 0x14003bf3a
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
add rsp, 0x40
pop r15
ret

Function at 0x14003bf80
Capabilities:
Set registry value

Disassembly:
jmp 0x14003bf80
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x50
mov esi, r8d
mov r14, rdx
mov rdx, rcx
xor edi, edi
movzx ecx, r9b
xor rcx, 1
sub rcx, 0x7fffffff
mov r8d, 0xf003f
call fcn.140003927
mov rbx, rax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x78], esi
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 4]
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test eax, eax
jne 0x14003c019
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x14003c001
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
lea ecx, [rdi + 4]
call fcn.1400013de
test rax, rax
je 0x14003c033
mov edx, esi
mov rcx, rax
call fcn.14000148d
mov rdi, rax
mov qword [rsp + 0x30], rdi
lea rdx, [0x14014f6b8]
lea rcx, [rsp + 0x30]
call fcn.1400071e9
int3

Function at 0x14003c080
Capabilities:
Set registry value

Disassembly:
jmp 0x14003c080
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x50
mov rsi, r8
mov r14, rdx
mov rdx, rcx
xor edi, edi
movzx ecx, r9b
xor rcx, 1
sub rcx, 0x7fffffff
mov r8d, 0xf003f
call fcn.140003927
mov rbx, rax
mov qword [rsp + 0x38], rax
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rsi + rax], 0
jne 0x14003c0d0
inc eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov r9d, 1
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test eax, eax
jne 0x14003c127
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x14003c10f
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
mov ecx, 4
call fcn.1400013de
test rax, rax
je 0x14003c143
mov edx, esi
mov rcx, rax
call fcn.14000148d
mov rdi, rax
mov qword [rsp + 0x30], rdi
lea rdx, [0x14014f6b8]
lea rcx, [rsp + 0x30]
call fcn.1400071e9
int3
Function at 0x14003c780
Capabilities:
Get disk information

Disassembly:
jmp 0x14003c780
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x14015dda8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rsi, r9
mov rbp, r8
mov rdi, rdx
mov rbx, rcx
lea rcx, [rsp + 0x20]
call fcn.140005a15
nop
cmp byte [rbx + 8], 0
je 0x14003c7cc
cmp dword [rbx + 0x20], 0
jne 0x14003c7cc
mov rcx, qword [rbx]
call fcn.1400020a9
mov byte [rbx + 8], 0
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rsi
test rdi, rdi
je 0x14003c8bb
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140006cd5
lea rcx, [rsp + 0x20]
call fcn.14000452a
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call fcn.140006078
test eax, eax
jne 0x14003c847
test rdi, rdi
je 0x14003c8bb
mov dword [rbx + 0x20], eax
lea rdx, [rsp + 0x30]
lea rcx, [rbx + 0x158]
call fcn.140006cd5
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call fcn.140004e99
test eax, eax
je 0x14003c84e
xor bl, bl
jmp 0x14003c8db
lea rcx, [rsp + 0x30]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x14003c860
lea rcx, [0x14011e210]
lea r8, [rsp + 0x30]
test rax, rax
cmove r8, rcx
lea rdx, [rbx + 0x158]
lea rcx, [rsp + 0x28]
call fcn.14000525e
lea rdx, [rbx + 0x28]
mov rcx, qword [rsp + 0x28]
call fcn.140001d1b
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x14003c8af
mov byte [rbx + 0x150], 1
mov byte [rbx + 8], 1
lea rcx, [rsp + 0x28]
call fcn.140003080
jmp 0x14003c8d7
mov rax, 0xffffffffffffffff
mov dword [rbx + 0x24], eax
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [rbx + 0x20], eax
cmp eax, 0
setne al
mov byte [rbx + 8], al
movzx ebx, byte [rbx + 8]
lea rcx, [rsp + 0x20]
call fcn.140003080
movzx eax, bl
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140003b70
mov rbx, qword [rsp + 0x180]
add rsp, 0x150
pop rdi
pop rsi
pop rbp
ret

Function at 0x140040210
Capabilities:
Get disk size

Disassembly:
jmp 0x140040210
sub rsp, 0x28
xor r9d, r9d
mov qword [rsp + 0x38], 0
xor r8d, r8d
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x140040237
add rsp, 0x28
ret
mov rax, qword [rsp + 0x38]
add rax, 0xfffff
shr rax, 0x14
add rsp, 0x28
ret
Function at 0x1400f1358
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.14000205e
sub rsp, rax
mov rax, qword [0x14015dda8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140006a55
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400f13a7
mov rax, rbp
jmp 0x1400f14af
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x176620]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140002f54
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x176620]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400f14ab
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 0x1400f14ab
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140002f54
test rax, rax
js 0x1400f14ab
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400f14ab
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400f149d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400f149d
cmp byte [rcx], 0xd
jne 0x1400f1483
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400f1492
cmp byte [rcx + 1], 0xa
jne 0x1400f1492
inc rcx
jmp 0x1400f1492
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x15eb30]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400f1465
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400f14af
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140003b70
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 0x140106ca8
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x140176620]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140106d06
cmp word [rdx], r12w
jne 0x140106d06
or byte [rax + r8*8 + 0x38], cl
jmp 0x140106d0c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140106e67
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140106e42
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140106d45
mov rcx, r9
jmp 0x140106d68
cmp r9, rdx
jae 0x140106d7f
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140106d29
jmp 0x140106e67
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140106e3c
cmp dword [rsp + 0x80], edi
je 0x140106e3c
mov rdx, r14
lea r11, [0x140176620]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140106e15
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140106de8
mov word [rbx], r12w
jmp 0x140106e63
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140106df1
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140106e63
cmp word [rsp + 0x70], r12w
jne 0x140106e22
cmp rbx, rsi
je 0x140106de2
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140001ed8
cmp word [rsp + 0x70], r12w
je 0x140106e67
mov word [rbx], r13w
jmp 0x140106e63
lea r11, [0x140176620]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140106e5f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140106e67
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400054d0]
mov dword [rax], 1
mov rax, qword [0x1400054e0]
mov dword [rax], 1
mov rax, qword [0x1400054f0]
mov dword [rax], 1
mov rax, qword [0x140005490]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001c00
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x1400028d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x14000296a
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x14000294e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002942
cmp qword [rbp - 0x10], 0
je 0x140002942
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002908
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000296b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x1400020b8
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400660c0], 0
je 0x1400020db
mov edx, 1
jmp 0x1400022a2
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
xor ebx, ebx
mov r8, qword [rax + 0x10]
xor eax, eax
mov rdx, qword [r8 + 0x30]
test rdx, rdx
je 0x14000213e
movsxd rcx, dword [rdx + 0x3c]
mov ecx, dword [rdx + rcx + 0x88]
test ecx, ecx
je 0x140002136
lea rax, [rcx + rdx]
mov ecx, dword [rax + 0xc]
add rcx, rdx
mov r9d, dword [rcx]
or r9d, 0x20202020
cmp r9d, 0x6c64746e
jne 0x140002136
mov ecx, dword [rcx + 4]
or ecx, 0x20202020
cmp ecx, 0x6c642e6c
je 0x140002148
mov r8, qword [r8]
mov rbx, rdx
jmp 0x1400020f0
test rax, rax
jne 0x14000214b
jmp 0x1400022a2
mov rbx, rdx
mov ebp, dword [rax + 0x1c]
mov edi, dword [rax + 0x24]
xor esi, esi
lea r13, [0x1400660c8]
mov edx, dword [rax + 0x18]
mov eax, dword [rax + 0x20]
add rdi, rbx
add rbp, rbx
lea r10d, [rdx - 1]
add rax, rbx
lea r12, [rax + r10*4]
add r10, r10
add r10, rdi
mov ecx, dword [r12]
add rcx, rbx
cmp word [rcx], 0x775a
jne 0x1400021b3
call fcn.140002000
mov r11d, esi
inc esi
shl r11, 4
add r11, r13
mov dword [r11], eax
movzx eax, word [r10]
mov eax, dword [rbp + rax*4]
mov dword [r11 + 4], eax
xor eax, eax
mov qword [r11 + 8], rax
cmp esi, 0x1f4
je 0x1400021c5
sub r12, 4
lea rax, [r10 - 2]
cmp rdi, r10
je 0x1400021c5
mov r10, rax
jmp 0x140002177
mov dword [0x1400660c0], esi
lea ebp, [rsi - 1]
lea r10, [0x1400660c8]
test ebp, ebp
je 0x14000222c
lea rdx, [0x1400660c0]
xor ecx, ecx
lea eax, [rcx + 1]
mov r8d, dword [rdx + 0xc]
mov rcx, rax
shl rax, 4
add rax, r10
mov r9d, dword [rax + 4]
cmp r9d, r8d
jae 0x140002220
mov edi, dword [rdx + 8]
mov r11, qword [rdx + 0x10]
mov r12d, dword [rax]
mov dword [rdx + 0xc], r9d
mov r9, qword [rax + 8]
mov dword [rdx + 8], r12d
mov qword [rdx + 0x10], r9
mov dword [rax], edi
mov dword [rax + 4], r8d
mov qword [rax + 8], r11
add rdx, 0x10
cmp ecx, ebp
jb 0x1400021e2
dec ebp
jmp 0x1400021d5
mov eax, dword [0x1400660cc]
mov r13d, dword [0x1400660dc]
xor edi, edi
lea r15, [0x140062260]
sub r13d, eax
lea r12, [rbx + rax]
mov r14d, edi
cmp edi, r13d
jae 0x1400020d1
lea rdx, [r12 + rdi]
mov r8d, 3
mov rcx, r15
inc rdi
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x140002249
lea rdi, [0x1400660c0]
test r14d, r14d
je 0x1400020d1
add rdi, 0x10
cmp esi, ebp
je 0x1400020d1
mov ecx, dword [rdi - 4]
mov r8d, r13d
mov edx, r14d
inc ebp
add rcx, rbx
call fcn.140002028
mov qword [rdi], rax
jmp 0x14000227e
mov eax, edx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140002f20
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
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.140008bb0
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.140008bb0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002f90
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400680f4]
mov rbx, rcx
test esi, esi
jle 0x1400030c0
mov rax, qword [0x1400680f8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002fdb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140003065
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002fc0
mov rcx, rbx
call fcn.1400039e0
mov rdi, rax
test rax, rax
je 0x1400030e2
mov rax, qword [0x1400680f8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003b20
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400680f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400030c7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000305e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140003070
add dword [0x1400680f4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400680f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000305e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002f20
nop dword [rax]
xor esi, esi
jmp 0x140002fe8
mov rax, qword [0x1400680f8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002f20
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002f20
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003650
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140068160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140068140]
test rbx, rbx
je 0x1400036ac
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400036a3
test rsi, rsi
je 0x1400036a3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003688
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400039e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140063760]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003a00
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003a08
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003a00
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140003a5d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003a54
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003a00
add rax, 0x28
cmp rax, r9
jne 0x140003a40
xor eax, eax
ret

Function at 0x140003a60
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140063760]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140003a7f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003a88
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140003a7f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003b20
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140063760]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003b3f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003b48
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x180005740
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x47], 0
je 0x180005763
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x34]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x46
jb 0x180005750
mov byte [rcx + 0x47], 0
mov rax, rcx
ret

Function at 0x180005770
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov r9, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x68], rcx
xor esi, esi
cmp byte [r8 + 6], sil
je 0x1800057a4
mov ecx, esi
lea eax, [rcx - 0x34]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 5
jb 0x180005790
mov byte [r8 + 6], sil
lea rax, [r8 + 5]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], sil
cmp r9, rax
je 0x1800057d9
mov r8d, 5
mov rdx, r9
lea rcx, [rsp + 0x48]
call fcn.18000a920
nop
cmp byte [rbx + 0xa], 0
je 0x180005803
mov rcx, rsi
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x34]
xor byte [rcx + rbx], al
inc rcx
cmp rcx, 9
jb 0x1800057f0
mov byte [rbx + 0xa], 0
lea rax, [rbx + 9]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], 0
cmp rbx, rax
je 0x180005838
mov r8d, 9
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.18000a920
nop
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x28]
movzx edx, byte [rsp + 0x20]
mov rcx, rdi
call fcn.18000cb50
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x180005891
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000588b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000588b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800ef630
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x1800058d1
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800058cc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800058cc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800ef630
mov rax, rdi
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret