joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14028c280
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x14045bc68]
xor r11d, r11d
lea rdi, [0x1403bd2d8]
test r9, r9
mov rax, rdx
mov r12, rdx
cmovne r10, r9
test rdx, rdx
lea ebp, [r11 + 1]
cmovne rdi, rdx
mov r15d, ebp
cmovne r15, r8
neg rax
sbb r14, r14
and r14, rcx
test r15, r15
jne 0x14028c2f0
mov rax, 0xfffffffffffffffe
jmp 0x14028c43d
cmp word [r10 + 6], r11w
jne 0x14028c35f
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x14028c31a
test r14, r14
je 0x14028c30b
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x14028c43d
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x14028c328
mov r8b, 2
jmp 0x14028c346
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x14028c336
mov r8b, 3
jmp 0x14028c346
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x14028c432
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x14028c388
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x14028c432
cmp bl, bpl
jb 0x14028c432
cmp bl, r8b
jae 0x14028c432
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x14028c3b5
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x14028c432
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r12
cmp rax, r9
jb 0x14028c397
cmp r9, rbp
jae 0x14028c3e1
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x14028c2e4
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x14028c432
cmp edx, 0x110000
jae 0x14028c432
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x14028c432
test r14, r14
je 0x14028c420
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.1402911b4
jmp 0x14028c43d
mov rdx, rsi
mov rcx, r10
call fcn.1402911a0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140253b80
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14028d4ec
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14028d502
mov al, 1
jmp 0x14028d562
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14028d513
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14028d560
mov ecx, dword [rcx + 0x18]
nop
call fcn.14026a59c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14028d560
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14028d560
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14028d560
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14028d562
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1402b6000
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x1402b6037
movabs rcx, 0xf000000000000000
shl rax, 4
movsx r9, byte [rdx]
add r9, rax
mov r10, r9
and r10, rcx
mov rax, r10
shr rax, 0x38
or rax, r10
xor rax, r9
inc rdx
cmp rdx, r8
jne 0x1402b6011
ret

Function at 0x1402ea570
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rcx, qword [rcx + 8]
jmp fcn.14034e870
Function at 0x14032b550
Capabilities:
Hash data using sha512

Disassembly:
push rsi
push rdi
sub rsp, 0x108
mov rsi, r8
mov r8, rdx
mov rdx, rcx
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x100], rax
movaps xmm0, xmmword [0x1403d47c0]
lea rdi, [rsp + 0x28]
movups xmmword [rdi + 0xc0], xmm0
movups xmmword [rdi + 0xb0], xmm0
movups xmmword [rdi + 0xa0], xmm0
movups xmmword [rdi + 0x90], xmm0
movups xmmword [rdi + 0x80], xmm0
movups xmmword [rdi + 0x70], xmm0
movups xmmword [rdi + 0x60], xmm0
movups xmmword [rdi + 0x50], xmm0
movabs rax, 0x6a09e667f3bcc908
mov qword [rdi], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rdi + 8], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rdi + 0x10], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rdi + 0x18], rax
movabs rax, 0x510e527fade682d1
mov qword [rdi + 0x20], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rdi + 0x28], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rdi + 0x30], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rdi + 0x38], rax
movabs rax, 0x4000000000
mov qword [rdi + 0xd0], rax
xorps xmm0, xmm0
movups xmmword [rdi + 0x40], xmm0
mov rcx, rdi
call fcn.1401516c0
mov edx, dword [rdi + 0xd4]
mov rcx, rsi
mov r8, rdi
call fcn.1401550a0
mov edx, 0xd8
mov rcx, rdi
call fcn.14021c220
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.140253b80
mov rax, rsi
add rsp, 0x108
pop rdi
pop rsi
ret
Function at 0x140342560
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x40], rax
test r8d, r8d
jle 0x1403427bf
mov rsi, r9
mov edi, r8d
mov rbx, rdx
lea eax, [rdi - 1]
mov qword [rsp + 0x30], rax
mov r13d, r8d
xor ebp, ebp
lea r14, [rsp + 0x3c]
mov r15d, 0x520000
mov dword [rsp + 0x2c], 0
movzx eax, word [rbx + rbp*2]
cmp eax, 0xb7
jae 0x1403425c9
inc rbp
cmp rbp, r13
jne 0x1403425b1
jmp 0x1403427bf
cmp eax, 0x6f9
ja 0x140342619
cmp eax, 0x375
je 0x14034269a
cmp eax, 0xb7
jne 0x1403426fc
test rbp, rbp
je 0x14034276d
mov eax, 0xffffffff
add eax, ebp
cmp word [rbx + rax*2], 0x6c
jne 0x14034276d
cmp rbp, qword [rsp + 0x30]
jae 0x14034276d
cmp word [rbx + rbp*2 + 2], 0x6c
je 0x1403425bc
jmp 0x14034276d
cmp eax, 0x30fb
jne 0x1403425bc
mov dword [rsp + 0x3c], 0
xor r12d, r12d
cmp r12d, edi
jge 0x14034276d
lea eax, [r12 + 1]
movsxd rcx, r12d
movzx ecx, word [rbx + rcx*2]
mov edx, ecx
and edx, 0xfc00
cmp edx, 0xd800
jne 0x14034267f
cmp eax, edi
je 0x14034267f
movsxd rdx, eax
movzx edx, word [rbx + rdx*2]
mov r8d, edx
and r8d, 0xfc00
cmp r8d, 0xdc00
jne 0x14034267f
add r12d, 2
shl ecx, 0xa
add ecx, edx
add ecx, 0xfca02400
jmp 0x140342682
mov r12d, eax
mov rdx, r14
call fcn.1402109e0
cmp eax, 0x16
ja 0x14034262b
bt r15d, eax
jae 0x14034262b
jmp 0x1403425bc
cmp rbp, qword [rsp + 0x30]
jae 0x14034276d
mov dword [rsp + 0x3c], 0
movzx ecx, word [rbx + rbp*2 + 2]
mov eax, ecx
and eax, 0xfc00
cmp eax, 0xd800
jne 0x1403426e9
lea rax, [rbp + 2]
cmp rax, r13
je 0x1403426e9
movzx eax, word [rbx + rbp*2 + 4]
mov edx, eax
and edx, 0xfc00
cmp edx, 0xdc00
jne 0x1403426e9
shl ecx, 0xa
add ecx, eax
add ecx, 0xfca02400
mov rdx, r14
call fcn.1402109e0
cmp eax, 0xe
je 0x1403425bc
jmp 0x14034276d
lea ecx, [rax - 0x5f3]
cmp cx, 1
ja 0x140342776
test rbp, rbp
je 0x14034276d
mov dword [rsp + 0x3c], 0
mov eax, 0xffffffff
add eax, ebp
movzx ecx, word [rbx + rax*2]
mov eax, ecx
and eax, 0xfc00
cmp eax, 0xdc00
jne 0x14034275c
cmp rbp, 1
je 0x14034275c
mov eax, 0xffffffff
add eax, ebp
dec eax
movzx eax, word [rbx + rax*2]
mov edx, eax
and edx, 0xfc00
cmp edx, 0xd800
jne 0x14034275c
shl eax, 0xa
add ecx, eax
add ecx, 0xfca02400
mov rdx, r14
call fcn.1402109e0
cmp eax, 0x13
je 0x1403425bc
or byte [rsi + 5], 0x20
jmp 0x1403425bc
cmp eax, 0x660
jb 0x1403425bc
cmp eax, 0x669
ja 0x14034279c
cmp dword [rsp + 0x2c], 0
jg 0x1403427de
mov dword [rsp + 0x2c], 0xffffffff
jmp 0x1403425bc
cmp eax, 0x6f0
jb 0x1403425bc
cmp dword [rsp + 0x2c], 0
jns 0x1403427b2
or byte [rsi + 5], 0x40
mov dword [rsp + 0x2c], 1
jmp 0x1403425bc
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140253b80
nop
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
or byte [rsi + 5], 0x40
jmp 0x14034278f
Function at 0x1403501c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp edx, 0x33ff
jg 0x1403501e2
add edx, edx
movzx r8d, dx
movzx edx, word [rcx]
cmp r8d, edx
jbe 0x140350240
and edx, 1
or edx, 2
lea rcx, [rcx + rdx*2]
jmp 0x1403501ce
mov r8d, edx
shr r8d, 9
add r8d, 0x3400
shl edx, 6
and r8d, 0xfffe
mov eax, 0xffffffff
movzx r9d, word [rcx]
cmp r8d, r9d
jbe 0x140350219
and r9d, 1
or r9, 2
mov r10, r9
lea rcx, [rcx + r10*2]
jmp 0x1403501ff
mov r10d, r9d
and r10d, 0x7ffe
cmp r8d, r10d
jne 0x14035023f
movzx r10d, word [rcx + 2]
cmp r10w, dx
jae 0x14035026c
mov r10d, 3
test r9w, r9w
jns 0x140350213
ret
mov r9d, edx
and r9d, 0x7ffe
mov eax, 0xffffffff
cmp r8d, r9d
jne 0x14035023f
movzx eax, word [rcx + 2]
test dl, 1
je 0x14035023f
shl eax, 0x10
mov r10d, eax
movzx eax, word [rcx + 4]
or eax, r10d
jmp 0x14035023f
xor edx, r10d
test edx, 0xffc0
jne 0x14035023f
and r10d, 0x3f
shl r10d, 0x10
jmp 0x140350263

Function at 0x140363f30
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x140363f6c
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140363f76
add rdi, rbx
sub rsi, rbx
jne 0x140363f4a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14026cb40
int3

Function at 0x140385dc0
Capabilities:
Parse pe header

Disassembly:
cmp rdx, 0x40
jb 0x140385e0e
cmp byte [rcx], 0x4d
jne 0x140385e0e
cmp byte [rcx + 1], 0x5a
jne 0x140385e0e
mov r9d, dword [rcx + 0x3c]
mov r10, rdx
sub r10, r9
xor eax, eax
cmp r10, 0x18
jb 0x140385e10
cmp r9, rdx
jae 0x140385e10
cmp r9d, 0x40
jb 0x140385e10
mov r10d, r9d
and r10d, 7
jne 0x140385e10
cmp byte [rcx + r9], 0x50
jne 0x140385e0e
cmp byte [rcx + r9 + 1], 0x45
jne 0x140385e0e
cmp byte [rcx + r9 + 2], 0
je 0x140385e11
xor eax, eax
ret
cmp byte [rcx + r9 + 3], 0
jne 0x140385e0e
add r9, 0x18
xor eax, eax
sub rdx, r9
jbe 0x140385e10
cmp rdx, 2
jb 0x140385e10
cmp word [rcx + r9], r8w
sete al
jmp 0x140385e10
Function at 0x14038c570
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x1a0
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x198], rax
movaps xmm0, xmmword [0x1403d47c0]
lea rsi, [rsp + 0x160]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsi + 0x20], 0x100
jb 0x14038c5c4
mov ecx, 1
call fcn.140206de0
test al, al
jne 0x14038c5f3
mov eax, dword [rsp + 0x180]
cmp eax, 0x100
mov esi, 0xff
cmovb esi, eax
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.140253b80
mov eax, esi
add rsp, 0x1a0
pop rsi
ret
lea rdx, str....._third_partycrashpadcrashpad_snapshotwin_system_snapshot_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0x10a
mov r9d, 1
call fcn.140110ed0
lea rcx, [rsp + 0x38]
lea rdx, str.dwNumberOfProcessors_exceeds_uint8_t_storage
mov r8d, 0x2c
call fcn.140294040
mov rcx, rsi
call fcn.1401113c0
jmp 0x14038c5c4
Function at 0x1400053f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0x68], 0
je 0x14000541b
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140005422
mov al, 1
jmp 0x14000555e
call fcn.140007900
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx]
mov qword [rsp + 0x48], rcx
mov edx, eax
mov rcx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x48]
call qword [rax + 0x18]
mov dword [rsp + 0x38], eax
call fcn.140007900
mov dword [rsp + 0x3c], eax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x3c]
call fcn.140007940
movzx eax, al
test eax, eax
je 0x140005473
xor al, al
jmp 0x14000555e
mov qword [rsp + 0x58], 0x20
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0xa0]
add rcx, 0x74
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x60]
mov rdx, rcx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0x68]
call fcn.140009350
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400054d8
cmp dword [rsp + 0x30], 1
je 0x1400054e4
cmp dword [rsp + 0x30], 3
je 0x140005558
jmp 0x14000555c
mov rax, qword [rsp + 0xa0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jbe 0x14000552f
mov rax, qword [rsp + 0xa0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x40]
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.1401eb61c
cmp qword [rsp + 0x40], rax
je 0x14000552f
xor al, al
jmp 0x14000555e
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140005549
mov dword [rsp + 0x34], 1
jmp 0x140005551
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x14000555e
mov al, 1
jmp 0x14000555e
xor al, al
add rsp, 0x98
ret

Function at 0x140007040
Capabilities:
Enumerate files on windows
Query environment variable

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x1c8
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov dword [rsp + 0x20], 0
mov ecx, 0x104
call fcn.1401e9c64
mov qword [rsp + 0x38], rax
mov r8d, 0x104
mov rdx, qword [rsp + 0x38]
lea rcx, str.TEMP
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [rsp + 0x40], eax
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.140002b30
nop
lea rdx, [0x14024284c]
lea rcx, [rsp + 0x50]
call fcn.1400044f0
lea rcx, [rsp + 0x50]
call fcn.1400068d0
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0xffffffffffffffff
je 0x140007103
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1400070d7
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [rsp + 0x1d0]
cmp dword [rsp + 0x20], eax
jge 0x14000712a
mov dword [rsp + 0x24], 1
lea rcx, [rsp + 0x50]
call fcn.140003be0
mov eax, dword [rsp + 0x24]
jmp 0x14000714d
mov dword [rsp + 0x28], 0
lea rcx, [rsp + 0x50]
call fcn.140003be0
mov eax, dword [rsp + 0x28]
jmp 0x14000714d
add rsp, 0x1c8
ret
Function at 0x1400082e0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
call fcn.140007900
mov dword [rsp + 0x50], eax
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x50]
call fcn.140007940
movzx eax, al
test eax, eax
je 0x140008324
lea rcx, [rsp + 0xc8]
call fcn.140008160
jmp 0x140008567
mov rcx, qword [rsp + 0xc0]
call fcn.140008780
test rax, rax
je 0x140008390
mov rcx, qword [rsp + 0xc0]
call fcn.140008780
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0xc0]
call fcn.140007910
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
jae 0x140008390
lea rcx, [rsp + 0xc8]
call fcn.140008ec0
mov byte [rsp + 0x42], al
mov rcx, qword [rsp + 0xc0]
call fcn.140006140
movzx ecx, byte [rsp + 0x42]
mov byte [rax], cl
mov eax, dword [rsp + 0xc8]
jmp 0x140008567
mov rax, qword [rsp + 0xc0]
cmp qword [rax + 0x80], 0
jne 0x1400083ac
call fcn.140007900
jmp 0x140008567
mov rcx, qword [rsp + 0xc0]
call fcn.1400061a0
mov rax, qword [rsp + 0xc0]
cmp qword [rax + 0x68], 0
jne 0x140008412
lea rcx, [rsp + 0xc8]
call fcn.140008ec0
mov rcx, qword [rsp + 0xc0]
mov rdx, qword [rcx + 0x80]
movzx ecx, al
call fcn.140001a60
movzx eax, al
test eax, eax
je 0x140008400
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x48], eax
jmp 0x140008409
call fcn.140007900
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
jmp 0x140008567
mov qword [rsp + 0x78], 0x20
lea rcx, [rsp + 0xc8]
call fcn.140008ec0
mov byte [rsp + 0x40], al
lea rax, [rsp + 0xa0]
lea rcx, [rsp + 0x41]
mov rdx, qword [rsp + 0xc0]
add rdx, 0x74
lea r8, [rsp + 0x68]
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, rcx
lea r8, [rsp + 0x40]
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rax + 0x68]
call fcn.140008270
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jl 0x140008562
cmp dword [rsp + 0x44], 1
jle 0x1400084aa
cmp dword [rsp + 0x44], 3
je 0x140008526
jmp 0x140008562
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x1400084fe
mov rax, qword [rsp + 0xc0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x58]
mov edx, 1
lea rcx, [rsp + 0x80]
call fcn.1401eb61c
cmp qword [rsp + 0x58], rax
je 0x1400084fe
call fcn.140007900
jmp 0x140008567
mov rax, qword [rsp + 0xc0]
mov byte [rax + 0x71], 1
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x70], rax
je 0x14000851f
mov eax, dword [rsp + 0xc8]
jmp 0x140008567
call fcn.140007900
jmp 0x140008567
mov rax, qword [rsp + 0xc0]
mov rdx, qword [rax + 0x80]
movzx ecx, byte [rsp + 0x40]
call fcn.140001a60
movzx eax, al
test eax, eax
je 0x140008553
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x4c], eax
jmp 0x14000855c
call fcn.140007900
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x4c]
jmp 0x140008567
call fcn.140007900
add rsp, 0xb8
ret
Function at 0x1400094a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
xor eax, eax
cmp eax, 1
je 0x1400095db
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0
je 0x1400094e3
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.140009600
jmp 0x1400095ef
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
call fcn.140005a30
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x50], 0
jle 0x140009576
cmp qword [rsp + 0x20], 0
jle 0x140009576
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jge 0x140009522
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
call fcn.140007c80
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x48]
call fcn.140007360
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call fcn.140007b30
cmp qword [rsp + 0x50], 0
jle 0x1400095c7
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x1400095c7
mov rcx, qword [rsp + 0x40]
call fcn.1400061a0
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call fcn.1401eaf40
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
jmp 0x1400095ef
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.140009600
add rsp, 0x38
ret
Function at 0x140009730
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
xor eax, eax
cmp eax, 1
je 0x140009861
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0
je 0x140009773
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.140009880
jmp 0x140009875
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
call fcn.140006100
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x50], 0
jle 0x140009806
cmp qword [rsp + 0x20], 0
jle 0x140009806
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jge 0x1400097b2
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
call fcn.140008780
mov r8, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.140007360
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call fcn.140008730
cmp qword [rsp + 0x50], 0
jle 0x14000984d
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x14000984d
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call fcn.1401eb61c
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
jmp 0x140009875
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.140009880
add rsp, 0x38
ret

Function at 0x14000b3f0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x168
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0x40]
lea rcx, str.SelfPath
mov rdi, rax
mov rsi, rcx
mov ecx, 9
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, [0x1402d1b48]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000b4ae
lea rdx, str.IpDate
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [rsp + 0x28], 0x104
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x168
pop rdi
pop rsi
ret

Function at 0x14000bdb0
Capabilities:
Check internet connectivity via wininet

Disassembly:
sub rsp, 0x38
lea rax, str.http:__www.baidu.com
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 1
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.WININET.dll_InternetCheckConnectionA]
test eax, eax
je 0x14000bde0
mov eax, 1
jmp 0x14000bde2
xor eax, eax
add rsp, 0x38
ret