joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800a7e48
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rsi, r8
mov r11, r9
movdqa xmm0, xmmword [rsi]
movdqu xmm4, xmmword [rcx]
pxor xmm0, xmm4
movd ebx, xmm0
mov eax, 0xf0f0f0f0
and eax, ebx
shl ebx, 4
and ebx, 0xf0f0f0f0
movzx edi, ah
movdqa xmm5, xmmword [rsi + rdi + 0x420]
movzx edi, al
movdqa xmm4, xmmword [rsi + rdi + 0x420]
shr eax, 0x10
movzx edi, ah
movdqa xmm3, xmmword [rsi + rdi + 0x420]
movzx edi, al
movdqa xmm2, xmmword [rsi + rdi + 0x420]
psrldq xmm0, 4
movd eax, xmm0
and eax, 0xf0f0f0f0
movzx edi, bh
pxor xmm5, xmmword [rsi + rdi + 0x20]
movzx edi, bl
pxor xmm4, xmmword [rsi + rdi + 0x20]
shr ebx, 0x10
movzx edi, bh
pxor xmm3, xmmword [rsi + rdi + 0x20]
movzx edi, bl
pxor xmm2, xmmword [rsi + rdi + 0x20]
movd ebx, xmm0
shl ebx, 4
and ebx, 0xf0f0f0f0
movzx edi, ah
pxor xmm5, xmmword [rsi + rdi + 0x520]
movzx edi, al
pxor xmm4, xmmword [rsi + rdi + 0x520]
shr eax, 0x10
movzx edi, ah
pxor xmm3, xmmword [rsi + rdi + 0x520]
movzx edi, al
pxor xmm2, xmmword [rsi + rdi + 0x520]
psrldq xmm0, 4
movd eax, xmm0
and eax, 0xf0f0f0f0
movzx edi, bh
pxor xmm5, xmmword [rsi + rdi + 0x120]
movzx edi, bl
pxor xmm4, xmmword [rsi + rdi + 0x120]
shr ebx, 0x10
movzx edi, bh
pxor xmm3, xmmword [rsi + rdi + 0x120]
movzx edi, bl
pxor xmm2, xmmword [rsi + rdi + 0x120]
movd ebx, xmm0
shl ebx, 4
and ebx, 0xf0f0f0f0
movzx edi, ah
pxor xmm5, xmmword [rsi + rdi + 0x620]
movzx edi, al
pxor xmm4, xmmword [rsi + rdi + 0x620]
shr eax, 0x10
movzx edi, ah
pxor xmm3, xmmword [rsi + rdi + 0x620]
movzx edi, al
pxor xmm2, xmmword [rsi + rdi + 0x620]
psrldq xmm0, 4
movd eax, xmm0
and eax, 0xf0f0f0f0
movzx edi, bh
pxor xmm5, xmmword [rsi + rdi + 0x220]
movzx edi, bl
pxor xmm4, xmmword [rsi + rdi + 0x220]
shr ebx, 0x10
movzx edi, bh
pxor xmm3, xmmword [rsi + rdi + 0x220]
movzx edi, bl
pxor xmm2, xmmword [rsi + rdi + 0x220]
movd ebx, xmm0
shl ebx, 4
and ebx, 0xf0f0f0f0
movzx edi, ah
pxor xmm5, xmmword [rsi + rdi + 0x720]
movzx edi, al
pxor xmm4, xmmword [rsi + rdi + 0x720]
shr eax, 0x10
movzx edi, ah
pxor xmm3, xmmword [rsi + rdi + 0x720]
movzx edi, al
pxor xmm2, xmmword [rsi + rdi + 0x720]
movzx edi, bh
pxor xmm5, xmmword [rsi + rdi + 0x320]
movzx edi, bl
pxor xmm4, xmmword [rsi + rdi + 0x320]
shr ebx, 0x10
movzx edi, bh
pxor xmm3, xmmword [rsi + rdi + 0x320]
movzx edi, bl
pxor xmm2, xmmword [rsi + rdi + 0x320]
movdqa xmm0, xmm3
pslldq xmm3, 1
pxor xmm2, xmm3
movdqa xmm1, xmm2
pslldq xmm2, 1
pxor xmm5, xmm2
psrldq xmm0, 0xf
movq rdi, xmm0
movzx eax, word [r11 + rdi*2]
shl eax, 8
movdqa xmm0, xmm5
pslldq xmm5, 1
pxor xmm4, xmm5
psrldq xmm1, 0xf
movq rdi, xmm1
xor ax, word [r11 + rdi*2]
shl eax, 8
psrldq xmm0, 0xf
movq rdi, xmm0
xor ax, word [r11 + rdi*2]
movd xmm0, eax
pxor xmm0, xmm4
add rcx, 0x10
sub rdx, 1
jne 0x1800a7e56
movdqa xmmword [rsi], xmm0
pop rbx
pop rdi
pop rsi
ret
Function at 0x1800a80c8
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
mov rsi, r8
movdqa xmm0, xmmword [rsi]
movdqu xmm1, xmmword [rcx]
pxor xmm1, xmm0
pxor xmm0, xmm0
movd eax, xmm1
psrldq xmm1, 4
movzx edi, al
add rdi, rdi
pxor xmm0, xmmword [rsi + rdi*8 + 0x20]
movzx edi, ah
add rdi, rdi
pxor xmm0, xmmword [rsi + rdi*8 + 0x1020]
shr eax, 0x10
movzx edi, al
add rdi, rdi
pxor xmm0, xmmword [rsi + rdi*8 + 0x2020]
movzx edi, ah
add rdi, rdi
pxor xmm0, xmmword [rsi + rdi*8 + 0x3020]
movd eax, xmm1
psrldq xmm1, 4
movzx edi, al
add rdi, rdi
pxor xmm0, xmmword [rsi + rdi*8 + 0x4020]
movzx edi, ah
add rdi, rdi
pxor xmm0, xmmword [rsi + rdi*8 + 0x5020]
shr eax, 0x10
movzx edi, al
add rdi, rdi
pxor xmm0, xmmword [rsi + rdi*8 + 0x6020]
movzx edi, ah
add rdi, rdi
pxor xmm0, xmmword [rsi + rdi*8 + 0x7020]
movd eax, xmm1
psrldq xmm1, 4
movzx edi, al
add rdi, rdi
pxor xmm0, xmmword [rsi + rdi*8 + 0x8020]
movzx edi, ah
add rdi, rdi
pxor xmm0, xmmword [rsi + rdi*8 + 0x9020]
shr eax, 0x10
movzx edi, al
add rdi, rdi
pxor xmm0, xmmword [rsi + rdi*8 + 0xa020]
movzx edi, ah
add rdi, rdi
pxor xmm0, xmmword [rsi + rdi*8 + 0xb020]
movd eax, xmm1
psrldq xmm1, 4
movzx edi, al
add rdi, rdi
pxor xmm0, xmmword [rsi + rdi*8 + 0xc020]
movzx edi, ah
add rdi, rdi
pxor xmm0, xmmword [rsi + rdi*8 + 0xd020]
shr eax, 0x10
movzx edi, al
add rdi, rdi
pxor xmm0, xmmword [rsi + rdi*8 + 0xe020]
movzx edi, ah
add rdi, rdi
pxor xmm0, xmmword [rsi + rdi*8 + 0xf020]
add rcx, 0x10
sub rdx, 1
jne 0x1800a80d2
movdqa xmmword [rsi], xmm0
pop rdi
pop rsi
ret

Function at 0x1800c19b4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1800c19eb
call fcn.1800c1848
mov dword [rax], 0x16
call fcn.1800b8348
xor eax, eax
jmp 0x1800c1a79
mov rdx, r9
mov rcx, r8
call fcn.1800c1950
mov rbx, rax
test rax, rax
je 0x1800c1a76
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1800c187c]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1800c1a63
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1800c17bc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1800c1a4a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1800c1a59
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1800cc51c
jmp 0x1800c1a76
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1800c1a73
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1800cfa90
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800cfaa6
mov al, 1
jmp 0x1800cfb06
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800cfab7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800cfb04
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800da978
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800cfb04
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800cfb04
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800cfb04
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800cfb06
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800d1620
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.18008a700
sub rsp, rax
mov rax, qword [0x18011a0a8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800cd814
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800d166f
mov rax, rbp
jmp 0x1800d1777
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x122950]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800d2500
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x122950]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800d1773
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 0x1800d1773
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800d2500
test rax, rax
js 0x1800d1773
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800d1773
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800d1765
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800d1765
cmp byte [rcx], 0xd
jne 0x1800d174b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800d175a
cmp byte [rcx + 1], 0xa
jne 0x1800d175a
inc rcx
jmp 0x1800d175a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x11a800]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1800d172d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800d1777
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18008a6d0
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 0x1800d18a0
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, [0x180122950]
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 0x1800d18f7
cmp word [rdx], r13w
jne 0x1800d18f7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1800d18fc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1800d1a21
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800d1a42
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800d1935
mov rdx, r9
mov word [rbx], cx
jmp 0x1800d195c
cmp r9, r8
jae 0x1800d196c
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 0x1800d1916
jmp 0x1800d1a21
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 0x1800d1a16
cmp dword [rsp + 0x80], esi
je 0x1800d1a16
lea r8, [0x180122950]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1800d19ee
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1800d19be
mov word [rbx], r13w
jmp 0x1800d1a1e
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 0x1800d19cb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1800d1a1e
cmp word [rsp + 0x70], r13w
jne 0x1800d19fb
cmp rbx, r14
je 0x1800d19b8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800d2508
cmp word [rsp + 0x70], r13w
je 0x1800d1a21
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, [0x180122950]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1800d1a1b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1800d1a21
Function at 0x1800d596c
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 0x1800d599c
xor eax, eax
jmp 0x1800d5a5f
mov rbp, rbx
cmp word [rax], si
je 0x1800d59c1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800d59a8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800d59a4
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.1800d40d4
movsxd r14, eax
test eax, eax
jne 0x1800d59ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800d5995
mov rcx, r14
call fcn.1800cc558
mov rdi, rax
test rax, rax
jne 0x1800d5a18
xor ecx, ecx
call fcn.1800cc51c
jmp 0x1800d59f4
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.1800d40d4
test eax, eax
jne 0x1800d5a49
mov rcx, rdi
call fcn.1800cc51c
jmp 0x1800d5a53
xor ecx, ecx
call fcn.1800cc51c
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 0x1800d5a7c
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 0x1800d5b03
mov rsi, rbx
cmp word [rax], bp
je 0x1800d5ac2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1800d5aac
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1800d5aa8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1800cc558
mov rdi, rax
test rax, rax
je 0x1800d5af0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1800aaec0
mov rbp, rdi
xor ecx, ecx
call fcn.1800cc51c
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 0x1800d8b94
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.1800ca3e8
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 0x1800d8c35
cmp ebx, dword [rsp + 0x30]
je 0x1800d8c2e
test esi, esi
je 0x1800d8c2e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1800d8c09
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1800d8c16
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1800d8bf3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1800d8c1a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1800d8c37
mov eax, 1
jmp 0x1800d8c37
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1800dda4c
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.1800d2508
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800d2508
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800ddb9c
cmp rax, 0xffffffffffffffff
je 0x1800ddb9c
xor edi, edi
test rbp, rbp
jle 0x1800ddb47
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800cdc98
mov rbx, rax
test rax, rax
jne 0x1800ddad4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800ddb3d
mov edx, 0x8000
mov ecx, r14d
call fcn.1800dd8d0
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.1800d0784
cmp eax, 0xffffffff
je 0x1800ddb1d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800ddae4
mov edx, r15d
mov ecx, r14d
call fcn.1800dd8d0
jmp 0x1800ddb3d
cmp byte [rsi + 0x38], dil
je 0x1800ddb34
cmp dword [rsi + 0x34], 5
jne 0x1800ddb34
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800ddb3d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800cc51c
jmp 0x1800ddbb0
jns 0x1800ddbb0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800d2508
cmp rax, 0xffffffffffffffff
jne 0x1800ddb68
cmp byte [rsi + 0x30], dil
je 0x1800ddbb0
mov edi, dword [rsi + 0x2c]
jmp 0x1800ddbb0
mov ecx, r14d
call fcn.1800da978
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800ddbb0
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 0x1800ddbb0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800ddba9
mov eax, dword [rsi + 0x2c]
jmp 0x1800ddbae
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800d2508
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 0x100c93ea0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x100f45620], ecx
mov ecx, 1
sub ecx, 1
nop
add ecx, 1
lea rax, [0x100f45620]
movsxd rdx, ecx
mov r8d, dword [rax + rdx*4 - 4]
mov edx, r8d
shr edx, 0x1e
xor r8d, edx
imul edx, r8d, 0x6c078965
lea r8d, [edx + ecx]
mov edx, ecx
and edx, 0xffffffff
mov dword [rax + rdx*4], r8d
cmp ecx, 0x26f
jl 0x100c93eb0
mov dword [0x100e5c200], 0x270
ret

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

Disassembly:
lea rsp, [rsp - 0x28]
mov eax, dword [0x100f44010]
cmp eax, dword [0x100e5b9a0]
je 0x100c93f1d
mov dword [0x100e5c200], 0x271
cmp dword [0x100e5c200], 0x270
jl 0x100c940af
cmp dword [0x100e5c200], 0x271
jne 0x100c93f5e
mov ecx, dword [0x100f44010]
call fcn.100c93ea0
mov eax, dword [0x100f44010]
not eax
mov dword [0x100f44010], eax
mov eax, dword [0x100f44010]
mov dword [0x100e5b9a0], eax
mov ecx, 0
sub ecx, 1
nop
add ecx, 1
lea rax, [0x100f45620]
movsxd rdx, ecx
mov edx, dword [rax + rdx*4 + 4]
and edx, 0x7fffffff
mov r8d, ecx
and r8d, 0xffffffff
mov eax, dword [rax + r8*4]
and eax, 0x80000000
or eax, edx
mov r9d, eax
lea rax, [0x100f45620]
movsxd rdx, ecx
mov r8d, r9d
shr r8d, 1
mov edx, dword [rax + rdx*4 + 0x634]
xor r8d, edx
mov edx, r9d
and edx, 1
lea r10, [0x100e5c210]
mov edx, dword [r10 + rdx*4]
xor edx, r8d
mov r8d, ecx
and r8d, 0xffffffff
mov dword [rax + r8*4], edx
cmp ecx, 0xe2
jl 0x100c93f68
mov ecx, 0xe3
sub ecx, 1
nop
nop
add ecx, 1
lea rax, [0x100f45620]
movsxd rdx, ecx
mov edx, dword [rax + rdx*4 + 4]
and edx, 0x7fffffff
mov r8d, ecx
and r8d, 0xffffffff
mov eax, dword [rax + r8*4]
and eax, 0x80000000
or eax, edx
mov r9d, eax
lea rax, [0x100f45620]
movsxd rdx, ecx
mov r8d, r9d
shr r8d, 1
mov edx, dword [rax + rdx*4 - 0x38c]
xor r8d, edx
mov edx, r9d
and edx, 1
lea r10, [0x100e5c210]
mov edx, dword [r10 + rdx*4]
xor edx, r8d
mov r8d, ecx
and r8d, 0xffffffff
mov dword [rax + r8*4], edx
cmp ecx, 0x26e
jl 0x100c93fe8
lea rax, [0x100f45620]
mov edx, dword [rax + 0x9bc]
and edx, 0x80000000
mov eax, dword [rax]
and eax, 0x7fffffff
or eax, edx
mov r9d, eax
mov eax, r9d
shr eax, 1
lea rdx, [0x100f45620]
mov ecx, dword [rdx + 0x630]
xor ecx, eax
and r9d, 1
lea rax, [0x100e5c210]
mov eax, dword [rax + r9*4]
xor eax, ecx
mov dword [rdx + 0x9bc], eax
mov dword [0x100e5c200], 0
mov edx, dword [0x100e5c200]
lea rax, [0x100f45620]
mov eax, dword [rax + rdx*4]
add dword [0x100e5c200], 1
mov edx, eax
shr edx, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor eax, edx
mov edx, eax
shl edx, 0xf
and edx, 0xefc60000
xor eax, edx
mov edx, eax
shr edx, 0x12
xor eax, edx
nop
lea rsp, [rsp + 0x28]
ret
Function at 0x100c962c0
Capabilities:
Check for software breakpoints

Disassembly:
push rbx
push rdi
push rsi
lea rsp, [rsp - 0x20]
mov ax, word [0x100e5b700]
cmp ax, 0xcb
je 0x100c963f5
cmp ax, 0xcc
je 0x100c963f5
mov rax, qword [0x100f46330]
test rax, rax
je 0x100c962fc
mov ecx, dword [0x100f46110]
call rax
mov rbx, rax
jmp 0x100c96303
lea rbx, [0x100f46118]
cmp word [0x100f46100], 0
jle 0x100c9632a
lea rcx, [0x100f460d0]
call fcn.100c965e0
mov rcx, rbx
call fcn.100c95d60
mov rcx, rbx
call fcn.100c95df0
mov rsi, qword [rbx]
jmp 0x100c9635a
mov rdi, qword [rsi + 8]
mov rax, qword [rsi]
and rax, 1
test rax, rax
jne 0x100c9634d
mov rdx, rsi
mov rcx, rbx
call fcn.100c94f90
jmp 0x100c96357
mov rax, qword [rsi]
and rax, 0xfffffffffffffffe
mov qword [rsi], rax
mov rsi, rdi
test rsi, rsi
jne 0x100c96330
mov qword [rbx], 0
mov dword [rbx + 0x90], 0
cmp word [0x100f46100], 0
jle 0x100c963f5
lea rdx, [0x100f45fe0]
mov rcx, rbx
call fcn.100c95120
mov rsi, rax
test rsi, rsi
je 0x100c963c4
mov rax, qword [0x100f46080]
mov qword [rsi + 0x18], rax
cmp qword [0x100f46080], 0
je 0x100c963b6
mov rax, qword [0x100f46080]
mov qword [rax + 0x10], rsi
mov rax, qword [rbx + 0xa0]
mov qword [0x100f46080], rax
sub word [0x100f46100], 1
cmp word [0x100f46100], 0
sete bl
lea rcx, [0x100f460d0]
call fcn.100c96600
test bl, bl
je 0x100c963f5
lea rcx, [0x100f460d0]
call fcn.100c965c0
nop
lea rsp, [rsp + 0x20]
pop rsi
pop rdi
pop rbx
ret
Function at 0x100c98910
Capabilities:
Set environment variable

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x50]
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x20], rsi
mov rsi, rcx
mov qword [rbp - 0x10], 0
nop
mov rcx, rsi
test rcx, rcx
jne 0x100c9893c
lea rcx, [0x100f45460]
lea r9, [rbp - 0x18]
movabs r8, 0
mov edx, 0
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
mov eax, ebx
and eax, 0xffffffff
lea rdx, [rax - 1]
lea rcx, [rbp - 0x10]
call fcn.100c90970
mov r8, qword [rbp - 0x10]
test r8, r8
jne 0x100c9897a
lea r8, [0x100f45460]
mov rcx, rsi
test rcx, rcx
jne 0x100c98989
lea rcx, [0x100f45460]
lea r9, [rbp - 0x18]
mov edx, ebx
call sub.kernel32.dll_GetFullPathNameW
mov edx, eax
test edx, edx
je 0x100c98a64
jmp 0x100c989a3
sub edx, 1
cmp edx, 3
jbe 0x100c989bc
mov rcx, qword [rbp - 0x10]
mov eax, edx
and eax, 0xffffffff
cmp word [rcx + rax*2 - 2], 0x5c
je 0x100c989a0
mov eax, ebx
and eax, 0xffffffff
lea rcx, [rax - 1]
mov eax, edx
and eax, 0xffffffff
cmp rcx, rax
je 0x100c989e2
and edx, 0xffffffff
lea rcx, [rbp - 0x10]
call fcn.100c90970
lea rcx, [sub.kernel32.dll_SetCurrentDirectoryW]
mov rdx, qword [rbp - 0x10]
call fcn.100c98810
mov rax, qword [0x100f46330]
test rax, rax
je 0x100c98a08
mov ecx, dword [0x100f45240]
call rax
jmp 0x100c98a0f
lea rax, [0x100f45248]
cmp word [rax], 0
jne 0x100c98a73
mov rax, rsi
test rax, rax
je 0x100c98a22
mov rax, qword [rax - 8]
cmp rax, 2
jle 0x100c98a73
cmp word [rsi + 2], 0x3a
jne 0x100c98a73
mov word [rbp - 8], 0x3d
mov ax, word [rsi]
mov word [rbp - 6], ax
mov word [rbp - 4], 0x3a
mov word [rbp - 2], 0
mov rdx, qword [rbp - 0x10]
test rdx, rdx
jne 0x100c98a59
lea rdx, [0x100f45460]
lea rcx, [rbp - 8]
call sub.kernel32.dll_SetEnvironmentVariableW
jmp 0x100c98a73
lea rcx, [sub.kernel32.dll_SetCurrentDirectoryW]
mov rdx, rsi
call fcn.100c98810
mov rax, qword [0x100f46330]
test rax, rax
je 0x100c98a89
mov ecx, dword [0x100f45240]
call rax
jmp 0x100c98a90
lea rax, [0x100f45248]
cmp word [rax], 2
jne 0x100c98ab9
mov rax, qword [0x100f46330]
test rax, rax
je 0x100c98aad
mov ecx, dword [0x100f45240]
call rax
jmp 0x100c98ab4
lea rax, [0x100f45248]
mov word [rax], 3
nop
mov rcx, rbp
call fcn.100c988f0
mov rbx, qword [rbp - 0x28]
mov rsi, qword [rbp - 0x20]
lea rsp, [rbp]
pop rbp
ret