joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140147530
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov ebx, ecx
mov rax, qword [0x14027c038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov eax, dword [0x140294f90]
mov ecx, dword [0x14028c168]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14014771c
mov rsi, qword [0x140294f88]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140147762
movzx ebx, bl
dec ebx
or ebx, 1
cmp byte [0x140294f40], 0
mov eax, 8
mov ecx, 1
cmove ecx, eax
xor ebp, ebp
add ebx, dword [0x140294f44]
mov dword [0x140294f44], ebx
cmovne ebp, ecx
mov eax, dword [0x140294f48]
cmp ebp, eax
je 0x1401476fb
test eax, eax
je 0x14014768c
mov rax, qword [0x14028b6d0]
lea rcx, [0x140147810]
lea rdi, [rsp + 0x28]
cmp rax, rcx
jne 0x140147780
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rdi]
movabs rax, 0x8637bd05af7
cmp rcx, rax
jge 0x1401477a9
imul rax, rcx, 0xf4240
cqo
idiv qword [0x140294fa8]
mov qword [rsp + 0x28], rax
mov rcx, qword [0x140294f98]
xor edx, edx
cmp rax, rcx
setns dl
movabs r8, 0x7fffffffffffffff
add r8, rdx
sub rax, rcx
cmovo rax, r8
movabs rdx, 0x8000000000000001
lea r8, [rax + rdx]
mov rcx, qword [0x140294f50]
cmp r8, 2
jb 0x140147791
lea rdx, [rcx + rax]
sar rdx, 0x3f
btc rdx, 0x3f
add rcx, rax
cmovo rcx, rdx
mov rax, rcx
mov qword [0x140294f50], rax
mov ecx, dword [0x140294f48]
call qword [sym.imp.WINMM.dll_timeEndPeriod]
mov dword [0x140294f48], ebp
test ebx, ebx
je 0x1401476fb
mov rax, qword [0x14028b6d0]
lea rcx, [0x140147810]
lea rdi, [rsp + 0x28]
cmp rax, rcx
jne 0x14014776f
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rdi]
movabs rax, 0x8637bd05af7
cmp rcx, rax
jge 0x1401477da
imul rax, rcx, 0xf4240
cqo
idiv qword [0x140294fa8]
mov qword [0x140294f98], rax
mov ecx, dword [0x140294f48]
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140190b30
mov al, 1
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x140294f90]
call fcn.14018f790
cmp dword [0x140294f90], 0xffffffff
jne 0x14014756e
mov ecx, 8
call fcn.14018f638
mov rsi, rax
mov rcx, rax
call fcn.140147e60
mov qword [0x140294f88], rsi
lea rcx, [0x140294f90]
call fcn.14018f828
jmp 0x14014756e
mov rcx, rsi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x140147586
mov rcx, rdi
call qword [0x1402a8008]
mov rax, qword [rdi]
jmp 0x1401476e8
mov rcx, rdi
call qword [0x1402a8008]
mov rax, qword [rdi]
jmp 0x140147620
cmp rcx, rax
je 0x140147679
add rcx, rdx
cmp rcx, 1
ja 0x140147679
jmp 0x14014780b
mov r8, qword [0x140294fa8]
mov rax, rcx
cqo
idiv r8
imul r9, rax, 0xf4240
imul rax, r8
sub rcx, rax
imul rax, rcx, 0xf4240
cqo
idiv r8
add rax, r9
jmp 0x14014761b
mov r8, qword [0x140294fa8]
mov rax, rcx
cqo
idiv r8
imul r9, rax, 0xf4240
imul rax, r8
sub rcx, rax
imul rax, rcx, 0xf4240
cqo
idiv r8
add rax, r9
jmp 0x1401476e8
int3
Function at 0x1401478b0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x50
movapd xmmword [rsp + 0x40], xmm6
mov rsi, rcx
mov rax, qword [0x14027c038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.140147c00
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x140294f60]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x14014790e
jnp 0x140147974
ucomisd xmm0, xmm6
jne 0x140147916
jnp 0x140147970
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x140250b50]
subpd xmm1, xmmword [0x140250b60]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x140256f78]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140190b30
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x140147948
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov edi, eax
call rbx
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x140294f70]
mov ecx, dword [0x14028c168]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140147a89
mov eax, dword [0x140294f80]
mov ecx, dword [0x14028c168]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140147ac3
rdtsc
mov rbx, rax
mov r14, rdx
xor r12d, r12d
lea r15, [rsp + 0x30]
mov qword [r15], r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r13, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [r15], r12
lea rdi, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub r13, qword [0x140294f78]
cvtsi2sd xmm1, r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x140256f70]
ucomisd xmm2, xmm1
ja 0x14014790e
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x140294f68]
movq xmm0, rbx
punpckldq xmm0, xmmword [0x140250b50]
subpd xmm0, xmmword [0x140250b60]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x140294f60], xmm0
jmp 0x14014790e
lea rcx, [0x140294f70]
call fcn.14018f790
cmp dword [0x140294f70], 0xffffffff
jne 0x1401479bd
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x140294f68], rdx
lea rcx, [0x140294f70]
call fcn.14018f828
jmp 0x1401479bd
lea rcx, [0x140294f80]
call fcn.14018f790
cmp dword [0x140294f80], 0xffffffff
jne 0x1401479e2
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x140294f78], rax
lea rcx, [0x140294f80]
call fcn.14018f828
jmp 0x1401479e2
Function at 0x140147c20
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor r8d, r8d
test edx, edx
sete r8b
xor ecx, ecx
mov edx, r8d
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x140147cba
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140147ca4
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140147c81
mov qword [rsi], rdi
call fcn.1401593f0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 0
inc rax
cmp rax, 1
jbe 0x140147cbe
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1401593f0
mov rcx, qword [rsi]
call fcn.140146f60
mov qword [rsi], 0
jmp 0x140147c6f
mov byte [rsi + 8], 0
int3
Function at 0x14015c680
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.14014c160
mov qword [rsi], 0
test rax, rax
je 0x14015c6d3
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14015c707
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14015c6cb
mov qword [rsi], rbx
call fcn.1401593f0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
lea rdx, [rdi + 8]
call fcn.140159d10
lea rcx, [rsi + 0x20]
call fcn.140165650
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x24], eax
mov al, byte [rdi + 0x28]
mov byte [rsi + 0x28], al
mov al, byte [rdi + 0x29]
mov byte [rsi + 0x29], al
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
call fcn.1401593f0
mov rcx, qword [rsi]
call fcn.140146f60
mov qword [rsi], 0
jmp 0x14015c6b9
Function at 0x140163540
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x14027c038]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r9, 0x30
ja 0x140163619
mov rsi, rcx
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmm2, xmmword [rdx + 0x20]
movaps xmmword [rsp + 0x40], xmm2
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
test r9, r9
jne 0x14016361d
xor eax, eax
lea rcx, [0x14025ec60]
nop
movzx edx, byte [rax + rcx]
xor byte [rsp + rax + 0x20], dl
inc rax
cmp rax, 0x30
jne 0x140163590
lea rdi, [rsi + 0xf8]
mov ecx, 1
call fcn.140162b80
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x140163635
call fcn.140090c60
lea rax, [0x14008f760]
test rdi, rdi
je 0x1401635e0
lea rcx, [0x14008ea00]
mov qword [rdi], rcx
mov qword [rsi + 0x100], rax
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi + 0x108], xmm0
mov qword [rsi + 0x118], 1
mov esi, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140190b30
mov eax, esi
add rsp, 0x58
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x140163603
xor eax, eax
mov cl, byte [r8 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r9, rax
je 0x140163585
jmp 0x14016361f
bt eax, 9
jae 0x140163655
call fcn.140091d50
lea rax, [0x140092220]
test rdi, rdi
je 0x1401635e0
lea rcx, [0x140091f20]
jmp 0x1401635dd
call fcn.1401fd2f0
lea rax, [0x1401fdaf0]
test rdi, rdi
je 0x1401635e0
lea rcx, [0x1401fd1d0]
jmp 0x1401635dd

Function at 0x140163850
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14027c038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1402955d0]
mov ecx, dword [0x14028c168]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401638b0
mov rsi, qword [0x1402955c8]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140190b30
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1402955d0]
call fcn.14018f790
cmp dword [0x1402955d0], 0xffffffff
jne 0x14016388c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140192c80
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.14018f638
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140295618]
mov ecx, dword [0x14028c168]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140163970
lea r8, [0x1402955e8]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.1400efa40
mov qword [0x1402955c8], rsi
lea rcx, [0x1402955d0]
call fcn.14018f828
jmp 0x14016388c
lea rcx, [0x140295618]
call fcn.14018f790
cmp dword [0x140295618], 0xffffffff
jne 0x140163941
xorps xmm0, xmm0
movups xmmword [0x140295608], xmm0
movups xmmword [0x1402955f8], xmm0
movups xmmword [0x1402955e8], xmm0
lea rcx, [0x1402955e8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140295618]
call fcn.14018f828
jmp 0x140163941
Function at 0x14016af50
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x14028be4c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14016af84
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x14016af84
mov rax, qword [rax + rcx]
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x14016af7e

Function at 0x140170460
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x14017048b
xor ecx, ecx
lea r9, [0x14025f960]
movzx r10d, al
movzx r11d, byte [rdx + rcx]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
inc rcx
cmp r8, rcx
jne 0x140170470
ret
Function at 0x1401740e0
Capabilities:
Access peb ldr_data

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x14027c038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov byte [rcx], 0
mov eax, dword [0x14028c168]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x1a8]
mov qword [rsi + 8], rcx
mov rcx, qword [rax + 0x1a8]
mov qword [rax + 0x1a8], rsi
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
mov qword [rsi + 0x38], 0
mov dword [rsi + 0x40], 0
mov byte [rsi + 0x50], 0
xorps xmm0, xmm0
movups xmmword [rsi + 0x20], xmm0
mov qword [rsi + 0x58], r8
mov qword [rsi + 0x60], r9
test byte [0x14028a8d0], 9
jne 0x140174175
mov byte [rsi + 0x30], 0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140190b30
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov byte [rsi + 0x30], 1
mov rax, qword [rdx]
mov rax, qword [rax + 8]
lea rdi, [rsp + 0x28]
mov rcx, rdx
mov rdx, rdi
call qword [0x1402a8008]
mov rax, qword [rdi]
mov qword [rsi + 0x20], rax
jmp 0x14017415e

Function at 0x140175df0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x14027c038]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x140109060]
mov qword [rsp + 0x20], rax
lea rcx, [0x140297838]
lea rdx, [0x140108f00]
lea r8, [rsp + 0x20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140175e84
cmp dword [0x140297840], 0
jne 0x140175e80
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x140297844]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x140175e80
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140190b30
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x140175e68
call fcn.1401a8a50
int3
Function at 0x140189ef0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov edi, edx
mov rsi, rcx
mov rax, qword [0x14027c038]
xor rax, rsp
mov qword [rsp + 0x50], rax
test edx, edx
jne 0x140189fd1
movabs rax, 0xfffffffc00000000
and rax, rsi
cmp rax, qword [0x14027cdc8]
jne 0x140189f33
mov rcx, rsi
call fcn.140133350
mov ecx, 0x30
call fcn.14018f638
mov rdi, rax
lea rdx, [0x14021b030]
lea r8, [0x14016a910]
mov rcx, rax
call fcn.140159bc0
lea rax, [fcn.140189ef0]
mov qword [rdi + 0x20], rax
mov qword [rdi + 0x28], rsi
mov qword [rsp + 0x28], rdi
mov rax, qword [rsi + 0x98]
mov edi, dword [rax + 0x40]
mov r14, qword [rax + 0x30]
cmp byte [rax + 0x48], 0
je 0x14018a0c2
mov rdx, qword [r14 + 0x10]
mov rcx, qword [rsi + 8]
mov r8d, edi
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp edi, 0xffffffff
je 0x14018a050
lea rcx, [rsi + 0xc8]
mov r9, qword [r14 + 0x10]
mov edx, 0x4a
mov r8d, edi
call fcn.140160460
movsxd rcx, edi
call fcn.140189d50
lea rcx, [rsp + 0x28]
call fcn.140159c70
mov rax, qword [rsi + 0x98]
mov rcx, qword [rax + 0x30]
mov qword [rax + 0x30], 0
test rcx, rcx
je 0x140189ff3
lock dec dword [rcx + 8]
je 0x14018a0e6
mov rax, qword [rsi + 0x98]
mov dword [rax + 0x40], 0
mov rcx, qword [rsi + 0xa0]
test rcx, rcx
je 0x14018a134
lea rbx, [rsp + 0x30]
mov qword [rbx], rcx
mov qword [rsi + 0xa0], 0
mov rax, qword [rcx + 8]
mov edx, edi
call qword [0x1402a8008]
mov rcx, rbx
call fcn.140159c70
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140190b30
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ebx, eax
cmp eax, 0x2733
jne 0x14018a0fc
mov byte [rsi + 0x91], 1
lea rcx, [rsi + 0xa8]
lea rdi, [rsp + 0x28]
mov rdx, rdi
call fcn.140159c00
mov rsi, qword [rsi + 0x98]
lea rbx, [rsi + 0x78]
lea rdx, str.WatchForRead
lea r8, str....._net_socket_tcp_socket_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0xcf
call fcn.1401593d0
mov rdx, qword [rsi + 8]
add rsi, 0x58
mov rcx, rbx
mov r8, rsi
mov r9, r14
call fcn.140147050
mov rcx, rdi
jmp 0x14018a033
mov rdx, qword [rax + 8]
mov rcx, qword [rsi + 8]
mov r8d, 0x21
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
mov rax, qword [rsi + 0x98]
mov byte [rax + 0x48], 1
jmp 0x140189f82
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [0x1402a8008]
jmp 0x140189ff3
mov ecx, ebx
call fcn.14011ead0
mov edi, eax
lea rcx, [rsi + 0xc8]
mov edx, 0x4c
mov r8d, eax
mov r9d, ebx
call fcn.140226b20
lea rcx, [rsp + 0x28]
call fcn.140159c70
cmp edi, 0xffffffff
jne 0x140189fd1
jmp 0x14018a038
int3

Function at 0x14018fea8
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1401903c8
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1401903c8
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x1401903c8
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1401903bc
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1401903da
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1401903aa
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1401903ca

Function at 0x1401a3138
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1401a316f
call fcn.1401a61bc
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1401a8af8
xor eax, eax
jmp 0x1401a31fd
mov rdx, r9
mov rcx, r8
call fcn.1401a3220
mov rbx, rax
test rax, rax
je 0x1401a31fa
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1401a3290]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1401a31e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401a61fc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1401a31ce
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1401a31dd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1401373f0
jmp 0x1401a31fa
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1401a31f7
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1401a6520
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x14027c038]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x140241478]
mov rbp, rcx
call fcn.1401bb4c4
xor edi, edi
test rax, rax
je 0x1401a6606
mov ebx, edi
call fcn.1401a61bc
mov r14d, dword [rax]
call fcn.1401a61bc
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1401ac4d0
mov rsi, rax
test rax, rax
je 0x1401a6597
call fcn.1401a61bc
mov dword [rax], r14d
jmp 0x1401a65c1
call fcn.1401a61bc
cmp dword [rax], 0x22
jne 0x1401a65fe
call fcn.1401a61bc
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1401ac4d0
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1401a65fe
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1401a65c5
cmp rax, 3
je 0x1401a65e0
mov rcx, rsi
call fcn.1401a647c
test al, al
je 0x1401a65f1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1401a65f1
mov dil, 1
mov rcx, rbx
call fcn.1401373f0
mov al, dil
jmp 0x1401a6608
mov rcx, rbx
call fcn.1401373f0
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140190b30
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1401b2fe0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401b3008
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401b3008
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1401bcc88
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.1401b6b84
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 0x1401bcd29
cmp ebx, dword [rsp + 0x30]
je 0x1401bcd22
test esi, esi
je 0x1401bcd22
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1401bccfd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1401bcd0a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1401bcce7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1401bcd0e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1401bcd2b
mov eax, 1
jmp 0x1401bcd2b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401be098
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 0x1401be0c8
xor eax, eax
jmp 0x1401be18b
mov rbp, rbx
cmp word [rax], si
je 0x1401be0ed
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1401be0d4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1401be0d0
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.1401bdfb8
movsxd r14, eax
test eax, eax
jne 0x1401be12b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1401be0c1
mov rcx, r14
call fcn.1400bbbf0
mov rdi, rax
test rax, rax
jne 0x1401be144
xor ecx, ecx
call fcn.1401373f0
jmp 0x1401be120
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.1401bdfb8
test eax, eax
jne 0x1401be175
mov rcx, rdi
call fcn.1401373f0
jmp 0x1401be17f
xor ecx, ecx
call fcn.1401373f0
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 0x1401be1a8
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 0x1401be22f
mov rsi, rbx
cmp word [rax], bp
je 0x1401be1ee
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401be1d8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401be1d4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400bbbf0
mov rdi, rax
test rax, rax
je 0x1401be21c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401925d0
mov rbp, rdi
xor ecx, ecx
call fcn.1401373f0
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