joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1404da5c6
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
movzx ax, spl
mov qword [rsp + 0x18], rbp
movsx eax, ax
seto ah
push rsi
push rdi
cdqe
mov ah, al
movsx ax, spl
push r14
mov ax, 0x22ca
movsx ax, r14b
cbw
mov eax, 0x1450
jmp 0x1404da5fd
call fcn.140446882
sub rsp, rax
mov rbp, rdi
mov rax, qword [0x1400b7288]
cmp spl, 2
and r10d, 0x67b14c1b
xor rax, rsp
movsxd r10, edx
mov r14b, 8
adc dil, dil
mov qword [rsp + 0x1440], rax
movsxd r10, edx
sar edx, 0x82
sub si, 0x77f7
mov rdi, rcx
btc cx, ax
btc dx, 0xef
mov rax, r10
rcl rcx, cl
add rdx, 0x3672722d
mov ebp, r9d
or dx, 0x719
sal cx, cl
bts dx, r10w
sar rax, 6
rol sil, 0x18
cmp spl, bl
lea rcx, [0x1400ba940]
and r10d, 0x3f
add r14d, 0x6da70f8d
add rbp, r8
mov rsi, r8
sub r14b, 0xa3
mov rax, qword [rcx + rax*8]
bt edx, 0x4f
cqo
bt dx, bp
lea rdx, [r10 + r10*8]
and r14w, 0x779b
mov r14, qword [rax + rdx*8 + 0x28]
test eax, 0x40b1359f
xor eax, eax
jmp 0x1404da6b2
mov qword [rdi], rax
mov dword [rdi + 8], eax
test bl, spl
stc
cmp r8, rbp
jmp 0x1404da6c4
jae 0x1404da7c8
lea rbx, [rsp + 0x40]
test r9b, dl
stc
cmp al, 0xf5
cmp rsi, rbp
jae 0x1404da73d
movzx eax, word [rsi]
add rsi, 2
cmp ax, 0xa
jmp 0x1404da6ee
jne 0x1404da710
add dword [rdi + 8], 2
btc ecx, r8d
mov ecx, 0xd
clc
jmp 0x1404da707
mov word [rbx], cx
cmc
add rbx, 2
clc
mov word [rbx], ax
shld ax, bp, 0xdb
sar ax, cl
add rbx, 2
movsx ax, r8b
sub al, r14b
lea rax, [rsp + 0x143e]
cmp rbx, rax
jmp 0x1404da737
jb 0x1404da6d5
and qword [rsp + 0x20], 0
lea rax, [rsp + 0x40]
sub rbx, rax
lea r9, [rsp + 0x30]
movsx r8w, bl
sar rbx, 1
lea rdx, [rsp + 0x40]
add ebx, ebx
movsx ecx, r11w
movzx r8d, r9w
mov rcx, r14
movsx r8, ax
cmovge r8, rsp
mov r8d, ebx
jmp 0x1404da77a
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jmp 0x1404da787
je 0x1404da7ba
mov eax, dword [rsp + 0x30]
add dword [rdi + 4], eax
jmp 0x1404da79a
cmp eax, ebx
jmp 0x1404da7a1
jb 0x1404da7c8
cmp rsi, rbp
jmp 0x1404da7af
jb 0x1404da6ca
jmp 0x1404da7c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi], eax
btr ax, cx
mov cl, bl
mov rax, rdi
bsr cx, di
btc rcx, 0xfe
mov rcx, qword [rsp + 0x1440]
stc
cmp dh, 0x60
xor rcx, rsp
jmp 0x1404da7e8
call fcn.14049e054
lea r11, [rsp + 0x1450]
mov rbx, qword [r11 + 0x20]
movzx rbp, ax
movsx rdi, r10w
movsxd rsi, edi
mov rbp, qword [r11 + 0x30]
mov rsp, r11
movzx esi, di
pop r14
mov si, 0x2a5
not rdi
setnp sil
pop rdi
mov si, di
not rsi
pop rsi
jmp 0x1404da828
ret
Function at 0x1404da829
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
cdqe
cwde
movsx rax, r13w
push rsi
movzx eax, r12w
push rdi
push r12
movzx rax, r15w
push r14
movsx ax, bh
cbw
push r15
mov eax, 0x1470
jmp 0x1404da85a
call fcn.140446882
sub rsp, rax
mov rax, qword [0x1400b7288]
xor rax, rsp
sub r14d, edi
mov qword [rsp + 0x1460], rax
movsxd r10, edx
mov rbx, rcx
btc ecx, 0x9e
mov rax, r10
bswap rcx
cdq
xadd r14d, r15d
mov r14d, r9d
bsr dx, si
sub ch, bl
sar rax, 6
rol dl, 0xc5
sbb r12, 0x52795602
lea rcx, [0x1400ba940]
dec r15d
sal dx, 0xd3
and r10d, 0x3f
lea r14, [r14 + r8]
mov r15, 0x72413136
mov r15, r8
mov rdi, r8
shld r12w, r15w, 0xd1
sar dx, cl
mov rax, qword [rcx + rax*8]
stc
lea rdx, [r10 + r10*8]
adc r12b, r8b
cmp r8b, r10b
mov r12, qword [rax + rdx*8 + 0x28]
clc
cmp r10w, 0x674b
xor eax, eax
mov qword [rbx], rax
test r15, 0x2275545a
stc
cmp r8, r14
jmp 0x1404da8ff
mov dword [rbx + 8], eax
jmp 0x1404da907
jae 0x1404daab5
lea rax, [rsp + 0x50]
cmp r12b, bl
cmp rdi, r14
jmp 0x1404da91d
jae 0x1404da98c
movzx ecx, word [rdi]
clc
add rdi, 2
cmp r14d, 0x3e184dce
cmp cx, 0xa
jmp 0x1404da93b
jne 0x1404da95c
mov edx, 0xd
test si, r12w
stc
mov word [rax], dx
cmc
add rax, 2
clc
cmp r13, 0x5c752efb
stc
mov word [rax], cx
adc cl, dh
rol cl, 0x2d
test al, 0xa
add rax, 2
movsxd rcx, ebp
movsx ecx, ax
lea rcx, [rsp + 0x6f8]
cmp r11b, r11b
test r14d, eax
cmp rax, rcx
jmp 0x1404da986
jb 0x1404da915
and qword [rsp + 0x38], 0
cmp cl, r12b
sub rcx, rsp
xchg r8b, r9b
lea rcx, [rsp + 0x50]
and qword [rsp + 0x30], 0
bt r8, rbp
lea r8, [rsp + 0x50]
or r9b, 0x58
sub rax, rcx
bsf rcx, r15
rcl r9b, 0xce
sal ch, cl
mov dword [rsp + 0x28], 0xd55
sbb rcx, 0x16966088
lea rcx, [rsp + 0x700]
sar r9b, cl
movsxd r9, r11d
mov r9b, 0x3f
sar rax, 1
mov qword [rsp + 0x20], rcx
mov r9d, eax
movzx rcx, r15w
adc cx, 0xfd5
mov ecx, 0xfde9
test r13b, 0xf6
stc
sub edx, edx
jmp 0x1404daa05
call fcn.1404c7748
mov ebp, eax
test r9b, sil
test eax, eax
je 0x1404daaad
xor esi, esi
test r13b, bpl
jmp 0x1404daa21
test eax, eax
jmp 0x1404daa28
je 0x1404daa98
and qword [rsp + 0x20], 0
sbb r9b, r12b
lea rdx, [rsp + 0x700]
rcl rcx, 7
bt r8, rbp
xchg ecx, r8d
mov ecx, esi
lea r9, [rsp + 0x40]
bt r8, 0x24
mov r8d, ebp
add rdx, rcx
movsx rcx, r11w
mov rcx, r12
clc
cmp cx, cx
jmp 0x1404daa6c
sub r8d, esi
jmp 0x1404daa74
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1404daaad
add esi, dword [rsp + 0x40]
clc
cmc
test sp, ax
cmp esi, ebp
jmp 0x1404daa92
jb 0x1404daa2e
mov eax, edi
sub eax, r15d
mov dword [rbx + 4], eax
cmp rdi, r14
jmp 0x1404daaa8
jmp 0x1404da907
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
mov rax, rbx
mov rcx, qword [rsp + 0x1460]
xor rcx, rsp
call fcn.14049e054
lea r11, [rsp + 0x1470]
movzx bp, spl
movsx r15, dx
cmovbe bp, si
mov rbx, qword [r11 + 0x30]
cmovns r12d, eax
mov rbp, qword [r11 + 0x40]
movsx rdi, bp
mov rsp, r11
movzx r14d, si
movsxd r15, r15d
mov sil, r8b
pop r15
pop r14
movsx edi, r9w
pop r12
pop rdi
pop rsi
ret
Function at 0x1404db4dd
Capabilities:
Encrypt data using rc4 prga

Disassembly:
movsd qword [rsp + 0x20], xmm3
movsd qword [rsp + 0x18], xmm2
sbb al, r13b
push rbx
sub rsp, 0x50
jmp 0x1404db4fa
lea r9, [0x1400c6cb0]
mov ebx, ecx
and ax, di
mov rax, r12
mov rax, r9
jmp 0x1404db514
sub r8d, r8d
cmp dword [rax], edx
je 0x1404db556
inc r8d
test r9w, 0x4368
xor ecx, 0x8023023
rcr ch, cl
lea rcx, [0x1400c6e80]
clc
add rax, 0x10
cmp bx, 0x6c6c
cmp rax, rcx
jl 0x1404db517
sub eax, eax
jmp 0x1404db551
jmp 0x1404db576
movsxd rax, r8d
movzx rcx, bp
bts ecx, ecx
btc dx, r15w
add rax, rax
jmp 0x1404db571
mov rax, qword [r9 + rax*8 + 8]
mov rcx, qword [rsp + 0x88]
shrd edx, esp, 1
movsx edx, r12w
or dl, r13b
mov edx, 0xffc0
cmp cx, r10w
cmp r10b, 0xfb
mov qword [rsp + 0x28], rax
cmc
test rax, rax
jmp 0x1404db5a4
je 0x1404db65a
mov eax, dword [rsp + 0x70]
jmp 0x1404db5b3
mov dword [rsp + 0x30], eax
cbw
movzx rax, bx
jmp 0x1404db5c2
mov eax, dword [rsp + 0x74]
jmp 0x1404db5cb
mov dword [rsp + 0x34], eax
setg al
mov eax, 0x56a40cc5
movzx eax, bp
mov eax, dword [rsp + 0x78]
jmp 0x1404db5e3
mov dword [rsp + 0x38], eax
setg ah
movsx eax, di
movzx rax, bx
mov eax, dword [rsp + 0x7c]
jmp 0x1404db5fa
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x80]
jmp 0x1404db60a
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x84]
jmp 0x1404db61a
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x20], ebx
jmp 0x1404db627
call fcn.1404d8ece
lea rcx, [rsp + 0x20]
jmp 0x1404db636
call fcn.1402576c4
test eax, eax
jne 0x1404db64f
mov ecx, ebx
jmp 0x1404db64a
call fcn.1404dafbd
movsd xmm0, qword [rsp + 0x40]
jmp 0x1404db674
call fcn.1404d8ece
mov ecx, ebx
jmp 0x1404db666
call fcn.1404dafbd
movsd xmm0, qword [rsp + 0x80]
add rsp, 0x50
movzx ebx, r15w
pop rbx
ret

Function at 0x1404ddf85
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
bts r9, rax
cwd
mov rbx, rcx
rcr dl, cl
lea r9, [0x1400c8e90]
bts r8, rsi
movsxd r8, r8d
bt r8w, 1
sub ecx, ecx
movsxd r8, ecx
cwd
bswap r8d
lea r8, [0x1400c8e88]
cwd
movzx dx, r11b
lea rdx, [0x1400cfb70]
jmp 0x1404ddfce
call fcn.1404de23f
test rax, rax
jmp 0x1404ddfdb
je 0x1404ddff0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1400b8d90]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x1404de078
Capabilities:
Get thread local storage value

Disassembly:
push rbx
test rdx, r9
inc rbx
sub rsp, 0x20
bswap dx
mov ebx, ecx
not r8w
lea r9, [0x1400c8ea0]
cqo
movsx dx, r13b
movsxd r8, r10d
mov ecx, 2
movsx edx, ax
lea r8, [0x1400c8e98]
movsx edx, r13w
bswap edx
setne dh
lea rdx, [0x1400cf758]
jmp 0x1404de0c2
call fcn.1404de23f
mov ecx, ebx
test r9w, 0x4b42
clc
test rax, rax
je 0x1404de0ef
add rsp, 0x20
movsx bx, r11b
pop rbx
jmp 0x1404de0e8
push qword [0x1400b8d90]
ret
add rsp, 0x20
movzx ebx, sp
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1404de0fe
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov bl, bpl
adc r9w, 0x5eaa
push rdi
movsxd rdi, esi
adc di, dx
sub rsp, 0x20
movzx r9, si
mov rbx, rdx
lea r9, [0x1400c8ea8]
movsx di, r8b
cmovne rdx, r9
movsxd rdx, ebx
mov edi, ecx
lea rdx, [0x1400cf748]
cmove r8d, r8d
xchg cl, cl
movzx rcx, sp
mov ecx, 3
movzx r8, r11w
not r8d
lea r8, [0x1400c8ea0]
jmp 0x1404de15c
call fcn.1404de23f
mov rdx, rbx
inc ch
mov ecx, edi
test rax, rax
jmp 0x1404de170
je 0x1404de181
call qword [0x1400b8d90]
jmp 0x1404de187
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
sar dil, cl
add rsp, 0x20
pop rdi
jmp 0x1404de199
ret
Function at 0x1404e2302
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
movsxd r10, edi
bts r10d, r8d
sub rsp, 0x30
sub r10b, spl
xor eax, eax
sub r10b, 0x2c
adc r10, rsp
mov r10d, ecx
cmc
clc
jmp 0x1404e2325
test rdx, rdx
jmp 0x1404e232d
jne 0x1404e2362
call fcn.1404b3a01
mov ebx, 0x16
jmp 0x1404e2342
mov dword [rax], ebx
jmp 0x1404e2349
call fcn.1404b4719
mov eax, ebx
shrd bx, r12w, 0xec
rcl bx, cl
add rsp, 0x30
movzx ebx, cx
pop rbx
ret
test r8, r8
jmp 0x1404e236a
je 0x1404e2333
movzx ecx, byte [rsp + 0x60]
mov word [rdx], ax
xor rax, 0x60fe1d6d
rcl rax, cl
lea rax, [rcx + 1]
test r12w, 0x7ffd
cmc
stc
cmp r8, rax
jmp 0x1404e2396
ja 0x1404e23b0
call fcn.1404b3a01
mov ebx, 0x22
jmp 0x1404e23ab
jmp 0x1404e2342
lea eax, [r9 - 2]
bt ebx, ecx
mov ebx, 0x22
cmp edx, 0x16ea5278
cmp eax, ebx
jmp 0x1404e23c9
ja 0x1404e2333
mov byte [rsp + 0x60], cl
mov ecx, r10d
mov bl, sil
add rsp, 0x30
pop rbx
jmp 0x1404e23e3
jmp 0x1404e23e8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
shrd r11w, r13w, 0xa0
bsf bx, r13w
shl ebp, 0x71
mov qword [rsp + 0x18], rsi
push rdi
rcl r10b, cl
cmovnp edi, r11d
push r14
test bpl, r11b
push r15
movzx edi, bx
movsx edi, r9w
movsx bp, r13b
sub rsp, 0x20
sbb dil, r13b
sar ebx, cl
xor r15d, r15d
btr di, 0x57
mov ebp, r9d
bsr ebx, r10d
mov rdi, r8
movsx r11, r12w
mov r11, rdx
shr r10b, cl
shld r10d, r12d, 0xa7
mov r10, rdx
seta bh
movzx rbx, r9w
sub rbx, 0x711e5457
mov ebx, r15d
test cx, dx
cmp byte [rsp + 0x60], r15b
jmp 0x1404e246b
je 0x1404e2499
lea eax, [r15 + 0x2d]
bt r8, 0xbe
neg ecx
bts ebx, r15d
adc rbx, r8
ror r9b, cl
mov word [rdx], ax
mov r14b, pe_nt_image_headers64
lea ebx, [rax - 0x2c]
dec r10b
rcl rax, cl
lea r10, [rdx + 2]
mov r8, r10
movzx r9w, r11b
sub edx, edx
lea rsi, [r10 + 2]
movzx r9, ax
movsx eax, di
mov eax, ecx
shl r14w, 0x96
mov r9, r10
div ebp
movzx rcx, r10w
bswap cx
mov ecx, eax
cmp edx, 9
setne r14b
mov eax, 0x57
movzx r14w, dil
bswap r14d
lea r14d, [rax - 0x27]
jmp 0x1404e24e0
cmovbe ax, r14w
inc rbx
cmp r11w, bx
test rsi, r14
add ax, dx
mov word [r10], ax
cmc
test ecx, ecx
jmp 0x1404e24fe
je 0x1404e2519
mov r10, rsi
stc
cmp al, r11b
cmp rbx, rdi
jmp 0x1404e2513
jb 0x1404e24a1
cmp rbx, rdi
jb 0x1404e2548
mov word [r11], r15w
jmp 0x1404e252b
call fcn.1404b3a01
mov ebx, 0x22
mov dword [rax], ebx
jmp 0x1404e253c
call fcn.1404b4719
mov eax, ebx
jmp 0x1404e2588
mov word [rsi], r15w
movzx eax, word [r8]
movzx ecx, word [r9]
cmp spl, r14b
mov word [r9], ax
cmc
test rdx, 0xbb15ce6
sub r9, 2
cmp r11w, 0x6428
mov word [r8], cx
jmp 0x1404e2576
add r8, 2
cmp r8, r9
jb 0x1404e254c
sub eax, eax
neg bp
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
rcr dil, 0x2a
add r15, rdx
mov rsi, qword [rsp + 0x50]
adc rdi, 0x35c64620
add rsp, 0x20
jmp 0x1404e25b4
pop r15
pop r14
movsx rdi, bp
movsx di, r13b
pop rdi
jmp 0x1404e25c7
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004440]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004450]
mov dword [rax], 1
mov rax, qword [0x140004460]
mov dword [rax], 1
mov rax, qword [0x1400043c0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004430]
mov dword [0x14000700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140004500]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400044e0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x1400043a0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001450
Capabilities:
Download url
Receive data

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
call sym.__main
lea rax, str.https:__mysrc.sinaapp.com_att_download__id2302
mov qword [rbp - 8], rax
lea rax, str.._tgp_daemon.exe
mov qword [rbp - 0x10], rax
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rdx
mov rdx, rax
mov ecx, 0
call sym.URLDownloadToFileA
mov dword [rbp - 0x14], eax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
add rsp, 0x50
pop rbp
ret

Function at 0x140001780
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 dword [rax]
Function at 0x1400017f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007094]
test esi, esi
mov rbx, rcx
jle 0x140001920
mov rax, qword [0x140007098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000183b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400018c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001820
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140001942
mov rax, qword [0x140007098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140007098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001927
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400018be
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400018d0
add dword [0x140007094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140007098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400018be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001848
mov rax, qword [0x140007098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001eb0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140001f0c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140001f03
test rsi, rsi
je 0x140001f03
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001ee8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002120
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002138
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002140
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002150
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x14000219d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x140002194
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000219f
add rax, 0x28
cmp rax, r9
jne 0x140002180
xor eax, eax
ret

Function at 0x1400021a0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002230
mov rdx, qword [0x1400043c0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000221e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000221e
cmp word [rax + 0x18], 0x20b
jne 0x14000221e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002230
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002209
add rbx, 0x28
cmp rbx, rdi
je 0x140002230
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002200
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002240
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400043c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002260
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002268
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002260
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400022bd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x1400022b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002260
add rax, 0x28
cmp rax, r9
jne 0x1400022a0
xor eax, eax
ret

Function at 0x1400022c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043c0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400022df
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400022e8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400022df
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002300
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400043c0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002320
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002328
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002320
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x140002370
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002367
test rcx, rcx
je 0x140002320
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002358
xor eax, eax
ret
Function at 0x140002380
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043c0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000239f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400023a8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400023c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400043c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400023e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400023e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400023e0
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x1400023e0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140002434
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002440
add rdx, 0x28
cmp r9, rdx
jne 0x140002420
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002450
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400043c0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002472
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002480
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002472
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002472
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x140002472
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x1400024d5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400024e8
add rdx, 0x28
cmp rdx, r10
jne 0x1400024c0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400024f7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002507
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400024de
test ecx, ecx
jg 0x1400024f0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140010560
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 0x14001059b
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.140020a80
add rsp, 0x40
pop rbx
ret

Function at 0x140010910
Capabilities:
Check if file exists

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

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