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

Disassembly:
jmp 0x140f77952
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f7797b
pop rbp
sub rbp, 0x33
sub rbp, 0xf77948
sub rsp, 0x20
jmp 0x140f7799a
mov rax, 0xf77948
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x70f1298c
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f779b9
jmp 0x140f779d0
invalid
Function at 0x14000cdc4
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140017850], eax
call fcn.14000cb08
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140017850], 0
jne case.default.0x14000ce1a
mov ecx, 1
call fcn.14000cb08
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
push rax
pop rdi
invalid
mov ebx, 0xbc76fdfd
or al, 0xa0
jo 0x14002531b
and eax, dword [0x16da4c8d6]
mov ecx, 0x3af20df8
mov ebp, 0x551b04d
invalid
movabs byte [0x4dbd3af20df8b92d], al
mov al, 0x51
add eax, 0x7fc42a9a
pop rdx
mov esp, 0x57a19730
adc ah, ah
stosd dword [rdi], eax
xchg edi, eax
jo 0x1400253a3
sbb dword [rbx - 0x31], 0xffffffc5
add eax, 0x4a53d9df
jo 0x1400253fa
movabs dword [0x1943b3394203a51], eax
invalid
add eax, esi
stosd dword [rdi], eax
jnp 0x140025367
sub eax, 0x7d2dc5ff
add eax, 0x861f1fb5
retf 0x6f70
invalid
Function at 0x143195318
Capabilities:
Encode data using xor

Disassembly:
jmp 0x143195322
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x14319534b
pop rbp
sub rbp, 0x33
sub rbp, 0x3195318
sub rsp, 0x20
jmp 0x14319536a
mov rax, 0x3195318
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffeee8feeb
xor byte [rax], dl
inc rax
dec rcx
jne 0x143195389
invalid
jmp 0x1431953a0
movabs dword [0xebebebd762600262], eax
movabs dword [0xeaa3ebebeae32a6a], eax
add ah, byte [rbx - 0x141cd4d4]
jmp 0x1431953a5
xlatb
jmp 0x143195393
Function at 0x180006000
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x18000605c
xor eax, eax
mov qword [rsp + 0x40], rdi
mov r9, rcx
mov qword [rsp + 0x28], rax
lea r8, [0x180005d60]
mov dword [rsp + 0x20], eax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x18000604c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rbx
ret
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x180008f60
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x180008fbd
lea rbx, [0x180040f20]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180008fa4
cmp r10, 2
jb 0x180008fa4
cmp byte [r9], r8b
jne 0x180008fa4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x180008f80
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x180008fff
lea rbx, [0x180040f20]
cmp r8b, 0x23
jne 0x180008fe3
cmp byte [r9], r8b
jne 0x180008fe3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x180008fd0
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x18000b940
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0x100]
lea r11, [0x180040f20]
mov rax, qword [rcx + 0x108]
mov r9, rcx
movsxd r10, edx
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, r10b
movzx r8d, bl
shr ebx, 8
xor r8, rax
mov eax, r10d
shr eax, 8
movzx edx, al
mov eax, r10d
xor ebx, dword [r11 + r8*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r10d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [r9]
xor ebx, dword [r11 + rdx*4]
not ebx
cmp dword [rcx + 0x404c], ebx
jne 0x18000b9d6
mov r8, r10
mov edx, 4
mov ecx, ebx
call fcn.18001f540
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x180018e30
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x18004e010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x180054f18]
mov edi, ecx
cmp byte [rbx + 0x4d4d], 0
jne 0x180018e91
cmp byte [rbx + 0x4d4e], 0
jne 0x180018e91
movsx r9d, word [rbx + 0x5eb8]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.180008d10
test dil, 2
je 0x180018fbf
jmp 0x180018f1a
movss xmm1, dword [rbx + 0x39bc]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5eb8]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x180045f5c]
mulss xmm1, dword [0x180045f50]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xe40]
addss xmm1, dword [rbx + 0xe44]
mov qword [rbx + 0x4a18], rax
mov dword [rbx + 0x4a04], 1
movss dword [rbx + 0x4a10], xmm0
movss dword [rbx + 0x4a14], xmm1
movss xmm0, dword [rbx + 0x3a18]
mulss xmm0, dword [0x180045e98]
or dword [rbx + 0x4a00], 0x41
movss dword [rbx + 0x4a60], xmm0
call fcn.180008d10
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x180018f70
lea r11, [0x180040f20]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x180018f53
cmp byte [r8], r9b
jne 0x180018f53
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x180018f40
not ecx
call fcn.18000f8c0
test rax, rax
je 0x180018fbf
cmp byte [rax + 0xbe], 0
je 0x180018fbf
mov byte [rax + 0xc3], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xc5], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xe4], 1
mov edx, 0x10
inc word [rbx + 0x5eb8]
movsx r9d, word [rbx + 0x5eb8]
call fcn.180008d10
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x2030347
call fcn.1800126b0
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.18003d570
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x18001dbd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x6010], 0
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x18001dc53
xor edx, edx
add rcx, 0x6018
call fcn.180020400
mov r8, rsi
lea rcx, [rbx + 0x6018]
mov rdx, rbp
call fcn.1800097a0
mov eax, dword [rbx + 0x6018]
xor edx, edx
mov r9, qword [rbx + 0x6010]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x6020]
cmove ecx, edx
test rax, rax
movsxd r8, ecx
mov edx, 1
lea rcx, [0x180054f0b]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x18001dc5f
add rcx, 0x6018
call fcn.1800097a0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18001e0b0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x180054f18]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x18001e113
mov qword [rsp], rbx
lea rbx, [0x180040f20]
nop dword [rax]
cmp r9b, 0x23
jne 0x18001e0f3
cmp byte [r8], r9b
jne 0x18001e0f3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x18001e0e0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5f80]
not eax
mov r8, qword [r10 + 0x5f88]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x18001e13f
cmp dword [r8 + 8], eax
je 0x18001e146
add r8, 0x48
cmp r8, rcx
jne 0x18001e130
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret

Function at 0x18001e390
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x180054f18]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x5f6c], ecx
test rbx, rbx
je 0x18001e3ff
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.18001e410
lea rdx, [0x180040a54]
mov rcx, rbx
mov rdi, rax
call fcn.180009010
mov rbx, rax
test rax, rax
je 0x18001e3fa
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x180030810
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x18004e010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x180054f18]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x180030a2e
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x180030a2e
mov rdx, qword [0x180054f20]
mov ecx, 0x50
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x88], rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, qword [0x180054f18]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x1800308ea
movsx rdx, word [r8 + 0x60f0]
lea rax, [r8 + 0x60f4]
mov r9d, dword [r8 + 0x3f58]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x1800308df
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60f0], cx
movsx rax, cx
lea rax, [rax*8 + 0x60f4]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x60e8]
test rdi, rdi
je 0x180030907
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
jmp 0x18003090a
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x180045b88]
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x90], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x60]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
test r8, r8
je 0x18003094d
mov rsi, qword [r8 + 0x90]
jmp 0x180030950
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x18003097b
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x180054f18]
mov rcx, qword [rax + 0x4b10]
mov rax, qword [rcx]
mov qword [rax + 0x28], rbp
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x30], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x38], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x50], rax
mov byte [rdi + 0x31], 1
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x1800309ee
inc rbx
cmp rbx, 5
jl 0x1800309d0
jmp 0x180030a1a
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x180030a30
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18003d570
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x180030bc0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x180054f18]
mov edx, 0x210
call fcn.180015800
cmp byte [rax], 0
je 0x180030c36
xor edx, edx
mov ecx, 0x210
call fcn.180017fe0
test al, al
je 0x180030c36
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x180030c36
mov rbx, qword [0x180054f18]
cmp byte [rbx + 0x38d1], 0
je 0x180030c22
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x210
call fcn.180008680
mov dword [rbx + 0x370], 0x210
mov dword [rbx + 0x930], 0xa0
mov rcx, qword [0x180054f18]
mov edx, 0x214
call fcn.180015800
cmp byte [rax], 0
je 0x180030ca6
xor edx, edx
mov ecx, 0x214
call fcn.180017fe0
test al, al
je 0x180030ca6
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x180030ca6
mov rbx, qword [0x180054f18]
cmp byte [rbx + 0x38d1], 0
je 0x180030c92
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x214
call fcn.180008680
mov dword [rbx + 0x374], 0x214
mov dword [rbx + 0x940], 0xa1
mov rcx, qword [0x180054f18]
mov edx, 0x212
call fcn.180015800
cmp byte [rax], 0
je 0x180030d16
xor edx, edx
mov ecx, 0x212
call fcn.180017fe0
test al, al
je 0x180030d16
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x180030d16
mov rbx, qword [0x180054f18]
cmp byte [rbx + 0x38d1], 0
je 0x180030d02
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x212
call fcn.180008680
mov dword [rbx + 0x25c], 0x212
mov dword [rbx + 0x938], 0x5b
mov rcx, qword [0x180054f18]
mov edx, 0x216
call fcn.180015800
cmp byte [rax], 0
je 0x180030d86
xor edx, edx
mov ecx, 0x216
call fcn.180017fe0
test al, al
je 0x180030d86
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x180030d86
mov rbx, qword [0x180054f18]
cmp byte [rbx + 0x38d1], 0
je 0x180030d72
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x216
call fcn.180008680
mov dword [rbx + 0x260], 0x216
mov dword [rbx + 0x948], 0x5c
add rsp, 0x20
pop rbx
ret
Function at 0x18003c2f0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov r8, qword [rcx]
mov rbx, rcx
test r8, r8
je 0x18003c356
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x18003c347
mov rax, qword [rbx]
xor edx, edx
mov r8d, dword [rax + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18003c33d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x18003c311
mov r8, qword [rbx]
mov rcx, qword [0x180054f38]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18003c368
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov eax, ecx
lea r9, [rsp + 0x40]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x180054fd0]
mov r8, qword [rbx]
mov al, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rbp, [r8 - 5]
cmove rbp, r8
lea rdi, [r8 - 5]
test al, al
lea r14, [rcx*2 + 5]
cmove rdi, r8
mov rdx, r14
mov rcx, rdi
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18003c3d3
mov eax, 0xa
jmp 0x18003c45f
test esi, esi
je 0x18003c3f5
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, ebp
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18003c416
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18003c416
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18003c410
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18003c416
mov al, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r14
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
mov al, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x18003c890
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x18003c8a7
cmp r8b, 0x90
je 0x18003c8a7
cmp r8b, 0xcc
jne 0x18003c8c9
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x18003c8c5
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x18003c8c9
add edx, r10d
cmp edx, r9d
jb 0x18003c8b5
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x18003cc30
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rsi, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x18003cc7a
lea rax, [rdi - 0x40000000]
cmp rsi, rax
cmovb rsi, rax
mov rbx, qword [0x180054fc0]
lea r15, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r15
cmovbe r15, qword [rbp - 0x50]
sub r15, 0xfff
test rbx, rbx
je 0x18003ccb7
cmp rbx, rsi
jb 0x18003ccb2
cmp rbx, r15
jae 0x18003ccb2
cmp qword [rbx + 8], 0
jne 0x18003ce13
mov rbx, qword [rbx]
jmp 0x18003cc98
mov r14, rdi
cmp rdi, rsi
jb 0x18003cd3b
mov r12d, dword [rbp - 0x38]
xor edx, edx
mov rax, r14
div r12
sub r14, rdx
sub r14, r12
cmp r14, rsi
jb 0x18003cd32
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18003cd32
cmp dword [rbp - 0x10], 0x10000
je 0x18003cd02
mov r14, qword [rbp - 0x28]
cmp r14, r12
jb 0x18003cd32
jmp 0x18003ccce
test r14, r14
je 0x18003cd32
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x18003cdd3
cmp r14, rsi
jae 0x18003ccbf
test rbx, rbx
jne 0x18003cdd3
cmp rdi, r15
ja 0x18003ce13
mov r14d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov esi, r14d
div r14
mov eax, r14d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18003ce13
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18003ce13
cmp dword [rbp - 0x10], 0x10000
je 0x18003cda9
xor edx, edx
lea edi, [r14 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div rsi
sub rdi, rdx
cmp rdi, r15
jmp 0x18003cd62
test rdi, rdi
je 0x18003ce13
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jmp 0x18003cd35
and qword [rbx + 8], 0
lea rcx, [rbx + 0x40]
and dword [rbx + 0x10], 0
mov rdx, rcx
sub rdx, rbx
mov rax, qword [rbx + 8]
add rdx, 0x40
mov qword [rcx], rax
mov qword [rbx + 8], rcx
add rcx, 0x40
cmp rdx, 0xfc0
jbe 0x18003cde6
mov rax, qword [0x180054fc0]
mov qword [rbx], rax
mov qword [0x180054fc0], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180003960
Capabilities:
Parse credit card information

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0xc0], 0
mov rbx, rcx
je 0x18000397d
add rsp, 0x20
pop rbx
jmp fcn.1800046b0
mov rcx, qword [rcx + 0xa8]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
call fcn.180006cf0
mov rcx, qword [rbx + 0xa8]
mov rdi, rax
call fcn.180006cf0
cmp dword [rbx + 0x28], 0
mov rsi, rax
jne 0x1800039fc
mov rcx, qword [rbx + 8]
lea rax, [0x180149e38]
mov qword [rbx + 0x18], rcx
mov rcx, qword [rbx + 0x10]
mov qword [rbx + 8], rax
lea rax, [0x180149e62]
mov qword [rbx + 0x20], rcx
mov rcx, rbx
mov qword [rbx + 0x10], rax
call fcn.1800046b0
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call fcn.1800032e0
mov rcx, rbx
call fcn.1800046b0
cmp dword [rbx + 0x28], 0
jne 0x1800039fc
mov qword [rbx + 0xc0], rdi
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x180003c10
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, qword [rcx + 0xd0]
mov rbp, rcx
test rbx, rbx
je 0x180003d54
lea r14, [0x180190200]
nop dword [rax]
nop dword [rax + rax]
test byte [rbx + 1], 0x40
mov rsi, qword [rbx + 0x68]
jne 0x180003d48
cmp dword [0x1801905e4], 0
jne 0x180003c88
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1801905ac], eax
mov dword [0x1801905e4], 1
cmp eax, 0xffffffff
je 0x180003d98
jmp 0x180003c8e
mov eax, dword [0x1801905ac]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x180003cac
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x180003da5
test rdi, rdi
jne 0x180003cb9
call fcn.180105bb0
mov rdi, rax
movzx eax, byte [rbx - 0x10]
add rbx, 0xfffffffffffffff0
cmp al, 0xef
jne 0x180003d7f
cmp byte [rbx + 3], al
jne 0x180003d7f
movzx edx, byte [rbx + 1]
cmp edx, 0xa
jne 0x180003cf7
mov eax, dword [rbx + 8]
sub dword [rdi + 0x28], eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180003d48
lea rax, [rdx + rdx*4]
lea rcx, [rdi + rax*8]
mov eax, dword [rbx + 8]
sub dword [rcx + 0x54], eax
mov rax, qword [rcx + 0x30]
mov qword [rbx], rax
mov r9d, dword [rcx + 0x40]
mov qword [rcx + 0x30], rbx
test r9d, r9d
jne 0x180003d1d
mov qword [rcx + 0x38], rbx
inc dword [rcx + 0x48]
inc r9d
cmp rdi, qword [0x18018f158]
mov dword [rcx + 0x40], r9d
je 0x180003d48
lea rax, [rdx + rdx*2]
cmp r9d, dword [r14 + rax*8 + 8]
jle 0x180003d48
mov r8d, dword [r14 + rax*8 + 0xc]
mov rcx, rdi
call fcn.180106700
mov rbx, rsi
test rsi, rsi
jne 0x180003c50
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0xd8], rax
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
movzx r9d, byte [rbx + 3]
lea rcx, str.alloc:_invalid_block:__p:__x__x
movzx r8d, al
mov rdx, rbx
call sym.tcl86t.dll_hcl_Panic
int3
lea rcx, str.could_not_allocate_thread_local_storage
call sym.tcl86t.dll_hcl_Panic
int3
lea rcx, str.TlsGetValue_failed_from_TclpGetAllocCache
call sym.tcl86t.dll_hcl_Panic
int3

Function at 0x180003f30
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
lea edi, [rdx - 1]
mov rsi, rcx
test edi, edi
jle 0x180003f8d
mov qword [rsp + 0x30], rbx
lea rbx, [rcx + 0xc8]
mov qword [rsp + 0x38], rbp
xor ebp, ebp
cmp dword [rbx - 0x28], ebp
je 0x180003f79
mov dword [rbx - 0x28], ebp
mov rcx, qword [rbx - 8]
call sym.tcl86t.dll_hclpFree
mov rcx, qword [rbx]
call sym.tcl86t.dll_hclpFree
mov rcx, qword [rbx + 8]
call sym.tcl86t.dll_hclpFree
add rbx, 0x70
dec edi
test edi, edi
jg 0x180003f57
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rcx, rsi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp sym.tcl86t.dll_hclpFree