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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov r9, qword [rcx]
movabs rax, 0xffffffff00000000
mov r8d, dword [rcx + 0x68]
mov rsi, rcx
mov r12d, r8d
neg r12
movzx edi, word [r9 + 0x14]
mov r10, qword [r9 + 0x30]
add rdi, r9
and r10, rax
mov qword [rsp + 0x70], r10
mov ebp, dword [rdi + 0x20]
mov eax, dword [rdi + 0x28]
or rbp, r10
and r12, rbp
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x28], r12
test eax, eax
jne 0x18000265a
mov ecx, dword [rdi + 0x3c]
test cl, 0x40
je 0x180002652
mov eax, dword [r9 + 0x20]
jmp 0x18000265a
test cl, cl
jns 0x18000265a
mov eax, dword [r9 + 0x24]
mov ecx, dword [rdi + 0x3c]
mov edx, eax
mov eax, 1
mov r13d, eax
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x88], r15
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x3c], 0
cmp ax, word [r9 + 6]
jae 0x180002762
add rdi, 0x64
nop dword [rax]
mov r15d, dword [rdi - 0x1c]
mov eax, r8d
or r15, r10
mov ebx, r8d
mov r10d, dword [rdi - 0x14]
neg rbx
and rbx, r15
test r10d, r10d
jne 0x1800026d7
mov r11d, dword [rdi]
test r11b, 0x40
je 0x1800026cb
mov r10d, dword [r9 + 0x20]
jmp 0x1800026d7
test r11b, r11b
jns 0x1800026d7
mov r10d, dword [r9 + 0x24]
mov eax, dword [rsi + 0x68]
mov r14d, r10d
cmp r12, rbx
je 0x180002717
mov r8d, eax
lea rax, [rdx + rbp]
cmp rax, rbx
ja 0x180002717
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.180002500
test eax, eax
je 0x180002759
mov ecx, dword [rdi]
mov rbp, r15
mov r8d, dword [rsi + 0x68]
mov r12, rbx
mov qword [rsp + 0x20], r15
mov edx, r14d
mov qword [rsp + 0x28], rbx
jmp 0x180002732
mov edx, dword [rdi]
mov eax, edx
and eax, ecx
or ecx, edx
bt eax, 0x19
jb 0x180002729
btr ecx, 0x19
mov rdx, r14
sub rdx, rbp
add rdx, r15
mov r9, qword [rsi]
inc r13d
add rdi, 0x28
mov dword [rsp + 0x38], ecx
mov qword [rsp + 0x30], rdx
movzx eax, word [r9 + 6]
cmp r13d, eax
jge 0x18000275d
mov r10, qword [rsp + 0x70]
jmp 0x1800026a0
xor eax, eax
jmp 0x18000277d
mov eax, 1
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x3c], eax
mov rcx, rsi
call fcn.180002500
test eax, eax
mov eax, 0
setne al
mov r15, qword [rsp + 0x88]
mov r14, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180004620
Capabilities:
Create thread
Hash data with md5

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xb0
mov rax, qword [0x180043030]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov ecx, 0x72fe00
call fcn.180012210
mov r8d, 0x72fe00
lea rdx, [0x180043c30]
mov rcx, rax
mov rbx, rax
call fcn.18000aa80
xor edi, edi
mov dword [rsp + 0x38], 0x67452301
mov r8d, 0x72fe00
mov qword [rsp + 0x30], rdi
mov rdx, rbx
mov dword [rsp + 0x3c], 0xefcdab89
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x40], 0x98badcfe
mov dword [rsp + 0x44], 0x10325476
call fcn.180005570
lea rcx, [rsp + 0x30]
call fcn.180005840
movups xmm0, xmmword [rsp + 0x88]
mov ecx, 0xc8
movups xmmword [0x18077cfa0], xmm0
call qword [sym.imp.KERNEL32.DLL_Sleep]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
lea r8, [0x180004330]
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateThread]
test rax, rax
je 0x180004720
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.DLL_Sleep]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
lea r8, [0x1800040a0]
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateThread]
test rax, rax
je 0x180004720
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
xor eax, eax
jmp 0x180004725
mov eax, 1
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1800089c0
mov rbx, qword [rsp + 0xc0]
add rsp, 0xb0
pop rdi
ret
jmp 0x180004620

Function at 0x180004750
Capabilities:
Create thread
Hash data with md5

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xb0
mov rax, qword [0x180043030]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov ecx, 0x72fe00
call fcn.180012210
mov r8d, 0x72fe00
lea rdx, [0x180043c30]
mov rcx, rax
mov rbx, rax
call fcn.18000aa80
xor edi, edi
mov dword [rsp + 0x38], 0x67452301
mov r8d, 0x72fe00
mov qword [rsp + 0x30], rdi
mov rdx, rbx
mov dword [rsp + 0x3c], 0xefcdab89
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x40], 0x98badcfe
mov dword [rsp + 0x44], 0x10325476
call fcn.180005570
lea rcx, [rsp + 0x30]
call fcn.180005840
movups xmm0, xmmword [rsp + 0x88]
mov ecx, 0xc8
movups xmmword [0x18077cfa0], xmm0
call qword [sym.imp.KERNEL32.DLL_Sleep]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
lea r8, [0x180004330]
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateThread]
test rax, rax
je 0x180004720
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.DLL_Sleep]
xor r9d, r9d
mov qword [rsp + 0x28], rdi
lea r8, [0x1800040a0]
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateThread]
test rax, rax
je 0x180004720
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
xor eax, eax
jmp 0x180004725
mov eax, 1
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1800089c0
mov rbx, qword [rsp + 0xc0]
add rsp, 0xb0
pop rdi
ret
jmp 0x180004620
Function at 0x180005c70
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x180043030]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, rcx
mov esi, edx
mov ecx, edx
mov rbp, r8
call fcn.180012210
mov r8d, esi
mov rdx, rdi
mov rcx, rax
mov rbx, rax
call fcn.18000aa80
mov r8d, esi
mov qword [rsp + 0x20], 0
mov rdx, rbx
mov dword [rsp + 0x28], 0x67452301
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x2c], 0xefcdab89
mov dword [rsp + 0x30], 0x98badcfe
mov dword [rsp + 0x34], 0x10325476
call fcn.180005570
lea rcx, [rsp + 0x20]
call fcn.180005840
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rbp], xmm0
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1800089c0
mov rbx, qword [rsp + 0xd8]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret

Function at 0x18000f424
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.180009310
sub rsp, rax
mov rax, qword [0x180043030]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18001998c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18000f473
mov rax, rbp
jmp 0x18000f57b
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 + 0x77c840]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180019c24
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x77c840]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18000f577
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 0x18000f577
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180019c24
test rax, rax
js 0x18000f577
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18000f577
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18000f569
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18000f569
cmp byte [rcx], 0xd
jne 0x18000f54f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18000f55e
cmp byte [rcx + 1], 0xa
jne 0x18000f55e
inc rcx
jmp 0x18000f55e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x433d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18000f531
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18000f57b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800089c0
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 0x18001bc7c
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, [0x18077c840]
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 0x18001bcda
cmp word [rdx], r12w
jne 0x18001bcda
or byte [rax + r8*8 + 0x38], cl
jmp 0x18001bce0
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x18001be3b
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x18001be16
lea r9, [rcx + 2]
cmp ax, r13w
je 0x18001bd19
mov rcx, r9
jmp 0x18001bd3c
cmp r9, rdx
jae 0x18001bd53
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 0x18001bcfd
jmp 0x18001be3b
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 0x18001be10
cmp dword [rsp + 0x80], edi
je 0x18001be10
mov rdx, r14
lea r11, [0x18077c840]
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 0x18001bde9
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x18001bdbc
mov word [rbx], r12w
jmp 0x18001be37
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 0x18001bdc5
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x18001be37
cmp word [rsp + 0x70], r12w
jne 0x18001bdf6
cmp rbx, rsi
je 0x18001bdb6
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.180019c2c
cmp word [rsp + 0x70], r12w
je 0x18001be3b
mov word [rbx], r13w
jmp 0x18001be37
lea r11, [0x18077c840]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x18001be33
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x18001be3b
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 0x18001f028
Capabilities:
Read file on windows

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, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x18001ed4a
call fcn.180013388
mov dword [rax], 0x16
call fcn.180012178
jmp 0x18001ee9a
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x18001ee9a
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x18001ee9a
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x18001ed79
lock or dword [rcx + 0x14], 0x10
jmp 0x18001ee9a
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x18001ed8d
call fcn.180020c60
mov ebp, dword [rbx + 0x10]
cmp ebp, 1
jne 0x18001ed9d
mov rax, qword [rbx]
mov r14b, byte [rax]
jmp 0x18001eda0
xor r14b, r14b
mov rsi, qword [rbx + 8]
mov rcx, rbx
mov edi, dword [rbx + 0x20]
mov qword [rbx], rsi
call fcn.18001998c
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.18001c128
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x18001ee88
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x18001ee33
mov rcx, rbx
call fcn.18001998c
cmp eax, 0xffffffff
je 0x18001ee1e
mov rcx, rbx
call fcn.18001998c
cmp eax, 0xfffffffe
je 0x18001ee1e
mov rcx, rbx
call fcn.18001998c
movsxd rdi, eax
lea rsi, [0x18077c840]
mov rcx, rbx
sar rdi, 6
call fcn.18001998c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [rsi + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x18001ee25
lea rdx, [0x1800434d0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18001ee33
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x18001ee57
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x18001ee57
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x18001ee57
mov dword [rbx + 0x20], 0x1000
mov rdx, qword [rbx]
cmp ebp, 1
jne 0x18001ee75
movzx ecx, byte [rdx]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, r14b
or cx, ax
inc rdx
jmp 0x18001ee80
movzx ecx, word [rdx]
add dword [rbx + 0x10], 0xfffffffe
add rdx, 2
mov qword [rbx], rdx
movzx eax, cx
jmp 0x18001ee9f
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x18001ed14
Function at 0x1800246dc
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 0x18002470c
xor eax, eax
jmp 0x1800247cf
mov rbp, rbx
cmp word [rax], si
je 0x180024731
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180024718
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180024714
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.180022e24
movsxd r14, eax
test eax, eax
jne 0x18002476f
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
jmp 0x180024705
mov rcx, r14
call fcn.18001d8c0
mov rdi, rax
test rax, rax
jne 0x180024788
xor ecx, ecx
call fcn.18001c97c
jmp 0x180024764
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.180022e24
test eax, eax
jne 0x1800247b9
mov rcx, rdi
call fcn.18001c97c
jmp 0x1800247c3
xor ecx, ecx
call fcn.18001c97c
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 0x18002adac
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.18000fa6c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x18002ae36
cmp byte [rbp - 0x21], r15b
je 0x18002ae31
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x18002ae6c
call fcn.18001cc80
test eax, eax
jne 0x18002ae58
cmp byte [rbp - 0x21], r15b
je 0x18002ae50
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x18002ae6c
cmp byte [rbp - 0x21], r15b
je 0x18002ae69
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.1800182c0
test eax, eax
jne 0x18002af0c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.18000fa6c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x18002aeab
cmp byte [rbp - 0x21], r15b
je 0x18002aee0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x18002aee0
call fcn.18001cc80
test eax, eax
jne 0x18002aecc
cmp byte [rbp - 0x21], r15b
je 0x18002aec5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x18002aee0
cmp byte [rbp - 0x21], r15b
je 0x18002aedd
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.1800182c0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x18002af0c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x18002af0f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x18002af1d
mov rcx, rdi
call fcn.18001c97c
cmp byte [rbp + 0x3f], r15b
je 0x18002af2c
mov rcx, qword [rbp + 0x27]
call fcn.18001c97c
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 0x1400031d0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
mov rdx, rcx
lea rcx, [r8 - 1]
jmp fcn.140005cf0

Function at 0x140003300
Capabilities:
Parse pe header

Disassembly:
mov r8, rdx
mov rdx, rcx
mov rcx, 0xffffffffffffffff
jmp fcn.140006320
Function at 0x140007480
Capabilities:
Parse pe header

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

Function at 0x14000d438
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 0x14000d2a3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d2a3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d2a3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d2a3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d2a3
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d2a3
cmp dword [rcx + 0xf8], 0
je 0x14000d2a3
mov ecx, ebx
call fcn.14000d354
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.14000d130
nop
cmp dword [rbp + 0x20], 0
je 0x14000d2f1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000d2fc
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000d234
Function at 0x140018240
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 0x1400182c7
mov rsi, rbx
cmp word [rax], bp
je 0x140018286
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140018270
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14001826c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140013b58
mov rdi, rax
test rax, rax
je 0x1400182b4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400201b0
mov rbp, rdi
xor ecx, ecx
call fcn.140013b1c
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 0x14001b5d8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001b5ee
mov al, 1
jmp 0x14001b64e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001b5ff
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001b64c
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400189e4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001b64c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001b64c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001b64c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001b64e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001c814
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, [0x14004bb00]
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 0x14001c86b
cmp word [rdx], r13w
jne 0x14001c86b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001c870
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001c995
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001c9b6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001c8a9
mov rdx, r9
mov word [rbx], cx
jmp 0x14001c8d0
cmp r9, r8
jae 0x14001c8e0
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 0x14001c88a
jmp 0x14001c995
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 0x14001c98a
cmp dword [rsp + 0x80], esi
je 0x14001c98a
lea r8, [0x14004bb00]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001c962
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001c932
mov word [rbx], r13w
jmp 0x14001c992
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 0x14001c93f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001c992
cmp word [rsp + 0x70], r13w
jne 0x14001c96f
cmp rbx, r14
je 0x14001c92c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001e7e0
cmp word [rsp + 0x70], r13w
je 0x14001c995
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, [0x14004bb00]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001c98f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001c995
Function at 0x14001f930
Capabilities:
Parse pe header

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