joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140079698
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 0x1400796c8
xor eax, eax
jmp 0x14007978b
mov rbp, rbx
cmp word [rax], si
je 0x1400796ed
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400796d4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400796d0
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.1400795b8
movsxd r14, eax
test eax, eax
jne 0x14007972b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400796c1
mov rcx, r14
call fcn.140074028
mov rdi, rax
test rax, rax
jne 0x140079744
xor ecx, ecx
call fcn.140072260
jmp 0x140079720
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.1400795b8
test eax, eax
jne 0x140079775
mov rcx, rdi
call fcn.140072260
jmp 0x14007977f
xor ecx, ecx
call fcn.140072260
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 0x14007cda4
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.140070d78
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 0x14007ce45
cmp ebx, dword [rsp + 0x30]
je 0x14007ce3e
test esi, esi
je 0x14007ce3e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14007ce19
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14007ce26
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14007ce03
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14007ce2a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14007ce47
mov eax, 1
jmp 0x14007ce47
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140081c0c
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.14005f160
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140081c96
cmp byte [rbp - 0x21], r15b
je 0x140081c91
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140081ccc
call fcn.140072564
test eax, eax
jne 0x140081cb8
cmp byte [rbp - 0x21], r15b
je 0x140081cb0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140081ccc
cmp byte [rbp - 0x21], r15b
je 0x140081cc9
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.14006a818
test eax, eax
jne 0x140081d6c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14005f160
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140081d0b
cmp byte [rbp - 0x21], r15b
je 0x140081d40
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140081d40
call fcn.140072564
test eax, eax
jne 0x140081d2c
cmp byte [rbp - 0x21], r15b
je 0x140081d25
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140081d40
cmp byte [rbp - 0x21], r15b
je 0x140081d3d
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.14006a818
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140081d6c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140081d6f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140081d7d
mov rcx, rdi
call fcn.140072260
cmp byte [rbp + 0x3f], r15b
je 0x140081d8c
mov rcx, qword [rbp + 0x27]
call fcn.140072260
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 0x140082c40
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.14007095c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14007095c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140082d90
cmp rax, 0xffffffffffffffff
je 0x140082d90
xor edi, edi
test rbp, rbp
jle 0x140082d3b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400721e8
mov rbx, rax
test rax, rax
jne 0x140082cc8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140082d31
mov edx, 0x8000
mov ecx, r14d
call fcn.14006cc5c
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.14007391c
cmp eax, 0xffffffff
je 0x140082d11
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140082cd8
mov edx, r15d
mov ecx, r14d
call fcn.14006cc5c
jmp 0x140082d31
cmp byte [rsi + 0x38], dil
je 0x140082d28
cmp dword [rsi + 0x34], 5
jne 0x140082d28
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140082d31
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140072260
jmp 0x140082da4
jns 0x140082da4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14007095c
cmp rax, 0xffffffffffffffff
jne 0x140082d5c
cmp byte [rsi + 0x30], dil
je 0x140082da4
mov edi, dword [rsi + 0x2c]
jmp 0x140082da4
mov ecx, r14d
call fcn.14007a6c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140082da4
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 0x140082da4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140082d9d
mov eax, dword [rsi + 0x2c]
jmp 0x140082da2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14007095c
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 0x140083910
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140083938
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140083938
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x2fbac1613
Capabilities:
Encode data using xor

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rdi, rcx
mov esi, edx
mov ecx, 0x40000
xor edx, edx
mov rbp, r8
xor r8d, r8d
call qword [0x2fbb1928c]
mov r8d, 0xa
xor edx, edx
mov r12, rax
mov rcx, rax
call qword [0x2fbb19284]
mov rbx, rax
test esi, esi
jle 0x2fbac167d
movsxd r9, esi
mov r8, rax
xor edx, edx
mov rcx, r12
call qword [0x2fbb19294]
mov rbx, rax
xor eax, eax
mov rdx, rax
and edx, 7
mov dl, byte [rbp + rdx]
xor dl, byte [rdi + rax]
mov byte [rbx + rax], dl
inc rax
cmp esi, eax
jg 0x2fbac1666
call fcn.2fbac15fa
mov rcx, rbx
mov r9, rbx
lea r8, [0x2fbac13db]
call fcn.2fbac13fa
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], 0
call qword [0x2fbb19234]
nop
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x2fbac24a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x2fbb145b0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x2fbac2519
mov rcx, r10
call fcn.2fbac2370
test eax, eax
je 0x2fbac2519
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x2fbac2516
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x2fbac250d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x2fbac2519
add r8, 0x28
cmp r8, r9
jne 0x2fbac24f8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x140001758
Capabilities:
Enumerate pe sections

Disassembly:
add eax, 0x406e41dc
add byte [0x1415ae245], bh
add dword [0x1a4a8d74f], eax
movabs al, byte [0xda7db73038c75000]
mov edi, 0x800ce572
adc byte [rcx], al
cld
outsd dx, dword [rsi]
ja 0x140001759
invalid
add byte [rcx], al
add dword [rax], ecx
or cl, byte [rdi + rsi*2 + 0x27]
rcl byte [rsi + rdi - 0x6d], cl
cmpsd dword [rsi], dword [rdi]
cmp dword [rcx], 0x4550
jne 0x1400017cd
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400017cd
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x1400017b4
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x1400017ae
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1400017b6
add rdx, 0x28
jmp 0x140001793
xor edx, edx
test rdx, rdx
jne 0x1400017bf
xor al, al
jmp 0x1400017d3
cmp dword [rdx + 0x24], 0
jge 0x1400017c9
mov al, 1
jmp 0x1400017d3
xor al, al
jmp 0x1400017d3
Function at 0x43cb30
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xffffffff
test edx, edx
jle 0x43cb75
sub edx, 1
lea r10, [rcx + rdx + 1]
movzx edx, byte [rcx]
mov r8d, 8
xor eax, edx
nop dword [rax]
movzx edx, ax
sar edx, 1
mov r9d, edx
xor r9w, 0xa001
test al, 1
mov eax, r9d
cmove eax, edx
sub r8d, 1
jne 0x43cb50
add rcx, 1
cmp r10, rcx
jne 0x43cb41
ret
Function at 0x447210
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x005093c0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x44727d
mov rcx, r8
call fcn.004470f0
test eax, eax
je 0x44727d
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 0x44727d
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 0x447274
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x44727f
add rax, 0x28
cmp rax, r9
jne 0x447260
xor eax, eax
add rsp, 0x28
ret
Function at 0x1401a48c0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x10090
call fcn.1401a9580
sub rsp, rax
mov rax, qword [0x1401ec580]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x80], bp
mov edi, 0x28
mov word [rsp + 0x30], bp
test al, al
je 0x1401a4982
nop dword [rax]
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.1401b8464
cmp rax, 1
jne 0x1401a49de
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x1401a495f
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x1401a4953
cmp rcx, 1
jb 0x1401a49de
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x1401a4920
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x1401a49b3
lea rcx, [rsp + 0x80]
call fcn.1401bb098
jmp 0x1401a49b5
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.1401a92b0
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1401aca40
int3
Function at 0x1401a8dd0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x1401ec580]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
mov edi, 0x28
test al, al
je 0x1401a8e81
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.1401b8464
cmp rax, 1
jne 0x1401a8eb7
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x1401a8e5d
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x1401a8e50
cmp rcx, 1
jb 0x1401a8eb7
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x1401a8e20
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401a92b0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.1401aca40
int3

Function at 0x1401a9130
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1401ec580]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x30], bp
mov edi, 0x28
test al, al
je 0x1401a91df
nop dword [rax]
nop dword [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.1401b8464
cmp rax, 1
jne 0x1401a9215
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x1401a91bc
nop
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x1401a91b0
cmp rcx, 1
jb 0x1401a9215
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x1401a9180
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401a92b0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1401aca40
int3

Function at 0x1401a9ce4
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1401ae123
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401ae123
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401ae123
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401ae123
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401ae123
cmp dword [rcx + 0x84], 0xe
jbe 0x1401ae123
cmp dword [rcx + 0xf8], 0
je 0x1401ae123
mov ecx, ebx
call fcn.1401ae1d4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1401adfb0
nop
cmp dword [rbp + 0x20], 0
je 0x1401ae171
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401ae17c
int3
xor r8d, r8d
xor edx, edx
jmp 0x1401ae0b4

Function at 0x1401ae2b8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1401ae123
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401ae123
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401ae123
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401ae123
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401ae123
cmp dword [rcx + 0x84], 0xe
jbe 0x1401ae123
cmp dword [rcx + 0xf8], 0
je 0x1401ae123
mov ecx, ebx
call fcn.1401ae1d4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1401adfb0
nop
cmp dword [rbp + 0x20], 0
je 0x1401ae171
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401ae17c
int3
xor r8d, r8d
xor edx, edx
jmp 0x1401ae0b4
Function at 0x1401bfff0
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 0x1401c0077
mov rsi, rbx
cmp word [rax], bp
je 0x1401c0036
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401c0020
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401c001c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1401bb570
mov rdi, rax
test rax, rax
je 0x1401c0064
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401c6370
mov rbp, rdi
xor ecx, ecx
call fcn.1401bc0b8
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 0x1401c277c
Capabilities:
Get file size

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

Function at 0x1401c6150
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401c6178
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401c6178
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140004ee0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r9d, 0x6c078965
mov r8d, 0xffffffff
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.140004e90
nop
mov rax, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x140005440
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x270
jne 0x140005463
mov rcx, qword [rsp + 0x40]
call fcn.140006070
nop
jmp 0x14000547b
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4e0
jb 0x14000547b
mov rcx, qword [rsp + 0x40]
call fcn.140005e70
nop
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0xb
mov rcx, qword [rsp + 0x40]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x12
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140005e70
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0x26f
mov qword [rsp + 0x30], 0xe3
mov qword [rsp], 0
jmp 0x140005ea0
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
cmp qword [rsp], 0xe3
jae 0x140005f22
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x10]
and eax, 1
test eax, eax
je 0x140005eee
mov dword [rsp + 0x14], 0x9908b0df
jmp 0x140005ef6
mov dword [rsp + 0x14], 0
mov eax, dword [rsp + 0x10]
shr eax, 1
xor eax, dword [rsp + 0x14]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x140005e95
mov qword [rsp + 8], 0xe3
jmp 0x140005f3a
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x26f
jae 0x140005fc1
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x18]
and eax, 1
test eax, eax
je 0x140005f8b
mov dword [rsp + 0x1c], 0x9908b0df
jmp 0x140005f93
mov dword [rsp + 0x1c], 0
mov eax, dword [rsp + 0x18]
shr eax, 1
xor eax, dword [rsp + 0x1c]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x140005f2d
mov qword [rsp + 0x38], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x50]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x140006015
mov dword [rsp + 0x24], 0x9908b0df
jmp 0x14000601d
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x20]
shr eax, 1
xor eax, dword [rsp + 0x24]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rsp + 0x50]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rsp + 0x50]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rsp + 0x50]
mov dword [rax], 0
add rsp, 0x48
ret