joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14012bb9c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x700]
sub rsp, 0x800
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rbp + 0x6f0], rax
mov r14b, dl
mov rdi, rcx
lea rdx, [rbp + 0x4e0]
mov ecx, 0x104
mov rsi, r8
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rbp + 0x2d0]
xor r8d, r8d
lea rdx, [0x1401d1d08]
lea rcx, [rbp + 0x4e0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov dword [rsp + 0x38], 1
lea rcx, [rbp + 0x2d0]
xor r15d, r15d
xor r9d, r9d
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov dword [rsp + 0x28], 0x100
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call sub.Mso20Win32Client.dll_Ordinal_1013
mov rbx, rax
cmp word [rbp + 0x2d0], r15w
jne 0x14012bc4a
mov r8d, r15d
jmp 0x14012bc5f
lea rax, [rbp + 0x2d0]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r15w
jne 0x14012bc55
lea rdx, [rbp + 0x2d0]
mov rcx, rsi
call fcn.140007f48
cmp rbx, 0xffffffffffffffff
je 0x14012bcdf
cmp byte [rdi], r15b
jne 0x14012bc81
mov rcx, rdi
call fcn.14012cb10
movzx ecx, r14b
lea rdx, str.msft:spp_migrationencryptor_tokenact_1.0
mov r8, rbx
call sub.osppc.dll_SLGatherMigrationBlob
test eax, eax
js 0x14012bd07
lea r8, [rbp + 0x2d0]
mov ecx, 3
lea rdx, str.Migration_blob_gathered_into__s
call fcn.14012af94
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x6f0]
xor rcx, rsp
call fcn.140021f10
mov rbx, qword [rsp + 0x848]
add rsp, 0x800
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea r8, str.Unable_to_create_migratable_blob_file_handle.
mov edx, 0xa1
lea rcx, [rsp + 0x40]
call fcn.140008bdc
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea r9, str.Unable_to_gather_migratable_blob.
mov r8d, eax
mov edx, 0x17
lea rcx, [rsp + 0x40]
call fcn.14012a280
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14012cf30
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x318]
sub rsp, 0x410
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rbp + 0x300], rax
xor r14d, r14d
mov qword [rsp + 0x60], 7
mov rdi, rdx
mov qword [rsp + 0x58], r14
lea rdx, str.OSLTokenStore::ReadBaseReferral_called.
mov word [rsp + 0x48], r14w
lea rcx, [rsp + 0x48]
lea r8d, [r14 + 0x27]
call fcn.140007f48
lea rdx, [rsp + 0x48]
lea ecx, [r14 + 3]
call sub.Mso20Win32Client.dll_Ordinal_1143
xor r8d, r8d
lea rcx, [rsp + 0x48]
mov dl, 1
call fcn.140007a08
lea rax, [rsp + 0x40]
mov dword [rsp + 0x34], r14d
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], 4
lea rdx, str.SoftwareMicrosoftOfficeSoftwareProtectionPlatform
mov qword [rsp + 0x40], r14
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
mov dword [rsp + 0x30], edx
test edx, edx
jns 0x14012d015
lea r8, [rsp + 0x30]
lea rdx, str.OSLTokenStore::ReadBaseReferral_failed_to_open_registry:_hr0x_x
lea ecx, [r14 + 3]
call fcn.140032840
mov ebx, dword [rsp + 0x30]
jmp 0x14012d073
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.ReferralData
lea rax, [rsp + 0x34]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
mov ecx, 3
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov dword [rsp + 0x30], ebx
test ebx, ebx
js 0x14012d09d
lea r8, [rsp + 0x34]
lea rdx, str.OSLTokenStore::ReadBaseReferral_got_value_of:__x
call fcn.14012b1b0
mov ecx, dword [rsp + 0x34]
mov dword [rdi], ecx
mov eax, ebx
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.140021f10
lea r11, [rsp + 0x410]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
lea r8, [rsp + 0x30]
lea rdx, str.OSLTokenStore::ReadBaseReferral_failed_to_read_registry:_hr0x_x
call fcn.140032840
mov r8d, dword [rsp + 0x30]
lea r9, str.Failed_to_read_value_out_of_registry
mov edx, 0x17
lea rcx, [rsp + 0x70]
call fcn.140026b28
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14012d750
Capabilities:
Listen for remote procedure calls

Disassembly:
sub rsp, 0x3c8
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rsp + 0x3b0], rax
mov r8d, edx
mov edx, dword [rcx + 0xc]
mov ecx, dword [rcx + 8]
call qword [sym.imp.RPCRT4.dll_RpcServerListen]
test eax, eax
je 0x14012d783
cmp eax, 0x6b1
jne 0x14012d79b
mov rcx, qword [rsp + 0x3b0]
xor rcx, rsp
call fcn.140021f10
add rsp, 0x3c8
ret
lea r9, str.RpcServerListen_failed
mov r8d, eax
mov edx, 0xf
lea rcx, [rsp + 0x20]
call fcn.14002ce60
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
push rbx
sub rsp, 0x60
mov eax, dword [rsp + 0xd8]
mov rbx, rcx
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
call fcn.14012d494
mov r8d, dword [rsp + 0xc0]
mov rcx, rbx
mov rdx, qword [rsp + 0xb8]
call fcn.14012d7c8
mov edx, dword [rsp + 0xc8]
mov rcx, rbx
add rsp, 0x60
pop rbx
jmp 0x14012d750

Function at 0x14012d84c
Capabilities:
Listen for remote procedure calls

Disassembly:
sub rsp, 0x3c8
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rsp + 0x3b0], rax
mov ecx, 1
mov edx, 0x4d2
mov r8d, ecx
call qword [sym.imp.RPCRT4.dll_RpcServerListen]
test eax, eax
je 0x14012d88a
cmp eax, 0x6b1
je 0x14012d88a
cmp eax, 0x6b3
jne 0x14012d8a2
mov rcx, qword [rsp + 0x3b0]
xor rcx, rsp
call fcn.140021f10
add rsp, 0x3c8
ret
lea r9, str.RpcServerListen_failed
mov r8d, eax
mov edx, 0xf
lea rcx, [rsp + 0x20]
call fcn.14002ce60
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140131030
Capabilities:
Initialize winhttp library

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x400
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rsp + 0x3f0], rax
mov r14, r9
mov rbp, r8
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0x38], rcx
lea rax, vtable.RefCounted.0
mov qword [rcx], rax
xor r15d, r15d
mov dword [rcx + 8], r15d
lea rax, [0x1401d4338]
mov qword [rcx], rax
mov word [rcx + 0x10], r15w
add rcx, 0x18
xor r8d, r8d
xor edx, edx
call fcn.14002e04c
nop
mov qword [rbx + 0x60], r15
lea rax, [rbx + 0x68]
lea edx, [r15 + 7]
mov qword [rax + 0x18], rdx
mov qword [rax + 0x10], r15
cmp rdx, 8
jb 0x1401310bd
mov rax, qword [rax]
mov word [rax], r15w
lea rdi, [rbx + 0x88]
mov qword [rdi + 0x18], rdx
mov qword [rdi + 0x10], r15
cmp rdx, 8
jb 0x1401310db
mov rax, qword [rdi]
jmp 0x1401310de
mov rax, rdi
mov word [rax], r15w
lea rcx, [rbx + 0xa8]
mov qword [rcx + 0x18], rdx
mov qword [rcx + 0x10], r15
cmp rdx, 8
jb 0x1401310fc
mov rax, qword [rcx]
jmp 0x1401310ff
mov rax, rcx
mov word [rax], r15w
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbp
call fcn.140007e10
nop
lea rcx, [rbx + 0xc8]
call fcn.1401396a4
nop
mov qword [rbx + 0x100], r15
mov qword [rbx + 0x108], r15
mov rax, qword [rsp + 0x458]
mov qword [rbx + 0x118], rax
mov rax, qword [rsp + 0x450]
mov qword [rbx + 0x120], rax
mov dword [rbx + 0x128], 0x57
mov qword [rbx + 0x110], r14
cmp qword [rsi + 0x18], 8
jb 0x140131167
mov rsi, qword [rsi]
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rbx + 0x100], rax
test rax, rax
jne 0x1401311ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r9, str.Failed_to_Open_Win_Http_session
mov edx, 0x79
lea rcx, [rsp + 0x60]
call fcn.14001a68c
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov r8, rbp
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140131330
mov rsi, rax
cmp rdi, rax
je 0x1401311eb
xor r8d, r8d
mov dl, 1
mov rcx, rdi
call fcn.140007a08
mov rdx, rsi
mov rcx, rdi
call fcn.1400077b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x40]
call fcn.140007a08
nop
mov rax, rbx
mov rcx, qword [rsp + 0x3f0]
xor rcx, rsp
call fcn.140021f10
mov rbx, qword [rsp + 0x448]
add rsp, 0x400
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140131664
Capabilities:
Prepare http request

Disassembly:
push rbx
sub rsp, 0x3f0
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rsp + 0x3e0], rax
cmp qword [r8 + 0x10], 0
mov rax, r8
mov rbx, rdx
jne 0x14013168f
xor eax, eax
jmp 0x140131699
cmp qword [r8 + 0x18], 8
jb 0x140131699
mov rax, qword [r8]
lea r8, [rcx + 0x88]
cmp qword [r8 + 0x18], 8
jb 0x1401316aa
mov r8, qword [r8]
and dword [rsp + 0x30], 0
xor r9d, r9d
and qword [rsp + 0x28], 0
mov rdx, rax
mov rcx, qword [rcx + 0x108]
and qword [rsp + 0x20], 0
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
cmp qword [rbx], 0
jne 0x140131729
mov rcx, rbx
mov qword [rbx], rax
call fcn.1401326b4
test rax, rax
je 0x140131751
mov rcx, rbx
mov dword [rsp + 0x40], 1
call fcn.1401326b4
mov r9d, 4
lea r8, [rsp + 0x40]
mov rcx, rax
lea edx, [r9 + 0x49]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x140131782
mov rcx, qword [rsp + 0x3e0]
xor rcx, rsp
call fcn.140021f10
add rsp, 0x3f0
pop rbx
ret
lea r8, str.OHINTERNET_handle_already_set
mov edx, 0x26
lea rcx, [rsp + 0x50]
call fcn.140072580
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.Failed_to_open_get_request_for_given_file
mov edx, 0x7c
mov r8d, eax
lea rcx, [rsp + 0x50]
call fcn.140026c30
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.Failed_to_set_the_auto_logon_option
mov edx, 0x8b
mov r8d, eax
lea rcx, [rsp + 0x50]
call fcn.140016014
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140131b80
Capabilities:
Read http header

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x358]
sub rsp, 0x430
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rbp + 0x320], rax
mov edi, r9d
mov r14, r8
mov rbx, rdx
mov dword [rsp + 0x38], r9d
xor r15d, r15d
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x34], r15d
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x140131c6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x140131c6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rbp + 0x380], r15b
je 0x140131c42
mov dword [rsp + 0x30], eax
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, str.Header__d_not_available_in_the_request:_LastError:_0x_x
lea ecx, [r15 + 2]
call fcn.140130f28
lea edi, [r15 + 7]
mov qword [rbx + 0x18], rdi
mov qword [rbx + 0x10], r15
mov word [rbx], r15w
jmp 0x140131d72
mov r8d, eax
lea r9, str.Failed_to_read_the_header_buf_size_from_request_headers
mov edx, 0x83
lea rcx, [rbp - 0x70]
call fcn.1400243c8
lea rdx, [0x1401df028]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov word [rsp + 0x30], r15w
mov edx, dword [rsp + 0x34]
shr rdx, 1
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r15
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.140132650
nop
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov rsi, qword [rsp + 0x48]
mov r9, rsi
xor r8d, r8d
mov edx, edi
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x140131cee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r9, str.Failed_to_read_the_header_id_from_request_headers
mov edx, 0x83
lea rcx, [rbp - 0x70]
call fcn.140027080
lea rdx, [0x1401df028]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov edi, 7
mov qword [rbp - 0x80], rdi
mov qword [rsp + 0x78], r15
mov word [rsp + 0x68], r15w
cmp word [rsi], r15w
jne 0x140131d0d
mov r8, r15
jmp 0x140131d1b
or r8, 0xffffffffffffffff
inc r8
cmp word [rsi + r8*2], r15w
jne 0x140131d11
mov rdx, rsi
lea rcx, [rsp + 0x68]
call fcn.140007f48
mov qword [rbx + 0x18], rdi
mov qword [rbx + 0x10], r15
cmp rdi, 8
jb 0x140131d3b
mov rax, qword [rbx]
jmp 0x140131d3e
mov rax, rbx
mov word [rax], r15w
lea rdx, [rsp + 0x68]
mov rcx, rbx
call fcn.1400077b0
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x68]
call fcn.140007a08
nop
mov rdx, qword [rsp + 0x58]
sub rdx, rsi
sar rdx, 1
mov rcx, rsi
call fcn.14000620c
mov rax, rbx
mov rcx, qword [rbp + 0x320]
xor rcx, rsp
call fcn.140021f10
mov rbx, qword [rsp + 0x460]
add rsp, 0x430
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140132b1c
Capabilities:
Check mutex on windows

Disassembly:
jmp 0x140132b1c
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea r8, str._MSIExecute
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
mov rdi, rax
test rax, rax
jne 0x140132b51
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x140132b51
xor bl, bl
jmp 0x140132b61
mov bl, 1
test rdi, rdi
je 0x140132b61
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140001001
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400088d0]
mov rcx, qword [0x140008880]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x1400088e0]
cmp word [rcx], 0x5a4d
mov dword [rax], 1
mov rax, qword [0x1400088f0]
mov dword [rax], 1
jne 0x140001083
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140001083
mov ecx, dword [rax + 0x18]
cmp cx, 0x10b
je 0x14000105e
cmp cx, 0x20b
je 0x14000106d
jmp 0x140001083
cmp dword [rax + 0x74], 0xe
jbe 0x140001083
cmp dword [rax + 0xe8], 0
jmp 0x14000107d
cmp dword [rax + 0x84], 0xe
jbe 0x140001083
cmp dword [rax + 0xf8], 0
setne dl
movzx edx, dl
mov rax, qword [0x1400088c0]
mov dword [0x14000b00c], edx
mov ecx, 2
cmp dword [rax], 0
jne 0x14000109f
mov ecx, 1
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400089a0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140008980]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140008830]
cmp dword [rax], 1
jne 0x1400010e1
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400017f0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
sub rsp, 0x240
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1d0], rcx
mov rax, qword [rbp + 0x1d0]
mov rax, qword [rax]
mov qword [rbp + 0x1b8], rax
jmp 0x14000191e
mov ecx, 0
mov rax, qword [sym.__acrt_iob_func]
call rax
mov rdx, rax
lea rax, [rbp - 0x60]
mov r8, rdx
mov edx, 0x200
mov rcx, rax
call sym.fgets
movzx eax, byte [0x14000b030]
mov byte [rbp + 0x1ad], al
movzx eax, byte [rbp + 0x1ad]
test al, al
je 0x14000193c
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.strlen
mov dword [rbp + 0x1b4], eax
mov eax, dword [rbp + 0x1b4]
sub eax, 1
cdqe
mov byte [rbp + rax - 0x60], 0
mov ecx, dword [rbp + 0x1b4]
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x1b8]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov dword [rbp + 0x1b0], eax
mov eax, dword [rbp + 0x1b0]
cmp eax, dword [rbp + 0x1b4]
je 0x1400018cb
lea rax, str.Send_failed
mov rcx, rax
call sym.printf
jmp 0x14000193d
lea rax, [rbp - 0x60]
mov r8d, 6
lea rdx, str._leave
mov rcx, rax
call sym.memcmp
test eax, eax
je 0x140001905
lea rax, [rbp - 0x60]
mov r8d, 2
lea rdx, [0x140008189]
mov rcx, rax
call sym.memcmp
test eax, eax
jne 0x14000191e
mov byte [rbp + 0x1ae], 0
movzx eax, byte [rbp + 0x1ae]
movzx eax, al
xchg byte [0x14000b030], al
jmp 0x14000193d
movzx eax, byte [0x14000b030]
mov byte [rbp + 0x1af], al
movzx eax, byte [rbp + 0x1af]
test al, al
jne 0x14000181d
jmp 0x14000193d
nop
mov eax, 0
add rsp, 0x240
pop rbp
ret
Function at 0x140001c24
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14000b0b8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14000b0b4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140001c72
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140001c6a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001d59
inc ebx
add rax, 0x28
jmp 0x140001c4a
mov rcx, r12
call sym.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
jne 0x140001c91
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
movsxd rbx, ebx
mov rax, qword [0x14000b0b8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call sym._GetPEImageBase
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000b0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140001cf3
mov rax, qword [0x14000b0b8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001d53
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001d53
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000b0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001d53
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
inc dword [0x14000b0b4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140002180
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x14000b120]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000b100]
test rbx, rbx
je 0x1400021cc
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x1400021c6
test eax, eax
jne 0x1400021c6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x14000219e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002380
Capabilities:
Parse pe header

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

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x1400023de
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x1400023d5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400023e0
inc r8d
add rax, 0x28
jmp 0x1400023bc
xor eax, eax
ret

Function at 0x140002451
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140008880]
mov r8, rcx
mov rcx, r9
call sym._ValidateImageBase
test eax, eax
je 0x14000247d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp sym._FindPESection
xor eax, eax
add rsp, 0x28
ret
Function at 0x180001000
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x20
mov rsi, rdx
lea rdx, [0x180005cd0]
call qword [sym.imp.msvcrt.dll_fopen]
mov rbx, rax
test rax, rax
jne 0x18000102d
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
xor edx, edx
mov qword [rsp + 0x38], rdi
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.msvcrt.dll_fseek]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_ftell]
movsxd rdi, eax
test rsi, rsi
jne 0x180001065
mov rax, rdi
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
mov rcx, rbx
mov qword [rsp + 0x30], rbp
call qword [sym.imp.msvcrt.dll_rewind]
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_fread]
mov rbp, rax
cmp rax, rdi
je 0x1800010a5
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_fclose]
xor eax, eax
jmp 0x1800010b1
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_fclose]
mov rax, rbp
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
Function at 0x180001ef4
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x240
xor r12d, r12d
mov r15d, r8d
xor eax, eax
mov rbx, rdx
mov rsi, rcx
lock cmpxchg qword [rcx], r12
je 0x180001f5b
or rdi, 0xffffffffffffffff
cmp rax, rdi
jne 0x180001f3a
xor eax, eax
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
or rdi, 0xffffffffffffffff
mov qword [rbp + 0x188], r12
test r15b, 1
je 0x180001f7a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
jmp 0x1800020bf
bt qword [0x1800052c8], 0
lea rdx, str.LoadLibraryExW
lea rcx, [0x180009068]
call fcn.180001e28
mov r14, rax
test rax, rax
je 0x180001f38
mov r13d, 2
test r13b, r15b
je 0x180001fb1
mov r8d, r13d
jmp 0x1800020b7
test r15b, 4
je 0x180001fbf
xor r8d, r8d
jmp 0x1800020b7
bt qword [0x1800052b0], 0
lea rdx, str.AddDllDirectory
lea rcx, [0x180009050]
call fcn.180001e28
test rax, rax
jne 0x1800020b1
bt qword [0x1800052a8], 0
lea rdx, str.LdrLoadDll
lea rcx, [0x180009048]
call fcn.180001e28
mov r15, rax
test rax, rax
je 0x180001f38
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x102
ja 0x180001fb7
mov rdx, rdi
mov rax, rbx
mov rcx, r12
test rbx, rbx
je 0x180002057
cmp word [rax], r12w
je 0x180002057
inc rcx
add rax, r13
sub rdx, 1
jne 0x180002045
add rcx, rcx
mov qword [rsp + 0x28], rbx
movzx eax, cx
lea r9, [rbp + 0x188]
mov edx, 0xffff
lea r8, [rsp + 0x20]
cmp rcx, rdx
cmova ax, dx
mov word [rsp + 0x20], ax
lea rax, [rcx + 2]
add cx, r13w
cmp rax, rdx
cmova cx, dx
xor edx, edx
mov word [rsp + 0x22], cx
lea rcx, [rsp + 0x30]
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
call r15
mov rax, qword [rbp + 0x188]
jmp 0x1800020c6
mov r8d, 0x800
xor edx, edx
mov rcx, rbx
call r14
mov qword [rbp + 0x188], rax
test rax, rax
jne 0x1800020d3
xchg qword [rsi], rdi
jmp 0x180001f38
xchg qword [rsi], rax
test rax, rax
je 0x1800020e8
mov rcx, qword [rbp + 0x188]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [rbp + 0x188]
jmp 0x180001f3a