joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400030a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14005e1d8]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], 0
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREAdobeAdobe_NGLCEF1.0RestrictedSecuritySettings
mov rcx, 0xffffffff80000002
mov bl, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140003139
mov rcx, qword [rsp + 0x30]
lea rdx, str.CEFSecurityMK
mov dword [rsp + 0x38], eax
xor r9d, r9d
lea rax, [rsp + 0x3c]
mov dword [rsp + 0x3c], 4
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14000312e
cmp dword [rsp + 0x38], eax
setne bl
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140033d20
add rsp, 0x50
pop rbx
ret

Function at 0x140003150
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14005e1d8]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp qword [rcx + 0x10], 0
mov rdi, rcx
movzx ebx, dl
je 0x140003202
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], 0
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREAdobeAdobe_NGLCEF1.0RestrictedSecuritySettings
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140003202
cmp qword [rdi + 0x18], 0x10
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x3c], 4
jb 0x1400031c4
mov rdi, qword [rdi]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x38]
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400031f7
cmp dword [rsp + 0x38], eax
setne bl
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140033d20
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x1400334a0
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 0x140033518
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140033518
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 0x140033518
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x14003350c
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14003352a
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1400334fa
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 0x14003351a
Function at 0x1400349f0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140034a3a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140034a3a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140034a3a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140034a3a
cmp dword [rcx + 0x84], 0xe
jbe 0x140034a3a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140034a3c
xor al, al
add rsp, 0x28
ret
Function at 0x140006b80
Capabilities:
Hash data using sha1

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
mov qword [rbp - 0x71], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x14013d120]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rbx, rcx
mov qword [rbp - 0x69], rcx
xor edi, edi
mov dword [rbp - 0x75], edi
lea r9, [0x14002e824]
lea r8, str.6C944419_1C47_4AD9_9D7A_08C84942EF1C
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x79]
call fcn.140004d40
movups xmm0, xmmword [rbp - 0x61]
movaps xmmword [rbp - 0x49], xmm0
mov dword [rbp - 0x39], 0x67452301
mov dword [rbp - 0x35], 0xefcdab89
mov dword [rbp - 0x31], 0x98badcfe
mov dword [rbp - 0x2d], 0x10325476
mov dword [rbp - 0x29], 0xc3d2e1f0
mov qword [rbp + 0x1f], rdi
mov qword [rbp + 0x27], rdi
mov qword [rbp + 0x2f], rdi
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x39]
call fcn.140009a70
lea r8, [0x14002e833]
lea rdx, str.Jan_19_2018
lea rcx, [rbp - 0x39]
call fcn.140009a70
lea rdx, [rbp + 0x37]
lea rcx, [rbp - 0x39]
call fcn.140008d70
movzx eax, byte [rbp + 0x3a]
mov byte [rbp - 0x61], al
movzx eax, byte [rbp + 0x39]
mov byte [rbp - 0x60], al
movzx eax, byte [rbp + 0x38]
mov byte [rbp - 0x5f], al
movzx eax, byte [rbp + 0x37]
mov byte [rbp - 0x5e], al
movzx eax, byte [rbp + 0x3e]
mov byte [rbp - 0x5d], al
movzx eax, byte [rbp + 0x3d]
mov byte [rbp - 0x5c], al
movzx eax, byte [rbp + 0x3b]
mov byte [rbp - 0x5a], al
movzx eax, byte [rbp + 0x41]
mov byte [rbp - 0x58], al
movzx eax, byte [rbp + 0x40]
mov byte [rbp - 0x57], al
movzx eax, byte [rbp + 0x3f]
mov byte [rbp - 0x56], al
movzx eax, byte [rbp + 0x46]
mov byte [rbp - 0x55], al
movzx eax, byte [rbp + 0x45]
mov byte [rbp - 0x54], al
movzx eax, byte [rbp + 0x44]
mov byte [rbp - 0x53], al
movzx eax, byte [rbp + 0x43]
mov byte [rbp - 0x52], al
movzx ecx, byte [rbp + 0x42]
and cl, 0xbf
or cl, 0x80
mov byte [rbp - 0x59], cl
movzx ecx, byte [rbp + 0x3c]
and cl, 0x5f
or cl, 0x50
mov byte [rbp - 0x5b], cl
lea rdx, [rbp - 0x61]
mov rcx, rbx
call fcn.14000a720
nop
mov dword [rbp - 0x75], 1
mov rax, rbx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140021690
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400076f0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x260
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x290], rbx
mov rax, qword [0x14013d120]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r14, rdx
mov rdi, rcx
call fcn.1400075d0
mov rcx, rax
test rax, rax
jne 0x14000773d
mov ecx, 0x80004005
call fcn.140006830
int3
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x23]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
or rsi, 0xffffffffffffffff
test eax, eax
js 0x140007851
lea rcx, [rsp + 0x40]
mov rax, rsi
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140007780
mov r8d, eax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.140007b10
lea rdx, [0x14002e618]
lea rcx, [rsp + 0x30]
call fcn.140006020
test rdi, rdi
jne 0x1400077b6
xor eax, eax
jmp 0x1400077ca
mov rax, rsi
nop dword [rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x1400077c0
mov r8d, eax
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140006660
lea rdx, [0x14002e61c]
lea rcx, [rsp + 0x30]
call fcn.140006020
mov rbx, qword [rsp + 0x30]
lea rcx, [rbx - 0x18]
mov rdi, qword [r14]
sub rdi, 0x18
cmp rcx, rdi
je 0x14000784c
cmp dword [rdi + 0x10], 0
jl 0x14000783d
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x14000783d
call fcn.140006930
mov rbx, rax
mov ecx, esi
lock xadd dword [rdi + 0x10], ecx
sub ecx, 1
jg 0x14000782f
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [r8 + 8]
lea rax, [rbx + 0x18]
mov qword [r14], rax
mov rbx, qword [rsp + 0x30]
jmp 0x14000784c
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
mov rcx, r14
call fcn.140007b10
mov dil, 1
jmp 0x140007854
xor dil, dil
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x14000786c
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
movzx eax, dil
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140021690
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop r14
pop rdi
pop rsi
ret

Function at 0x140007ca0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140007cd3
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140007d1a
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140007d15
nop
cmp rbx, rcx
jae 0x140007d1a
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140007d00
cmp rbx, rcx
jb 0x140007d1e
xor eax, eax
jmp 0x140007d2a
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400098b0
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x150
mov rax, qword [0x14013d120]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rdi, rcx
lea r8, [rcx + 0x15]
lea rcx, [rsp]
mov r9d, 0x10
sub rcx, rdi
nop word [rax + rax]
movzx eax, byte [r8]
movzx edx, byte [r8 - 1]
lea r8, [r8 + 4]
shl edx, 8
or edx, eax
movzx eax, byte [r8 - 3]
shl edx, 8
or edx, eax
movzx eax, byte [r8 - 2]
shl edx, 8
or edx, eax
mov dword [rcx + r8 - 0x19], edx
sub r9, 1
jne 0x140009900
lea rdx, [rsp + 8]
lea r8d, [r9 + 0x40]
nop word [rax + rax]
mov eax, dword [rdx + 0x2c]
xor eax, dword [rdx + 0x18]
xor eax, dword [rdx - 8]
xor eax, dword [rdx]
lea rdx, [rdx + 4]
mov ecx, eax
add eax, eax
shr ecx, 0x1f
xor ecx, eax
mov dword [rdx + 0x34], ecx
sub r8, 1
jne 0x140009940
mov r14d, dword [rdi]
xor r9d, r9d
mov r15d, dword [rdi + 4]
mov esi, r14d
mov r12d, dword [rdi + 8]
mov edx, r15d
mov r13d, dword [rdi + 0xc]
mov r8d, r12d
mov ebp, dword [rdi + 0x10]
mov r10d, r13d
cmp r9, 0x14
jae 0x14000999e
mov eax, edx
mov ecx, r8d
not eax
and ecx, edx
and eax, r10d
mov r11d, 0x5a827999
or eax, ecx
jmp 0x1400099d7
cmp r9, 0x28
jae 0x1400099ac
mov r11d, 0x6ed9eba1
jmp 0x1400099cf
cmp r9, 0x3c
jae 0x1400099c9
mov eax, r8d
mov ecx, r8d
or eax, edx
and ecx, edx
and eax, r10d
mov r11d, 0x8f1bbcdc
or eax, ecx
jmp 0x1400099d7
mov r11d, 0xca62c1d6
mov eax, r10d
xor eax, r8d
xor eax, edx
mov ebx, esi
mov ecx, esi
shr ebx, 0x1b
shl ecx, 5
xor ebx, ecx
add ebx, dword [rsp + r9*4]
inc r9
add ebx, r11d
add ebx, eax
add ebx, ebp
mov ebp, r10d
mov r10d, r8d
mov r8d, edx
shr edx, 2
shl r8d, 0x1e
xor r8d, edx
mov edx, esi
mov esi, ebx
cmp r9, 0x50
jb 0x140009982
add dword [rdi + 0x10], ebp
lea eax, [r14 + rbx]
mov dword [rdi], eax
lea eax, [r15 + rdx]
mov dword [rdi + 4], eax
lea eax, [r12 + r8]
mov dword [rdi + 8], eax
lea eax, [r10 + r13]
mov dword [rdi + 0xc], eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140021690
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400228e0
Capabilities:
Accept command line arguments

Disassembly:
push rdi
push r15
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x50], rax
mov rdi, rax
test rax, rax
jne 0x140022915
or rax, 0xffffffffffffffff
add rsp, 0x78
pop r15
pop rdi
ret
mov eax, dword [rsp + 0x40]
mov r15, 0xffffffffffffffff
inc eax
mov qword [rsp + 0x90], rbx
movsxd rcx, eax
mov eax, 8
mul rcx
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0x60], r14
cmovo rax, r15
mov rcx, rax
call fcn.140021858
mov r14, rax
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x40]
xor ebx, ebx
test eax, eax
jle 0x140022a19
mov qword [rsp + 0x98], rbp
mov qword [rsp + 0x70], r12
mov r12, r14
mov qword [rsp + 0x68], r13
mov r13, rdi
sub r13, r14
mov r14d, ebx
nop dword [rax]
nop word [rax + rax]
mov rbp, qword [r12 + r13]
mov r9d, r15d
mov qword [rsp + 0x38], rbx
mov r8, rbp
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], ebx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.140021858
mov qword [rsp + 0x38], rbx
mov r9d, r15d
mov qword [rsp + 0x30], rbx
mov r8, rbp
mov dword [rsp + 0x28], edi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [r12], rsi
lea r12, [r12 + 8]
mov eax, dword [rsp + 0x40]
inc r14d
cmp r14d, eax
jl 0x140022990
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x98]
cdqe
mov rcx, rdi
mov qword [r14 + rax*8], rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x40]
mov rdx, r14
call fcn.14000c570
mov esi, eax
cmp dword [rsp + 0x40], ebx
jle 0x140022a59
mov rdi, r14
nop
mov rcx, qword [rdi]
test rcx, rcx
je 0x140022a59
call fcn.140021860
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x40]
jl 0x140022a40
mov rcx, r14
call fcn.140021860
mov r14, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x90]
add rsp, 0x78
pop r15
pop rdi
ret
Function at 0x140001110
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x20
mov ecx, 2
lea rbx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea r8, [0x14003a1b0]
lea rdx, str.__s_fatal_error_:
call fcn.140001060
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdx, qword [rsp + 0x30]
mov r8, rbx
mov rcx, rax
call fcn.140001010
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x14002c404]
call fcn.140001060
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140007a10
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
call fcn.140006bd0
mov rcx, rax
lea r8, [0x14002d18c]
call fcn.140006990
mov rsi, rax
test rax, rax
jne 0x140007a51
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, rsi
mov rcx, rbx
call fcn.140007890
xor ebx, ebx
mov rcx, rsi
test eax, eax
setne bl
call fcn.140006b30
and ebx, eax
jne 0x140007a78
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000bb50
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
test r8, r8
jle 0x14000bbe6
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x14000bbed
mov r15, rsi
jmp 0x14000bbab
cmp r15, r14
cmovb r14, r15
mov rcx, rdi
mov r8, r14
call fcn.14000cca0
add rdi, r14
sub r15, r14
mov rax, qword [rbx + 0x50]
sub dword [rax], r14d
mov rax, qword [rbx + 0x38]
add qword [rax], r14
test r15, r15
jle 0x14000bbde
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000bbc3
mov rax, qword [rbx + 0x50]
mov r14d, dword [rax]
test r14d, r14d
jg 0x14000bb80
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14000bbde
mov byte [rdi], al
inc rdi
dec r15
test r15, r15
jg 0x14000bbab
sub rsi, r15
jmp 0x14000bcda
xor esi, esi
jmp 0x14000bcda
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000bc40
mov rcx, qword [rbx + 0x50]
movsxd r15, dword [rcx]
test r15, r15
je 0x14000bc40
cmp r15, rsi
cmovae r15, rsi
mov rcx, rdi
mov r8, r15
call fcn.14000cca0
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x50]
sub dword [rax], r15d
mov rax, qword [rbx + 0x38]
movsxd rcx, r15d
add qword [rax], rcx
cmp qword [rbx + 0x80], 0
jne 0x14000bc51
jmp 0x14000bcd7
mov r14, rsi
cmp qword [rbx + 0x80], 0
je 0x14000bcd7
mov rcx, qword [rbx + 0x18]
lea rdx, [rbx + 0x70]
cmp qword [rcx], rdx
jne 0x14000bc80
mov edx, dword [rbx + 0x90]
mov r8, qword [rbx + 0x88]
mov qword [rcx], r8
mov qword [rax], r8
sub edx, r8d
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
nop word [rax + rax]
cmp r14, 0x1000
jb 0x14000bcb3
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call fcn.1400215a0
add rdi, rax
sub r14, rax
cmp rax, 0xfff
je 0x14000bc80
jmp 0x14000bcd7
test r14, r14
je 0x14000bcd4
mov r9, qword [rbx + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, r14
call fcn.1400215a0
sub r14, rax
jmp 0x14000bcd7
xor r14d, r14d
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140014ad4
Capabilities:
Parse pe header

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

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001d5ec
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 0x14001d65b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001d65b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001d65b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001d65b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001d65b
cmp dword [rcx + 0x84], 0xe
jbe 0x14001d65b
cmp dword [rcx + 0xf8], 0
je 0x14001d65b
mov ecx, ebx
call fcn.14001d518
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.14001d780
nop
cmp dword [rbp + 0x20], 0
je 0x14001d6a9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001d5b8
int3

Function at 0x140022f30
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140022f58
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140022f58
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14002e500
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.140014ff0
sub rsp, rax
mov rax, qword [0x140057098]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002ab24
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002e54f
mov rax, rbp
jmp 0x14002e657
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 + 0x59610]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002e228
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x59610]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002e653
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 0x14002e653
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002e228
test rax, rax
js 0x14002e653
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002e653
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002e645
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002e645
cmp byte [rcx], 0xd
jne 0x14002e62b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002e63a
cmp byte [rcx + 1], 0xa
jne 0x14002e63a
inc rcx
jmp 0x14002e63a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x57c30]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002e60d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002e657
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140014fb0
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 0x14002eea0
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 0x14002eed0
xor eax, eax
jmp 0x14002ef93
mov rbp, rbx
cmp word [rax], si
je 0x14002eef5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002eedc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002eed8
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.14002648c
movsxd r14, eax
test eax, eax
jne 0x14002ef33
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002eec9
mov rcx, r14
call fcn.1400263d0
mov rdi, rax
test rax, rax
jne 0x14002ef4c
xor ecx, ecx
call fcn.140026394
jmp 0x14002ef28
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.14002648c
test eax, eax
jne 0x14002ef7d
mov rcx, rdi
call fcn.140026394
jmp 0x14002ef87
xor ecx, ecx
call fcn.140026394
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 0x1400309e8
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 0x140030a1a
call fcn.14001f8e4
mov dword [rax], 0x16
call fcn.1400202a8
jmp 0x140030b39
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140030b39
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140030b39
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140030a49
lock or dword [rcx + 0x14], 0x10
jmp 0x140030b39
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140030a5d
call fcn.1400320bc
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14002ab24
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140030db8
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140030b27
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140030af2
mov rcx, rsi
call fcn.14002ab24
cmp eax, edi
je 0x140030add
mov rcx, rsi
call fcn.14002ab24
cmp eax, 0xfffffffe
je 0x140030add
mov rcx, rsi
call fcn.14002ab24
movsxd rbx, eax
lea r14, [0x140059610]
mov rcx, rsi
sar rbx, 6
call fcn.14002ab24
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140030ae4
lea rdx, [0x140057690]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140030af2
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140030b16
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140030b16
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140030b16
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 0x140030b3c
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