joyce8/EMBER2024-capa huggingface dataset:
Function at 0x8f6570
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x1b8
movaps xmmword [rsp + 0x180], xmm6
movaps xmmword [rsp + 0x190], xmm7
movaps xmmword [rsp + 0x1a0], xmm8
pxor xmm8, xmm8
lea rax, [rsp + 0x40]
mov qword [rsp + 0x208], rdx
mov rbp, rcx
mov rdx, r8
mov rsi, rax
mov rcx, rax
lea r8, [0x023f45e0]
mov qword [rsp + 0x38], rax
call fcn.008f8f30
mov rdx, rsi
mov rcx, rsi
lea r15, [rsp + 0xc0]
call fcn.008f9660
lea rax, [rsp + 0x140]
mov dword [rsp + 0x30], 0x11
lea rsi, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov ebx, dword [rsp + 0x30]
mov r13, qword [rsp + 0x208]
pcmpeqd xmm7, xmm7
cmp ebx, 0x11
setne byte [rsp + 0x2f]
test ebx, ebx
setne byte [rsp + 0x34]
xor r14d, r14d
mov eax, r14d
mov r14, r13
mov r13d, eax
mov r8d, ebx
xor edx, edx
xor r11d, r11d
mov eax, edx
cmp r8d, 0x1bd
ja 0x8f6657
mov eax, r8d
mov ecx, r8d
shr eax, 6
mov rax, qword [rsp + rax*8 + 0x40]
shr rax, cl
mov ecx, r11d
and eax, 1
shl rax, cl
or eax, edx
mov edx, eax
add r11d, 1
add r8d, 0x12
cmp r11d, 5
jne 0x8f662e
sar edx, 4
mov ecx, 0x18
mov rdi, r15
xor r11d, r11d
sub edx, 1
pxor xmm0, xmm0
lea r8, [rsp + 0x180]
xor eax, edx
and eax, 0xf
movd xmm4, eax
xor eax, eax
rep stosq qword [rdi], rax
pshufd xmm3, xmm4, 0
nop dword [rax]
movdqa xmm2, xmm3
lea rcx, [r14 + r11]
mov rdi, r15
mov rax, r15
pcmpeqd xmm2, xmm8
jmp 0x8f66b4
movdqa xmm0, xmmword [rax]
movdqa xmm1, xmmword [rcx]
add rax, 0x10
add rcx, 0x10
pand xmm1, xmm2
por xmm0, xmm1
movaps xmmword [rax - 0x10], xmm0
cmp r8, rax
jne 0x8f66b0
add r11, 0xc0
paddd xmm3, xmm7
movdqa xmm0, xmmword [rsp + 0xc0]
cmp r11, 0xc00
jne 0x8f6698
movd xmm5, edx
lea r12, [r15 + 0x40]
mov rax, r15
pshufd xmm6, xmm5, 0
jmp 0x8f6704
movdqa xmm0, xmmword [rax]
movdqa xmm1, xmmword [rax + 0x40]
add rax, 0x10
pxor xmm1, xmm0
pand xmm1, xmm6
pxor xmm0, xmm1
movaps xmmword [rax - 0x10], xmm0
movdqa xmm0, xmmword [rax + 0x30]
pxor xmm0, xmm1
movaps xmmword [rax + 0x30], xmm0
cmp r12, rax
jne 0x8f6700
mov r8, qword [rsp + 0x20]
lea rdx, [0x023f46a0]
mov rcx, rsi
call fcn.008fa700
mov rax, rsi
nop word cs:[rax + rax]
movdqa xmm0, xmmword [rdi + 0x80]
pxor xmm0, xmmword [rax]
add rdi, 0x10
add rax, 0x10
pand xmm0, xmm6
pxor xmm0, xmmword [rdi + 0x70]
movaps xmmword [rdi + 0x70], xmm0
cmp r12, rdi
jne 0x8f6750
lea edi, [r13 + 1]
test r13d, r13d
jne 0x8f67a3
cmp byte [rsp + 0x2f], 0
jne 0x8f67a3
mov rdx, r15
mov rcx, rbp
call fcn.008f1bd0
add r14, 0xc00
add ebx, 0x5a
mov r13d, edi
jmp 0x8f6626
xor r8d, r8d
cmp r13d, 4
mov rdx, r15
mov rcx, rbp
sete r8b
and r8d, dword [rsp + 0x34]
call fcn.008f2ad0
cmp edi, 5
jne 0x8f6791
sub dword [rsp + 0x30], 1
mov eax, dword [rsp + 0x30]
cmp eax, 0xffffffff
je 0x8f67e4
xor r8d, r8d
mov rdx, rbp
mov rcx, rbp
call fcn.008f2230
jmp 0x8f65fb
mov rcx, r15
mov edx, 0xc0
call fcn.008fac10
mov rcx, qword [rsp + 0x38]
mov edx, 0x38
call fcn.008fac10
nop
movaps xmm6, xmmword [rsp + 0x180]
movaps xmm7, xmmword [rsp + 0x190]
movaps xmm8, xmmword [rsp + 0x1a0]
add rsp, 0x1b8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x916e80
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov eax, r8d
movzx r8d, r8b
cmp al, 0x18
je 0x8e7530
cmp al, 0x20
je 0x8e7550
cmp al, 0x10
je 0x8e7540
jmp 0x916e80
mov r9d, 0x10c
mov word [rcx], r9w
jmp 0x916e80
mov r10d, 0xa
mov word [rcx], r10w
jmp 0x916e80
mov eax, 0x20e
mov word [rcx], ax
jmp 0x916e80
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
mov rax, rcx
mov r9, rdx
cmp r8b, 0x18
je 0x916ec0
cmp r8b, 0x20
je 0x916ff0
cmp r8b, 0x10
je 0x916fe0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov byte [rcx], 0xc
mov r14d, 0xd0
movzx edi, r8b
xor edx, edx
nop
movzx ecx, byte [r9 + rdx]
mov byte [rax + rdx + 8], cl
add rdx, 1
cmp edi, edx
jg 0x916ed0
movzx r9d, r8b
mov r13d, 1
lea r8, [rax + 8]
lea rcx, [rax + r9]
lea rbp, [0x023fc460]
lea r15, [0x023fc320]
cmp r9, r14
jb 0x916f90
jmp 0x916eac
movabs rax, 0xa0a0a0a0a0a0a0a1
movsxd r12, r13d
add r13d, 1
mul r12
shr rdx, 5
lea rax, [rdx + rdx*2]
mov rdx, rax
shl rdx, 4
add rax, rdx
sub r12, rax
movzx eax, sil
movzx esi, byte [rbp + r11]
movzx r11d, byte [rbp + r10]
movzx edx, byte [r15 + r12]
movzx r10d, byte [rbp + rbx]
movzx ebx, byte [rbp + rax]
xor ebx, edx
xor bl, byte [r8]
add r9, 4
add rcx, 4
add r8, 4
mov byte [rcx + 4], bl
movzx eax, byte [r8 - 3]
xor eax, esi
mov byte [rcx + 5], al
xor r11b, byte [r8 - 2]
mov byte [rcx + 6], r11b
xor r10b, byte [r8 - 1]
mov byte [rcx + 7], r10b
cmp r9, r14
jae 0x916eac
mov eax, r9d
movzx ebx, byte [rcx + 4]
movzx esi, byte [rcx + 5]
cdq
movzx r11d, byte [rcx + 6]
movzx r10d, byte [rcx + 7]
idiv edi
test edx, edx
je 0x916f10
cmp edx, 0x10
jne 0x916f5b
cmp edi, 0x20
jne 0x916f5b
movzx eax, sil
movzx ebx, byte [rbp + rbx]
movzx r11d, byte [rbp + r11]
movzx esi, byte [rbp + rax]
movzx r10d, byte [rbp + r10]
jmp 0x916f5b
mov byte [rcx], 0xa
mov r14d, 0xb0
jmp 0x916ec9
mov byte [rcx], 0xe
mov r14d, 0xf0
jmp 0x916ec9

Function at 0x917030
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbx
mov r11d, 3
mov r10d, 4
movabs rbx, 0xe100000000000000
mov r9, rcx
mov qword [rcx], 0
mov qword [rcx + 8], 0
mov rcx, qword [rdx + 8]
mov rdx, qword [rdx]
bswap rcx
bswap rdx
mov qword [r9 + 0x88], rcx
mov qword [r9 + 0x80], rdx
mov rax, rcx
movsxd r8, r10d
mov rsi, rcx
mov rcx, rdx
shl r8, 4
and eax, 1
shr rsi, 1
shl rcx, 0x3f
neg rax
shr rdx, 1
add r8, r9
and rax, rbx
or rcx, rsi
sar r10d, 1
xor rdx, rax
mov qword [r8 + 8], rcx
mov qword [r8], rdx
sub r11d, 1
jne 0x917076
mov esi, 3
mov ebx, 2
lea rdi, [r9 + 0x18]
movsxd rcx, ebx
lea r8d, [rbx - 2]
mov rdx, rdi
shl rcx, 4
shl r8, 4
add rcx, r9
mov r10, qword [rcx]
mov r11, qword [rcx + 8]
lea rax, [rcx + 0x10]
lea r8, [rcx + r8 + 0x20]
nop dword [rax]
mov qword [rax], r10
add rdx, 0x10
mov qword [rax + 8], r11
mov rcx, qword [rdx - 0x18]
xor qword [rax], rcx
mov rcx, qword [rdx - 0x10]
xor qword [rax + 8], rcx
add rax, 0x10
cmp rax, r8
jne 0x9170e8
add ebx, ebx
sub esi, 1
jne 0x9170c0
pop rbx
pop rsi
pop rdi
ret
Function at 0x17795d0
Capabilities:
Accept command line arguments

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
lea rdx, str.getUTF8Args_1
mov r13, rax
mov eax, dword [rsi]
lea ecx, [rax + 1]
movsxd rcx, ecx
shl rcx, 3
call fcn.0177b3b0
lea rdx, str.getUTF8Args_1
mov r12, rax
mov eax, dword [rsi]
lea ecx, [rax + 1]
movsxd rcx, ecx
shl rcx, 3
call fcn.0177b3b0
mov qword [0x024a6918], rax
mov rcx, rax
movsxd rax, dword [rsi]
test eax, eax
jle 0x1779660
xor ebx, ebx
nop dword [rax + rax]
mov rcx, qword [r13 + rbx*8]
call fcn.01779530
mov qword [r12 + rbx*8], rax
movsxd rax, dword [rsi]
add rbx, 1
cmp eax, ebx
jg 0x1779640
mov rcx, qword [0x024a6918]
lea r8, [rax*8 + 8]
mov rdx, r12
mov qword [r12 + rax*8], 0
call sub.msvcrt.dll_memcpy
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [0x024a66f0], r12
mov eax, dword [rsi]
mov dword [0x024a66f8], eax
mov rax, r12
add rsp, 0x28
pop rbx
pop rsi
pop r12
pop r13
ret
Function at 0x1796e10
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
mov rax, qword [0x024a78a0]
test rax, rax
je 0x1796e28
add rsp, 0x58
ret
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
mov qword [0x024a78a0], rax
add rsp, 0x58
ret

Function at 0x1796e50
Capabilities:
Get memory capacity

Disassembly:
push r12
sub rsp, 0x60
mov r12, qword [0x024a7898]
test r12, r12
je 0x1796e70
mov rax, r12
add rsp, 0x60
pop r12
ret
mov dword [rsp + 0x20], 0x40
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x1796e62
mov r12, qword [rsp + 0x28]
mov rax, r12
mov qword [0x024a7898], r12
add rsp, 0x60
pop r12
ret

Function at 0x1797470
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor edx, edx
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov eax, 1
test rcx, rcx
je 0x17974a0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x38
ret
Function at 0x1797540
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x179755b
mov dword [rbx], eax
add rsp, 0x20
pop rbx
ret
lea rcx, str.newThreadLocalKey:_out_of_keys
call fcn.0177a800
nop
nop dword [rax + rax]
invalid
stosd dword [rdi], eax
push qword [rcx + 8]
bswap esp
fiadd dword [rsi + 0x61]
or eax, 0x6cf360c6
invalid
invalid
and eax, 0xe5256753
xor dword [rax - 0x2a082bc2], edi
mov dh, 0xec
outsd dx, dword [rsi]
xchg ecx, eax
int 0x91
test al, 0xae
loopne TlsSetValue
sub dword [rsi], ebp
mov eax, 0xc864412
pop rbx
xchg byte [rbx + rbx*2], r9b
and ebp, edi
out dx, al
or dword [rbx - 0x69], 0xffffffcc
int3
invalid
enter UnlockFileEx, 0x2d
popfq
wait
mov ebp, 0x1b3c761b
sbb esi, dword [rsi + 0x3c]
invalid
je 0x20ad33d
cldemote byte [rsi]
xor byte [rbp + 0x5a9828d1], 0x46
test dword [rsi], ecx
ja 0x20ad370
movabs byte [0x17de1c186830d308], al
ficom word [rdi]
mov byte [rdi - 0x54], ch
leave
cmp byte [rbp - 0x26], 0x3f
movabs byte [0x11a77e46df5b19b6], al
fild word [rsi + 0x7e]
cmpsd dword [rsi], dword [rdi]
adc dword [rcx - 0x28], ecx
invalid
mov al, 0xa9
invalid
invalid
sub al, 0x8e
fild word [rsi + 0x7e]
cmpsd dword [rsi], dword [rdi]
adc dword [rcx - 0x28], ecx
invalid
ret 0xc9ee
jne VirtualProtect
hlt
leave
jne 0x20ad456
invalid
pop rbp
cmp eax, edi
invalid
insd dword [rdi], dx
pop rsp
invalid
retf 0x82fd
adc byte [rdx - 0x5545ca95], 0x47
cmpsd dword [rsi], dword [rdi]
invalid
lodsd eax, dword [rsi]
imul ebp, eax, 0xffffffd6
pop rdi
insb byte [edi], dx
ret 0xa924
sub dword [rdx + 2], r13d
sub edi, dword [rbp - 0x75d92f2b]
outsd dx, dword [rsi]
enter 0x1379, 0xfffffffffffffffa
invalid
invalid
loop WriteConsoleW
mov ebp, dword [rcx + 0x72]
ja 0x20ad42c
cmc
and byte [rcx + 0x61], dl
mov bl, byte [rbx - 0x62e82947]
popfq
popfq
sub eax, 0x67b0e938
adc dword [rbx], ebp
cmp al, 0xa2
sub al, 0xb5
mov ch, 0xc5
adc ebx, dword [rdx + 0xf]
mov ch, 0xc5
adc ebx, dword [rdx + 0xf]
xchg edx, eax
lodsb al, byte [rsi]
loop 0x20ad4d9
mov cl, 0x96
mov bh, 0x38
invalid
mov al, 0x8f
stc
xor ah, byte [rdx - 0x2ea71976]
mov ah, 0xc6
pop rcx
ror byte [rax + 0x19], 1
sahf
sub dword [rbp + rbx*4 - 0x46], esp
or edx, ebx
pop rsi
jmp 0x44e08ba6
mov edx, 0xe95eda09
invalid

Function at 0x1797580
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1797595
add rsp, 0x28
ret
lea rcx, str.setThreadLocalVar
call fcn.0177a8c0
mov ecx, 1
call fcn.0177ac60
nop
nop dword [rax]

Function at 0x1797680
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
mov eax, dword [0x024a78c4]
test eax, eax
je 0x1797698
add rsp, 0x58
ret
mov ecx, 0xffff
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorCount]
mov dword [0x024a78c4], eax
test eax, eax
jne 0x179768e
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
mov dword [0x024a78c4], eax
add rsp, 0x58
ret
Function at 0x1798310
Capabilities:
Create process memory minidump
Get common file path

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x4b8
lea r13, [rsp + 0x90]
mov r12, rcx
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
mov rdx, r13
mov ecx, 0x104
lea rbx, [rsp + 0x2a0]
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rbp
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call rdi
mov dword [rsp + 0x68], esi
mov r9, r13
mov rcx, rbx
mov dword [rsp + 0x60], eax
movzx eax, word [rsp + 0x7c]
lea r8, str._ls_ls_ls__04d_02d_02d__02d_02d_02d__ld__ld.dmp
mov edx, 0x104
mov dword [rsp + 0x58], eax
movzx eax, word [rsp + 0x7a]
mov dword [rsp + 0x50], eax
movzx eax, word [rsp + 0x78]
mov dword [rsp + 0x48], eax
movzx eax, word [rsp + 0x76]
mov dword [rsp + 0x40], eax
movzx eax, word [rsp + 0x72]
mov dword [rsp + 0x38], eax
movzx eax, word [rsp + 0x70]
mov dword [rsp + 0x30], eax
lea rax, [0x024619f0]
mov qword [rsp + 0x28], rax
lea rax, [0x024619f2]
mov qword [rsp + 0x20], rax
call fcn.017982e0
xor r9d, r9d
mov rcx, rbx
mov edx, 0xc0000000
mov r8d, 3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
call rbp
mov qword [rsp + 0x84], r12
mov dword [rsp + 0x80], eax
mov dword [rsp + 0x8c], 1
call rdi
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x3001
mov r8, rsi
mov edx, r12d
mov qword [rsp + 0x30], 0
mov rcx, rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call sub.dbghelp.dll_MiniDumpWriteDump
mov ecx, 2
call qword [fcn.017bb370]
mov r8, rbx
lea rdx, str.Crash_dump_created._Dump_written_to:_n_t_ls
mov rcx, rax
call fcn.017982b0
nop
add rsp, 0x4b8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x17c5be0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.017bb370
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.017bb370
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x17c5c50
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x024a8414]
mov r12, rcx
test ebx, ebx
jle 0x17c5d80
mov rax, qword [0x024a8418]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x17c5c9c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x17c5d23
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x17c5c80
mov rcx, r12
call fcn.017c6600
mov rsi, rax
test rax, rax
je 0x17c5da2
mov rax, qword [0x024a8418]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.017c6730
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x024a8418]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x17c5d87
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x17c5d1c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x17c5d30
add dword [0x024a8414], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x024a8418]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x17c5d1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.017c5be0
nop dword [rax]
xor ebx, ebx
jmp 0x17c5ca7
mov rax, qword [0x024a8418]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.017c5be0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.017c5be0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x17c6270
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x024a8480]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x024a8460]
test rbx, rbx
je 0x17c62c4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x17c62bb
test r12, r12
je 0x17c62bb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x17c62a0
lea rcx, [0x024a8480]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x17c6600
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x02471980]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x17c6620
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x17c6628
ret
cmp word [r8 + 0x18], 0x20b
jne 0x17c6620
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x17c6675
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x17c666c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x17c6620
add rax, 0x28
cmp rax, r9
jne 0x17c6658
xor eax, eax
ret

Function at 0x17c6680
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x02471980]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x17c66a0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x17c66a8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x17c66a0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x17c6730
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x02471980]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x17c6750
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x17c6758
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x17d8300
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x17d8412
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x17d83ea
add rax, 1
cmp rax, 0x6b
je 0x17d8407
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x17d83e0
cmp edx, 0x6a
je 0x17d8407
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x17d83fb
Function at 0x17d87c0
Capabilities:
Allocate thread local storage

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
lea rcx, [0x024a9030]
call fcn.017d8070
lea r13, [rax + 8]
mov r12, rax
mov rcx, r13
call fcn.017d7880
mov ebx, dword [0x024a9030]
test ebx, ebx
jne 0x17d8830
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x01b79198], eax
cmp eax, 0xffffffff
je 0x187a536
mov dword [0x024a9030], 1
mov rcx, r13
call fcn.017d7ba0
test r12, r12
je 0x17d8866
mov rcx, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
jmp fcn.017d8430
cmp ebx, 1
je 0x17d880d
mov ecx, 2
call qword [fcn.017bb370]
mov r9d, ebx
lea r8, [0x024a9030]
lea rdx, str._once__p_is__d_n
mov rcx, rax
call fcn.017d8040
mov rcx, r13
call fcn.017d7ba0
test r12, r12
jne 0x17d881a
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
call sub.msvcrt.dll_abort
nop

Function at 0x17d8870
Capabilities:
Set thread local storage value

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x48
call fcn.017d8530
cmp qword [0x024af050], 0
mov r12, rax
je 0x17d89a0
test rax, rax
je 0x17d89a0
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [r12 + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
lea rcx, [r12 + 0x68]
mov qword [r12 + 0x38], 0xffffffffffffffff
mov qword [r12 + 0x30], rax
call fcn.017d7ef0
cmp eax, 1
je 0x17d89b1
mov qword [r12 + 0x68], 0xffffffffffffffff
mov rsi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [r12 + 0xb8], 0
mov qword [r12 + 0x28], 0
call rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r13, rax
call rsi
mov dword [rsp + 0x30], 2
mov r8, rbx
mov rdx, r13
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [r12 + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je fcn.0187a53c
mov rcx, qword [r12 + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x01b79198]
mov rdx, r12
mov dword [r12 + 0xbc], 0
mov dword [r12 + 0xc0], eax
movzx eax, byte [r12 + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [r12 + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x17d89b7
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop r12
pop r13
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x48
pop rbx
pop rsi
pop r12
pop r13
ret
call fcn.017d8300
nop
jmp fcn.0187a53c

Function at 0x17d89c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
cmp dword [0x024a9030], 1
je 0x17d89d2
call fcn.017d87c0
mov ecx, dword [0x01b79198]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x17d89f0
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.017d8870
Function at 0x17d91f0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x17d9328
cmp eax, 1
je 0x17d9249
call fcn.017d8070
lea r13, [rax + 8]
mov r12, rax
mov rcx, r13
call fcn.017d7880
mov edi, dword [rbx]
test edi, edi
je 0x17d9260
cmp edi, 1
jne 0x17d9300
mov rcx, r13
call fcn.017d7ba0
test r12, r12
je 0x17d9249
mov rcx, r12
call fcn.017d8430
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
lea rax, [0x017d8500]
cmp dword [0x024a9030], 1
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
je 0x17d927f
call fcn.017d87c0
mov ecx, dword [0x01b79198]
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rdi
test rax, rax
je 0x17d9368
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
mfence
cmp dword [0x024a9030], 1
je 0x17d92b1
call fcn.017d87c0
mov ecx, dword [0x01b79198]
call rdi
test rax, rax
je 0x17d9350
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
mfence
call rsi
cmp dword [0x024a9030], 1
je 0x17d92de
call fcn.017d87c0
mov ecx, dword [0x01b79198]
call rdi
test rax, rax
je 0x17d9340
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x17d9234
mov ecx, 2
call qword [fcn.017bb370]
mov r9d, edi
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call fcn.017d8040
jmp 0x17d9234
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
call fcn.017d8870
test rax, rax
jne 0x17d92eb
jmp 0x187a555
call fcn.017d8870
test rax, rax
jne 0x17d92c2
jmp 0x187a56e
call fcn.017d8870
test rax, rax
jne 0x17d9297
jmp 0x187a564
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x17d9600
Capabilities:
Get thread local storage value

Disassembly:
push r14
push r13
push r12
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x024a9030], 1
mov r12d, eax
je 0x17d9625
call fcn.017d87c0
mov ecx, dword [0x01b79198]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x17d9680
lea r13, [rbx + 0x68]
xor r14d, r14d
mov rcx, r13
call fcn.017d7f00
cmp dword [rbx + 0x48], esi
jbe 0x17d965f
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x17d965f
mov rax, qword [rbx + 0x50]
mov r14, qword [rax + rsi*8]
mov rcx, r13
call fcn.017d7f40
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r14
add rsp, 0x20
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
call fcn.017d8870
mov rbx, rax
jmp 0x17d9639