joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006b2f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rdi
push r14
sub rsp, 0x68
movzx eax, byte [rdx]
mov r14, rdx
mov rdi, rcx
cmp al, 0xb0
jne 0x14006b309
movzx eax, byte [rdx + 2]
cmp al, 0xb1
jne 0x14006b313
mov rax, qword [rdx + 0x20]
jmp 0x14006b323
cmp al, 0x8a
jne 0x14006b4a7
mov rax, qword [rdx + 0x20]
mov rax, qword [rax + 0x20]
movsxd rcx, dword [rax]
cmp ecx, 1
je 0x14006b4a7
mov dword [r8], 0
cmp byte [rdx], 0x8a
jne 0x14006b34a
mov rcx, rdi
add rsp, 0x68
pop r14
pop rdi
jmp fcn.14009a990
mov eax, dword [rdi + 0x38]
mov qword [rsp + 0x60], r12
mov r12, rcx
mov qword [rsp + 0x58], r13
lea r13d, [rax + 1]
add eax, ecx
mov dword [rsp + 0x88], r13d
mov dword [rdi + 0x38], eax
test ecx, ecx
jle 0x14006b492
mov qword [rsp + 0x80], rbx
lea rcx, [0x1400c6b70]
mov qword [rsp + 0x90], rbp
mov ebp, r13d
mov qword [rsp + 0x50], r15
lea r13, [fcn.14006c6e0]
xor r15d, r15d
mov qword [rsp + 0x98], rsi
lea edx, [r15 + 2]
nop dword [rax + rax]
cmp byte [rdi + 0x23], 0
mov rax, qword [r14 + 0x20]
mov rbx, qword [rax + r15 + 8]
je 0x14006b400
mov word [rsp + 0x44], dx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x48], 0
test rbx, rbx
je 0x14006b3f0
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.1400f50c0
cmp word [rsp + 0x44], 0
je 0x14006b400
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call fcn.1400a4110
jmp 0x14006b440
mov rsi, qword [rdi]
test rbx, rbx
je 0x14006b41c
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call fcn.14006b780
mov rbx, rax
cmp byte [rsi + 0x67], 0
jne 0x14006b430
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call fcn.1400a2640
test rbx, rbx
je 0x14006b440
mov rdx, rbx
mov rcx, rsi
call fcn.1400a64c0
inc ebp
lea rcx, [0x1400c6b70]
add r15, 0x20
mov edx, 2
sub r12, 1
jne 0x14006b3b0
mov r15, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x80]
mov eax, dword [rsp + 0x88]
mov r12, qword [rsp + 0x60]
mov r13, qword [rsp + 0x58]
add rsp, 0x68
pop r14
pop rdi
ret
mov r12, qword [rsp + 0x60]
mov eax, r13d
mov r13, qword [rsp + 0x58]
add rsp, 0x68
pop r14
pop rdi
ret
mov rcx, rdi
add rsp, 0x68
pop r14
pop rdi
jmp fcn.1400a5b50
Function at 0x140089bd0
Capabilities:
Reference sql statements

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
mov r14d, dword [rsp + 0x70]
mov ebx, r8d
mov dword [rax - 0x18], r14d
mov rbp, r9
mov qword [rax - 0x20], r9
mov rdi, rdx
mov r9, rdx
mov byte [rcx + 0x1c], 1
mov r8, rdx
mov dword [rax - 0x28], ebx
lea rdx, str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
mov rsi, rcx
call fcn.1400b5180
test ebx, ebx
jne 0x140089c39
mov r9, rbp
mov dword [rsp + 0x20], r14d
mov r8, rdi
lea rdx, str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
mov rcx, rsi
call fcn.1400b5180
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 0x1400a8ec0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x28
xor r11d, r11d
mov rdi, r8
mov ebx, r11d
mov r14, rdx
mov rsi, rcx
cmp dword [rcx + 0x28], ebx
jle 0x1400a8fc9
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r12
lea r12, str.main
mov qword [rsp + 0x20], r15
lea r15, [0x14013fbc0]
nop
mov rax, qword [rsi + 0x20]
mov r10d, ebx
xor r10d, 1
cmp ebx, 2
cmovge r10d, ebx
movsxd rcx, r10d
shl rcx, 5
mov rbp, qword [rcx + rax + 0x18]
test rdi, rdi
je 0x1400a8f41
mov r8, qword [rcx + rax]
mov r9, rdi
sub r9, r8
nop dword [rax]
movzx ecx, byte [r8]
movzx eax, byte [r9 + r8]
cmp ecx, eax
jne 0x1400a8f7c
test ecx, ecx
jne 0x1400a8f8a
lea rcx, [rbp + 0x20]
xor r8d, r8d
mov rdx, r14
call fcn.14006dbf0
mov r11, qword [rax + 0x10]
test r11, r11
jne 0x1400a8f60
inc ebx
cmp ebx, dword [rsi + 0x28]
jl 0x1400a8f00
mov r12, qword [rsp + 0x60]
mov rax, r11
mov rbp, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
movzx edx, byte [rax + r15]
movzx ecx, byte [rcx + r15]
cmp ecx, edx
jne 0x1400a8f8f
inc r8
jmp 0x1400a8f30
test r10d, r10d
jne 0x1400a8f59
mov r9, rdi
mov rax, r12
sub r9, r12
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [r9 + rax]
cmp edx, ecx
jne 0x1400a8fb5
test edx, edx
je 0x1400a8f41
inc rax
jmp 0x1400a8fa0
movzx r8d, byte [rcx + r15]
movzx edx, byte [rdx + r15]
cmp edx, r8d
jne 0x1400a8f59
inc rax
jmp 0x1400a8fa0
mov rax, r11
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140118c00
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
test rcx, rcx
jne 0x140118c1f
call fcn.140126d84
jmp 0x140118cd4
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x28], 0
xor edx, edx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
call fcn.14011426c
mov rax, qword [rbp - 0x48]
mov r9d, 0xfde9
cmp dword [rax + 0xc], r9d
jne 0x140118c6a
cmp byte [rbp - 0x38], 0
je 0x140118c9f
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140118c9f
call fcn.140122fc4
test eax, eax
jne 0x140118c8b
cmp byte [rbp - 0x38], al
je 0x140118c83
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140118c9f
cmp byte [rbp - 0x38], 0
je 0x140118c9c
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
xor r9d, r9d
lea r8, [rbp + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call fcn.1401140f0
test eax, eax
je 0x140118cb8
or ebx, 0xffffffff
jmp 0x140118cc3
mov rcx, qword [rbp - 0x20]
call fcn.140126d84
mov ebx, eax
cmp byte [rbp - 8], 0
je 0x140118cd2
mov rcx, qword [rbp - 0x20]
call fcn.140122714
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret

Function at 0x14011e09c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14011de98

Function at 0x14012115c
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 0x140121193
call fcn.140113700
mov dword [rax], 0x16
call fcn.140113594
xor eax, eax
jmp 0x140121221
mov rdx, r9
mov rcx, r8
call fcn.1401210f8
mov rbx, rax
test rax, rax
je 0x14012121e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140121024]
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 0x14012120b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140113674
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1401211f2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140121201
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140122714
jmp 0x14012121e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14012121b
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 0x140122870
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140122886
mov al, 1
jmp 0x1401228e6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140122897
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1401228e4
mov ecx, dword [rcx + 0x18]
nop
call fcn.14012c794
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401228e4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1401228e4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401228e4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1401228e6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140124ba8
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140124bc8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140113674
or eax, 0xffffffff
jmp 0x140124bca
xor eax, eax
add rsp, 0x28
ret

Function at 0x140126408
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.140037f20
sub rsp, rax
mov rax, qword [0x140174200]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140122750
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140126457
mov rax, rbp
jmp 0x14012655f
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 + 0x17d4f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140127a10
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x17d4f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14012655b
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 0x14012655b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140127a10
test rax, rax
js 0x14012655b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14012655b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14012654d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14012654d
cmp byte [rcx], 0xd
jne 0x140126533
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140126542
cmp byte [rcx + 1], 0xa
jne 0x140126542
inc rcx
jmp 0x140126542
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x177a90]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140126515
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14012655f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400371f0
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 0x140126db0
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, [0x14017d4f0]
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 0x140126e07
cmp word [rdx], r13w
jne 0x140126e07
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140126e0c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140126f31
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140126f52
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140126e45
mov rdx, r9
mov word [rbx], cx
jmp 0x140126e6c
cmp r9, r8
jae 0x140126e7c
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 0x140126e26
jmp 0x140126f31
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 0x140126f26
cmp dword [rsp + 0x80], esi
je 0x140126f26
lea r8, [0x14017d4f0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140126efe
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140126ece
mov word [rbx], r13w
jmp 0x140126f2e
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 0x140126edb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140126f2e
cmp word [rsp + 0x70], r13w
jne 0x140126f0b
cmp rbx, r14
je 0x140126ec8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140127a18
cmp word [rsp + 0x70], r13w
je 0x140126f31
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, [0x14017d4f0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140126f2b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140126f31
Function at 0x14012b588
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 0x14012b5b8
xor eax, eax
jmp 0x14012b67b
mov rbp, rbx
cmp word [rax], si
je 0x14012b5dd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14012b5c4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14012b5c0
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.140126b50
movsxd r14, eax
test eax, eax
jne 0x14012b61b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14012b5b1
mov rcx, r14
call fcn.140124ab8
mov rdi, rax
test rax, rax
jne 0x14012b634
xor ecx, ecx
call fcn.140122714
jmp 0x14012b610
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.140126b50
test eax, eax
jne 0x14012b665
mov rcx, rdi
call fcn.140122714
jmp 0x14012b66f
xor ecx, ecx
call fcn.140122714
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 0x14012b698
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 0x14012b71f
mov rsi, rbx
cmp word [rax], bp
je 0x14012b6de
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14012b6c8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14012b6c4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140124ab8
mov rdi, rax
test rax, rax
je 0x14012b70c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140106380
mov rbp, rdi
xor ecx, ecx
call fcn.140122714
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 0x14012ece8
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.1401222dc
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 0x14012ed89
cmp ebx, dword [rsp + 0x30]
je 0x14012ed82
test esi, esi
je 0x14012ed82
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14012ed5d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14012ed6a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14012ed47
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14012ed6e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14012ed8b
mov eax, 1
jmp 0x14012ed8b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140133234
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.14011426c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1401332be
cmp byte [rbp - 0x21], r15b
je 0x1401332b9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1401332f4
call fcn.140122fc4
test eax, eax
jne 0x1401332e0
cmp byte [rbp - 0x21], r15b
je 0x1401332d8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1401332f4
cmp byte [rbp - 0x21], r15b
je 0x1401332f1
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.1401140f0
test eax, eax
jne 0x140133394
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14011426c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140133333
cmp byte [rbp - 0x21], r15b
je 0x140133368
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140133368
call fcn.140122fc4
test eax, eax
jne 0x140133354
cmp byte [rbp - 0x21], r15b
je 0x14013334d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140133368
cmp byte [rbp - 0x21], r15b
je 0x140133365
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.1401140f0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140133394
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140133397
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1401333a5
mov rcx, rdi
call fcn.140122714
cmp byte [rbp + 0x3f], r15b
je 0x1401333b4
mov rcx, qword [rbp + 0x27]
call fcn.140122714
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 0x140133f00
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.140127a18
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140127a18
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140134050
cmp rax, 0xffffffffffffffff
je 0x140134050
xor edi, edi
test rbp, rbp
jle 0x140133ffb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140122c2c
mov rbx, rax
test rax, rax
jne 0x140133f88
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140133ff1
mov edx, 0x8000
mov ecx, r14d
call fcn.14011f1b0
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.1401243ac
cmp eax, 0xffffffff
je 0x140133fd1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140133f98
mov edx, r15d
mov ecx, r14d
call fcn.14011f1b0
jmp 0x140133ff1
cmp byte [rsi + 0x38], dil
je 0x140133fe8
cmp dword [rsi + 0x34], 5
jne 0x140133fe8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140133ff1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140122714
jmp 0x140134064
jns 0x140134064
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140127a18
cmp rax, 0xffffffffffffffff
jne 0x14013401c
cmp byte [rsi + 0x30], dil
je 0x140134064
mov edi, dword [rsi + 0x2c]
jmp 0x140134064
mov ecx, r14d
call fcn.14012c794
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140134064
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 0x140134064
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14013405d
mov eax, dword [rsi + 0x2c]
jmp 0x140134062
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140127a18
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 0x140002ae0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x140002b3d
lea rbx, [0x140046ba0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140002b24
cmp r10, 2
jb 0x140002b24
cmp byte [r9], r8b
jne 0x140002b24
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140002b00
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140002b7f
lea rbx, [0x140046ba0]
cmp r8b, 0x23
jne 0x140002b63
cmp byte [r9], r8b
jne 0x140002b63
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140002b50
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140002d40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rcx
test rcx, rcx
jne 0x140002d6f
mov r8d, 0x600
lea rdx, [0x140043850]
lea rcx, str.filename__mode
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test rdi, rdi
je 0x140002d7b
mov qword [rdi], 0
lea rdx, [0x1400467c0]
mov rcx, rbx
call fcn.140002b90
mov rbx, rax
test rax, rax
jne 0x140002d9d
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x140002e74
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002e74
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x140002e74
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002e74
cmp rsi, 0xffffffffffffffff
je 0x140002e74
mov rax, qword [0x14009b110]
test rax, rax
je 0x140002e11
inc dword [rax + 0x3b4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
test rax, rax
je 0x140002e74
mov r9, rbx
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rsi
je 0x140002e61
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14009b110]
test rax, rax
je 0x140002e56
dec dword [rax + 0x3b4]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140002e7d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x140002e6f
mov qword [rdi], rsi
mov rax, rbp
jmp 0x140002e7f
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret