joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015340
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp dword [0x1401bd6b0], 0xffffffff
jne 0x14001536f
call fcn.140014e10
mov ecx, dword [0x1401bd6b0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x1400152f0]
call fcn.14005e320
jmp 0x1400153a0
mov ecx, dword [0x1401bd6b0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x1400153a0
call fcn.140015970
mov ecx, dword [0x1401bd6b0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rax
lea rcx, [0x1400152f0]
call fcn.14005e320
add rsp, 0x28
ret

Function at 0x1400153e0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov ecx, dword [0x1401bd6b0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x28], rax
cmp dword [rsp + 0x58], 0xffffffff
jne 0x140015410
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x58], eax
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x10]
lea rax, [rcx + rax*2]
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 8]
sub rcx, 4
cmp rax, rcx
jl 0x140015480
mov eax, dword [rsp + 0x20]
add eax, 0x4000
cdqe
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
add rax, 0xa
mov r9, rax
mov rax, qword [rsp + 0x28]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x1401c0fb0]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
movsxd rax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
add rax, qword [rcx]
mov qword [rsp + 0x30], rax
movsxd rax, dword [rsp + 0x58]
movsxd rcx, dword [rsp + 0x50]
lea rax, [rax + rcx*2]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x1400154c0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x1401bd6b0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x40]
shl eax, 1
cdqe
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x10]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x20]
mov qword [rcx + 0x10], rax
add rsp, 0x38
ret

Function at 0x140015500
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov ecx, dword [0x1401bd6b0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
cmp qword [rsp + 0x40], rax
jb 0x14001555b
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x20]
add rax, qword [rcx + 0x10]
cmp qword [rsp + 0x40], rax
ja 0x14001555b
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
inc rax
jmp 0x14001555d
xor eax, eax
add rsp, 0x38
ret
Function at 0x140015570
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [0x1401bd6b0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x20], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx]
lea rax, [rcx + rax - 1]
add rsp, 0x38
ret

Function at 0x140015970
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x38
mov r8d, 0x18
xor edx, edx
mov rcx, qword [0x1401c0fb0]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x20], rax
mov r8d, 0x10
xor edx, edx
mov rcx, qword [0x1401c0fb0]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rsp + 0x20]
mov qword [rcx], rax
mov rax, qword [rsp + 0x20]
mov qword [rax + 8], 0x10
mov rax, qword [rsp + 0x20]
mov qword [rax + 0x10], 0
mov rdx, qword [rsp + 0x20]
mov ecx, dword [0x1401bd6b0]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x38
ret

Function at 0x1400339d0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1c8
cmp dword [0x1401c0a78], 0
jne 0x140033a75
mov rax, qword [sym.imp.msvcrt.dll_malloc]
mov dword [0x1401c0a78], 1
mov qword [sub.msvcrt.dll_malloc], rax
mov rax, qword [sym.imp.msvcrt.dll_free]
mov qword [fcn.14000409c], rax
mov rax, qword [sym.imp.msvcrt.dll_realloc]
mov qword [0x1401bd6c8], rax
lea rax, case.0x14003c387.0
mov qword [case.0x14003c387.11], rax
mov rax, qword [sym.imp.msvcrt.dll_calloc]
mov qword [case.0x14003c387.1], rax
call fcn.14003d9b0
test eax, eax
je 0x140033aa3
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x140033aa3
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x140033a9d
shr ax, 8
cmp al, 2
jne 0x140033a9d
call fcn.14003e070
test eax, eax
jne 0x140033aa3
mov dword [0x1401c0a7c], 3
lea rcx, [rsp + 0x1d0]
call fcn.1400357e0
mov rcx, qword [rsp + 0x1d0]
xor edx, edx
test eax, eax
cmovne rcx, rdx
mov rax, rcx
add rsp, 0x1c8
ret
call qword [sym.imp.WSOCK32.DLL_WSACleanup]
xor eax, eax
add rsp, 0x1c8
ret
Function at 0x140033e20
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1c0
mov eax, dword [0x1401c0a78]
mov ebx, ecx
mov edx, eax
inc eax
mov dword [0x1401c0a78], eax
test edx, edx
jne 0x140033ee7
mov rax, qword [sym.imp.msvcrt.dll_malloc]
mov qword [sub.msvcrt.dll_malloc], rax
mov rax, qword [sym.imp.msvcrt.dll_free]
mov qword [fcn.14000409c], rax
mov rax, qword [sym.imp.msvcrt.dll_realloc]
mov qword [0x1401bd6c8], rax
lea rax, case.0x14003c387.0
mov qword [case.0x14003c387.11], rax
mov rax, qword [sym.imp.msvcrt.dll_calloc]
mov qword [case.0x14003c387.1], rax
test cl, 1
je 0x140033e97
call fcn.14003d9b0
test eax, eax
je 0x140033ef8
test bl, 2
je 0x140033eca
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WSOCK32.DLL_WSAStartup]
test eax, eax
jne 0x140033ef8
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x140033ef2
shr ax, 8
cmp al, 2
jne 0x140033ef2
call fcn.14003e070
test eax, eax
jne 0x140033ef8
mov eax, dword [0x1401c0adc]
test bl, 4
mov ecx, 1
cmovne eax, ecx
mov dword [0x1401c0a7c], ebx
mov dword [0x1401c0adc], eax
xor eax, eax
add rsp, 0x1c0
pop rbx
ret
call qword [sym.imp.WSOCK32.DLL_WSACleanup]
mov eax, 2
add rsp, 0x1c0
pop rbx
ret

Function at 0x140038c50
Capabilities:
Write file on windows

Disassembly:
mov rdx, qword [r8 + 0x10]
mov r9, rcx
or rax, 0xffffffffffffffff
mov qword [r8 + 0x18], rdx
nop
inc rax
cmp byte [rdx + rax], 0
jne 0x140038c60
test rax, rax
je 0x140038c7a
cmp byte [rdx + rax - 1], 0x2e
jne 0x140038c7a
mov byte [rdx + rax - 1], 0
mov rcx, qword [r8 + 0x10]
movzx eax, byte [rcx]
test al, al
je 0x140038ca4
lea rcx, [rcx + 1]
and al, 0x80
jne 0x140038c95
movzx eax, byte [rcx]
test al, al
jne 0x140038c85
ret
lea rdx, str.IDN_support_not_present__cant_parse_Unicode_domains_n
mov rcx, r9
jmp fcn.14003e630
ret
Function at 0x14003ed90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r10, qword [rcx + 0x258]
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test r10, r10
je 0x14003edd3
mov rax, qword [rcx + 0x1a8]
mov qword [rsp + 0x20], rax
call r10
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
ja 0x14003ee18
mov r9, qword [rbx + 0x1a0]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x140072fc8]
lea r8d, [rdx - 1]
add rcx, rax
call qword [sym.imp.msvcrt.dll_fwrite]
mov r9, qword [rbx + 0x1a0]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_fwrite]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x140041dd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0x798]
mov rsi, rdx
mov rdi, rcx
test rbx, rbx
je 0x140041e3d
mov rax, qword [rcx + 0x80]
test rax, rax
jne 0x140041e03
cmp qword [rcx + 0x78], rax
je 0x140041e3d
mov qword [rsp + 0x20], rbx
mov byte [rsp + 0x28], 0
test rax, rax
jne 0x140041e16
mov rax, qword [rcx + 0x78]
mov rcx, qword [rax + 0x60]
lea r8, [0x140042d50]
lea rdx, [rsp + 0x20]
call fcn.14004ac50
cmp byte [rsp + 0x28], 0
jne 0x140041e51
mov qword [rdi + 0x798], 0
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rsi, rsi
je 0x140041e59
mov qword [rsi], rbx
cmp byte [rbx + 0x1f0], 0
mov rdi, qword [rbx + 0x1a8]
je 0x140041e77
mov rcx, rbx
call fcn.14003d340
test eax, eax
jne 0x140041e93
jmp 0x140041e3d
mov r9d, 2
lea rdx, [rsp + 0x40]
mov rcx, rdi
lea r8d, [r9 - 1]
call qword [sym.imp.WSOCK32.DLL_recv]
test eax, eax
je 0x140041e3d
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x30
pop rdi
ret

Function at 0x140042400
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0xd0
mov dword [rax + 0x18], 0x4020
mov dword [rax + 0x10], 0
mov dword [rax + 0x20], 4
mov eax, dword [0x1401c0aa0]
mov rbx, rcx
test eax, eax
jne 0x140042495
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x9c
call sub.msvcrt.dll_memset
mov r8b, 3
mov edx, 2
xor ecx, ecx
mov dword [rsp + 0x30], 0x9c
mov dword [rsp + 0x34], 6
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea rcx, [rsp + 0x30]
mov edx, 2
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x140042489
mov dword [0x1401c0aa0], 2
add rsp, 0xd0
pop rbx
ret
mov dword [0x1401c0aa0], 1
jmp 0x14004249a
cmp eax, 2
je 0x1400424fb
lea rax, [rsp + 0xf8]
lea r9, [rsp + 0xe8]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WSOCK32.DLL_getsockopt]
test eax, eax
jne 0x1400424d7
mov eax, dword [rsp + 0xf0]
cmp dword [rsp + 0xe8], eax
jg 0x1400424fb
lea r9, [rsp + 0xf0]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov dword [rsp + 0x20], 4
call qword [sym.imp.WSOCK32.DLL_setsockopt]
add rsp, 0xd0
pop rbx
ret
Function at 0x14005e320
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x1401c0b30], 0
mov r14, rdx
mov r15, rcx
lea rbx, [0x1401c0b40]
jne 0x14005e36d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x1401c0b68], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x1401c0b30], 1
mov ecx, dword [0x1401c0b68]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x14005e442
mov rcx, qword [0x1401bfa00]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x14005e46d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1401c0b38]
test rax, rax
je 0x14005e3bd
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x1401c0b38], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea r9, [rbp + 0x20]
mov r8, rdi
mov rcx, rax
mov rdx, rbx
mov dword [rsp + 0x20], 0x100000
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
lea r8, [0x14005e488]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x1401c0b68]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x1401bfa00]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x14005e46d
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x100002f94
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
xor edx, edx
xor ecx, ecx
call fcn.100002cd4
mov edx, 1
xor ecx, ecx
call fcn.100002cd4
mov edx, 2
xor ecx, ecx
call fcn.100002cd4
mov edx, 3
xor ecx, ecx
call fcn.100002cd4
mov edx, 4
xor ecx, ecx
call fcn.100002cd4
mov edx, 5
xor ecx, ecx
call fcn.100002cd4
mov edx, 0x28
xor ecx, ecx
call fcn.100002cd4
mov edx, 6
xor ecx, ecx
call fcn.100002cd4
mov edx, 7
xor ecx, ecx
call fcn.100002cd4
mov edx, 8
xor ecx, ecx
call fcn.100002cd4
mov edx, 9
xor ecx, ecx
call fcn.100002cd4
mov edx, 0xa
xor ecx, ecx
call fcn.100002cd4
mov edx, 0xb
xor ecx, ecx
call fcn.100002cd4
mov edx, 0xc
xor ecx, ecx
call fcn.100002cd4
mov edx, 0xd
xor ecx, ecx
call fcn.100002cd4
mov edx, 0xe
xor ecx, ecx
call fcn.100002cd4
mov edx, 0xf
xor ecx, ecx
call fcn.100002cd4
mov edx, 0x10
xor ecx, ecx
call fcn.100002cd4
mov edx, 0x11
xor ecx, ecx
call fcn.100002cd4
mov edx, 0x12
xor ecx, ecx
call fcn.100002cd4
mov edx, 0x13
xor ecx, ecx
call fcn.100002cd4
mov edx, 0x14
xor ecx, ecx
call fcn.100002cd4
mov edx, 0x15
xor ecx, ecx
call fcn.100002cd4
mov edx, 0x16
xor ecx, ecx
call fcn.100002cd4
mov edx, 0x17
xor ecx, ecx
call fcn.100002cd4
mov edx, 0x18
xor ecx, ecx
call fcn.100002cd4
mov edx, 0x29
xor ecx, ecx
call fcn.100002cd4
mov edx, 0x2a
xor ecx, ecx
call fcn.100002cd4
mov edx, 0x19
xor ecx, ecx
call fcn.100002cd4
mov edx, 0x1a
xor ecx, ecx
add rsp, 0x28
jmp fcn.100002cd4
Function at 0x100003108
Capabilities:
Get file version info

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x480
mov rax, qword [0x100006170]
xor rax, rsp
mov qword [rsp + 0x470], rax
xor r12d, r12d
xor ecx, ecx
mov rbx, rdx
mov ebp, r12d
mov word [r11 - 0x30], r12w
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r13d, 0x104
lea rdx, [rsp + 0x260]
mov rcx, rax
mov r8d, r13d
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, r12d
jne 0x100003171
xor eax, eax
jmp 0x1000032b8
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x260]
call sub.VERSION.dll_GetFileVersionInfoSizeW
movsxd rsi, eax
cmp esi, 1
jl 0x10000316a
mov rcx, rsi
call fcn.100003824
mov rdi, rax
cmp rax, r12
je 0x1000032b6
lea rcx, [rsp + 0x260]
mov r9, rax
mov r8d, esi
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoW
mov ebp, eax
cmp eax, r12d
je 0x1000032ae
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
lea rdx, [0x1000015e8]
mov rcx, rdi
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r13d
call sub.VERSION.dll_VerQueryValueW
lea r13, [0x1000013c8]
mov esi, 0x208
cmp eax, r12d
je 0x10000323b
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], r13
lea r8, [0x100001620]
movsx ecx, word [rax + 2]
movsx r9d, word [rax]
mov rdx, rsi
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x50]
call fcn.100002bac
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
mov ebp, eax
cmp eax, r12d
jne 0x100003270
lea r8, [0x100001660]
lea rcx, [rsp + 0x50]
mov r9, r13
mov rdx, rsi
call fcn.100002bac
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
mov ebp, eax
cmp eax, r12d
je 0x1000032ae
mov rcx, qword [rsp + 0x38]
mov eax, 0x64
sub rcx, rbx
lea rdx, [rax - 1]
cmp rdx, r12
je 0x1000032a1
movzx r8d, word [rcx + rbx]
cmp r8w, r12w
je 0x1000032a1
mov word [rbx], r8w
add rbx, 2
mov rax, rdx
cmp rdx, r12
jne 0x10000327d
cmp rax, r12
jne 0x1000032aa
sub rbx, 2
mov word [rbx], r12w
mov rcx, rdi
call sub.msvcrt.dll_free
mov eax, ebp
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.100003bd0
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x1000033dc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x80
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov r13, r9
mov rax, r8
mov rsi, rdx
mov r12, rcx
mov rbx, qword [rsp + 0xf0]
mov dword [rbx], 1
and dword [rbx + 4], 0
and dword [rbx + 8], 0
and dword [rbx + 0xc], 0
and dword [rbx + 0x10], 0
and dword [rbx + 0x14], 0
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
jne 0x100003453
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 4], eax
jmp 0x1000035b3
mov r8, rax
mov rdx, qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, [rsp + 0x68]
call fcn.1000035f8
nop
cmp dword [rsp + 0xf8], 0
je 0x100003493
movzx r9d, word [rsp + 0x100]
lea r8, [0x1000016a0]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rsi, rax
jmp 0x1000034a9
lea r8, [0x1000016a0]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rsi, rsi
jne 0x1000034d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rbx + 4], eax
cmp byte [rsp + 0x68], sil
jne 0x1000034c9
mov rcx, qword [rsp + 0x78]
call qword [rsp + 0x70]
mov eax, edi
jmp 0x1000035b3
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x100003503
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rbx + 4], eax
cmp byte [rsp + 0x68], 0
jne 0x1000034fc
mov rcx, qword [rsp + 0x78]
call qword [rsp + 0x70]
mov eax, edi
jmp 0x1000035b3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
test rbp, rbp
jne 0x100003541
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rbx + 4], eax
cmp byte [rsp + 0x68], bpl
jne 0x10000353d
mov rcx, qword [rsp + 0x78]
call qword [rsp + 0x70]
mov eax, edi
jmp 0x1000035b3
mov r10, qword [r12]
mov qword [rsp + 0x50], rbx
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xd8]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov r9, r13
mov r8, rbp
mov rcx, r12
call qword [r10 + 0x20]
mov ebx, eax
cmp byte [rsp + 0x68], 0
jne 0x1000035b1
mov rcx, qword [rsp + 0x78]
call qword [rsp + 0x70]
mov eax, ebx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret

Function at 0x100003ba0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r11
push rdi
push r13
mov r11d, 0x60
mov rdi, qword gs:[r11]
push rdx
mov r11, rdi
add r11, 0x10
mov rdx, qword [r11]
add rdi, 0x18
mov r13, qword [rdi]
add r13, 0x10
mov rdi, qword [r13]
push r10
mov r13, rdi
invalid
invalid
Function at 0x100003ea8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100003ef5
cmp rcx, 0xffffffffffffffff
je 0x100003ef5
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x100003eed
cmp dword [rcx + 0x3c], edx
jl 0x100003eed
cmp dword [rcx + 0x3c], 0x10000000
jae 0x100003eed
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100003ef5
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14002934c
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.14001c944
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c944
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002949c
cmp rax, 0xffffffffffffffff
je 0x14002949c
xor edi, edi
test rbp, rbp
jle 0x140029447
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f258
mov rbx, rax
test rax, rax
jne 0x1400293d4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002943d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a278
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.14001d620
cmp eax, 0xffffffff
je 0x14002941d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400293e4
mov edx, r15d
mov ecx, r14d
call fcn.14001a278
jmp 0x14002943d
cmp byte [rsi + 0x38], dil
je 0x140029434
cmp dword [rsi + 0x34], 5
jne 0x140029434
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002943d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b00c
jmp 0x1400294b0
jns 0x1400294b0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c944
cmp rax, 0xffffffffffffffff
jne 0x140029468
cmp byte [rsi + 0x30], dil
je 0x1400294b0
mov edi, dword [rsi + 0x2c]
jmp 0x1400294b0
mov ecx, r14d
call fcn.140018730
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400294b0
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 0x1400294b0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400294a9
mov eax, dword [rsi + 0x2c]
jmp 0x1400294ae
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c944
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 0x1400014dc
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400014fa
movsxd rdx, dword [rcx + 0x3c]
xor eax, eax
add rdx, rcx
cmp dword [rdx], 0x4550
cmove rax, rdx
ret
xor eax, eax
ret

Function at 0x140001578
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, qword gs:[0x60]
mov rax, qword [rdi + 0x18]
add rax, 0x20
mov rbx, qword [rax]
jmp 0x1400015b7
mov rcx, qword [rbx + 0x50]
lea rdx, str.kernel32.dll
call fcn.140003608
test eax, eax
je 0x1400015c9
mov rax, qword [rdi + 0x18]
mov rbx, qword [rbx]
add rax, 0x20
cmp rbx, rax
jne 0x140001598
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x20]
jmp 0x1400015be