joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001499c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1400b1040]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov ebx, edx
mov qword [rsp + 0x30], rcx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x20a
call fcn.140031860
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor ecx, ecx
test eax, eax
js 0x140014a4a
mov qword [rdi + 0x10], rcx
lea rax, [rsp + 0x40]
mov qword [rdi + 0x18], 7
or r8, 0xffffffffffffffff
mov word [rdi], cx
inc r8
cmp word [rax + r8*2], cx
jne 0x140014a0f
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14000dc38
mov rax, rdi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14002ca00
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret
lfence
mov r8d, 0x14
lea rdx, str.C:dvsp4_build_sw_relgfclient_rel_03_27_backendClientCommon_srcClientPaths.cpp
mov ecx, eax
call fcn.140014968
int3

Function at 0x14001cd38
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
jb 0x14001cd46
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001cd58
shr eax, 4
and al, 1
jmp 0x14001cd5a
xor al, al
add rsp, 0x28
ret
Function at 0x14001cd60
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x1400b1040]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdx, qword [rcx + 0x10]
xor ebx, ebx
test rdx, rdx
jne 0x14001cd9e
xor al, al
jmp 0x14001cf0b
mov dword [rbp - 0x5c], 0x5c
mov eax, dword [0x14007eaa0]
mov dword [rbp - 0x10], eax
movzx eax, word [0x14007eaa4]
mov word [rbp - 0xc], ax
mov rax, rcx
cmp qword [rcx + 0x18], 8
jb 0x14001cdc6
mov rax, qword [rcx]
lea r8, [rax + rdx*2]
jb 0x14001cdcf
mov rcx, qword [rcx]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rbx
mov r9b, byte [rbp - 0x60]
mov rdx, rcx
lea rcx, [rbp - 0x50]
call fcn.14001cc44
nop
mov word [rbp - 0x60], bx
mov rdx, qword [rbp - 0x48]
cmp qword [rbp - 0x40], rdx
je 0x14001ce07
mov word [rdx], bx
add rdx, 2
mov qword [rbp - 0x48], rdx
jmp 0x14001ce14
lea r8, [rbp - 0x60]
lea rcx, [rbp - 0x50]
call fcn.14001cb40
mov qword [rbp - 0x58], rbx
lea r8, [rbp - 0x58]
lea rdx, [rbp - 0x10]
mov rcx, qword [rbp - 0x50]
call fcn.140038808
mov rdi, rax
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], bx
xor r8d, r8d
lea rdx, [0x140099790]
lea rcx, [rbp - 0x30]
call fcn.14000dc38
nop
test rdi, rdi
je 0x14001cef4
test rdi, rdi
je 0x14001ce78
or r8, 0xffffffffffffffff
inc r8
cmp word [rdi + r8*2], bx
jne 0x14001ce62
mov rdx, rdi
lea rcx, [rbp - 0x30]
call fcn.14000c808
cmp qword [rbp - 0x20], rbx
jbe 0x14001ceba
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea rcx, [rbp - 0x30]
cmp eax, 0xffffffff
je 0x14001cea4
call fcn.14001cd38
test al, al
jmp 0x14001ceb8
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14001cef6
lea rax, [rbp - 0x5c]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x14001cec2
lea rdx, [rbp - 0x5c]
lea rcx, [rbp - 0x30]
call fcn.14000c808
lea r8, [rbp - 0x58]
lea rdx, [rbp - 0x10]
xor ecx, ecx
call fcn.140038808
mov rdi, rax
test rax, rax
jne 0x14001ce59
mov bl, 1
lea rcx, [rbp - 0x30]
call fcn.14000db60
nop
lea rcx, [rbp - 0x50]
call fcn.14000d8e4
mov al, bl
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14002ca00
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x14001cf2c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x14001d310
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov byte [r9], 1
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140021b48
test al, al
je 0x14001d384
mov rcx, rbx
call fcn.140021b50
test al, al
je 0x14001d384
mov eax, 0xffffffff
cmp rsi, rax
ja 0x14001d384
mov rcx, qword [rbx + 0x10]
lea r9, [rsp + 0x58]
and dword [rsp + 0x58], 0
mov r8d, esi
and qword [rsp + 0x20], 0
mov rdx, rbp
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001d37e
mov byte [rdi], 0
mov eax, dword [rsp + 0x58]
jmp 0x14001d386
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14001d4b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov byte [r9], 1
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140021b48
test al, al
je 0x14001d524
mov rcx, rbx
call fcn.140021b58
test al, al
je 0x14001d524
mov eax, 0xffffffff
cmp rsi, rax
ja 0x14001d524
mov rcx, qword [rbx + 0x10]
lea r9, [rsp + 0x58]
and dword [rsp + 0x58], 0
mov r8d, esi
and qword [rsp + 0x20], 0
mov rdx, rbp
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001d51e
mov byte [rdi], 0
mov eax, dword [rsp + 0x58]
jmp 0x14001d526
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140021750
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140021775
xor eax, eax
jmp 0x140021885
cmp qword [rcx + 0x68], 0
je 0x140021789
lfence
call fcn.1400167a0
jmp 0x140021885
mov rax, qword [rcx + 0x38]
mov rbp, rdi
mov qword [rsp + 0x60], rdi
mov rdx, qword [rax]
test rdx, rdx
je 0x1400217a5
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400217a7
xor ecx, ecx
movsxd rax, ecx
mov rbx, rdi
test ecx, ecx
je 0x1400217e1
cmp rax, rdi
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140031a30
mov rax, qword [rsi + 0x50]
sub rbp, rbx
add r14, rbx
mov qword [rsp + 0x60], rbp
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
mov rbx, rbp
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14002187a
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14002181c
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov r15d, 0xfff
cmp rbx, r15
jbe 0x140021856
mov r9, qword [rsi + 0x80]
mov r8, r15
mov edx, 1
mov rcx, r14
call fcn.1400395ac
sub rbp, rax
add r14, rax
mov qword [rsp + 0x60], rbp
mov rbx, rbp
cmp rax, r15
jne 0x14002187a
cmp rbp, r15
ja 0x140021827
test rbx, rbx
je 0x14002187a
mov r9, qword [rsi + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, r14
call fcn.1400395ac
sub rbx, rax
mov qword [rsp + 0x60], rbx
lfence
sub rdi, qword [rsp + 0x60]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400260f4
Capabilities:
Read http header

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x1400b1040]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov r15, r8
mov r14, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor r12d, r12d
mov dword [rsp + 0x48], r12d
mov qword [rsp + 0x28], r12
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 0x16]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test ebx, ebx
jne 0x140026178
cmp eax, 0x7a
jne 0x1400262bc
mov edx, dword [rsp + 0x48]
shr rdx, 1
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.140023680
nop
mov qword [rsp + 0x28], r12
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x58]
xor r8d, r8d
lea edx, [r8 + 0x16]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x14002622e
mov edx, dword [rsp + 0x48]
shr rdx, 1
mov byte [rsp + 0x40], r12b
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.140023408
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 7
mov word [rdi], r12w
mov rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
cmp rdx, r8
je 0x140026200
sub r8, rdx
sar r8, 1
mov rcx, rdi
call fcn.14000dc38
nop
lea rcx, [rsp + 0x58]
call fcn.14000d8e4
mov rax, rdi
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.14002ca00
add rsp, 0x1d0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ebx, eax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov rdx, r15
lea rcx, [rsp + 0x78]
call fcn.14000c8d4
mov rsi, rax
movzx edi, bx
or edi, 0x80070000
test ebx, ebx
cmovle edi, ebx
mov edx, ebx
lea rcx, [rbp - 0x48]
call fcn.140006500
nop
mov r8, rax
lea rdx, str.WinHttpQueryHeaders_failed_with
lea rcx, [rbp - 0x68]
call fcn.14000eea8
nop
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], 0xab
lea r9, str.C:dvsp4_build_sw_relgfclient_rel_03_27_backendcommonupdtlib_srcgfehttpaccess.cpp
mov r8d, edi
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.1400244ac
lea rdx, [0x1400ae3f0]
lea rcx, [rbp - 0x20]
call fcn.140031e08
nop
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
mov rdx, r15
lea rcx, [rsp + 0x78]
call fcn.14000c8d4
mov rdi, rax
movzx ebx, si
or ebx, 0x80070000
test esi, esi
cmovle ebx, esi
mov edx, esi
lea rcx, [rbp - 0x68]
call fcn.140006500
nop
mov r8, rax
lea rdx, str.WinHttpQueryHeaders_failed_with
lea rcx, [rbp - 0x48]
call fcn.14000eea8
nop
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0x99
lea r9, str.C:dvsp4_build_sw_relgfclient_rel_03_27_backendcommonupdtlib_srcgfehttpaccess.cpp
mov r8d, ebx
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.1400244ac
lea rdx, [0x1400ae3f0]
lea rcx, [rbp - 0x20]
call fcn.140031e08
int3
Function at 0x140028f60
Capabilities:
Hash data via wincrypt

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
xor ebx, ebx
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140028f9a
mov rax, qword [rdx + 8]
mov r8d, 0xffffffff
sub rax, qword [rdx]
cmp rax, r8
ja 0x140028f9a
mov rdx, qword [rdx]
xor r9d, r9d
mov r8d, eax
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
setne bl
mov al, bl
add rsp, 0x20
pop rbx
ret

Function at 0x1400291ec
Capabilities:
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rdi, [rcx + 8]
mov rbx, rcx
mov rcx, qword [rdi]
test rcx, rcx
je 0x14002920f
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
and qword [rdi], 0
mov rcx, qword [rbx]
test rcx, rcx
je 0x140029223
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
and qword [rbx], 0
mov rcx, rbx
call fcn.1400290c8
mov r9d, eax
mov dword [rsp + 0x20], 0xf0000060
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14002926a
mov rcx, rbx
call fcn.140028fa4
mov rcx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov edx, eax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140029294
mov rcx, qword [rdi]
test rcx, rcx
je 0x14002927c
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
and qword [rdi], 0
mov rcx, qword [rbx]
test rcx, rcx
je 0x140029290
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
and qword [rbx], 0
xor al, al
jmp 0x140029296
mov al, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400298d4
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x2a0]
sub rsp, 0x3a0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x1400b1040]
xor rax, rsp
mov qword [rbp + 0x290], rax
mov rbx, r8
mov r14, rdx
mov rdi, rcx
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 0x78]
call fcn.14000c8d4
nop
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140029eac
nop
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x78]
call fcn.140029fb8
nop
lea rcx, [rsp + 0x48]
call fcn.14000805c
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x78]
call fcn.14002a0cc
cmp qword [rax + 0x18], 8
jb 0x14002995a
mov rax, qword [rax]
lea rdx, [rbp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
lea rcx, [rbp - 0x38]
call fcn.14000db60
cmp rsi, 0xffffffffffffffff
jne 0x14002999f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
add eax, 0xfffffffe
cmp eax, 1
ja 0x140029b0c
xor ebx, ebx
mov qword [rdi], rbx
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], rbx
jmp 0x140029ae3
mov qword [rsp + 0x38], rsi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
xor ebx, ebx
mov qword [rsp + 0x30], rbx
lea rdx, [0x140081358]
lea rcx, [rbp + 0x6c]
call fcn.14003a5ec
test eax, eax
je 0x140029a8c
lea rdx, [0x14008135c]
lea rcx, [rbp + 0x6c]
call fcn.14003a5ec
test eax, eax
je 0x140029a8c
mov rdx, r14
lea rcx, [rsp + 0x48]
call fcn.14000c8d4
nop
mov qword [rsp + 0x78], rbx
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], bx
lea rax, [rbp + 0x6c]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x140029a0c
lea rdx, [rbp + 0x6c]
lea rcx, [rsp + 0x68]
call fcn.14000dc38
nop
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x58]
call fcn.140029eac
nop
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x48]
call fcn.140029fb8
nop
lea rcx, [rbp - 0x58]
call fcn.14000805c
nop
lea rcx, [rsp + 0x68]
call fcn.14000db60
lea r8, [rbp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x10]
call fcn.14002a46c
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140029798
nop
lea rcx, [rbp - 8]
call fcn.14000805c
nop
lea rcx, [rsp + 0x48]
call fcn.14000805c
lea rdx, [rbp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400299b4
mov rax, qword [rsp + 0x20]
mov qword [rdi], rax
mov rax, qword [rsp + 0x28]
mov qword [rdi + 8], rax
mov rax, qword [rsp + 0x30]
mov qword [rdi + 0x10], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x20]
call fcn.140029ca8
nop
test rsi, rsi
je 0x140029ae3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rcx, [rbp - 0x78]
call fcn.14000805c
mov rax, rdi
mov rcx, qword [rbp + 0x290]
xor rcx, rsp
call fcn.14002ca00
add rsp, 0x3a0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
movzx ecx, dx
or ecx, 0x80070000
test edx, edx
cmovle ecx, edx
mov r8d, 0x22
lea rdx, str.C:dvsp4_build_sw_relgfclient_rel_03_27_backendcommonupdtlib_src_filesystem.cpp
call fcn.140014968
int3
Function at 0x14002a50c
Capabilities:
Delete directory
Delete file

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 0x11], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400b1040]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rcx
xor r14d, r14d
cmp dword [rcx], r14d
setne cl
lea r9d, [r14 + 0x3e]
lea r8, str.C:dvsp4_build_sw_relgfclient_rel_03_27_backendcommonupdtlib_src_filesystem_object.cpp
lea rdx, str.Incorrect_state
call fcn.140028538
mov ecx, dword [rdi]
sub ecx, 1
je 0x14002a63a
cmp ecx, 1
jne 0x14002a604
movdqa xmm0, xmmword [0x14009c8d0]
movdqu xmmword [rbp + 7], xmm0
mov word [rbp - 9], r14w
mov r8d, ecx
lea rdx, [0x1400815a8]
lea rcx, [rbp - 9]
call fcn.14000dc38
nop
lea r8, [rbp - 9]
lea rdx, [rdi + 8]
lea rcx, [rbp - 0x29]
call fcn.1400298d4
nop
lea rcx, [rbp - 9]
call fcn.14000db60
mov rbx, qword [rbp - 0x29]
jmp 0x14002a5c6
mov rcx, rbx
call fcn.14002a50c
add rbx, 0x50
cmp rbx, qword [rbp - 0x21]
jne 0x14002a5ba
lea rdx, [rbp + 0x17]
lea rcx, [rdi + 8]
call fcn.14002a0cc
cmp qword [rax + 0x18], 8
jb 0x14002a5e3
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, eax
lea rcx, [rbp + 0x17]
call fcn.14000db60
test ebx, ebx
je 0x14002a66b
lea rcx, [rbp - 0x29]
call fcn.140029ca8
mov dword [rdi], r14d
lea rcx, [rdi + 0x28]
xor edx, edx
lea r8d, [rdx + 0x24]
call fcn.140031860
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14002ca00
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
lea rcx, [rdi + 8]
lea rdx, [rbp + 0x17]
call fcn.14002a0cc
cmp qword [rax + 0x18], 8
jb 0x14002a651
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
lea rcx, [rbp + 0x17]
call fcn.14000db60
test ebx, ebx
je 0x14002a693
jmp 0x14002a604
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov r8d, 0x54
lea rdx, str.C:dvsp4_build_sw_relgfclient_rel_03_27_backendcommonupdtlib_src_filesystem_object.cpp
call fcn.140014968
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea r8d, [rbx + 0x46]
lea rdx, str.C:dvsp4_build_sw_relgfclient_rel_03_27_backendcommonupdtlib_src_filesystem_object.cpp
call fcn.140014968
int3
Function at 0x14003b5fc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003b428
Function at 0x140056aac
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140056abf
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.1400570d8
lea rdx, [0x1400ae780]
lea rcx, [rsp + 0x20]
call fcn.140031e08
int3

Function at 0x1400614fc
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1400ba478]
xor edx, edx
jmp fcn.140056aac

Function at 0x140061ecc
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1400ba478]
jmp fcn.140056aac

Function at 0x14006de30
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x14006def0]
mov r9, qword [r9 + 8]
jmp fcn.14005ee64

Function at 0x14006dec4
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x14006df00]
mov r9, qword [r9 + 8]
jmp fcn.14005ee64
Function at 0x402c20
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x1405f3528
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1405f36af
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1405f3559
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405f353f
add dl, dl
jne 0x1405f3566
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405f35c6
xor eax, eax
add dl, dl
jne 0x1405f3575
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405f367d
add dl, dl
jne 0x1405f3586
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405f3593
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405f35a0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405f35ad
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405f35ba
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1405f354e
mov eax, 1
add dl, dl
jne 0x1405f35d6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405f35e3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405f35cb
sub eax, ebx
mov ebx, 1
jne 0x1405f361c
mov ecx, 1
add dl, dl
jne 0x1405f35fe
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405f360b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405f35f3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405f354e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1405f3638
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405f3645
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405f362d
cmp eax, 0x7d00
jae 0x1405f366b
cmp eax, 0x500
jb 0x1405f3666
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405f354e
cmp eax, 0x7f
ja 0x1405f366e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405f354e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405f36a2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1405f354e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x41a940
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41aaeb
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [0x00868288]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.004391a0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
nop
jne 0x41a9ae
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x41a9ca
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
call fcn.00453e80
mov rbx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x38]
sub rbx, rcx
test rbx, rbx
jbe 0x41a9ee
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x41aa02
cmp rbx, 0x1000
jae 0x41a9b8
jmp 0x41aa6e
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x41aa14
xor edx, edx
jmp 0x41aa65
mov rcx, qword [0x00868288]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.004391a0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x41a9f8
jmp 0x41a9e0
call fcn.0046a000
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.0043d2e0
lea rax, [0x006d03fb]
mov ebx, 0x18
call fcn.0043db80
mov rax, qword [rsp + 0x38]
call fcn.0043d8c0
lea rax, [0x006d0563]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.0043db80
mov rax, qword [rsp + 0x30]
call fcn.0043d8c0
call fcn.0043d520
call fcn.0043d360
lea rax, [0x006d513e]
mov ebx, 0x21
call fcn.0043bb00
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.004665c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.0041a940