joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14010a180
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd r13, dword [rdx + 0x1c]
lea r11, [0x140000000]
mov r14, qword [rdx]
xor r9d, r9d
mov rbx, qword [rdx + 8]
or esi, 0xffffffff
mov dword [0x14020b08c], r9d
mov r12d, 0x23d
mov dword [0x14020b9a4], r12d
mov r15, rdx
mov rbp, rcx
mov edi, r9d
lea r10d, [rsi + 2]
mov edx, r9d
test r13d, r13d
jle 0x14010a227
mov ecx, r9d
cmp word [r14 + rcx*4], r9w
je 0x14010a20d
add edi, r10d
mov esi, edx
movsxd rax, edi
mov dword [0x14020b08c], edi
mov dword [r11 + rax*4 + 0x20b0b0], edx
cmp rcx, r12
jae 0x14010a421
mov byte [rcx + r11 + 0x20b9b0], r9b
jmp 0x14010a213
mov word [r14 + rcx*4 + 2], r9w
add edx, r10d
add rcx, r10
cmp rcx, r13
jl 0x14010a1dd
cmp edi, 2
jge 0x14010a2d5
mov r9d, dword [0x14020bf68]
mov r8d, dword [0x14020bfe8]
movsxd r11, esi
cmp esi, 2
lea rdx, [r11 + 1]
lea ecx, [rsi + 1]
mov rax, rdx
cmovge rax, r11
lea r15, [0x140000000]
mov r10d, ecx
mov r11, rax
cmovge r10d, esi
mov eax, 0
inc edi
cmp esi, 2
mov dword [0x14020b08c], edi
cmovge ecx, eax
movsxd rax, edi
mov dword [r15 + rax*4 + 0x20b0b0], ecx
mov eax, 0
mov r15, qword [rsp + 0x68]
cmovge rdx, rax
lea ecx, [rax + 1]
mov word [r14 + rdx*4], cx
cmp rdx, r12
jae 0x14010a421
dec r9d
lea rcx, [0x140000000]
mov byte [rdx + rcx + 0x20b9b0], al
mov dword [0x14020bf68], r9d
test rbx, rbx
je 0x14010a2c3
movzx eax, word [rbx + rdx*4 + 2]
sub r8d, eax
mov dword [0x14020bfe8], r8d
mov esi, r10d
cmp edi, 2
jl 0x14010a238
mov r10d, 1
mov eax, edi
mov dword [r15 + 0x24], esi
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
cmp eax, r10d
jl 0x14010a303
mov r8d, ebx
mov rdx, r14
mov rcx, rbp
call fcn.14010b60c
mov r10d, 1
sub ebx, r10d
cmp ebx, r10d
jge 0x14010a2e7
lea r15, [0x140000000]
movsxd rbx, dword [0x14020b0b4]
mov r8d, r10d
movsxd rax, edi
mov rdx, r14
sub edi, r10d
mov dword [0x14020b08c], edi
mov ecx, dword [r15 + rax*4 + 0x20b0b0]
mov dword [0x14020b0b4], ecx
mov rcx, rbp
call fcn.14010b60c
movsxd rcx, dword [0x14020b0b4]
lea eax, [r12 - 1]
movsxd rdx, eax
mov r9, rcx
dec eax
mov qword [rsp + 0x78], rdx
mov r12d, eax
mov r10d, 1
movzx eax, word [r14 + rcx*4]
mov r8d, r10d
add ax, word [r14 + rbx*4]
mov dword [r15 + rdx*4 + 0x20b0b0], ebx
mov dword [r15 + rdx*4 + 0x20b0ac], ecx
movzx ecx, byte [rbx + r15 + 0x20b9b0]
movsxd rdx, r13d
mov word [r14 + rdx*4], ax
movzx eax, byte [r9 + r15 + 0x20b9b0]
cmp cl, al
mov word [r14 + r9*4 + 2], r13w
mov word [r14 + rbx*4 + 2], r13w
cmovbe ecx, eax
mov eax, r13d
add cl, r10b
mov dword [0x14020b0b4], eax
mov byte [rdx + r15 + 0x20b9b0], cl
add r13d, r10d
mov rdx, r14
mov rcx, rbp
call fcn.14010b60c
mov r10d, 1
cmp edi, 2
jge 0x14010a30a
mov rcx, qword [rsp + 0x78]
mov eax, r12d
mov rdx, qword [rsp + 0x68]
dec eax
mov dword [0x14020b9a4], eax
mov eax, dword [0x14020b0b4]
mov dword [r15 + rcx*4 + 0x20b0a8], eax
mov rcx, rbp
call fcn.14010b2a8
mov r8d, esi
mov rdx, r14
mov rcx, rbp
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp fcn.14010b4e8
call fcn.140119664
int3
Function at 0x14010d85c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2fd0]
mov eax, 0x30d0
call fcn.140119910
sub rsp, rax
mov rax, qword [0x140182c48]
xor rax, rsp
mov qword [rbp + 0x2fc0], rax
mov rsi, r8
mov rdi, rdx
mov r12, rcx
mov rax, rdx
mov r9, r8
sub r9, rdx
movzx edx, word [rax]
movzx r8d, word [rax + r9]
sub edx, r8d
jne 0x14010d8ba
add rax, 2
test r8d, r8d
jne 0x14010d8a4
test edx, edx
je 0x14010dabf
xor r14b, r14b
lea rdx, [rbp + 0x1fc0]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
movzx ecx, word [rbp + 0x1fc0]
call fcn.140126bb8
mov r15d, eax
mov r13d, 1
cmp word [rbp + 0x1fc0], 0x5c
je 0x14010d930
cmp word [rsi], 0x5c
je 0x14010d930
cmp word [rdi], 0x5c
je 0x14010d930
movzx ecx, word [rsi]
call fcn.140126bb8
mov ebx, eax
movzx ecx, word [rdi]
call fcn.140126bb8
cmp word [rsi + 2], 0x3a
cmovne ebx, r15d
cmp word [rdi + 2], 0x3a
cmovne eax, r15d
movzx r14d, r14b
cmp ebx, eax
cmovne r14d, r13d
mov rcx, rdi
call fcn.1400855a0
test al, al
je 0x14010d986
lea rcx, [rsp + 0x20]
call fcn.140083cbc
nop
mov r8d, 9
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.1400842e0
test al, al
je 0x14010d9e3
lea rcx, [rsp + 0x20]
call fcn.140083dc0
test al, al
je 0x14010d9e3
mov rcx, rdi
call fcn.1400852ac
test al, al
je 0x14010d9e3
lea rcx, [rsp + 0x20]
call fcn.140083d04
test r14b, r14b
jne 0x14010d99e
mov rdx, rdi
mov rcx, rsi
call fcn.140085c6c
test al, al
jne 0x14010dabf
lea rcx, [rsp + 0x20]
call fcn.140083cbc
nop
lea rcx, [rbp + 0xf70]
call fcn.140083cbc
nop
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.1400842e0
test al, al
jne 0x14010d9f7
mov rdx, rsi
lea rcx, [0x1401ca7d8]
call fcn.14007e1e4
mov ebx, 0xa
jmp 0x14010da84
lea rcx, [rsp + 0x20]
call fcn.140083d04
mov eax, 0xf
jmp 0x14010dac1
mov r8d, 0x12
mov rdx, rdi
lea rcx, [rbp + 0xf70]
call fcn.140083f70
test al, al
jne 0x14010da17
mov ebx, 0xf
jmp 0x14010da84
xor edx, edx
lea rcx, [0x1401ca7d8]
call fcn.14007e30c
or r9, 0xffffffffffffffff
lea r8, [rbp + 0xf70]
lea rdx, [rsp + 0x20]
mov rcx, r12
call fcn.14010d310
mov r14d, eax
lea rcx, [rsp + 0x20]
call fcn.140083dc0
lea rcx, [rbp + 0xf70]
call fcn.140083dc0
mov dl, r13b
lea rcx, [0x1401ca7d8]
call fcn.14007e30c
test r14d, r14d
je 0x14010da9f
mov rcx, rdi
call fcn.1400852ac
mov eax, 0xe
lea ebx, [rax - 4]
cmp r14d, ebx
cmove r14d, eax
mov ebx, r14d
lea rcx, [rbp + 0xf70]
call fcn.140083d04
nop
lea rcx, [rsp + 0x20]
call fcn.140083d04
mov eax, ebx
jmp 0x14010dac1
mov rcx, rsi
call fcn.1400852ac
nop
lea rcx, [rbp + 0xf70]
call fcn.140083d04
nop
lea rcx, [rsp + 0x20]
call fcn.140083d04
xor eax, eax
mov rcx, qword [rbp + 0x2fc0]
xor rcx, rsp
call fcn.140119970
mov rbx, qword [rsp + 0x3110]
add rsp, 0x30d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14010e140
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
lea rsi, [0x14022c020]
mov rcx, rsi
mov rdi, rdx
call fcn.140079f34
mov r8d, 0x12345678
mov r9d, 0x23456789
mov dword [rbx + 0x1e8], r8d
mov edx, 0x34567890
mov dword [rbx + 0x1ec], r9d
jmp 0x14010e1d1
movsx rcx, al
mov eax, r8d
xor rcx, rax
shr r8d, 8
movzx eax, cl
xor r8d, dword [rsi + rax*4]
movzx eax, r8b
add eax, r9d
mov dword [rbx + 0x1e8], r8d
imul r9d, eax, 0x8088405
mov eax, edx
shr edx, 8
inc r9d
mov ecx, r9d
mov dword [rbx + 0x1ec], r9d
shr rcx, 0x18
xor rcx, rax
movzx eax, cl
xor edx, dword [rsi + rax*4]
inc rdi
mov dword [rbx + 0x1f0], edx
mov al, byte [rdi]
test al, al
jne 0x14010e185
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14010e1f0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

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 r15
sub rsp, 0x30
cmp byte [0x1401aad48], 0
mov rdi, r9
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x14010e2d2
cmp byte [rcx + 4], 0
je 0x14010e23d
mov r8d, edi
add rcx, 8
imul r8d, esi
call fcn.1400d5204
jmp 0x14010e2d2
mov r10, rsi
mov r11, rbp
imul r10, rdi
test r10, r10
je 0x14010e2d2
lea r15, [0x14022c020]
movsx rax, byte [r11]
mov r8d, dword [rbx + 0x1f0]
mov r9d, r8d
mov edx, dword [rbx + 0x1e8]
and r9d, 0xfffd
xor rax, rdx
or r9d, 2
movzx ecx, al
shr edx, 8
xor edx, dword [r15 + rcx*4]
movzx eax, dl
add eax, dword [rbx + 0x1ec]
imul eax, eax, 0x8088405
mov dword [rbx + 0x1e8], edx
inc eax
mov dword [rbx + 0x1ec], eax
shr rax, 0x18
xor rax, r8
shr r8d, 8
movzx eax, al
xor r8d, dword [r15 + rax*4]
mov eax, r9d
xor eax, 1
mov dword [rbx + 0x1f0], r8d
imul eax, r9d
shr eax, 8
xor byte [r11], al
inc r11
sub r10, 1
jne 0x14010e257
and dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call fcn.14010ce7c
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret

Function at 0x140116680
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401166bd
test al, 0x10
jne 0x1401166b9
and eax, 0xffffffdf
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1401166bd
mov al, 1
jmp 0x1401166d5
lea rdx, [rdi + 0x64bb20]
mov ecx, 0x11
lea r8, [rsp + 0x38]
call fcn.140018d40
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140117b34
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140117bac
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140117bac
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140117bac
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140117ba0
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140117bbe
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140117b8e
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x140117bae

Function at 0x14011a684
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14011a6ce
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14011a6ce
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14011a6ce
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14011a6ce
cmp dword [rcx + 0x84], 0xe
jbe 0x14011a6ce
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14011a6d0
xor al, al
add rsp, 0x28
ret
Function at 0x1401284cc
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14022d380]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14012852a
cmp word [rdx], r12w
jne 0x14012852a
or byte [rax + r8*8 + 0x38], cl
jmp 0x140128530
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14012868b
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140128666
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140128569
mov rcx, r9
jmp 0x14012858c
cmp r9, rdx
jae 0x1401285a3
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14012854d
jmp 0x14012868b
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140128660
cmp dword [rsp + 0x80], edi
je 0x140128660
mov rdx, r14
lea r11, [0x14022d380]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140128639
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14012860c
mov word [rbx], r12w
jmp 0x140128687
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140128615
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140128687
cmp word [rsp + 0x70], r12w
jne 0x140128646
cmp rbx, rsi
je 0x140128606
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140128428
cmp word [rsp + 0x70], r12w
je 0x14012868b
mov word [rbx], r13w
jmp 0x140128687
lea r11, [0x14022d380]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140128683
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14012868b
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401313fc
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.140128428
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140128428
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14013154c
cmp rax, 0xffffffffffffffff
je 0x14013154c
xor edi, edi
test rbp, rbp
jle 0x1401314f7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140130660
mov rbx, rax
test rax, rax
jne 0x140131484
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1401314ed
mov edx, 0x8000
mov ecx, r14d
call fcn.14012acb4
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.1401298bc
cmp eax, 0xffffffff
je 0x1401314cd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140131494
mov edx, r15d
mov ecx, r14d
call fcn.14012acb4
jmp 0x1401314ed
cmp byte [rsi + 0x38], dil
je 0x1401314e4
cmp dword [rsi + 0x34], 5
jne 0x1401314e4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1401314ed
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14012e4b4
jmp 0x140131560
jns 0x140131560
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140128428
cmp rax, 0xffffffffffffffff
jne 0x140131518
cmp byte [rsi + 0x30], dil
je 0x140131560
mov edi, dword [rsi + 0x2c]
jmp 0x140131560
mov ecx, r14d
call fcn.1401312ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140131560
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 0x140131560
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140131559
mov eax, dword [rsi + 0x2c]
jmp 0x14013155e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140128428
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 0x1401318c4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1401318f6
call fcn.14012a0cc
mov dword [rax], 0x16
call fcn.140120a38
jmp 0x140131a15
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140131a15
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140131a15
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140131925
lock or dword [rcx + 0x14], 0x10
jmp 0x140131a15
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140131939
call fcn.140136944
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14012ac1c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140128978
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140131a03
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x1401319ce
mov rcx, rsi
call fcn.14012ac1c
cmp eax, edi
je 0x1401319b9
mov rcx, rsi
call fcn.14012ac1c
cmp eax, 0xfffffffe
je 0x1401319b9
mov rcx, rsi
call fcn.14012ac1c
movsxd rbx, eax
lea r14, [0x14022d380]
mov rcx, rsi
sar rbx, 6
call fcn.14012ac1c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1401319c0
lea rdx, [0x140183040]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401319ce
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1401319f2
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1401319f2
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1401319f2
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x140131a18
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140131cd4
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.140119910
sub rsp, rax
mov rax, qword [0x140182c48]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14012ac1c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140131d23
mov rax, rbp
jmp 0x140131e2b
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 + 0x22d380]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140128420
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x22d380]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140131e27
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 0x140131e27
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140128420
test rax, rax
js 0x140131e27
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140131e27
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140131e19
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140131e19
cmp byte [rcx], 0xd
jne 0x140131dff
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140131e0e
cmp byte [rcx + 1], 0xa
jne 0x140131e0e
inc rcx
jmp 0x140131e0e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x182cb0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140131de1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140131e2b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140119970
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 0x140134048
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 0x140134078
xor eax, eax
jmp 0x14013413b
mov rbp, rbx
cmp word [rax], si
je 0x14013409d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140134084
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140134080
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.1401315f0
movsxd r14, eax
test eax, eax
jne 0x1401340db
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140134071
mov rcx, r14
call fcn.14012e4f0
mov rdi, rax
test rax, rax
jne 0x1401340f4
xor ecx, ecx
call fcn.14012e4b4
jmp 0x1401340d0
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.1401315f0
test eax, eax
jne 0x140134125
mov rcx, rdi
call fcn.14012e4b4
jmp 0x14013412f
xor ecx, ecx
call fcn.14012e4b4
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 0x1401376f8
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.1401269e8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140137782
cmp byte [rbp - 0x21], r15b
je 0x14013777d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1401377b8
call fcn.140130948
test eax, eax
jne 0x1401377a4
cmp byte [rbp - 0x21], r15b
je 0x14013779c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1401377b8
cmp byte [rbp - 0x21], r15b
je 0x1401377b5
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.1401272a8
test eax, eax
jne 0x140137858
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1401269e8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1401377f7
cmp byte [rbp - 0x21], r15b
je 0x14013782c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14013782c
call fcn.140130948
test eax, eax
jne 0x140137818
cmp byte [rbp - 0x21], r15b
je 0x140137811
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14013782c
cmp byte [rbp - 0x21], r15b
je 0x140137829
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.1401272a8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140137858
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14013785b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140137869
mov rcx, rdi
call fcn.14012e4b4
cmp byte [rbp + 0x3f], r15b
je 0x140137878
mov rcx, qword [rbp + 0x27]
call fcn.14012e4b4
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 0x140138f90
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140138fb8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140138fb8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret