joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140126014
Capabilities:
Get file size

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

Function at 0x140126974
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.1400fc8d0
sub rsp, rax
mov rax, qword [0x1401b4a98]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140121b5c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1401269c3
mov rax, rbp
jmp 0x140126acb
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 + 0x1bf9f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140126e5c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1bf9f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140126ac7
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 0x140126ac7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140126e5c
test rax, rax
js 0x140126ac7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140126ac7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140126ab9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140126ab9
cmp byte [rcx], 0xd
jne 0x140126a9f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140126aae
cmp byte [rcx + 1], 0xa
jne 0x140126aae
inc rcx
jmp 0x140126aae
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1b5020]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140126a81
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140126acb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400fb890
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 0x140127f38
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, [0x1401bf9f0]
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 0x140127f8f
cmp word [rdx], r13w
jne 0x140127f8f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140127f94
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1401280b9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1401280da
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140127fcd
mov rdx, r9
mov word [rbx], cx
jmp 0x140127ff4
cmp r9, r8
jae 0x140128004
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 0x140127fae
jmp 0x1401280b9
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 0x1401280ae
cmp dword [rsp + 0x80], esi
je 0x1401280ae
lea r8, [0x1401bf9f0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140128086
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140128056
mov word [rbx], r13w
jmp 0x1401280b6
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 0x140128063
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1401280b6
cmp word [rsp + 0x70], r13w
jne 0x140128093
cmp rbx, r14
je 0x140128050
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140126e64
cmp word [rsp + 0x70], r13w
je 0x1401280b9
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, [0x1401bf9f0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1401280b3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1401280b9
Function at 0x14012ab3c
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 0x14012abc3
mov rsi, rbx
cmp word [rax], bp
je 0x14012ab82
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14012ab6c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14012ab68
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140120828
mov rdi, rax
test rax, rax
je 0x14012abb0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400fe220
mov rbp, rdi
xor ecx, ecx
call fcn.1401207ec
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 0x14012da88
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.1401203b0
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 0x14012db29
cmp ebx, dword [rsp + 0x30]
je 0x14012db22
test esi, esi
je 0x14012db22
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14012dafd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14012db0a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14012dae7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14012db0e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14012db2b
mov eax, 1
jmp 0x14012db2b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140131d04
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.140126e64
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140126e64
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140131e54
cmp rax, 0xffffffffffffffff
je 0x140131e54
xor edi, edi
test rbp, rbp
jle 0x140131dff
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140120888
mov rbx, rax
test rax, rax
jne 0x140131d8c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140131df5
mov edx, 0x8000
mov ecx, r14d
call fcn.14011e114
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.1401256d0
cmp eax, 0xffffffff
je 0x140131dd5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140131d9c
mov edx, r15d
mov ecx, r14d
call fcn.14011e114
jmp 0x140131df5
cmp byte [rsi + 0x38], dil
je 0x140131dec
cmp dword [rsi + 0x34], 5
jne 0x140131dec
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140131df5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1401207ec
jmp 0x140131e68
jns 0x140131e68
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140126e64
cmp rax, 0xffffffffffffffff
jne 0x140131e20
cmp byte [rsi + 0x30], dil
je 0x140131e68
mov edi, dword [rsi + 0x2c]
jmp 0x140131e68
mov ecx, r14d
call fcn.14012b5f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140131e68
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 0x140131e68
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140131e61
mov eax, dword [rsi + 0x2c]
jmp 0x140131e66
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140126e64
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 0x140132750
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x140132776
xor eax, eax
cmp ax, word [rcx]
je 0x140132776
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140132776
test al, 0x10
je 0x140132776
mov al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret
Function at 0x1401338a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
call fcn.140021e30
mov rcx, rax
test rax, rax
je 0x140133a49
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14000cca5.0]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
xor ebp, ebp
mov edi, ebp
nop
lea edx, [rdi + 1]
test edx, edx
js 0x140133a3e
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edx
or eax, ecx
jge 0x14013390b
lea rcx, [rsp + 0x48]
call fcn.140024860
mov rbx, qword [rsp + 0x48]
cmp dword [rbx - 8], 1
jle 0x140133923
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x48]
call fcn.140024920
mov rbx, qword [rsp + 0x48]
mov rdx, rbx
mov ecx, dword [rbx - 0xc]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
je 0x1401339b3
test rbx, rbx
jne 0x14013393e
mov eax, ebp
jmp 0x140133952
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.140111dbc
test eax, eax
js 0x140133a3e
cmp eax, dword [rbx - 0xc]
jg 0x140133a3e
mov dword [rbx - 0x10], eax
mov eax, eax
mov word [rbx + rax*2], bp
cmp edi, dword [rbx - 0x10]
ja 0x1401338e0
lea rcx, [rbx - 0x18]
call fcn.1400a9800
add rax, 0x18
mov qword [rsi], rax
mov rdi, 0xffffffffffffffff
lock xadd dword [rbx - 8], edi
sub edi, 1
jg 0x1401339a3
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
mov rax, qword [rax + 8]
call qword [case.0x14000cca5.0]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
call fcn.140021e30
nop
mov rcx, rax
test rax, rax
je 0x140133a33
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14000cca5.0]
add rax, 0x18
mov qword [rsi], rax
lea rdx, [0x14017013c]
mov rdi, 0xffffffffffffffff
cmp rdx, 0x10000
jae 0x1401339f9
movzx edx, dx
mov rcx, rsi
call fcn.1400246e0
jmp 0x140133a16
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140133a00
mov r8d, eax
mov rcx, rsi
call fcn.140024a30
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1401339a3
mov rcx, qword [rdx]
mov rax, qword [rcx]
jmp 0x140133999
mov ecx, 0x80004005
call fcn.140021c20
int3
mov ecx, 0x80070057
call fcn.140021c20
nop
mov ecx, 0x80004005
call fcn.140021c20
int3
Function at 0x14013a7d0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push r12
push r14
sub rsp, 0x20
mov r14, r8
mov r12, rdx
mov rbx, rcx
test rdx, rdx
je 0x14013a905
test r8, r8
je 0x14013a905
cmp r9d, 1
jb 0x14013a905
cmp qword [rcx + 0x10], 0
je 0x14013a905
cmp qword [rcx + 0x18], 0
je 0x14013a905
test r9d, r9d
jle 0x14013a8f6
mov qword [rsp + 0x40], rbp
sub r12, r8
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r15
mov r15d, r9d
nop dword [rax + rax]
mov rdi, qword [rbx + 0x10]
xor ebp, ebp
mov rsi, qword [rbx + 0x18]
mov r8, rdi
mov edx, dword [rbx + 8]
mov r9, rsi
test edx, edx
jle 0x14013a88a
mov rcx, qword [rbx]
call fcn.14013aae0
mov byte [rdi], al
lea rdi, [rdi + 1]
mov rcx, qword [rbx]
call fcn.14013aae0
mov byte [rsi], al
lea rsi, [rsi + 1]
mov edx, dword [rbx + 8]
inc ebp
cmp ebp, edx
jl 0x14013a857
mov rdi, qword [rbx + 0x10]
mov rsi, qword [rbx + 0x18]
mov r8, rdi
mov r9, rsi
movsxd r10, dword [rbx + 0xc]
dec edx
movzx eax, byte [r12 + r14]
lea rcx, [r10 + r8]
test edx, edx
jle 0x14013a8c6
sub r10, rcx
lea r8, [r10 + r9]
nop dword [rax]
nop dword [rax + rax]
sub al, byte [r8 + rcx]
dec edx
xor al, byte [rcx]
lea rcx, [rcx - 1]
test edx, edx
jg 0x14013a8b0
mov r9, rsi
mov r8, rdi
sub al, byte [r9]
xor al, byte [rbx + 0x21]
xor al, byte [r8]
mov byte [r14], al
inc r14
xor byte [rbx + 0x21], al
sub r15, 1
jne 0x14013a840
mov r15, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x20
pop r14
pop r12
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop r14
pop r12
pop rbx
ret
Function at 0x1400012f0
Capabilities:
Access peb ldr_data
Encode data using xor
Encrypt data using rc4 prga
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
xor ebp, ebp
lea rsi, [0x1400110fc]
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rsi]
xor bl, bl
mov edi, dword [rsi + 4]
xor cl, cl
cmp dword [0x1400110d0], eax
jne 0x14000133c
mov bl, 1
call qword [0x1400110d8]
movzx ecx, al
test bl, bl
je 0x14000138a
test cl, cl
je 0x14000138a
test edi, edi
jne 0x14000134c
mov al, 1
jmp 0x14000138c
xor bl, bl
xor al, al
cmp dword [0x1400110c0], edi
jne 0x140001365
mov bl, 1
call qword [0x1400110c8]
test al, al
sete al
cmp dword [0x1400110d0], edi
jne 0x14000137a
mov bl, 1
call qword [0x1400110d8]
test al, al
sete al
test bl, bl
jne 0x14000138c
lea rcx, str.ERROR:_Removed_version_value_was_invalid._n
call fcn.140001010
xor al, al
mov rcx, qword [rsi - 0x14]
mov byte [rsi + 9], al
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, rax
test rax, rax
jne 0x1400013a9
mov byte [rsi + 8], al
jmp 0x140001469
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x140001437
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x140001437
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0xc2ff9166
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x140001432
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x140001410
cmp r8d, 0x8589a566
je 0x14000143c
test r9d, r9d
jne 0x1400013f0
mov rax, qword [rax]
jmp 0x1400013c0
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
mov rcx, r14
mov rdx, qword [rsi - 0xc]
add rax, r10
call rax
test rax, rax
mov qword [rsi + 0xc], rax
setne al
mov byte [rsi + 8], al
inc ebp
add rsi, 0x30
cmp ebp, 2
jb 0x140001320
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400014a0
Capabilities:
Access peb ldr_data
Encode data using xor
Get kernel32 base address
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140011040]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebp, ebp
lea rsi, [0x1400110e0]
mov eax, ebp
mov rcx, rsi
cmp dword [rcx], 1
je 0x140001589
inc eax
add rcx, 0x30
cmp eax, 2
jb 0x1400014d1
mov rsi, rbp
xor eax, eax
lea rdi, [rsp + 0x30]
mov ecx, 0x30
rep stosb byte [rdi], al
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop word [rax + rax]
mov r9, qword [rax + 0x30]
movsxd rcx, dword [r9 + 0x3c]
mov r11d, dword [rcx + r9 + 0x88]
add r11, r9
cmp r11, r9
je 0x140001584
mov r8d, dword [r11 + 0x18]
test r8d, r8d
je 0x140001584
mov ebx, dword [r11 + 0x20]
nop word [rax + rax]
dec r8d
mov edi, 0xc0932ff8
lea rcx, [rbx + r8*4]
mov ecx, dword [rcx + r9]
add rcx, r9
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x14000157f
nop dword [rax]
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, edi
imul edi, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x140001560
cmp edi, 0x4e91d50e
je 0x1400015a7
test r8d, r8d
jne 0x140001540
mov rax, qword [rax]
jmp 0x140001510
cdqe
lea rcx, [rax + rax*2]
add rcx, rcx
cmp byte [rsi + rcx*8 + 0x24], bpl
je 0x1400014e5
mov rsi, qword [rsi + rcx*8 + 0x28]
jmp 0x1400014e8
mov ecx, dword [r11 + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [r11 + 0x1c]
add rcx, r9
mov eax, dword [rcx + rdx*4]
add rax, r9
call rax
mov r9d, 0x30
mov qword [rsp + 0x20], rbp
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, rax
call rsi
mov ecx, dword [rsp + 0x58]
test eax, eax
cmovne ecx, ebp
mov eax, ecx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000bbd0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000b060
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rcx + 4], edx
lea r9, [rcx + 8]
mov eax, 1
nop dword [rax]
mov r8d, edx
lea r9, [r9 + 4]
shr r8d, 0x1e
xor r8d, edx
imul edx, r8d, 0x6c078965
add edx, eax
inc rax
mov dword [r9 - 4], edx
cmp rax, 0x270
jb 0x14000b070
mov dword [rcx], 0x270
ret

Function at 0x14000ba30
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x14000ba91
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x14000ba50
mov ecx, dword [r9]
jmp 0x14000bb78
cmp ecx, 0x4e0
jb 0x14000bb78
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x14000bab0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x14000bb00
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x14000c5f4
Capabilities:
Parse pe header

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

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140007e88
Function at 0x14000d2f0
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 0x14000d320
xor eax, eax
jmp 0x14000d3e3
mov rbp, rbx
cmp word [rax], si
je 0x14000d345
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000d32c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000d328
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.14000d240
movsxd r14, eax
test eax, eax
jne 0x14000d383
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000d319
mov rcx, r14
call fcn.140009b8c
mov rdi, rax
test rax, rax
jne 0x14000d39c
xor ecx, ecx
call fcn.140008f18
jmp 0x14000d378
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.14000d240
test eax, eax
jne 0x14000d3cd
mov rcx, rdi
call fcn.140008f18
jmp 0x14000d3d7
xor ecx, ecx
call fcn.140008f18
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