joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140038944
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x140038976
call fcn.14002ef64
mov dword [rax], 0x16
call fcn.140029d3c
jmp 0x140038a95
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140038a95
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140038a95
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400389a5
lock or dword [rcx + 0x14], 0x10
jmp 0x140038a95
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400389b9
call fcn.140039240
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140037220
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140039758
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140038a83
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140038a4e
mov rcx, rsi
call fcn.140037220
cmp eax, edi
je 0x140038a39
mov rcx, rsi
call fcn.140037220
cmp eax, 0xfffffffe
je 0x140038a39
mov rcx, rsi
call fcn.140037220
movsxd rbx, eax
lea r14, [0x1400c96f0]
mov rcx, rsi
sar rbx, 6
call fcn.140037220
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140038a40
lea rdx, [0x140071440]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140038a4e
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140038a72
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140038a72
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140038a72
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x140038a98
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140038fc0
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.140022b80
sub rsp, rax
mov rax, qword [0x140071078]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140037220
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14003900f
mov rax, rbp
jmp 0x140039117
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 + 0xc96f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140039f30
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xc96f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140039113
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 0x140039113
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140039f30
test rax, rax
js 0x140039113
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140039113
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140039105
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140039105
cmp byte [rcx], 0xd
jne 0x1400390eb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400390fa
cmp byte [rcx + 1], 0xa
jne 0x1400390fa
inc rcx
jmp 0x1400390fa
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x71490]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400390cd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140039117
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140022750
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 0x1400392ac
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, [0x1400c96f0]
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 0x14003930a
cmp word [rdx], r12w
jne 0x14003930a
or byte [rax + r8*8 + 0x38], cl
jmp 0x140039310
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14003946b
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140039446
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140039349
mov rcx, r9
jmp 0x14003936c
cmp r9, rdx
jae 0x140039383
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 0x14003932d
jmp 0x14003946b
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 0x140039440
cmp dword [rsp + 0x80], edi
je 0x140039440
mov rdx, r14
lea r11, [0x1400c96f0]
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 0x140039419
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x1400393ec
mov word [rbx], r12w
jmp 0x140039467
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 0x1400393f5
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140039467
cmp word [rsp + 0x70], r12w
jne 0x140039426
cmp rbx, rsi
je 0x1400393e6
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140039f38
cmp word [rsp + 0x70], r12w
je 0x14003946b
mov word [rbx], r13w
jmp 0x140039467
lea r11, [0x1400c96f0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140039463
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14003946b
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 0x14004d060
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1400c9d28]
mov qword [rsp + 0x98], rax
mov eax, 6
mov word [rsp + 0x42], ax
mov eax, 9
mov word [rsp + 0x44], ax
mov eax, 0x2c
mov word [rsp + 0x46], ax
mov eax, 0x1a
mov word [rsp + 0x48], ax
mov eax, 0x28
mov word [rsp + 0x4a], ax
mov eax, 0x54
mov word [rsp + 0x4c], ax
mov eax, 0x7c
mov word [rsp + 0x4e], ax
mov eax, 0x5a
mov word [rsp + 0x50], ax
mov eax, 0x29
mov word [rsp + 0x52], ax
mov eax, 1
mov word [rsp + 0x54], ax
mov eax, 0x1a
mov word [rsp + 0x56], ax
mov eax, 0x61
mov word [rsp + 0x58], ax
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x42]
call fcn.140020050
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call qword [rsp + 0x98]
mov qword [0x1400c9d10], rax
lea rcx, [rsp + 0x100]
call fcn.1400141a0
mov byte [rsp + 0x2e], 0x16
mov byte [rsp + 0x2f], 0xe
mov byte [rsp + 0x30], 0x24
mov byte [rsp + 0x31], 0x1b
mov byte [rsp + 0x32], 0x25
mov byte [rsp + 0x33], 9
mov byte [rsp + 0x34], 0x2a
mov byte [rsp + 0x35], 0x38
mov byte [rsp + 0x36], 0x24
mov byte [rsp + 0x37], 3
mov byte [rsp + 0x38], 0x13
mov byte [rsp + 0x39], 0x35
mov byte [rsp + 0x3a], 0xc
mov byte [rsp + 0x3b], 0xc
mov byte [rsp + 0x3c], 0x1b
mov byte [rsp + 0x3d], 0x17
mov byte [rsp + 0x3e], 0
mov byte [rsp + 0x3f], 0x27
mov byte [rsp + 0x40], 0x43
lea rdx, [rsp + 0x118]
lea rcx, [rsp + 0x2e]
call fcn.1400202f0
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x60], rax
mov rax, qword [0x1400c9d10]
mov qword [rsp + 0xc0], rax
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0xc0]
call fcn.1400582f0
mov qword [0x1400c9d38], rax
lea rcx, [rsp + 0x118]
call fcn.140002650
mov byte [rsp + 0x20], 6
mov byte [rsp + 0x21], 9
mov byte [rsp + 0x22], 0x2c
mov byte [rsp + 0x23], 0x1a
mov byte [rsp + 0x24], 0x28
mov byte [rsp + 0x25], 0x22
mov byte [rsp + 0x26], 0x36
mov byte [rsp + 0x27], 0x11
mov byte [rsp + 0x28], 0x2e
mov byte [rsp + 0x29], 0x18
mov byte [rsp + 0x2a], 2
mov byte [rsp + 0x2b], 4
mov byte [rsp + 0x2c], 0x34
mov byte [rsp + 0x2d], 0x4d
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x20]
call fcn.14001ff00
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400c9d10]
mov qword [rsp + 0xe8], rax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xe8]
call fcn.1400582f0
mov qword [0x1400c9cf8], rax
lea rcx, [rsp + 0x130]
call fcn.140002650
add rsp, 0x158
ret
Function at 0x1400582f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp qword [rsp + 0x60], 0
je 0x14005830e
cmp qword [rsp + 0x68], 0
jne 0x140058315
xor eax, eax
jmp 0x140058441
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov dword [rsp], 0
jmp 0x1400583b6
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x18]
cmp dword [rsp], eax
jae 0x14005843f
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x1400583fe
inc rax
test dl, dl
jne 0x1400583eb
xor eax, eax
jmp 0x140058403
sbb eax, eax
or eax, 1
test eax, eax
jne 0x14005843a
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x38]
movzx eax, word [rcx + rax*2]
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x10]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
jmp 0x140058441
jmp 0x1400583ae
xor eax, eax
add rsp, 0x58
ret
Function at 0x140001150
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbx, rax
call fcn.140001910
test eax, eax
jne 0x140001182
mov ecx, dword [rsp + 0x20]
mov rdx, rbx
call fcn.140001f30
add rsp, 0x30
pop rbx
ret
Function at 0x140001f30
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x1400097c0]
mov rbx, rdx
mov qword [rsp + 0x38], rdi
mov edi, ecx
test rax, rax
jne 0x140001f66
mov rcx, qword [0x1400098b8]
lea rdx, [0x140006b20]
call fcn.1400033a0
mov qword [0x1400097c0], rax
xor r8d, r8d
mov rdx, rbx
mov ecx, edi
call rax
mov rax, qword [0x1400097f0]
test rax, rax
jne 0x140001f96
mov rcx, qword [0x1400098b8]
lea rdx, [0x140006d70]
call fcn.1400033a0
mov qword [0x1400097f0], rax
lea rcx, [0x140006680]
call rax
mov rbx, rax
test rax, rax
je 0x140002099
mov rax, qword [0x1400097d0]
mov qword [rsp + 0x30], rsi
test rax, rax
jne 0x140001fd6
mov rcx, qword [0x1400098b8]
lea rdx, [0x140006e10]
call fcn.1400033a0
mov qword [0x1400097d0], rax
xor r9d, r9d
lea rcx, str._MessageBox
xor r8d, r8d
xor edx, edx
call rax
mov rsi, qword [str._MessageBox]
mov rdi, rax
mov rax, qword [0x140009900]
test rax, rax
jne 0x140002017
mov rcx, qword [0x1400098b8]
lea rdx, [0x140006df8]
call fcn.1400033a0
mov qword [0x140009900], rax
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call rax
mov rax, qword [0x1400097d0]
test rax, rax
jne 0x140002048
mov rcx, qword [0x1400098b8]
lea rdx, [0x140006e10]
call fcn.1400033a0
mov qword [0x1400097d0], rax
xor r9d, r9d
lea rcx, str._SHGetSpecialFolderPath
xor r8d, r8d
xor edx, edx
call rax
mov rsi, qword [str._SHGetSpecialFolderPath]
mov rdi, rax
mov rax, qword [0x140009900]
test rax, rax
jne 0x140002089
mov rcx, qword [0x1400098b8]
lea rdx, [0x140006df8]
call fcn.1400033a0
mov qword [0x140009900], rax
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call rax
mov rsi, qword [rsp + 0x30]
call fcn.1400011f0
lea rcx, str.PYTHONINSPECT
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140002137
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdi, rax
mov rax, qword [0x140009868]
test rax, rax
jne 0x1400020e7
mov rcx, qword [0x1400098b8]
lea rdx, [0x140006a18]
call fcn.1400033a0
mov qword [0x140009868], rax
lea rdx, str._stdin_
mov rcx, rdi
call rax
test eax, eax
je 0x140002137
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdi, rax
mov rax, qword [0x140009960]
test rax, rax
jne 0x140002128
mov rcx, qword [0x1400098b8]
lea rdx, [0x140006a30]
call fcn.1400033a0
mov qword [0x140009960], rax
xor r8d, r8d
lea rdx, str._stdin_
mov rcx, rdi
call rax
mov rax, qword [0x1400097b8]
mov rdi, qword [rsp + 0x38]
test rax, rax
jne 0x140002162
mov rcx, qword [0x1400098b8]
lea rdx, [0x140006ab8]
call fcn.1400033a0
mov qword [0x1400097b8], rax
call rax
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x140001920
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.140007820
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140007820
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x140001990
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14000f124]
mov r12, rcx
test ebx, ebx
jle 0x140001ac0
mov rax, qword [0x14000f128]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x1400019db
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x140001a65
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x1400019c0
mov rcx, r12
call fcn.140002360
mov rsi, rax
test rax, rax
je 0x140001ae2
mov rax, qword [0x14000f128]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.140002490
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000f128]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001ac7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001a5e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001a70
add dword [0x14000f124], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x14000f128]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001a5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001920
nop dword [rax]
xor ebx, ebx
jmp 0x1400019e8
mov rax, qword [0x14000f128]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001920
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140001920
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001fb0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x14000f180]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000f160]
test rbx, rbx
je 0x14000200c
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140002003
test r12, r12
je 0x140002003
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001fe8
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002360
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000b380]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002380
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002388
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002380
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1400023d5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400023cc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002380
add rax, 0x28
cmp rax, r9
jne 0x1400023b8
xor eax, eax
ret

Function at 0x1400023e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000b380]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002400
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002408
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002400
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140002490
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000b380]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400024b0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x1400024b8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x140006670
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 0x1400066a0
xor eax, eax
jmp 0x140006763
mov rbp, rbx
cmp word [rax], si
je 0x1400066c5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400066ac
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400066a8
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.140002f48
movsxd r14, eax
test eax, eax
jne 0x140006703
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140006699
mov rcx, r14
call fcn.1400fb6fc
mov rdi, rax
test rax, rax
jne 0x14000671c
xor ecx, ecx
call fcn.140005338
jmp 0x1400066f8
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.140002f48
test eax, eax
jne 0x14000674d
mov rcx, rdi
call fcn.140005338
jmp 0x140006757
xor ecx, ecx
call fcn.140005338
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 0x140006810
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140363718]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, r8
mov dword [rsp + 0x20], 0xf0000040
mov rsi, rdx
mov rdi, rcx
xor r8d, r8d
lea rcx, [rsp + 0x38]
xor edx, edx
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14000685c
mov eax, 0x1b
jmp 0x14000692e
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1400068a0
mov rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov qword [rsp + 0x38], 0
jmp 0x14000692e
mov rcx, rbp
call fcn.140052b70
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
lea edx, [r8 + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x30], 0x20
jne 0x14000690a
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov r8, rdi
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000691a
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000692c
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1402ab180
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140008800
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov ebx, ecx
call fcn.14003f070
test eax, eax
jne 0x14000899d
mov qword [rsp + 0x30], rbp
xor ebp, ebp
cmp byte [reloc.WS2_32.dll_accept], bpl
mov qword [rsp + 0x38], rsi
jne 0x140008835
mov esi, ebp
jmp 0x140008851
mov ecx, 5
call qword [0x140364590]
mov rsi, rax
test rax, rax
je 0x140008851
mov rcx, rax
call qword [0x1403645a0]
test ebx, ebx
jle 0x14000897f
test rdi, rdi
je 0x14000897f
cmp dword [0x1404048c0], ebp
jne 0x140008908
xor ecx, ecx
call fcn.1400ad6d0
movups xmm0, xmmword [str.expand_32_byte_k]
movaps xmmword [0x1404048c0], xmm0
test rax, rax
jne 0x1400088a8
xorps xmm0, xmm0
mov qword [0x1404048f0], rax
movups xmmword [0x1404048d0], xmm0
mov dword [0x1404048f8], eax
movups xmmword [0x1404048e0], xmm0
jmp 0x1400088ec
mov ecx, dword [0x1403646d0]
test ecx, ecx
je 0x1400088da
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x1404048d0], xmm0
mov dword [0x1404048d0], ecx
movups xmmword [0x1404048e0], xmm0
mov qword [0x1404048f0], rax
mov dword [0x1404048f8], eax
jmp 0x1400088ec
lea r8, [0x1404048d0]
mov edx, 0x2c
mov rcx, rax
call qword [rax + 0x68]
mov eax, dword [0x1404048f0]
xor cl, cl
mov byte [0x140404940], cl
mov dword [0x1404048fc], eax
mov dword [0x1404048f0], ebp
jmp 0x14000890f
movzx ecx, byte [0x140404940]
movzx eax, cl
lea rbp, [0x140404900]
cmp ebx, eax
jle 0x140008961
nop dword [rax]
test cl, cl
je 0x14000893f
movzx r8d, cl
mov rdx, rbp
mov rcx, rdi
call fcn.1402ec850
movzx ecx, byte [0x140404940]
sub ebx, ecx
add rdi, rcx
inc dword [0x1404048f0]
lea rdx, [0x1404048c0]
mov rcx, rbp
call fcn.14010f8b0
mov cl, 0x40
mov byte [0x140404940], cl
cmp ebx, 0x40
jg 0x140008920
movzx eax, cl
mov rcx, rdi
sub eax, ebx
movsxd r8, ebx
movsxd rdx, eax
add rdx, rbp
call fcn.1402ec850
sub byte [0x140404940], bl
jmp 0x140008985
mov dword [0x1404048c0], ebp
test rsi, rsi
je 0x140008993
mov rcx, rsi
call qword [0x1403645b0]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret