joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009a9a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400e29a0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14009a9f7
cmp word [rdx], r13w
jne 0x14009a9f7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14009a9fc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14009ab21
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14009ab42
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14009aa35
mov rdx, r9
mov word [rbx], cx
jmp 0x14009aa5c
cmp r9, r8
jae 0x14009aa6c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14009aa16
jmp 0x14009ab21
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14009ab16
cmp dword [rsp + 0x80], esi
je 0x14009ab16
lea r8, [0x1400e29a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14009aaee
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14009aabe
mov word [rbx], r13w
jmp 0x14009ab1e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14009aacb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14009ab1e
cmp word [rsp + 0x70], r13w
jne 0x14009aafb
cmp rbx, r14
je 0x14009aab8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14009a8fc
cmp word [rsp + 0x70], r13w
je 0x14009ab21
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400e29a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14009ab1b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14009ab21
Function at 0x14009d700
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14009d716
mov al, 1
jmp 0x14009d776
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14009d727
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14009d774
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400a0fd8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14009d774
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14009d774
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14009d774
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14009d776
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400a0228
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400a0258
xor eax, eax
jmp 0x1400a031b
mov rbp, rbx
cmp word [rax], si
je 0x1400a027d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400a0264
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400a0260
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400a0148
movsxd r14, eax
test eax, eax
jne 0x1400a02bb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400a0251
mov rcx, r14
call fcn.140097ad8
mov rdi, rax
test rax, rax
jne 0x1400a02d4
xor ecx, ecx
call fcn.140097a9c
jmp 0x1400a02b0
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400a0148
test eax, eax
jne 0x1400a0305
mov rcx, rdi
call fcn.140097a9c
jmp 0x1400a030f
xor ecx, ecx
call fcn.140097a9c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400a0338
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 0x1400a03bf
mov rsi, rbx
cmp word [rax], bp
je 0x1400a037e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400a0368
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400a0364
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140097ad8
mov rdi, rax
test rax, rax
je 0x1400a03ac
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400af220
mov rbp, rdi
xor ecx, ecx
call fcn.140097a9c
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 0x1400a36bc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140099470
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400a375d
cmp ebx, dword [rsp + 0x30]
je 0x1400a3756
test esi, esi
je 0x1400a3756
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400a3731
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400a373e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400a371b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400a3742
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400a375f
mov eax, 1
jmp 0x1400a375f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a8268
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14008a068
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400a82f2
cmp byte [rbp - 0x21], r15b
je 0x1400a82ed
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400a8328
call fcn.14009baa4
test eax, eax
jne 0x1400a8314
cmp byte [rbp - 0x21], r15b
je 0x1400a830c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400a8328
cmp byte [rbp - 0x21], r15b
je 0x1400a8325
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140097144
test eax, eax
jne 0x1400a83c8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14008a068
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400a8367
cmp byte [rbp - 0x21], r15b
je 0x1400a839c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400a839c
call fcn.14009baa4
test eax, eax
jne 0x1400a8388
cmp byte [rbp - 0x21], r15b
je 0x1400a8381
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400a839c
cmp byte [rbp - 0x21], r15b
je 0x1400a8399
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140097144
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400a83c8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400a83cb
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400a83d9
mov rcx, rdi
call fcn.140097a9c
cmp byte [rbp + 0x3f], r15b
je 0x1400a83e8
mov rcx, qword [rbp + 0x27]
call fcn.140097a9c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400a939c
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14009a8fc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14009a8fc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400a94ec
cmp rax, 0xffffffffffffffff
je 0x1400a94ec
xor edi, edi
test rbp, rbp
jle 0x1400a9497
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14009b764
mov rbx, rax
test rax, rax
jne 0x1400a9424
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400a948d
mov edx, 0x8000
mov ecx, r14d
call fcn.140094960
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14009ce00
cmp eax, 0xffffffff
je 0x1400a946d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400a9434
mov edx, r15d
mov ecx, r14d
call fcn.140094960
jmp 0x1400a948d
cmp byte [rsi + 0x38], dil
je 0x1400a9484
cmp dword [rsi + 0x34], 5
jne 0x1400a9484
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400a948d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140097a9c
jmp 0x1400a9500
jns 0x1400a9500
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14009a8fc
cmp rax, 0xffffffffffffffff
jne 0x1400a94b8
cmp byte [rsi + 0x30], dil
je 0x1400a9500
mov edi, dword [rsi + 0x2c]
jmp 0x1400a9500
mov ecx, r14d
call fcn.1400a0fd8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400a9500
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400a9500
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400a94f9
mov eax, dword [rsi + 0x2c]
jmp 0x1400a94fe
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14009a8fc
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400aa120
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400aa148
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400aa148
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x100006a4c
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x6a0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x10001e110]
xor rax, rsp
mov qword [rsp + 0x690], rax
lea r8, [0x100001c70]
mov rdx, 0xffffffff80000001
lea rcx, [rsp + 0x38]
call fcn.1000160c4
nop
mov dword [rsp + 0x28], 1
lea rbx, [0x100001c48]
mov qword [rsp + 0x20], rbx
mov r9d, 0x104
lea r8, [rsp + 0x60]
lea rdx, [0x100001cb8]
lea rcx, [rsp + 0x38]
call fcn.10001632c
or dword [rsp + 0x28], 0xffffffff
mov qword [rsp + 0x20], rbx
or r9d, 0xffffffff
lea r8, [rsp + 0x60]
xor edx, edx
lea ecx, [rdx + 0x7f]
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
je 0x100006bc9
mov r8d, 0x104
lea rdx, [rsp + 0x480]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x270]
mov edx, 0x104
lea rcx, [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov ecx, 0xb0
call sub.MFC42u.dll_CMonthCalCtrl::SetDayState
mov qword [rsp + 0x30], rax
test rax, rax
je 0x100006b3a
mov rcx, rax
call fcn.100011820
mov rbx, rax
jmp 0x100006b3c
xor ebx, ebx
test rbx, rbx
jne 0x100006b50
lea rcx, [rsp + 0x38]
call fcn.100016174
jmp 0x100006be3
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0x30]
call sub.MFC42u.dll_CDaoException::CDaoException
nop
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.100013264
nop
lea rcx, [rsp + 0x30]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov rcx, rbx
call fcn.10001372c
or r9d, 0xffffffff
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.100011d5c
lea rdx, [rsp + 0x270]
lea rcx, [0x1000805d8]
call sub.MFC42u.dll_AfxDeleteObject
mov ecx, dword [rbx + 0x98]
lea eax, [rcx - 1]
mov dword [rbx + 0x98], eax
cmp ecx, 1
jne 0x100006bd9
mov rax, qword [rbx]
mov edx, ecx
mov rcx, rbx
call qword [rax + 8]
jmp 0x100006bd9
mov rdx, rbx
lea rcx, [0x1000805d8]
call sub.MFC42u.dll_AfxDeleteObject
nop
lea rcx, [rsp + 0x38]
call fcn.100016174
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.100018470
add rsp, 0x6a0
pop rbx
ret
Function at 0x100006c04
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xb20
mov rax, qword [0x10001e110]
xor rax, rsp
mov qword [rsp + 0xb10], rax
mov rdi, rcx
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x2e0]
mov dword [rsp + 0x40], 0x104
call qword [entry0]
lea rcx, [rsp + 0x48]
call qword [sym.imp.msvcrt.dll_time]
lea rcx, [rsp + 0x48]
call qword [sym.imp.msvcrt.dll_ctime]
lea rdx, [0x100001cc8]
lea rcx, [rsp + 0x50]
mov r8, rax
call fcn.100009748
mov rcx, qword [0x10002f038]
xor ebx, ebx
mov r9d, 0x104
lea r8, [rsp + 0xd0]
mov word [rsp + 0x80], bx
lea edx, [r9 + 0x3c]
mov word [rsp + 0x76], bx
mov word [rsp + 0x64], bx
call qword [sym.imp.USER32.dll_LoadStringW]
mov r8, qword [rdi]
lea r11, [rsp + 0x66]
mov qword [rsp + 0x30], r11
lea rax, [rsp + 0x78]
lea r9, [rsp + 0x2e0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x4f0]
mov qword [rsp + 0x20], rax
call fcn.10000979c
mov rdx, qword [0x10001e990]
lea rcx, [rsp + 0x4f0]
call qword [sym.imp.msvcrt.dll_fputws]
cmp eax, ebx
setge bl
mov eax, ebx
mov rcx, qword [rsp + 0xb10]
xor rcx, rsp
call fcn.100018470
mov rbx, qword [rsp + 0xb38]
add rsp, 0xb20
pop rdi
ret
Function at 0x100009ab4
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
test ecx, ecx
jg 0x100009ac5
xor eax, eax
jmp 0x100009c15
cmp edx, ecx
jle 0x100009ada
mov edx, 1
mov ecx, 0xe3
call fcn.10000e4cc
jmp 0x100009abe
mov ecx, dword [0x100080460]
test ecx, ecx
jne 0x100009af0
mov rax, qword [0x10001e160]
mov rdx, rax
jmp 0x100009b13
mov ecx, dword [0x10001e17c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x100080460]
mov rdx, rax
mov rax, qword [0x10001e160]
test rdx, rdx
cmove rdx, rax
xor ebx, ebx
cmp dword [rdx + 8], ebx
setne bl
test ebx, ebx
je 0x100009b48
test ecx, ecx
je 0x100009b3a
mov ecx, dword [0x10001e17c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
cmove rax, qword [0x10001e160]
mov rcx, rax
call fcn.10001172c
mov ecx, dword [0x100080460]
test ecx, ecx
jne 0x100009b55
mov rcx, qword [0x10001e168]
jmp 0x100009b71
mov ecx, dword [0x10001e17c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [0x10001e168]
test rax, rax
je 0x100009b71
lea rcx, [rax + 0x10]
call fcn.1000116d4
mov eax, 0x10624dd3
imul dword [0x10001e158]
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
call fcn.10000f6d8
mov ecx, dword [0x10001e158]
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov ecx, 0xe1
call fcn.10000e4cc
cmp dword [0x100080460], 0
jne 0x100009bba
mov rcx, qword [0x10001e168]
jmp 0x100009bd6
mov ecx, dword [0x10001e17c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [0x10001e168]
test rax, rax
je 0x100009bd6
lea rcx, [rax + 0x10]
call fcn.10001172c
test ebx, ebx
je 0x100009c10
cmp dword [0x100080460], 0
jne 0x100009bf1
mov rax, qword [0x10001e160]
jmp 0x100009c08
mov ecx, dword [0x10001e17c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
cmove rax, qword [0x10001e160]
mov rcx, rax
call fcn.1000116d4
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x10000adac
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
mov r12d, r8d
mov rbp, rdx
mov rsi, rcx
call fcn.10000c058
test eax, eax
je 0x10000ae08
mov al, byte [rsi + 0x29]
cmp al, 2
jne 0x10000adf6
mov eax, 6
lea rcx, [0x10001e200]
lea edx, [rax - 2]
cmp rbp, rcx
cmove eax, edx
mov byte [rsi + 0x29], al
mov rcx, qword [0x10006f468]
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x10000ae88
cmp dword [0x100080460], 0
je 0x10000ae40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x10001e178]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
test rax, rax
mov ecx, edi
setne bl
call qword [sym.imp.KERNEL32.dll_SetLastError]
test ebx, ebx
je 0x10000ae40
mov al, byte [rsi + 0x29]
cmp al, 3
je 0x10000ae88
mov edx, 1
test r12d, r12d
je 0x10000ae69
test byte [rsi + 0x58], 0x10
je 0x10000ae58
add dword [0x10001e1c0], edx
jmp 0x10000ae69
mov rax, qword [rsi + 0x68]
add qword [0x10001e1c8], rax
add dword [0x10001e1c4], edx
test byte [rsi + 0x58], 0x10
je 0x10000ae74
add dword [rbp + 8], edx
jmp 0x10000ae7f
mov rax, qword [rsi + 0x68]
add qword [rbp + 0x10], rax
add dword [rbp + 0xc], edx
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 8]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x10000aeac
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov esi, dword [rcx + 0x18]
mov rdi, rdx
mov rbx, rcx
call fcn.10000c058
test eax, eax
jne 0x10000b0f4
cmp dword [0x100080354], eax
jne 0x10000b0f4
cmp esi, 0xe
je 0x10000b0f4
mov r9d, dword [0x10001e15c]
mov edx, dword [0x10008042c]
mov r8d, 0x238e
mov rcx, rdi
call fcn.100011b88
mov r12d, eax
call fcn.100009d80
cmp esi, 1
jne 0x10000af78
mov ecx, dword [0x10001e15c]
mov r8d, dword [0x10008042c]
mov r9d, 0x2394
mov dword [rsp + 0x20], ecx
mov rcx, rdi
mov rdx, rbx
call fcn.100011ed4
test eax, eax
jne 0x10000af78
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, dword [0x10001e15c]
mov edx, dword [0x10008042c]
mov r8d, 0x238e
mov rcx, rdi
mov ebp, eax
call fcn.100011b88
test eax, eax
jne 0x10000af78
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdx, rdi
mov ecx, 0x2394
call fcn.10000e808
jmp 0x10000b0f9
mov r9d, dword [0x10001e15c]
mov r8d, 0x238e
mov rdx, rdi
mov rcx, rbx
call fcn.1000124c8
test eax, eax
jne 0x10000af9b
xor eax, eax
jmp 0x10000b0f9
mov r8d, dword [0x100080388]
test r8d, r8d
je 0x10000afce
cmp dword [0x1000803a4], 0
je 0x10000b06d
and dword [rsp + 0x20], 0
mov r9d, 0x23a2
mov rdx, rdi
mov rcx, rbx
call fcn.1000122b4
test eax, eax
je 0x10000af94
cmp dword [0x100080384], 0
je 0x10000aff3
mov r9d, dword [0x10001e15c]
mov r8d, 0x2398
mov rdx, rdi
mov rcx, rbx
call fcn.100012710
test eax, eax
je 0x10000af94
cmp dword [0x1000803a8], 0
je 0x10000b0ac
cmp dword [0x100080354], 0
jne 0x10000b0ac
cmp esi, 1
jne 0x10000b0ac
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.10001330c
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea rcx, [rsp + 0x50]
mov ebp, eax
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
cmp ebp, 0xffffffff
je 0x10000af94
mov eax, dword [rbx + 0x20]
xor eax, ebp
bt eax, 0xe
jae 0x10000b0ac
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.10001330c
bt dword [rbx + 0x20], 0xe
mov rcx, qword [rsp + 0x50]
jae 0x10000b09a
call qword [sym.imp.ADVAPI32.dll_EncryptFileW]
jmp 0x10000b0a2
test r12d, r12d
je 0x10000b07f
cmp dword [0x10008036c], 0
je 0x10000afce
and dword [rsp + 0x20], 0
mov r9d, 0x23a2
mov rdx, rdi
mov rcx, rbx
call fcn.1000123b0
jmp 0x10000afca
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_DecryptFileW]
lea rcx, [rsp + 0x50]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
cmp dword [0x10001e138], 0
je 0x10000b0ed
cmp esi, 3
je 0x10000b0ed
mov eax, dword [0x10001e15c]
mov r9d, dword [0x1000803fc]
mov r8d, dword [0x1000803f8]
mov dword [rsp + 0x28], eax
mov rdx, rdi
mov rcx, rbx
mov dword [rsp + 0x20], 0x239c
call fcn.100012070
test eax, eax
je 0x10000af94
mov dword [rbx + 0x18], 0xe
mov eax, 1
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x10000b114
Capabilities:
Delete file
Set file attributes

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov edi, edx
mov rbx, rcx
call fcn.100009d80
cmp dword [0x100080354], 0
jne 0x10000b1bf
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.1000141bc
nop
mov edx, 0x80
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10000b1b5
cmp dword [0x100080460], eax
je 0x10000b180
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x2c], eax
mov dword [rbx + 0x30], edi
lea rcx, [rsp + 0x50]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov rdx, rbx
mov ecx, edi
call fcn.10000e8e8
test byte [rbx + 0x58], 0x10
je 0x10000b1a2
inc dword [0x10001e268]
jmp 0x10000b1de
mov rax, qword [rbx + 0x68]
add qword [0x10001e270], rax
inc dword [0x10001e26c]
jmp 0x10000b1de
lea rcx, [rsp + 0x50]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
test byte [rbx + 0x58], 0x10
je 0x10000b1cd
inc dword [0x10001e250]
jmp 0x10000b1de
mov rax, qword [rbx + 0x68]
add qword [0x10001e258], rax
inc dword [0x10001e254]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x10000b25c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rdi, rdx
mov rbx, rcx
call fcn.10000c058
mov esi, eax
call fcn.100009d80
xor ebp, ebp
cmp esi, ebp
jne 0x10000b29b
mov edx, 0x1005
xor r8d, r8d
mov rcx, rbx
mov dword [rbx + 0x54], edx
call fcn.10000fbb4
cmp dword [0x100080354], ebp
je 0x10000b2bd
lea rdx, [0x10001e1d0]
mov r8d, 1
mov rcx, rbx
call fcn.10000adac
jmp 0x10000b4de
mov rcx, qword [rbx + 0x40]
mov rdx, rdi
call fcn.10000aeac
cmp eax, ebp
jne 0x10000b2d6
lea rdx, [0x10001e200]
jmp 0x10000b2aa
cmp dword [0x100080460], ebp
jne 0x10000b2e7
mov rax, qword [0x10001e160]
jmp 0x10000b2fe
mov ecx, dword [0x10001e17c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp rax, rbp
cmove rax, qword [0x10001e160]
mov rcx, rax
call fcn.1000116d4
cmp dword [0x10008032c], ebp
je 0x10000b336
mov r9d, dword [0x10001e15c]
mov r8d, 0x2393
mov rdx, rdi
mov rcx, rbx
call fcn.100014978
cmp dword [0x10001e134], ebp
je 0x10000b3a5
cmp esi, ebp
je 0x10000b35a
cmp dword [0x1000803a8], ebp
je 0x10000b35a
bt dword [rbx + 0x58], 0xe
jae 0x10000b35a
mov byte [rbx + 0x29], 3
jmp 0x10000b499
mov eax, dword [0x10001e15c]
mov r9d, dword [0x1000803a0]
mov r8d, dword [0x10001e144]
mov dword [rsp + 0x40], eax
mov eax, dword [0x10001e138]
mov dword [rsp + 0x38], 0x2395
mov dword [rsp + 0x30], eax
mov eax, dword [0x10001e140]
mov rdx, rdi
mov dword [rsp + 0x28], eax
mov eax, dword [0x1000803a4]
mov rcx, rbx
mov dword [rsp + 0x20], eax