joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007030
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x4b0], rbx
mov rax, qword [0x1401c7ef8]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rsi, r9
mov rbx, r8
mov rax, rdx
xor r12d, r12d
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x70], r12
xor edx, edx
lea r8d, [r12 + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1400070a8
call fcn.140001f40
mov ebx, eax
jmp 0x1400071cd
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400070c9
call fcn.140001f40
jmp 0x1400071c1
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400070ec
call fcn.140001f40
jmp 0x1400071c1
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x14000710e
mov ebx, 0x8007000e
jmp 0x1400071c3
mov ecx, eax
test eax, eax
je 0x14000714b
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140007141
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14000714b
lea rcx, [rsp + 0x70]
call fcn.1400029c0
mov rax, qword [rsp + 0x70]
jmp 0x140007155
mov ecx, 0x80070216
call fcn.140001000
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x14000716d
test rax, rax
jne 0x140007179
mov ebx, 0x8007000e
jmp 0x1400071c3
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x14000719e
call fcn.140001f40
jmp 0x1400071c1
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r12w
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140005db0
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1400071e4
lea rcx, [rsp + 0x70]
call fcn.1400029b0
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1400d6f80
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r12
pop rdi
pop rsi
ret
Function at 0x14000ddb0
Capabilities:
Check os version

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x270
mov rax, qword [0x1401c7ef8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbp, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov dword [rcx], 5
xor r12d, r12d
nop word [rax + rax]
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x11c
call sub.MSVCR100.dll_memset
mov eax, dword [rdi]
mov r8b, 1
mov edx, 2
xor ecx, ecx
mov dword [rsp + 0x20], 0x11c
mov dword [rsp + 0x24], eax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea rcx, [rsp + 0x20]
mov r8, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x14000de9a
mov dword [rbx], r12d
nop word [rax + rax]
lea rcx, [rsp + 0x140]
xor edx, edx
mov r8d, 0x11c
call sub.MSVCR100.dll_memset
mov eax, dword [rbx]
mov r8b, 1
mov edx, 1
xor ecx, ecx
mov dword [rsp + 0x140], 0x11c
mov dword [rsp + 0x148], eax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea rcx, [rsp + 0x140]
mov r8, rax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
jne 0x14000dec5
inc dword [rbx]
cmp dword [rbx], 5
jb 0x14000de40
inc dword [rdi]
cmp dword [rdi], 0x14
jb 0x14000ddf0
xor al, al
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400d6f80
add rsp, 0x270
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rcx, [rsp + 0x140]
xor edx, edx
mov r8d, 0x11c
call sub.MSVCR100.dll_memset
mov r8b, 1
mov edx, 0x80
xor ecx, ecx
mov dword [rsp + 0x140], 0x11c
mov byte [rsp + 0x25a], 1
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea rcx, [rsp + 0x140]
mov edx, 0x80
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x14000df1b
mov al, 1
jmp 0x14000df75
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x11c
call sub.MSVCR100.dll_memset
mov r8b, 1
mov edx, 0x80
xor ecx, ecx
mov dword [rsp + 0x20], 0x11c
mov byte [rsp + 0x13a], 3
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea rcx, [rsp + 0x20]
mov edx, 0x80
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x14000df68
mov al, 3
jmp 0x14000df75
mov cl, 2
call fcn.14000d8f0
neg eax
sbb al, al
and al, 2
movzx eax, al
mov dword [rsi], eax
call fcn.14000d9f0
mov word [rbp], ax
mov al, 1
jmp 0x14000dea7
Function at 0x140013590
Capabilities:
Get common file path
Get startup folder

Disassembly:
push rdi
sub rsp, 0x270
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x288], rbx
mov rax, qword [0x1401c7ef8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor edi, edi
mov dword [rsp + 0x30], edi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 0x23]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov word [rsp + 0x258], di
lea rcx, str._h_r_
mov rax, qword [str._h_r_]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbx], rax
lea rcx, [rsp + 0x50]
lea rax, [rsp + 0x50]
test rax, 0xffffffffffff0000
jne 0x14001363b
movzx edi, cx
xor edx, edx
mov ecx, edi
call fcn.140001110
test rax, rax
je 0x140013639
mov r8d, edi
mov rdx, rax
mov rcx, rbx
call fcn.140004fb0
nop
jmp 0x14001365e
jmp 0x14001365e
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14000c510
nop
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400d6f80
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret

Function at 0x140014f30
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x30
lea r12, [rcx + 0x10]
lea rsi, [rcx + 0x18]
lea rax, vtable.Cxx::Security::CCrypt.0
mov qword [rcx], rax
xor eax, eax
mov r13d, r8d
mov rbp, rdx
mov rbx, rcx
mov qword [rcx + 8], rax
lea r9d, [rax + 0x18]
xor r8d, r8d
xor edx, edx
add rcx, 8
mov qword [r12], rax
mov qword [rsi], rax
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140014fb9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x140014fb9
lea rcx, [rbx + 8]
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetElement
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 8
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14001500c
mov rcx, qword [rbx + 8]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14001500c
test rbp, rbp
je 0x14001500c
mov rcx, qword [rsi]
xor r9d, r9d
mov r8d, r13d
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14001500c
mov r8, qword [rsi]
mov rcx, qword [rbx + 8]
xor r9d, r9d
mov edx, 0x660e
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
Function at 0x140015110
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
cmp qword [rcx + 8], 0
mov rbx, r9
mov esi, r8d
mov rdi, rcx
je 0x14001521c
cmp qword [rcx + 0x18], 0
je 0x14001521c
cmp qword [rcx + 0x10], 0
je 0x14001521c
test rdx, rdx
je 0x14001521c
cmp qword [r9 + 0x18], 0x10
mov qword [r9 + 0x10], 0
jb 0x140015166
mov rax, qword [r9]
jmp 0x140015169
mov rax, rbx
mov r8, rsi
mov rcx, rbx
mov byte [rax], 0
call fcn.1400081b0
mov rcx, qword [rdi + 0x10]
xor r9d, r9d
lea rax, [rsp + 0x60]
mov dword [rsp + 0x30], 0
lea r8d, [r9 + 1]
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x60], esi
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov edx, dword [rsp + 0x60]
mov rax, qword [rbx + 0x10]
mov rcx, rbx
cmp rdx, rax
ja 0x1400151c8
or r8, 0xffffffffffffffff
call fcn.140001c20
jmp 0x1400151d3
sub rdx, rax
xor r8d, r8d
call fcn.14000cac0
cmp qword [rbx + 0x18], 0x10
jb 0x1400151dd
mov rbx, qword [rbx]
mov eax, dword [rsp + 0x60]
mov rcx, qword [rdi + 0x10]
xor r9d, r9d
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x40]
lea r8d, [r9 + 1]
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
setne al
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
xor al, al
add rsp, 0x50
pop rdi
ret

Function at 0x140015230
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 8], 0
mov rbx, r9
mov esi, r8d
mov rdi, rcx
je 0x140015318
cmp qword [rcx + 0x18], 0
je 0x140015318
cmp qword [rcx + 0x10], 0
je 0x140015318
test rdx, rdx
je 0x140015318
cmp qword [r9 + 0x18], 0x10
mov qword [r9 + 0x10], 0
jb 0x140015286
mov rax, qword [r9]
jmp 0x140015289
mov rax, rbx
mov r8, rsi
mov rcx, rbx
mov byte [rax], 0
call fcn.1400081b0
cmp qword [rbx + 0x18], 0x10
mov dword [rsp + 0x40], esi
jb 0x1400152a7
mov rax, qword [rbx]
jmp 0x1400152aa
mov rax, rbx
lea rcx, [rsp + 0x40]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], rcx
mov rcx, qword [rdi + 0x10]
lea r8d, [r9 + 1]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x140015318
mov edx, dword [rsp + 0x40]
mov rax, qword [rbx + 0x10]
mov rcx, rbx
cmp rdx, rax
ja 0x1400152fb
or r8, 0xffffffffffffffff
call fcn.140001c20
mov al, 1
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
sub rdx, rax
xor r8d, r8d
call fcn.14000cac0
mov al, 1
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
xor al, al
add rsp, 0x30
pop rdi
ret
Function at 0x1400157c0
Capabilities:
Read http header

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 0x18]
test rcx, rcx
jne 0x1400157d4
xor al, al
add rsp, 0x38
ret
lea rax, [rsp + 0x40]
mov r9, rdx
xor r8d, r8d
mov edx, 0x20000013
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
setne al
add rsp, 0x38
ret
Function at 0x140017660
Capabilities:
Connect to http server
Create http request

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov qword [rbp - 1], 0xfffffffffffffffe
mov rax, qword [0x1401c7ef8]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rsi, r9
mov rdi, r8
mov rax, rdx
mov rbx, rcx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rax]
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rbx + 8], rax
test rax, rax
jne 0x140017729
mov qword [rbp + 0x1f], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rbp + 0x17], r12
mov byte [rbp + 7], r12b
lea r8d, [r12 + 0x29]
lea rdx, str.Cant_open_http_connection_to_the_server.
lea rcx, [rbp + 7]
call fcn.1400082f0
nop
lea rax, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae rax, qword [rbp + 7]
mov qword [rbp - 0x29], rax
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x21]
call qword [sym.imp.MSVCR100.dll_public:_void___cdecl_std::exception::constructor_char_const__const___ptr64_const____ptr64____ptr64]
lea r11, vtable.Cxx::Network::Exception::CNetworkException.0
mov qword [rbp - 0x21], r11
mov dword [rbp - 9], 7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 5], eax
lea rdx, [0x140185380]
lea rcx, [rbp - 0x21]
call sub.MSVCR100.dll__CxxThrowException
nop
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], r12
xor r9d, r9d
movzx r8d, word [rsi]
mov rdx, qword [rdi]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetConnectW]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x1400177cd
mov qword [rbp + 0x1f], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rbp + 0x17], r12
mov byte [rbp + 7], r12b
lea r8d, [rax + 0x1c]
lea rdx, str.Cant_connect_to_the_server.
lea rcx, [rbp + 7]
call fcn.1400082f0
nop
lea rax, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae rax, qword [rbp + 7]
mov qword [rbp - 0x29], rax
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x21]
call qword [sym.imp.MSVCR100.dll_public:_void___cdecl_std::exception::constructor_char_const__const___ptr64_const____ptr64____ptr64]
lea r11, vtable.Cxx::Network::Exception::CNetworkException.0
mov qword [rbp - 0x21], r11
mov dword [rbp - 9], 7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 5], eax
lea rdx, [0x140185380]
lea rcx, [rbp - 0x21]
call sub.MSVCR100.dll__CxxThrowException
nop
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400d6f80
add rsp, 0xa0
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14002fc50
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x1401c7ef8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [str._h_r_]
mov rsi, rcx
lea rcx, str._h_r_
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
xor r9d, r9d
xor r8d, r8d
add rax, 0x18
lea edx, [r9 + 0x23]
xor ecx, ecx
mov qword [rsi], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
or rbx, 0xffffffffffffffff
test eax, eax
js 0x14002fcd4
xor eax, eax
lea rdi, [rsp + 0x40]
mov rcx, rbx
repne scasw ax, word [rdi]
lea rdx, [rsp + 0x40]
not rcx
lea r8d, [rcx - 1]
mov rcx, rsi
call fcn.14000c510
mov rax, qword [str._h_r_]
lea rcx, str._h_r_
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov ecx, 1
sub ecx, dword [rax + 0x10]
lea rdi, [rax + 0x18]
mov eax, dword [rax + 0xc]
mov qword [rsp + 0x30], rdi
sub eax, 0x104
or eax, ecx
jge 0x14002fd16
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.140001b30
mov rdi, qword [rsp + 0x30]
mov r8d, 0x104
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movsxd rdx, dword [rdi - 0xc]
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_wcsnlen]
test eax, eax
js 0x14002fdf5
cmp eax, dword [rdi - 0xc]
jg 0x14002fdf5
xor ecx, ecx
mov dword [rdi - 0x10], eax
cdqe
lea edx, [rcx + 0x5c]
mov word [rdi + rax*2], cx
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_wcsrchr]
test rax, rax
je 0x14002fdb5
sub rax, rdi
sar rax, 1
cmp eax, 0xffffffff
je 0x14002fdb5
mov r8d, dword [rdi - 0x10]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
sub r8d, eax
call fcn.14002f270
mov rcx, rsi
mov rdx, qword [rax]
mov r8d, dword [rdx - 0x10]
call fcn.140005090
mov rdx, qword [rsp + 0x38]
mov eax, ebx
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14002fdb0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rsp + 0x30]
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x14002fdcd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rsi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400d6f80
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov ecx, 0x80070057
call fcn.140001000
int3
Function at 0x1400335d0
Capabilities:
Get file version info

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2f8
mov rax, qword [0x1401c7ef8]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov rbx, r9
mov r12, rcx
mov rcx, r8
mov rsi, r8
mov qword [rsp + 0x60], r8
mov r14, rdx
mov qword [rsp + 0x80], rbx
call qword [sym.imp.MSVCR100.dll__strdup]
mov rcx, rbx
mov rdi, rax
mov qword [rsp + 0x70], rax
call qword [sym.imp.MSVCR100.dll__strdup]
mov r15, qword [rsp + 0x360]
mov rbp, rax
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x368]
xor ebx, ebx
mov r9, rbp
mov dword [rsp + 0x28], eax
mov r8, rdi
xor edx, edx
mov rcx, r14
mov r13d, ebx
mov qword [rsp + 0x20], r15
call qword [r12 + 0x68]
test rax, rax
jne 0x14003366c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
mov rcx, qword [r12]
test rcx, rcx
je 0x1400337f7
test byte [rcx + 0x28], 8
je 0x14003372c
mov rcx, rsi
mov rdi, rbx
mov qword [rsp + 0x58], rbx
call qword [sym.imp.MSVCR100.dll__strdup]
lea rdx, [rsp + 0x50]
mov rcx, rax
mov rsi, rax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebp, eax
test eax, eax
je 0x140033701
mov ecx, ebp
call qword [sym.imp.MSVCR100.dll_malloc]
mov edx, dword [rsp + 0x50]
mov r8d, ebp
mov r9, rax
mov rcx, rsi
mov rdi, rax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x140033701
lea r9, [rsp + 0x78]
lea r8, [rsp + 0x58]
lea rdx, [0x140118dec]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x1400336ef
mov qword [rsp + 0x58], rbx
jmp 0x140033701
mov rax, qword [rsp + 0x58]
mov ebx, dword [rax + 8]
mov eax, dword [rax + 0xc]
shl rbx, 0x20
add rbx, rax
test rsi, rsi
je 0x14003370f
mov rcx, rsi
call qword [sym.imp.MSVCR100.dll_free]
test rdi, rdi
je 0x14003371d
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_free]
mov rbp, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x60]
lea r9, [rsp + 0x90]
mov r8, r15
mov rdx, r14
mov rcx, r12
call fcn.140032f70
movsxd rax, dword [rsp + 0xb0]
lea r11, str._unknown_
cmp eax, 8
ja case.default.0x140033767
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x33830]
add rcx, rdx
jmp rcx
lea r11, str._nosymbols_
jmp case.default.0x140033767
lea r11, str.COFF
jmp case.default.0x140033767
lea r11, [0x14011e248]
jmp case.default.0x140033767
lea r11, [0x14011e244]
jmp case.default.0x140033767
lea r11, str._exported_
jmp case.default.0x140033767
lea r11, str._deferred_
jmp case.default.0x140033767
lea r11, [0x14011e224]
jmp case.default.0x140033767
lea r11, [0x14011e220]
jmp case.default.0x140033767
lea r11, str.Virtual
mov rcx, qword [r12]
mov r8, qword [rsp + 0x80]
mov qword [rsp + 0x40], rbx
mov rax, qword [rcx]
lea rdx, [rsp + 0x1d4]
mov r9, r15
mov qword [rsp + 0x38], rdx
mov edx, dword [rsp + 0x368]
mov qword [rsp + 0x30], r11
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], edx
mov rdx, rsi
call qword [rax + 0x10]
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_free]
mov rcx, rbp
call qword [sym.imp.MSVCR100.dll_free]
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.1400d6f80
add rsp, 0x2f8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14003ccf0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
xor r9d, r9d
mov rsi, rdx
mov r12d, r8d
mov rbp, rcx
lea edx, [r9 + 1]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdi, rax
mov qword [rsi + 8], rax
test rax, rax
jne 0x14003cd61
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
lea edx, [rdi + 1]
mov rcx, rsi
mov ebx, eax
call qword [r8]
mov dword [rsp + 0x30], ebx
call fcn.1400cb6b0
mov qword [rsp + 0x38], rax
test ebx, ebx
je 0x14003cd61
lea rdx, str.thread.entry_event
lea rcx, [rsp + 0x30]
call fcn.140009620
int3
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x10], rax
mov qword [rsi + 0x10], rax
cmp qword [rbp + 0x10], 0
jne 0x14003cdbc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
mov dword [rsp + 0x30], ebx
call fcn.1400cb6b0
mov qword [rsp + 0x38], rax
test ebx, ebx
je 0x14003cdbc
lea rdx, str.thread.exit_event
lea rcx, [rsp + 0x30]
call fcn.140009620
int3
xor ecx, ecx
lea rax, [rsp + 0x68]
lea r8, [0x140038250]
mov qword [rsp + 0x28], rax
mov r9, rsi
mov edx, r12d
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x68], ecx
call qword [sym.imp.MSVCR100.dll__beginthreadex]
mov qword [rbp + 8], rax
test rax, rax
jne 0x14003ce43
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
test rdi, rdi
je 0x14003ce10
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x14003ce1f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x30], ebx
call fcn.1400cb6b0
mov qword [rsp + 0x38], rax
test ebx, ebx
je 0x14003ce43
lea rdx, str.thread
lea rcx, [rsp + 0x30]
call fcn.140009620
int3
test rdi, rdi
je 0x14003ce5d
or edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret

Function at 0x14003cf80
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 0x10]
xor r8d, r8d
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 8]
lea rdx, [rsp + 0x20]
lea ecx, [r8 + 2]
or r9d, 0xffffffff
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r11d, r11d
lock xadd dword [0x1401cfcf4], r11d
test r11d, r11d
je 0x14003cfde
mov rcx, qword [rbx + 8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
add rsp, 0x30
pop rbx
ret
mov rdx, qword [rbx + 8]
lea rcx, [fcn.14000cff0]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add rsp, 0x30
pop rbx
ret