joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140294184
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.140279968
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140279968
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1402942d4
cmp rax, 0xffffffffffffffff
je 0x1402942d4
xor edi, edi
test rbp, rbp
jle 0x14029427f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140292f50
mov rbx, rax
test rax, rax
jne 0x14029420c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140294275
mov edx, 0x8000
mov ecx, r14d
call fcn.1402858f4
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.14027d59c
cmp eax, 0xffffffff
je 0x140294255
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14029421c
mov edx, r15d
mov ecx, r14d
call fcn.1402858f4
jmp 0x140294275
cmp byte [rsi + 0x38], dil
je 0x14029426c
cmp dword [rsi + 0x34], 5
jne 0x14029426c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x140294275
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140290cbc
jmp 0x1402942e8
jns 0x1402942e8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140279968
cmp rax, 0xffffffffffffffff
jne 0x1402942a0
cmp byte [rsi + 0x30], dil
je 0x1402942e8
mov edi, dword [rsi + 0x2c]
jmp 0x1402942e8
mov ecx, r14d
call fcn.140285708
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1402942e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1402942e8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1402942e1
mov eax, dword [rsi + 0x2c]
jmp 0x1402942e6
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140279968
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 0x140295af4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x140295b26
call fcn.140279ae0
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140279f94
jmp 0x140295c45
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140295c45
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140295c45
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140295b55
lock or dword [rcx + 0x14], 0x10
jmp 0x140295c45
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140295b69
call fcn.14029e110
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.140284fd4
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14027bfdc
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140295c33
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140295bfe
mov rcx, rsi
call fcn.140284fd4
cmp eax, edi
je 0x140295be9
mov rcx, rsi
call fcn.140284fd4
cmp eax, 0xfffffffe
je 0x140295be9
mov rcx, rsi
call fcn.140284fd4
movsxd rbx, eax
lea r14, [0x1403b13d0]
mov rcx, rsi
sar rbx, 6
call fcn.140284fd4
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140295bf0
lea rdx, [0x1403a9600]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140295bfe
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140295c22
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140295c22
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140295c22
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x140295c48
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret

Function at 0x140295ca4
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x140295c81
call fcn.140279ae0
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140279f94
or eax, 0xffffffff
jmp 0x140295c9e
sub dword [rcx + 0x10], 1
jns 0x140295c90
add rsp, 0x28
jmp fcn.140295af4
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x140295c60
Function at 0x140298a0c
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 0x140298a3c
xor eax, eax
jmp 0x140298aff
mov rbp, rbx
cmp word [rax], si
je 0x140298a61
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140298a48
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140298a44
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.140293e8c
movsxd r14, eax
test eax, eax
jne 0x140298a9f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140298a35
mov rcx, r14
call fcn.140290cf8
mov rdi, rax
test rax, rax
jne 0x140298ab8
xor ecx, ecx
call fcn.140290cbc
jmp 0x140298a94
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.140293e8c
test eax, eax
jne 0x140298ae9
mov rcx, rdi
call fcn.140290cbc
jmp 0x140298af3
xor ecx, ecx
call fcn.140290cbc
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 0x140298b1c
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 0x140298ba3
mov rsi, rbx
cmp word [rax], bp
je 0x140298b62
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140298b4c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140298b48
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140290cf8
mov rdi, rax
test rax, rax
je 0x140298b90
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1402695f0
mov rbp, rdi
xor ecx, ecx
call fcn.140290cbc
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 0x14029f85c
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.140278b88
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14029f8e6
cmp byte [rbp - 0x21], r15b
je 0x14029f8e1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14029f91c
call fcn.1402932e8
test eax, eax
jne 0x14029f908
cmp byte [rbp - 0x21], r15b
je 0x14029f900
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14029f91c
cmp byte [rbp - 0x21], r15b
je 0x14029f919
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.140278884
test eax, eax
jne 0x14029f9bc
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140278b88
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14029f95b
cmp byte [rbp - 0x21], r15b
je 0x14029f990
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14029f990
call fcn.1402932e8
test eax, eax
jne 0x14029f97c
cmp byte [rbp - 0x21], r15b
je 0x14029f975
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14029f990
cmp byte [rbp - 0x21], r15b
je 0x14029f98d
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.140278884
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14029f9bc
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14029f9bf
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14029f9cd
mov rcx, rdi
call fcn.140290cbc
cmp byte [rbp + 0x3f], r15b
je 0x14029f9dc
mov rcx, qword [rbp + 0x27]
call fcn.140290cbc
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 0x1400035a8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400035e2
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400035e7
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140003630
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400053c0]
cmp byte [rcx + rax], 0
je 0x140003630
dec r8
sub rdx, 1
jne 0x140003616
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14000451c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004566
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004566
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004566
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004566
cmp dword [rcx + 0x84], 0xe
jbe 0x140004566
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004568
xor al, al
add rsp, 0x28
ret
Function at 0x140001268
Capabilities:
Create thread

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
call fcn.140004c50
call fcn.140009270
test eax, eax
jne 0x140001297
mov dword [0x140019f88], 1
lea ecx, [rax + 2]
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ecx, 0x80
call fcn.140009ed0
mov qword [rbp + 0x77], rax
mov rcx, rax
call fcn.140001be8
nop
mov qword [0x140019f80], rax
test rax, rax
jne 0x1400012c2
or eax, 0xffffffff
jmp 0x1400013db
lea rax, vtable.CZMOutlookMAPI.0
mov qword [rbp + 0x17], rax
lea rax, vtable.CZMOutlookMAPI.1.0
mov qword [rbp + 0x1f], rax
and qword [rbp + 0x27], 0
mov dword [rbp + 0x2f], 0
lea rcx, [rbp + 0x37]
call qword [sym.imp.Cmmlib.dll_public:_void___cdecl_Cmm::CEvent::constructor_void____ptr64]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x3f], xmm0
lea rax, [rbp + 0x77]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r9, [rbp + 0x17]
lea r8, [0x1400016c0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 0x27], rax
mov rax, qword [0x140019f80]
mov qword [rbp + 0x3f], rax
lea rcx, [rbp + 0x17]
mov qword [rax + 0x78], rcx
cmp dword [rax + 0x68], 0
je 0x140001347
mov rax, qword [rbp + 0x17]
lea rcx, [rbp + 0x17]
mov rax, qword [rax]
call qword [0x14000c7e8]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x140019f78], eax
mov edx, 1
lea rcx, [0x140001220]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea r9, [0x140001250]
mov edx, 1
xor ecx, ecx
lea r8d, [rdx + 0x31]
call qword [sym.imp.USER32.dll_SetTimer]
jmp 0x1400013aa
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x19]
call qword [sym.imp.USER32.dll_GetMessageW]
cmp eax, 0xffffffff
je 0x1400013c0
lea rcx, [rbp - 0x19]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x19]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x19]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x14000137f
xor edx, edx
lea rcx, [0x140001220]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
nop
lea rcx, [rbp + 0x17]
call fcn.140001578
xor eax, eax
add rsp, 0xa0
pop rbp
ret

Function at 0x140001990
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x10], 0
mov rbx, rcx
je 0x1400019d5
mov dword [rcx + 0x18], 1
mov edx, 0xbb8
add rcx, 0x20
call qword [sym.imp.Cmmlib.dll_public:_enum_ESyncRet___cdecl_Cmm::CEvent::Lock_unsigned_long_int____ptr64]
test eax, eax
je 0x1400019c6
mov rcx, qword [rbx + 0x10]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 0x10], 0
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140005810
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x4e70
call fcn.14000afe0
sub rsp, rax
mov rax, qword [0x140015010]
xor rax, rsp
mov qword [rsp + 0x4e60], rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x3e80
call sub.VCRUNTIME140.dll_memset
xor ebx, ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9, [rsp + 0x20]
mov r8d, 0x3e80
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x140005926
lea rax, [rsp + 0x3ec0]
mov dword [rsp + 0x2c], ebx
mov qword [rsp + 0x30], rax
mov edi, 0xfa0
mov eax, dword [rsp + 0x20]
mov word [rsp + 0x2a], di
test rax, 0xfffffffffffffff8
jbe 0x14000591f
nop
mov r8, rdi
lea rcx, [rsp + 0x3ec0]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + rbx*8 + 0x40]
lea rdx, [rsp + 0x3ec0]
mov r8d, 0x7cf
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x3ec0]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400058e0
mov r8, qword [rsp + rbx*8 + 0x40]
lea rdx, [rsp + 0x28]
add ax, ax
lea rcx, [0x140015070]
xor r9d, r9d
mov word [rsp + 0x28], ax
call fcn.140005950
test eax, eax
je 0x140005926
mov eax, dword [rsp + 0x20]
inc rbx
shr rax, 3
cmp rbx, rax
jb 0x1400058a0
mov eax, 1
jmp 0x140005928
xor eax, eax
mov rcx, qword [rsp + 0x4e60]
xor rcx, rsp
call fcn.140009eb0
mov rbx, qword [rsp + 0x4e80]
add rsp, 0x4e70
pop rdi
ret
Function at 0x1400064a0
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x1400066fc
push rdi
sub rsp, 0x90
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x18
lea r8, [rsp + 0x30]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.PSAPI.DLL_GetModuleInformation]
test eax, eax
je 0x1400066f4
mov eax, 0x5a4d
mov qword [rsp + 0x80], r15
mov r15d, dword [rsp + 0x38]
cmp word [rdi], ax
jne 0x1400066ec
movsxd rcx, dword [rdi + 0x3c]
lea rax, [rcx + 0x108]
cmp rax, r15
jae 0x1400066ec
cmp dword [rcx + rdi], 0x4550
mov qword [rsp + 0xb0], rbp
lea rbp, [rcx + rdi]
jne 0x1400066e4
movzx eax, word [rbp + 4]
mov ecx, 0x14c
mov qword [rsp + 0xb8], rsi
xor esi, esi
mov qword [rsp + 0x88], r14
cmp cx, ax
jne 0x140006555
xor r14d, r14d
jmp 0x140006587
mov ecx, 0x200
mov r8d, 0xaa64
cmp cx, ax
je 0x140006579
mov ecx, 0x8664
cmp cx, ax
je 0x140006579
cmp r8w, ax
jne 0x1400066d4
cmp r8w, ax
mov r14d, 1
sete sil
mov qword [rsp + 0xa8], rbx
mov ebx, dword [rbp + 0x28]
add rbx, rdi
je 0x1400066cc
cmp rbx, rdi
jbe 0x1400066cc
lea rax, [r15 + rdi]
cmp rbx, rax
jae 0x1400066cc
xorps xmm0, xmm0
lea rdx, [rsp + 0x48]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400066cc
test dword [rsp + 0x68], 0x1000
je 0x1400066cc
test dword [rsp + 0x70], 0x1000000
je 0x1400066cc
mov eax, dword [rsp + 0x6c]
xor ecx, ecx
test al, 0x10
jne 0x140006612
test al, 0x20
jne 0x140006612
test al, 0x40
jne 0x140006612
test al, al
jns 0x140006617
mov ecx, 1
test ecx, ecx
je 0x1400066cc
mov r9d, r14d
mov dword [rsp + 0x20], esi
mov r8d, r15d
mov rdx, rdi
mov rcx, rbp
call fcn.140006ee0
mov edx, Ordinal_23
mov dword [rsp + 0xa0], 0
lea r9, [rsp + 0xa0]
mov rcx, rbx
lea r8d, [rdx + 0x2c]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400066cc
test r14d, r14d
jne 0x140006676
mov eax, dword [0x140015060]
mov dword [rbx], eax
movzx eax, byte [0x140015064]
mov byte [rbx + 4], al
jmp 0x14000669a
test esi, esi
je 0x140006686
mov rax, qword [0x140015058]
mov qword [rbx], rax
jmp 0x14000669a
movzx eax, word [0x140015054]
mov word [rbx], ax
movzx eax, byte [0x140015056]
mov byte [rbx + 2], al
mov r8d, dword [rsp + 0xa0]
lea r9, [rsp + 0xa0]
mov edx, Ordinal_23
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov rbx, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0xb8]
mov r14, qword [rsp + 0x88]
mov rbp, qword [rsp + 0xb0]
mov r15, qword [rsp + 0x80]
add rsp, 0x90
pop rdi
ret
Function at 0x140001de7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x198
mov rax, qword [rsp + 0x1a0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 0x3c]
cmp al, 0x48
mov ecx, dword [rsp + 0x1a0]
add rcx, rax
jmp 0x14000353c
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x1a0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x1a0]
jmp 0x140004894
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x24], eax
jae 0x1400023fe
jmp 0x140003311
jmp 0x1400028a3
mov rax, rcx
mov qword [rsp + 0x58], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x58]
lea rax, [rcx + rax + 0x88]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x1a0]
jmp 0x140002413
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x1a0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x24], 0
jmp 0x14000315f

Function at 0x140001fb0
Capabilities:
Enumerate pe sections
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xe8
mov qword [rsp + 0x20], 0

Function at 0x140001fd1
Capabilities:
Enumerate pe sections
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x88], 0
Function at 0x140002863
Capabilities:
Access peb ldr_data
Get process filename

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword gs:[0x60]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x20]
sub rax, 0x10
jmp 0x1400086fe
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 0
jmp 0x140008742
Function at 0x14000ad60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ecx, dword [0x14002c300]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
test rax, rax
je 0x14000ad90
mov eax, 1
jmp 0x14000ae35
lea rcx, [0x14002d5b8]
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
nop dword [rax + rax]
mov eax, dword [0x14002d7c0]
xor edi, edi
mov rdx, qword [0x14002dad0]
lea ebx, [rdi + 1]
test eax, eax
jle 0x14000adcf
mov rcx, rdx
cmp dword [rcx], 0xffffffff
je 0x14000ae46
add edi, ebx
add rcx, 0x1c
cmp edi, eax
jl 0x14000adbc
xor edi, edi
test eax, eax
jle 0x14000ae1e
xor esi, esi
mov r8d, dword [rsi + rdx]
cmp r8d, 0xffffffff
je 0x14000ae14
xor edx, edx
lea ecx, [rdx + 0x40]
call qword [sym.imp.KERNEL32.dll_OpenThread]
nop dword [rax + rax]
cmp rax, 0xffffffffffffffff
je 0x14000ae46
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, dword [0x14002d7c0]
mov rdx, qword [0x14002dad0]
add edi, ebx
add rsi, 0x1c
cmp edi, eax
jl 0x14000add7
xor bl, bl
lea rcx, [0x14002d5b8]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
nop dword [rax + rax]
mov al, bl
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
nop dword [rax + rax]
movsxd rcx, edi
imul rdx, rcx, 0x1c
mov rcx, qword [0x14002dad0]
mov dword [rdx + rcx], eax
add rdx, 4
add rdx, rcx
mov ecx, dword [0x14002c300]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop dword [rax + rax]
jmp 0x14000ae20
Function at 0x14000b34c
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 r14
sub rsp, 0x20
mov r14d, r8d
mov rbp, rdx
mov rsi, rcx
call fcn.14000d258
test eax, eax
je 0x14000b3db
mov al, byte [rsi + 0x21]
cmp al, 2
jne 0x14000b425
lea rax, [0x14002d640]
cmp rbp, rax
jne 0x14000b394
mov byte [rsi + 0x21], 4
jmp 0x14000b3c3
cmp dword [rsi + 0x54], 0
je 0x14000b3bf
and dword [rsi + 0x54], 0
mov rcx, qword [rsi + 0x30]
or eax, 0xffffffff
lock xadd dword [rcx + 0x84], eax
cmp eax, 1
jne 0x14000b3bf
mov rdx, qword [rsi + 0x38]
mov rcx, qword [rsi + 0x30]
call fcn.14000dbb8
mov byte [rsi + 0x21], 6
mov rcx, qword [0x14002d608]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop dword [rax + rax]
jmp 0x14000b475
cmp dword [0x14002d810], 0
je 0x14000b425
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [0x14002c2ec]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
nop dword [rax + rax]
xor ebx, ebx
mov ecx, edi
test rax, rax
setne bl
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
test ebx, ebx
je 0x14000b425
mov al, byte [rsi + 0x21]
cmp al, 3
je 0x14000b475
test r14d, r14d
je 0x14000b44c
test byte [rsi + 0x70], 0x10
je 0x14000b438
inc dword [0x14002d688]
jmp 0x14000b44c
mov rax, qword [rsi + 0x88]
add qword [0x14002d690], rax
inc dword [0x14002d68c]
test byte [rsi + 0x70], 0x10
je 0x14000b457
inc dword [rbp]
jmp 0x14000b465
mov rax, qword [rsi + 0x88]
add qword [rbp + 8], rax
inc dword [rbp + 4]
mov rcx, rsi
call fcn.14001de0c
mov rcx, rsi
call fcn.1400016e0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret