joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010290
Capabilities:
Parse pe header

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
xor r11d, r11d
lea r8, [0x140000000]
mov r9, rdx
test rdx, rdx
jne 0x1400102c1
mov r9, r8
not r9
mov rdx, r9
mov rcx, r8
call fcn.14000ffe4
test eax, eax
je 0x1400104c5
mov edx, 0x40
call fcn.14000ffe4
test eax, eax
je 0x1400104c5
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x1400104c5
movsxd rax, dword [0x14000003c]
cmp rax, r9
jae 0x1400104c5
lea rcx, [rax + r8]
mov edx, 0x108
call fcn.14000ffe4
test eax, eax
je 0x1400104c5
cmp dword [rcx], 0x4550
jne 0x1400104c5
movzx eax, word [rcx + 0x14]
cmp rax, r9
jae 0x1400104c5
add rcx, 0x18
mov edx, 0x10b
cmp word [rcx], dx
jne 0x14001036a
cmp rax, 0x60
jb 0x1400104c5
mov edx, 0xe0
call fcn.14000ffe4
test eax, eax
je 0x1400104c5
mov eax, dword [rcx + 0x5c]
add rcx, 0x70
jmp 0x14001039b
mov edx, 0x20b
cmp word [rcx], dx
jne 0x1400104c5
cmp rax, 0x70
jb 0x1400104c5
mov edx, pe_nt_image_headers64
call fcn.14000ffe4
test eax, eax
je 0x1400104c5
mov eax, dword [rcx + 0x6c]
sub rcx, 0xffffffffffffff80
cmp eax, 2
jbe 0x1400104c5
mov eax, dword [rcx]
test rax, rax
je 0x1400104c5
mov edx, dword [rcx + 4]
test rdx, rdx
je 0x1400104c5
lea rdi, [rax + r8]
test rdi, rdi
je 0x1400104c5
mov rcx, rdi
call fcn.14000ffe4
test eax, eax
je 0x1400104c5
mov ebp, 0x10
cmp rdx, rbp
jb 0x1400104c5
movzx ebx, word [rdi + 0xe]
test rbx, rbx
je 0x1400104c5
movzx ecx, word [rdi + 0xc]
lea r14d, [rbp - 8]
add rcx, 2
mov rsi, r11
lea rcx, [rdi + rcx*8]
test rbx, rbx
je 0x14001042b
mov rdx, r14
call fcn.14000ffe4
test eax, eax
je 0x1400104c5
cmp word [rcx], bp
je 0x14001042b
add rcx, r14
inc rsi
cmp rsi, rbx
jb 0x14001040b
cmp rsi, rbx
je 0x1400104c5
mov ebx, dword [rcx + 4]
test ebx, ebx
jns 0x1400104ad
mov esi, 0x7fffffff
mov rdx, rbp
and rbx, rsi
add rbx, rdi
mov rcx, rbx
call fcn.14000ffe4
test eax, eax
je 0x1400104c5
cmp word [rbx + 0xe], r11w
jne 0x140010463
cmp word [rbx + 0xc], r11w
je 0x1400104c5
lea rcx, [rbx + 0x10]
mov rdx, r14
call fcn.14000ffe4
test eax, eax
je 0x1400104c5
mov ebx, dword [rcx + 4]
test ebx, ebx
jns 0x1400104ad
and rbx, rsi
mov rdx, rbp
add rbx, rdi
mov rcx, rbx
call fcn.14000ffe4
test eax, eax
je 0x1400104c5
cmp word [rbx + 0xe], r11w
jne 0x14001049d
cmp word [rbx + 0xc], r11w
je 0x1400104c5
lea rcx, [rbx + 0x10]
mov rdx, r14
call fcn.14000ffe4
test eax, eax
je 0x1400104c5
mov ecx, dword [rcx + 4]
mov rdx, rbp
add rcx, rdi
call fcn.14000ffe4
test eax, eax
je 0x1400104c5
mov r11d, dword [rcx]
add r11, r8
mov rbx, qword [rsp + 0x30]
mov rax, r11
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140011328
Capabilities:
Initialize winhttp library

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
mov eax, 0x1050
call fcn.140019980
sub rsp, rax
mov rax, qword [0x14002d670]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
call fcn.1400122f8
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x1000
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov rcx, qword [rdi + 0x18]
xor r9d, r9d
and dword [rsp + 0x20], ebx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rdi + 0x78], rax
mov r14d, 0x80070000
test rax, rax
jne 0x1400113b7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
mov ebx, 0x80004005
or ecx, r14d
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovs ebx, ecx
test ebx, ebx
js 0x1400114b5
mov rcx, qword [rdi + 0x78]
mov edx, 0x2710
mov r9d, edx
mov dword [rsp + 0x20], edx
mov r8d, edx
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x1400113ef
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
mov ebx, 0x80004005
or ecx, r14d
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovs ebx, ecx
test ebx, ebx
js 0x1400114b5
mov rcx, qword [rdi + 0x78]
mov r8d, 0x1bb
xor r9d, r9d
mov rdx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rdi + 0x80], rax
test rax, rax
jne 0x140011434
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
mov ebx, 0x80004005
or ecx, r14d
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovs ebx, ecx
test ebx, ebx
js 0x1400114b5
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1400114dc
lea r8, [rsp + 0x40]
xor ecx, ecx
lea rdx, str.The_following_query_string_will_be_used:__s
mov ebx, eax
call fcn.140008980
test ebx, ebx
js 0x1400114b5
mov rcx, qword [rdi + 0x80]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x30], 0x800000
lea rdx, [0x14001fd98]
and qword [rsp + 0x28], 0
xor r9d, r9d
and qword [rsp + 0x20], 0
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rdi + 0x88], rax
test rax, rax
jne 0x1400114b5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
mov ebx, 0x80004005
or ecx, r14d
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovs ebx, ecx
mov eax, ebx
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140018830
mov rbx, qword [rsp + 0x1080]
add rsp, 0x1050
pop r14
pop rdi
pop rsi
ret
Function at 0x140011f68
Capabilities:
Read http header

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
lea rax, [r11 + 8]
mov r15, r9
mov qword [r11 - 0x30], rbx
mov r13, r8
mov qword [r11 - 0x38], rax
mov r12, rdx
mov rsi, rcx
mov rcx, qword [rcx + 0x88]
lea edx, [rbx + 0x36]
xor r9d, r9d
xor r8d, r8d
mov edi, ebx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov ebp, 0x80070000
test eax, eax
jne 0x140011fe4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x7a
je 0x140011fe4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
mov edi, 0x80004005
or ecx, ebp
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovs edi, ecx
mov ecx, dword [rsp + 0x60]
lea rdx, [0x14002df96]
call fcn.1400198bc
mov r14, rax
mov eax, 0x8007000e
test r14, r14
cmove edi, eax
test edi, edi
js 0x14001204e
xor r8d, r8d
mov word [r14], bx
mov rcx, qword [rsi + 0x88]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rbx
mov r9, r14
mov qword [rsp + 0x20], rax
lea edx, [r8 + 0x36]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x14001204e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
mov edi, 0x80004005
or ecx, ebp
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovs edi, ecx
mov rdx, r14
mov rcx, r12
call fcn.14000f8b0
mov rax, qword [r12]
or rbp, 0xffffffffffffffff
test rax, rax
jne 0x14001206a
mov esi, ebx
jmp 0x14001208b
mov rsi, rbp
inc rsi
cmp word [rax + rsi*2], bx
jne 0x14001206d
mov eax, esi
cmp rax, rsi
je 0x14001208b
mov ecx, 0x216
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
or esi, 0xffffffff
cmp qword [r15], rbx
je 0x14001209c
mov rcx, qword [r15]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov qword [r15], rbx
mov eax, esi
lea rcx, [rax + rax]
cmp rcx, rax
jbe 0x1400120cb
mov esi, ecx
cmp rsi, rcx
jne 0x1400120cb
mov ecx, esi
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemAlloc]
mov qword [r15], rax
test rax, rax
je 0x1400120cb
mov r8d, esi
xor edx, edx
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
test edi, edi
js 0x14001211e
mov rax, qword [r12]
test rax, rax
je 0x1400120fa
inc rbp
cmp word [rax + rbp*2], bx
jne 0x1400120d8
mov eax, ebp
cmp rax, rbp
je 0x1400120f8
mov ecx, 0x216
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
or ebx, 0xffffffff
jmp 0x1400120fa
mov ebx, ebp
mov r9, qword [r15]
lea rdx, str._lu:_s
mov r8, r13
mov dword [rsp + 0x20], ebx
mov rcx, r14
call fcn.140019818
cmp eax, 1
mov ecx, 0x8000ffff
cmovle edi, ecx
mov rcx, r14
call fcn.140018ef0
mov rbx, qword [rsp + 0x68]
mov eax, edi
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140012148
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x50
mov rbx, rcx
xor eax, eax
lea rcx, [rbp + 0x30]
mov qword [rbp + 0x30], rax
xor edi, edi
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTimeAsFileTime]
and qword [rsp + 0x40], rdi
xor eax, eax
and qword [rbp + 0x38], rax
xor r9d, r9d
mov eax, dword [rbp + 0x34]
xor r8d, r8d
mov rdx, qword [rbx + 0x20]
mov dword [rbp + 0x2c], eax
mov eax, dword [rbp + 0x30]
mov dword [rbp + 0x28], eax
mov eax, dword [rbx + 0x90]
imul rcx, rax, 0x23c34600
lea rax, [rbp + 0x38]
add qword [rbp + 0x28], rcx
mov rcx, qword [rbx + 0x70]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0xf003f
and dword [rsp + 0x20], edi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov ebx, 0x80070000
test eax, eax
je 0x1400121d5
movzx edi, ax
or edi, ebx
test eax, eax
cmovle edi, eax
test edi, edi
js 0x14001220e
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x28]
mov dword [rsp + 0x28], 8
lea rdx, str.RefreshAfter
mov r9d, 0xb
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
je 0x14001220e
movzx edi, ax
or edi, ebx
test eax, eax
cmovle edi, eax
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x14001221d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, edi
add rsp, 0x50
pop rdi
pop rbx
pop rbp
ret

Function at 0x140012228
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x50
xor esi, esi
lea rax, [r11 + 8]
mov qword [r11 - 0x18], rsi
mov rdi, rdx
mov rdx, qword [rcx + 0x20]
xor r9d, r9d
mov rcx, qword [rcx + 0x70]
xor r8d, r8d
mov qword [r11 - 0x20], rax
mov ebx, esi
mov qword [r11 - 0x28], rsi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], esi
mov qword [r11 + 8], rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
je 0x140012289
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400122d3
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], si
jne 0x14001228d
mov rcx, qword [rsp + 0x60]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.ETag
mov r9d, 1
mov qword [rsp + 0x20], rdi
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
je 0x1400122d3
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400122e3
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rsi, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140013400
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hash data using fnv

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
cmp qword [r8 + 0x18], 8
mov rdi, rdx
mov r11, qword [r8 + 0x10]
mov rbx, rcx
mov r10, r8
jb 0x140013430
mov r10, qword [r8]
lea rdx, [r11 + r11]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
test rdx, rdx
je 0x140013463
movzx eax, byte [rcx + r10]
movabs rsi, 0x100000001b3
xor r9, rax
inc rcx
imul r9, rsi
cmp rcx, rdx
jb 0x140013445
mov rcx, qword [rbx + 0x30]
mov r15, qword [rbx + 0x18]
and rcx, r9
mov r10, qword [rbx + 8]
mov rax, rcx
add rax, rax
lea r12, [rcx + rcx]
mov rax, qword [r15 + rax*8]
cmp qword [r15 + r12*8], r10
jne 0x14001348b
mov rcx, r10
jmp 0x140013493
mov rcx, qword [r15 + r12*8 + 8]
mov rcx, qword [rcx]
cmp rax, rcx
je 0x140013550
cmp qword [r8 + 0x18], 8
lea rcx, [rax + 0x10]
mov rdx, r8
jb 0x1400134ad
mov rdx, qword [r8]
mov r14, qword [rcx + 0x18]
mov r9, rcx
cmp r14, 8
jb 0x1400134bd
mov r9, qword [rcx]
mov rbp, qword [rcx + 0x10]
cmp rbp, r11
jne 0x1400134ee
mov rsi, rbp
test rbp, rbp
je 0x1400134e8
sub r9, rdx
movzx ecx, word [rdx + r9]
movzx ebx, word [rdx]
cmp cx, bx
jne 0x1400134f3
add rdx, 2
sub rsi, 1
jne 0x1400134d1
xor ecx, ecx
test ecx, ecx
je 0x1400134fc
mov rax, qword [rax]
jmp 0x140013480
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
jmp 0x1400134ea
lea rcx, [rax + 0x10]
cmp r14, 8
jb 0x140013509
mov rcx, qword [rcx]
cmp qword [r8 + 0x18], 8
jb 0x140013513
mov r8, qword [r8]
cmp r11, rbp
jne 0x14001353f
test r11, r11
je 0x140013539
sub r8, rcx
movzx edx, word [rcx + r8]
movzx r9d, word [rcx]
cmp dx, r9w
jne 0x140013547
add rcx, 2
sub r11, 1
jne 0x140013520
xor ecx, ecx
test ecx, ecx
je 0x140013542
mov rax, r10
mov qword [rdi], rax
jmp 0x140013553
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
jmp 0x14001353b
mov qword [rdi], r10
mov rbx, qword [rsp + 0x20]
mov rax, rdi
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
pop r15
pop r14
pop r12
ret
Function at 0x140013d48
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov r8, rcx
lea rsi, [rdi + 0x10]
cmp qword [rsi + 0x18], 8
mov r9, rsi
mov r10, qword [rsi + 0x10]
jb 0x140013d7b
mov r9, qword [rsi]
xor edx, edx
movabs rcx, 0xcbf29ce484222325
add r10, r10
je 0x140013daa
movzx eax, byte [rdx + r9]
movabs r11, 0x100000001b3
xor rcx, rax
inc rdx
imul rcx, r11
cmp rdx, r10
jb 0x140013d8c
mov rdx, qword [r8 + 0x30]
and rdx, rcx
mov rcx, qword [r8 + 0x18]
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rdi
jne 0x140013de2
cmp qword [rcx + rdx*8], rdi
jne 0x140013dd7
mov rax, qword [r8 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r8 + 0x18]
mov rax, qword [r8 + 8]
jmp 0x140013ddb
mov rax, qword [rdi + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x140013def
cmp qword [rcx + rdx*8], rdi
jne 0x140013def
mov rax, qword [rdi]
mov qword [rcx + rdx*8], rax
mov rax, qword [rdi + 8]
lea rcx, [rsi + 0x20]
mov rbx, qword [rdi]
mov qword [rax], rbx
mov rdx, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rdx + 8], rax
dec qword [r8 + 0x10]
call fcn.14000a404
mov rcx, rsi
call fcn.14000a404
mov rcx, rdi
call fcn.140018814
mov rsi, qword [rsp + 0x38]
mov rax, r14
mov rdi, qword [rsp + 0x40]
mov qword [r14], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r14
ret
Function at 0x14001434c
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x14002d670]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20a
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov r8d, 0x105
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_GetModuleFileNameW]
xor ebp, ebp
test eax, eax
je 0x14001449a
mov edx, 0x105
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchRemoveFileSpec]
mov ebx, eax
test eax, eax
jns 0x1400143db
mov edx, 0x20d
mov rcx, qword [rsp + 0x258]
lea r8, str.onecoreenduserupgradeenablers_shellhelpers_servicehelpers.cpp
mov r9d, ebx
call fcn.140004118
mov eax, ebx
jmp 0x14001449f
mov r9, rsi
lea r8, [rsp + 0x20]
mov edx, 0x105
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchCombine]
mov ebx, eax
test eax, eax
jns 0x140014400
mov edx, 0x20e
jmp 0x1400143bd
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathFileExistsW]
test eax, eax
je 0x14001447f
lea rax, [rsp + 0x20]
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], bp
jne 0x140014418
cmp rdx, qword [rdi + 0x18]
ja 0x140014453
cmp qword [rdi + 0x18], 8
mov rsi, rdi
jb 0x140014434
mov rsi, qword [rdi]
lea rbx, [rdx + rdx]
mov qword [rdi + 0x10], rdx
mov r8, rbx
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_memmove]
mov word [rbx + rsi], bp
jmp 0x140014460
lea r9, [rsp + 0x20]
mov rcx, rdi
call fcn.14000c23c
cmp qword [rdi + 0x18], 8
jb 0x14001446a
mov rdi, qword [rdi]
mov r8, rdi
lea rdx, str.Found_existing_DLL:__s
xor ecx, ecx
call fcn.140008980
xor eax, eax
jmp 0x14001449f
cmp qword [rdi + 0x18], 8
jb 0x140014489
mov rdi, qword [rdi]
mov r8, rdi
lea rdx, str.Cound_not_find_DLL:__s
xor ecx, ecx
call fcn.140008980
mov eax, 2
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140018830
mov rbx, qword [rsp + 0x270]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret
Function at 0x180016330
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 0x180016360
xor eax, eax
jmp 0x180016423
mov rbp, rbx
cmp word [rax], si
je 0x180016385
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18001636c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180016368
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.180011764
movsxd r14, eax
test eax, eax
jne 0x1800163c3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180016359
mov rcx, r14
call fcn.1800116a8
mov rdi, rax
test rax, rax
jne 0x1800163dc
xor ecx, ecx
call fcn.18001054c
jmp 0x1800163b8
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.180011764
test eax, eax
jne 0x18001640d
mov rcx, rdi
call fcn.18001054c
jmp 0x180016417
xor ecx, ecx
call fcn.18001054c
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 0x180016440
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 0x1800164c7
mov rsi, rbx
cmp word [rax], bp
je 0x180016486
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x180016470
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x18001646c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1800116a8
mov rdi, rax
test rax, rax
je 0x1800164b4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.18000bd30
mov rbp, rdi
xor ecx, ecx
call fcn.18001054c
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 0x180018e98
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, [0x18002bf00]
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 0x180018ef6
cmp word [rdx], r12w
jne 0x180018ef6
or byte [rax + r8*8 + 0x38], cl
jmp 0x180018efc
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x180019057
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x180019032
lea r9, [rcx + 2]
cmp ax, r13w
je 0x180018f35
mov rcx, r9
jmp 0x180018f58
cmp r9, rdx
jae 0x180018f6f
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 0x180018f19
jmp 0x180019057
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 0x18001902c
cmp dword [rsp + 0x80], edi
je 0x18001902c
mov rdx, r14
lea r11, [0x18002bf00]
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 0x180019005
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x180018fd8
mov word [rbx], r12w
jmp 0x180019053
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 0x180018fe1
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x180019053
cmp word [rsp + 0x70], r12w
jne 0x180019012
cmp rbx, rsi
je 0x180018fd2
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.180018bd0
cmp word [rsp + 0x70], r12w
je 0x180019057
mov word [rbx], r13w
jmp 0x180019053
lea r11, [0x18002bf00]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x18001904f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x180019057
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 0x18001bb18
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.180018bd0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180018bd0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18001bc68
cmp rax, 0xffffffffffffffff
je 0x18001bc68
xor edi, edi
test rbp, rbp
jle 0x18001bc13
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.180014c84
mov rbx, rax
test rax, rax
jne 0x18001bba0
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18001bc09
mov edx, 0x8000
mov ecx, r14d
call fcn.18001b9a0
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.180013a9c
cmp eax, 0xffffffff
je 0x18001bbe9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18001bbb0
mov edx, r15d
mov ecx, r14d
call fcn.18001b9a0
jmp 0x18001bc09
cmp byte [rsi + 0x38], dil
je 0x18001bc00
cmp dword [rsi + 0x34], 5
jne 0x18001bc00
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18001bc09
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18001054c
jmp 0x18001bc7c
jns 0x18001bc7c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180018bd0
cmp rax, 0xffffffffffffffff
jne 0x18001bc34
cmp byte [rsi + 0x30], dil
je 0x18001bc7c
mov edi, dword [rsi + 0x2c]
jmp 0x18001bc7c
mov ecx, r14d
call fcn.180017d54
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18001bc7c
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 0x18001bc7c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18001bc75
mov eax, dword [rsi + 0x2c]
jmp 0x18001bc7a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180018bd0
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