joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004ca20
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x1402a0480]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
movups xmm0, xmmword [rdx]
mov rdi, rcx
mov qword [rsp + 0x58], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], 0x80
lea r8, [rsp + 0x50]
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x30]
call fcn.140028a10
cmp dword [rax], 0
je 0x14004caa8
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x68]
mov byte [rdi + 0x20], 0
cmp rcx, rax
je 0x14004cc35
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14004cc35
lea rax, [rbp + 0x1a8]
mov qword [rsp + 0x4e0], rbx
mov ecx, 0x104
mov qword [rbp + 0x190], rax
xor eax, eax
mov qword [rbp + 0x1a0], rcx
mov qword [rbp + 0x198], rax
mov ebx, ecx
cmp rbx, rax
je 0x14004cb04
jb 0x14004cafd
cmp rcx, rbx
jae 0x14004cafd
mov r9d, 2
lea rdx, [rbp + 0x1a8]
mov r8, rbx
lea rcx, [rbp + 0x190]
call fcn.140022b50
mov qword [rbp + 0x198], rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r8d, dword [rbp + 0x198]
mov rdx, qword [rbp + 0x190]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test eax, eax
je 0x14004cb40
mov rax, qword [rbp + 0x198]
cmp rbx, rax
jbe 0x14004cb56
mov rcx, qword [rbp + 0x1a0]
jmp 0x14004cad5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x14004cb56
mov byte [rdi + 0x20], 0
jmp 0x14004cbff
mov rdx, qword [rbp + 0x190]
lea rax, [rbp + 0x88]
lea r9, [rbp + 0x70]
mov qword [rbp + 0x70], rax
mov r8, rbx
mov qword [rbp + 0x198], rbx
lea rcx, [rsp + 0x30]
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x80], 0x104
call fcn.1400289e0
cmp dword [rax], 0
je 0x14004cb9e
mov byte [rdi + 0x20], 0
jmp 0x14004cbe9
mov rdx, qword [rbp + 0x70]
xorps xmm0, xmm0
xorps xmm1, xmm1
mov r8, 0xffffffffffffffff
movups xmmword [rsp + 0x30], xmm0
movdqu xmmword [rsp + 0x40], xmm1
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x14004cbc0
lea rcx, [rsp + 0x30]
call fcn.140004900
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm1
mov byte [rdi + 0x20], 1
mov rcx, qword [rbp + 0x70]
lea rax, [rbp + 0x88]
cmp rcx, rax
je 0x14004cbff
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp + 0x190]
lea rax, [rbp + 0x1a8]
cmp rcx, rax
je 0x14004cc18
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x68]
cmp rcx, rax
je 0x14004cc2d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x4e0]
mov rax, rdi
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.1401842c0
mov rdi, qword [rsp + 0x4e8]
add rsp, 0x4c0
pop rbp
ret
Function at 0x14004cf10
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbx
sub rsp, 0x30
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14004cf8a
mov rbx, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
mov rcx, rbx
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x14004cf7a
mov qword [rsp + 0x50], rdi
mov edi, dword [rsp + 0x40]
test rbx, rbx
je 0x14004cf6d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
test rbx, rbx
je 0x14004cf8a
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call fcn.14004cea0
add rsp, 0x30
pop rbx
ret
Function at 0x1400a98d0
Capabilities:
Hash data using fnv

Disassembly:
movzx eax, byte [rdx + 1]
movabs r9, 0x100000001b3
movzx r8d, byte [rdx]
xor r8, rcx
movzx ecx, byte [rdx + 6]
imul r8, r9
xor r8, rax
movzx eax, byte [rdx + 2]
imul r8, r9
xor r8, rax
movzx eax, byte [rdx + 3]
imul r8, r9
xor r8, rax
movzx eax, byte [rdx + 4]
imul r8, r9
xor r8, rax
movzx eax, byte [rdx + 5]
imul r8, r9
xor rax, r8
imul rax, r9
xor rax, rcx
movzx ecx, byte [rdx + 7]
imul rax, r9
xor rax, rcx
imul rax, r9
ret
mov rdx, rcx
movabs rcx, 0xcbf29ce484222325
jmp 0x1400a9860
Function at 0x1400b0070
Capabilities:
Parse credit card information

Disassembly:
push rbx
mov r9, qword [rcx + 0x18]
mov r10, rcx
test r9, r9
je 0x1400b026c
mov rdx, qword [r9 + 0xd8]
test rdx, rdx
je 0x1400b00a3
nop
cmp word [rdx + 0x10], 4
jne 0x1400b00a3
mov rdx, qword [rdx + 0xd8]
test rdx, rdx
jne 0x1400b0090
movzx r8d, byte [r9 + 0x44]
cmp r8b, 0xf
jne 0x1400b00b5
mov eax, 3
pop rbx
ret
test rdx, rdx
je 0x1400b00ed
cmp r8b, 0x67
jne 0x1400b00ed
movzx eax, byte [rdx + 0x44]
cmp al, 0x23
je 0x1400b029a
cmp al, 0x40
je 0x1400b029a
mov rax, qword [rcx]
movzx ecx, byte [rax + 0x185]
sub cl, 7
test cl, 0xfd
jne 0x1400b010b
cmp word [rdx + 0x10], 0x2e
jmp 0x1400b0105
cmp r8b, 0x3b
je 0x1400b029a
cmp r8b, 0x74
je 0x1400b0293
cmp r8b, 0x29
je 0x1400b029a
movzx ecx, word [r9 + 0x10]
cmp cx, 0x3e
je 0x1400b028f
cmp r8b, 0x37
je 0x1400b028f
cmp r8b, 0x67
je 0x1400b028f
cmp cx, 4
jne 0x1400b0143
test rdx, rdx
je 0x1400b0143
cmp byte [rdx + 0x44], 0x67
je 0x1400b028f
cmp r8b, 0x5e
je 0x1400b0293
mov rax, qword [r10]
movzx edx, byte [rax + 0x185]
lea eax, [rdx - 3]
cmp al, 1
ja 0x1400b01cb
mov r11, qword [r10 + 8]
mov rbx, qword [r11 + 0x128]
test rbx, rbx
je 0x1400b0183
lea eax, [rcx - 7]
cmp ax, 0xb
jbe 0x1400b0183
cmp cx, 1
je 0x1400b0183
cmp rbx, qword [r9 + 8]
je 0x1400b01c4
cmp dl, 4
jne 0x1400b01cb
mov rbx, qword [r11 + 0x70]
mov r11, qword [r11 + 0x10]
test r11, r11
je 0x1400b01aa
lea eax, [rcx - 7]
cmp ax, 0xb
jbe 0x1400b01aa
cmp cx, 1
je 0x1400b01aa
cmp r11, qword [r9 + 8]
je 0x1400b01c4
test rbx, rbx
je 0x1400b01cb
lea eax, [rcx - 7]
cmp ax, 0xb
jbe 0x1400b01cb
cmp cx, 1
je 0x1400b01cb
cmp rbx, qword [r9 + 8]
jne 0x1400b01cb
mov eax, 0xa
pop rbx
ret
cmp r8b, 7
je 0x1400b027a
cmp cx, 0x41
je 0x1400b027a
cmp cx, 0x19
je 0x1400b0273
cmp cx, 0x24
je 0x1400b0273
lea eax, [rdx - 3]
cmp al, 1
ja 0x1400b0261
mov rax, qword [r10 + 8]
mov r11, qword [rax + 0x118]
mov r10, qword [rax + 0x150]
mov r8, qword [rax + 0x120]
test r11, r11
je 0x1400b022d
lea eax, [rcx - 7]
cmp ax, 0xb
jbe 0x1400b022d
cmp cx, 1
je 0x1400b022d
cmp r11, qword [r9 + 8]
je 0x1400b028f
test r8, r8
je 0x1400b0247
lea eax, [rcx - 7]
cmp ax, 0xb
jbe 0x1400b0247
cmp cx, 1
je 0x1400b0247
cmp r8, qword [r9 + 8]
je 0x1400b028f
test r10, r10
je 0x1400b0261
lea eax, [rcx - 7]
cmp ax, 0xb
jbe 0x1400b0261
cmp cx, 1
je 0x1400b0261
cmp r10, qword [r9 + 8]
je 0x1400b028f
cmp dl, 0xa
jne 0x1400b026c
cmp cx, 0x3d
je 0x1400b028f
mov eax, 0xffffffff
pop rbx
ret
mov eax, 0x11
pop rbx
ret
mov eax, dword [r9 + 0x48]
test eax, eax
jne 0x1400b0271
mov r8b, 1
movzx edx, r8b
pop rbx
jmp fcn.140191860
xor eax, eax
pop rbx
ret
mov eax, 1
pop rbx
ret
mov eax, 2
pop rbx
ret
Function at 0x1400fbe80
Capabilities:
Hash data using fnv

Disassembly:
movzx eax, byte [rdx + 1]
movabs r9, 0x100000001b3
movzx r8d, byte [rdx]
xor r8, rcx
movzx ecx, byte [rdx + 6]
imul r8, r9
xor r8, rax
movzx eax, byte [rdx + 2]
imul r8, r9
xor r8, rax
movzx eax, byte [rdx + 3]
imul r8, r9
xor r8, rax
movzx eax, byte [rdx + 4]
imul r8, r9
xor r8, rax
movzx eax, byte [rdx + 5]
imul r8, r9
xor rax, r8
imul rax, r9
xor rax, rcx
movzx ecx, byte [rdx + 7]
imul rax, r9
xor rax, rcx
imul rax, r9
ret
mov rdx, rcx
movabs rcx, 0xcbf29ce484222325
jmp 0x1400fbe10

Function at 0x1400fdea0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, qword [rcx + 0x700]
xor ebx, ebx
mov esi, dword [rcx + 0x708]
shl rsi, 4
add rsi, rdi
cmp rdi, rsi
je 0x1400fdf40
mov qword [rsp + 0x38], rbp
mov ebp, 0x9e3779b9
nop dword [rax]
nop dword [rax + rax]
movsxd rax, dword [rdi]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
call fcn.1400fbe80
mov rdx, rax
mov rcx, rbx
shr rcx, 2
mov rax, rbx
shl rax, 6
add rax, rdx
add rax, rbp
add rcx, rax
xor rbx, rcx
lea rcx, [rdi + 8]
call fcn.1400fbe80
mov rcx, rbx
mov rdx, rbx
shl rcx, 6
add rdi, 0x10
add rcx, rax
shr rdx, 2
add rcx, rbp
add rdx, rcx
xor rbx, rdx
cmp rdi, rsi
jne 0x1400fdee0
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401335a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor eax, eax
mov rsi, rdx
mov qword [rdx], rax
mov rbx, rcx
movzx edi, byte [rcx + 0x220]
lea rdx, [rsp + 0x20]
movzx eax, dil
or al, 0x20
mov byte [rcx + 0x220], al
call fcn.1401293b0
movzx eax, byte [rbx + 0x220]
xor dil, al
and dil, 0x20
xor dil, al
mov eax, dword [rsp + 0x20]
cmp word [rsp + 0x30], 2
mov byte [rbx + 0x220], dil
mov dword [rsi], eax
je 0x140133644
nop dword [rax]
movzx edi, byte [rbx + 0x220]
lea rdx, [rsp + 0x20]
movzx eax, dil
mov rcx, rbx
or al, 0x20
mov byte [rbx + 0x220], al
call fcn.1401293b0
movzx eax, byte [rbx + 0x220]
xor dil, al
and dil, 0x20
xor dil, al
cmp word [rsp + 0x30], 2
mov byte [rbx + 0x220], dil
jne 0x140133600
mov eax, dword [rsp + 0x20]
mov rbx, qword [rsp + 0x50]
mov dword [rsi + 4], eax
mov rax, rsi
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14013a1b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
nop word [rax + rax]
movzx edi, byte [rbx + 0x220]
mov rdx, rsi
movzx eax, dil
mov rcx, rbx
or al, 0x20
mov byte [rbx + 0x220], al
call fcn.1401293b0
movzx eax, byte [rbx + 0x220]
xor dil, al
and dil, 0x20
xor dil, al
mov byte [rbx + 0x220], dil
cmp word [rsi + 0x10], 4
je 0x14013a1d0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14018341c
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 0x140183494
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140183494
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 0x140183494
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140183488
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1401834a6
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140183476
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 0x140183496

Function at 0x1401838cc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140183906
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14018390b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140183954
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1402565e0]
cmp byte [rcx + rax], 0
je 0x140183954
dec r8
sub rdx, 1
jne 0x14018393a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140184d80
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x10001ec6d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x10001ec7d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x10001ec65
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x10001ec95
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x10001ec82
sub eax, 3
jb 0x10001ecaf
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x10001ece6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x10001ecd6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x10001ecd4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x10001ecc3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.10001ec22
jmp 0x10001ec6d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x3600
mov dl, 1
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x10001ed32
cmp rsi, rcx
jae 0x10001ed3a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x10001ed19
cmp al, 0x8f
ja 0x10001ed19
cmp byte [rsi - 2], 0xf
je 0x10001ed1f
sub al, 0xe8
cmp al, 1
ja 0x10001ed03
cmp rsi, rcx
jae 0x10001ed3a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x10001ed09
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x10001ed3a
lodsb al, byte [rsi]
jmp 0x10001ed19
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1c000]
mov eax, dword [rdi]
or eax, eax
je 0x10001eda3
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x32b94]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x10001ed47
jns 0x10001ed7c
movzx rdx, word [rdi]
add rdi, 2
jmp 0x10001ed86
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x10001ed9d
mov qword [rbx], rax
add rbx, 8
jmp 0x10001ed67
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x10001eddd
cmp al, 0xef
ja 0x10001edcf
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x10001edaf
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x10001edbe
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x21f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x10001ee31
sub rsp, 0xffffffffffffff80
jmp 0x10000353c
Function at 0x140011212
Capabilities:
Terminate process

Disassembly:
jmp 0x1400133f0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400112a8
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014740
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014760
xor al, al
jmp 0x1400147e1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014773
xor al, al
jmp 0x1400147e1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001479d
xor al, al
jmp 0x1400147e1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400147b1
xor al, al
jmp 0x1400147e1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400147c3
xor al, al
jmp 0x1400147e1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400147df
xor al, al
jmp 0x1400147e1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400e9860
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400e986d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400e987d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400e9865
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x1400e9895
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400e9882
sub eax, 3
jb 0x1400e98af
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400e98e6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x1400e98d6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400e98d4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400e98c3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.1400e9822
jmp 0x1400e986d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x6600
mov dl, 4
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400e9932
cmp rsi, rcx
jae 0x1400e993a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400e9919
cmp al, 0x8f
ja 0x1400e9919
cmp byte [rsi - 2], 0xf
je 0x1400e991f
sub al, 0xe8
cmp al, 1
ja 0x1400e9903
cmp rsi, rcx
jae 0x1400e993a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400e9909
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400e993a
lodsb al, byte [rsi]
jmp 0x1400e9919
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xe7000]
mov eax, dword [rdi]
or eax, eax
je 0x1400e99a3
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1007ec]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400e9947
jns 0x1400e997c
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1400e9986
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400e999d
mov qword [rbx], rax
add rbx, 8
jmp 0x1400e9967
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400e99dd
cmp al, 0xef
ja 0x1400e99cf
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400e99af
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400e99be
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x217]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400e9a31
sub rsp, 0xffffffffffffff80
jmp 0x140006740
Function at 0x140002220
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14001f040]
xor rax, rsp
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400022b9
mov qword [rsp + 0x50], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword gs:[0x58]
mov edi, eax
mov eax, 4
mov dword [rsp + 0x24], 0
mov rdx, qword [rcx]
mov ecx, dword [rax + rdx]
cmp dword [0x1400204f8], ecx
jle 0x1400022a0
lea rcx, [0x1400204f8]
call fcn.1400139fc
cmp dword [0x1400204f8], 0xffffffff
jne 0x1400022a0
lea rcx, [0x140015630]
call fcn.140013cd8
lea rcx, [0x1400204f8]
call fcn.140013990
lea rax, [0x14001f0c8]
mov dword [rsp + 0x20], edi
test edi, edi
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0x50]
jne 0x1400022ce
mov eax, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140013970
add rsp, 0x40
pop rbx
ret
lea rdx, [0x140016b80]
lea rcx, [rsp + 0x20]
call fcn.1400020f0
int3

Function at 0x1400026f0
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14001f040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [rcx + 0x10]
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rax, qword [rcx + 8]
mov rbx, rcx
mov r9d, 0xffffffff
mov qword [rsp + 0x28], rax
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lock xadd dword [0x140020508], eax
mov rcx, qword [rbx + 8]
test eax, eax
je 0x140002769
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140013970
add rsp, 0x40
pop rbx
ret
mov rdx, rcx
xor r8d, r8d
lea rcx, [fcn.1400024f0]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rbx + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140013970
add rsp, 0x40
pop rbx
ret
Function at 0x1400032e0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x70
xor eax, eax
lea rbx, [rcx + 0x28]
test rcx, rcx
mov ecx, dword [0x140020524]
cmove rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140003420
cmp qword [rax], rbx
je 0x14000331c
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140003308
add rsp, 0x70
pop rbx
ret
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x140003420
mov ecx, dword [rbx + 0x50]
test ecx, ecx
je 0x1400033e0
cmp ecx, 1
jne 0x140003420
xorps xmm0, xmm0
mov dword [rbx + 0x50], 2
lea rdx, [rbx + 0x58]
lea rcx, [rsp + 0x30]
movdqu xmmword [rsp + 0x30], xmm0
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCopy_void____ptr64__void_const____ptr64_]
xorps xmm0, xmm0
lea rax, vtable.asio::multiple_exceptions.0
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x58]
movups xmmword [rsp + 0x48], xmm0
movdqu xmmword [rsp + 0x58], xmm0
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCopy_void____ptr64__void_const____ptr64_]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_]
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x20], xmm0
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_]
lea r8, [0x14001bf08]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCopyException_void____ptr64__void_const____ptr64__void_const____ptr64_]
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_]
lea rax, vtable.std::exception.0
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x40], rax
call qword [sym.imp.VCRUNTIME140.dll___std_exception_destroy]
jmp 0x140003406
xorps xmm0, xmm0
mov dword [rbx + 0x50], 1
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x20], xmm0
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_]
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrCurrentException_void____ptr64_]
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0x58]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrAssign_void____ptr64__void_const____ptr64_]
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_]
add rsp, 0x70
pop rbx
ret