joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b9b00
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x138
call qword [sym.imp.msvcrt.dll_getenv]
mov byte [rsp + 0x20], 0
test rax, rax
je 0x1400b9b45
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1400b9b45
lea rcx, [rsp + 0x20]
call qword [case.0x1400a4487.0]
add rsp, 0x138
ret
xor eax, eax
add rsp, 0x138
ret

Function at 0x1400bb790
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, rdx
lea rcx, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.DLL_CryptAcquireContextA]
test eax, eax
je 0x1400bb7ec
mov rcx, qword [rsp + 0x50]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.DLL_CryptGenRandom]
mov rcx, qword [rsp + 0x50]
xor edx, edx
test eax, eax
jne 0x1400bb7fc
call qword [sym.imp.ADVAPI32.DLL_CryptReleaseContext]
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.ADVAPI32.DLL_CryptReleaseContext]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x1400bf1e0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
xor eax, eax
test edx, edx
lea r8, [rsp + 0x38]
setne al
mov edx, 0x8004667e
mov dword [rsp + 0x38], eax
call qword [sym.imp.WSOCK32.DLL_ioctlsocket]
add rsp, 0x28
ret
Function at 0x1400bf260
Capabilities:
Resolve dns

Disassembly:
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
lea r9, [rsp + 0x68]
mov ebx, r13d
mov r15d, r13d
call qword [sym.imp.WS2_32.DLL_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x1400bf424
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x1400bf404
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x1400bf2bd
lea ebp, [rax + 0xe]
jmp 0x1400bf2c9
cmp eax, 0x17
jne 0x1400bf371
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x1400bf371
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1400bf371
cmp rax, rbp
jb 0x1400bf371
mov ecx, 0x30
call qword [sub.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400bf3ac
mov ecx, dword [rsi]
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0x10], ebp
mov dword [rax + 0xc], ecx
mov rcx, rbp
mov qword [rax + 0x20], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
call qword [sub.msvcrt.dll_malloc]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x1400bf39b
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1400bf35e
call qword [case.0x1400a4487.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x1400bf380
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x1400bf36e
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1400bf2b0
jmp 0x1400bf3b2
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [sub.msvcrt.dll_free]
mov rcx, rdi
call qword [sub.msvcrt.dll_free]
jmp 0x1400bf3b2
mov rcx, rdi
mov r14d, 8
call qword [sub.msvcrt.dll_free]
jmp 0x1400bf3b2
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x1400bf3c7
call qword [sym.imp.WS2_32.DLL_freeaddrinfo]
test r14d, r14d
je 0x1400bf3ff
test rbx, rbx
je 0x1400bf3fa
mov rcx, qword [rbx + 0x20]
call qword [sub.msvcrt.dll_free]
mov rcx, qword [rbx + 0x18]
call qword [sub.msvcrt.dll_free]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [sub.msvcrt.dll_free]
mov rbx, rdi
test rdi, rdi
jne 0x1400bf3d1
mov rbx, r13
jmp 0x1400bf413
test rbx, rbx
jne 0x1400bf413
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WSOCK32.DLL_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov qword [r12], rbx
mov eax, r14d
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbx
ret
Function at 0x1400c13f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov rdi, r8
cmp dword [rcx + 8], 2
mov rsi, rdx
jne 0x1400c143a
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x1400c142a
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rcx + 0x10]
mov edx, 1
mov rcx, rsi
call rax
jmp 0x1400c1484
cmp qword [rbx + 0x10], 0
jne 0x1400c146f
mov rcx, qword [rcx + 0x10]
lea rdx, [0x1400de704]
call qword [sym.imp.msvcrt.dll_fopen]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x1400c146f
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rbx + 0x10]
mov r8, rdi
mov edx, 1
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_fread]
mov rdi, rax
test rax, rax
jne 0x1400c14a8
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400c149f
call qword [sym.imp.msvcrt.dll_fclose]
mov qword [rbx + 0x10], rdi
mov rax, qword [rbx]
mov rcx, qword [rax]
mov qword [rbx], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x1400c36b0
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rbx, edx
mov rdi, rcx
mov byte [rcx], 0
mov edx, ebx
call qword [sym.imp.WSOCK32.DLL_gethostname]
mov byte [rbx + rdi - 1], 0
test eax, eax
jne 0x1400c36ea
lea edx, [rax + 0x2e]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_strchr]
test rax, rax
je 0x1400c36e8
mov byte [rax], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400c5a30
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
mov r14, rdx
add rax, 0x18
add rcx, rax
call qword [sub.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400c5a72
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rsp + 0x48], rsi
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400c5ab5
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + 8]
mov r14d, dword [rbx + 0x18]
mov rdx, qword [rdi + 8]
add r14, qword [rdi + 0x10]
mov rcx, r14
call qword [rbx + 0x10]
mov ebp, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400c5b11
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
mov r8d, 1
xor al, 0x36
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + 8]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
mov r8d, 1
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 0x10]
call qword [rbx + 8]
dec rbp
jne 0x1400c5ad0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400c5b53
nop dword [rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400eb652]
mov r8d, 1
call qword [rbx + 8]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400eb653]
mov r8d, 1
call qword [rbx + 8]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400c5b20
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140010690
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14036e028]
xor rax, rsp
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov rbx, rcx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r8, qword [rbx + 0x20]
add r8, 0x68
cmp qword [r8 + 0x18], 8
jb 0x1400106cb
mov r8, qword [r8]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 8
mov r9d, 3
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftOneDrive
mov rcx, 0xffffffff80000001
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140020bb0
add rsp, 0x40
pop rbx
ret

Function at 0x140010a40
Capabilities:
Check if file exists

Disassembly:
sub rsp, 0x28
add rcx, 0x30
cmp qword [rcx + 0x18], 8
jb 0x140010a52
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x14002171c
Capabilities:
Parse pe header

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

Function at 0x14002f758
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002f548
Function at 0x14003ab2c
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 0x14003abb3
mov rsi, rbx
cmp word [rax], bp
je 0x14003ab72
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003ab5c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003ab58
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400391c4
mov rdi, rax
test rax, rax
je 0x14003aba0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140022890
mov rbp, rdi
xor ecx, ecx
call fcn.140038aac
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 0x140046b90
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, [0x14038ace0]
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 0x140046bee
cmp word [rdx], r12w
jne 0x140046bee
or byte [rax + r8*8 + 0x38], cl
jmp 0x140046bf4
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140046d4f
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140046d2a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140046c2d
mov rcx, r9
jmp 0x140046c50
cmp r9, rdx
jae 0x140046c67
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 0x140046c11
jmp 0x140046d4f
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 0x140046d24
cmp dword [rsp + 0x80], edi
je 0x140046d24
mov rdx, r14
lea r11, [0x14038ace0]
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 0x140046cfd
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140046cd0
mov word [rbx], r12w
jmp 0x140046d4b
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 0x140046cd9
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140046d4b
cmp word [rsp + 0x70], r12w
jne 0x140046d0a
cmp rbx, rsi
je 0x140046cca
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140046ab0
cmp word [rsp + 0x70], r12w
je 0x140046d4f
mov word [rbx], r13w
jmp 0x140046d4b
lea r11, [0x14038ace0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140046d47
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140046d4f
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 0x14004ad50
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x1a8]
sub rsp, 0x290
mov rax, qword [0x14036e028]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
xor r14d, r14d
lea r15, [0x14038fed0]
mov qword [rsp + 0x38], r15
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x40], 1
lea rsi, [0x140377b20]
cmp qword [0x140377b30], r14
jne 0x14004ae98
call fcn.1400c75a0
mov rcx, rax
mov rax, qword [rax]
mov rax, qword [rax + 0x118]
call qword [case.0x140067493.0]
mov bl, al
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call fcn.140022f40
cmp byte [0x14038feb8], r14b
je 0x14004adf9
test bl, bl
lea edx, [r14 + 0x26]
jne 0x14004adfe
mov edx, 0x1c
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14004ae98
mov qword [rsp + 0x48], r14
movdqa xmm0, xmmword [0x1403180b0]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r14w
cmp byte [0x14038feb8], r14b
je 0x14004ae47
test bl, bl
lea rdx, str.Microsoft_OneDrive_setuplogs
jne 0x14004ae4e
lea rdx, str.MicrosoftOneDrive_setuplogs
lea rcx, [rsp + 0x48]
call fcn.14000e644
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae r8, qword [rsp + 0x48]
xor r9d, r9d
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.14004b2b0
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.140007ed8
test ebx, ebx
js 0x14004ae98
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.14000e644
mov qword [rdi], r14
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r14
cmp qword [reloc.OLEAUT32.dll_VariantInit], 8
cmovae rsi, qword [0x140377b20]
mov r8, qword [0x140377b30]
mov rdx, rsi
mov rcx, rdi
call fcn.14000e7d0
nop
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, rdi
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140020bb0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14004d018
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14036e028]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x14004d0b6
mov edx, 0x2000
mov rax, rbx
mov ecx, edx
cmp word [rax], di
je 0x14004d054
add rax, 2
sub rcx, 1
jne 0x14004d045
sub rdx, rcx
mov rax, rcx
neg rax
sbb r8, r8
and r8, rdx
test rcx, rcx
je 0x14004d09e
mov rcx, qword [0x14038fec8]
lea r9, [rsp + 0x30]
add r8d, r8d
mov dword [rsp + 0x30], edi
mov rdx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [0x14038fec0]
test rax, rax
je 0x14004d09e
mov rcx, rbx
call qword [case.0x140067493.0]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140020bb0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov ecx, 0x80004005
call fcn.140007ca8
int3

Function at 0x140071f58
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14036e028]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.140022f40
xor r9d, r9d
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x1c]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140071fe6
cmp qword [0x14038edb8], 8
lea r8, [0x14038eda0]
mov edx, 0x104
lea rcx, [rsp + 0x30]
cmovae r8, qword [0x14038eda0]
xor r9d, r9d
call fcn.14004b2b0
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov ebx, eax
call fcn.14000e644
jmp 0x140071feb
mov ebx, 0x80004005
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140020bb0
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x140072240
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x3b8]
sub rsp, 0x4b0
mov rax, qword [0x14036e028]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x250
call fcn.140022f40
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x140072291
mov rcx, qword [rbx]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400723be
xor esi, esi
xor edx, edx
lea rcx, [rbp + 0x190]
mov r8d, 0x208
call fcn.140022f40
cmp qword [rbx + 0x18], 8
mov r8, rbx
jb 0x1400722cc
mov r8, qword [rbx]
lea rax, [rbp + 0x190]
mov edx, 0x104
sub r8, rax
lea rcx, [rbp + 0x190]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140072305
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140072305
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1400722e2
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], si
je 0x14007239f
lea rcx, [rbp + 0x190]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor r9d, r9d
lea r8, [rsp + 0x6c]
mov edx, 0x104
lea rcx, [rbp + 0x190]
call fcn.14004b2b0
test eax, eax
js 0x14007239f
mov qword [rsp + 0x20], rsi
lea rax, [rbp + 0x190]
mov qword [rsp + 0x30], rsi
or r8, 0xffffffffffffffff
mov qword [rsp + 0x38], rsi
inc r8
cmp word [rax + r8*2], si
jne 0x14007235d
lea rdx, [rbp + 0x190]
lea rcx, [rsp + 0x20]
call fcn.14000e6c4
cmp qword [rsp + 0x38], 8
lea rcx, [rsp + 0x20]
cmovae rcx, qword [rsp + 0x20]
xor r8d, r8d
lea edx, [r8 + 2]
call sub.KERNEL32.dll_WerRegisterFile
lea rcx, [rsp + 0x20]
call fcn.140007ed8
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400722ab
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.140020bb0
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140072edc
Capabilities:
Download url
Receive data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
xor edx, edx
mov rcx, qword [rcx + 0x80]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x140072f11
mov edi, 0x80004004
mov r8d, 0x277
mov ecx, edi
jmp 0x140073018
lea rdi, [rbx + 0x108]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x140072f3e
and qword [rbx + 0x58], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140067493.0]
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, str.BITS
lea rax, str.URLMon
cmp byte [rbx + 0x175], 0
cmovne rax, rcx
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, str.WebClient__p_:_BeginDownloadAttempt:_using__ls
lea rdx, str.WebClient
mov ecx, dword [rbx + 0x16c]
call fcn.14004cfc0
cmp byte [rbx + 0x175], 0
je 0x140072fa4
mov rcx, rbx
call fcn.140073060
mov edi, eax
test eax, eax
jns 0x140073024
mov r8d, 0x280
jmp 0x140073016
cmp byte [rbx + 0x40], 0
je 0x140072fe7
mov r9, rbx
lea r8, str.WebClient__p_:_BeginDownloadAttempt:_using_WinHTTP_instead_of_URLMon
lea rdx, str.WebClient
mov ecx, dword [rbx + 0x16c]
call fcn.14004cfc0
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x90]
call qword [case.0x140067493.0]
mov edi, eax
test eax, eax
jns 0x140073024
mov r8d, 0x285
jmp 0x140073016
call fcn.14005627c
lea rdx, [rbx + 0xb0]
cmp qword [rdx + 0x18], 8
jb 0x140072ffd
mov rdx, qword [rdx]
mov r9, rbx
xor r8d, r8d
xor ecx, ecx
call sub.urlmon.dll_URLOpenStreamW
mov edi, eax
test eax, eax
jns 0x140073024
mov r8d, 0x289
mov ecx, eax
lea rdx, str.D:dbs_shodct0202_163225_0cmd_tclientonedriveSetupStandalonewebclientwebclient.cpp
call fcn.14004a53c
mov r9, rbx
lea r8, str.WebClient__p_:_Leaving_BeginDownloadAttempt__
lea rdx, str.WebClient
mov ecx, edi
call fcn.14004a9a4
test edi, edi
jns 0x140073052
mov rcx, qword [rbx]
mov rax, qword [rcx + 0x78]
mov edx, edi
mov rcx, rbx
call qword [case.0x140067493.0]
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400739e0
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov rax, qword [0x14036e028]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
cmp qword [rcx + 0xe0], rdi
je 0x140073b2a
lea rbx, [rcx + 0xd0]
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140073a2c
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140073b16
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
lea rsi, vtable.ClassPtr_struct_IFSManager_.0
mov qword [rbp + 7], rsi
mov qword [rbp + 0xf], rdi
lea rcx, [rbp + 0xf]
call fcn.14004abac
test eax, eax
js 0x140073af7
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140073a6e
mov rdx, qword [rbx]
mov qword [rbp - 0x19], rdi
mov qword [rbp - 9], rdi
mov qword [rbp - 1], rdi
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], di
jne 0x140073a7e
lea rcx, [rbp - 0x19]
call fcn.14000e6c4
nop
mov qword [rbp + 0x17], rdi
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x27], xmm0
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae rdx, qword [rbp - 0x19]
mov r8, qword [rbp - 9]
lea rcx, [rbp + 0x17]
call fcn.14000e7d0
mov qword [rbp + 0x37], 0xffffffff80000001
mov byte [rbp + 0x3f], dil
lea rcx, [rbp - 0x19]
call fcn.140007ed8
mov rcx, qword [rbp + 0xf]
test rcx, rcx
jne 0x140073ad8
int3
mov rax, qword [rcx]
lea rdx, [rbp + 0x17]
mov rax, qword [rax + 0x80]
call qword [case.0x140067493.0]
nop
lea rcx, [rbp + 0x17]
call fcn.140007ed8
nop
mov qword [rbp + 7], rsi
mov rcx, qword [rbp + 0xf]
mov qword [rbp + 0xf], rdi
test rcx, rcx
je 0x140073b16
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140067493.0]
nop
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140073b23
mov rax, qword [rbx]
mov qword [rbx + 0x10], rdi
mov word [rax], di
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140020bb0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x140074cc4
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, r8
mov rsi, rcx
test rdx, rdx
jne 0x140074cfe
mov r8d, 0x155
mov ecx, 0x80004003
lea rdx, str.D:dbs_shodct0202_163225_0cmd_tclientonedriveSetupStandalonewebclientwebclient.cpp
mov edi, ecx
call fcn.14004a53c
jmp 0x140074d5c
test rbp, rbp
jne 0x140074d0b
mov r8d, 0x156
jmp 0x140074ce9
call fcn.140074a78
mov edi, eax
test eax, eax
js 0x140074d5c
cmp qword [rsi + 0xe0], 0
je 0x140074d4d
lea rbx, [rsi + 0xd0]
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x140074d34
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140074d4d
cmp qword [rbx + 0x18], 8
jb 0x140074d48
mov rbx, qword [rbx]
mov rdx, rbx
jmp 0x140074d54
lea rdx, [0x140316010]
mov rcx, rbp
call fcn.14000e644
mov r9, rsi
lea r8, str.WebClient__p_:_Leaving_GetDownloadedData__
lea rdx, str.WebClient
mov ecx, edi
call fcn.14004a9a4
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret