joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006f20
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0x100]
lea r11, [0x14003e810]
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 + 0x4054], ebx
jne 0x140006fb6
mov r8, r10
mov edx, 4
mov ecx, ebx
call fcn.140019f00
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x140013490
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140049010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x140049668]
mov edi, ecx
cmp byte [rbx + 0x4d01], 0
jne 0x1400134f1
cmp byte [rbx + 0x4d02], 0
jne 0x1400134f1
movsx r9d, word [rbx + 0x5e58]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.1400031b0
test dil, 2
je 0x14001361f
jmp 0x14001357a
movss xmm1, dword [rbx + 0x39c4]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5e58]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x14004382c]
mulss xmm1, dword [0x140043824]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xe48]
addss xmm1, dword [rbx + 0xe4c]
mov qword [rbx + 0x49e0], rax
mov dword [rbx + 0x49cc], 1
movss dword [rbx + 0x49d8], xmm0
movss dword [rbx + 0x49dc], xmm1
movss xmm0, dword [rbx + 0x3a20]
mulss xmm0, dword [0x1400437a4]
or dword [rbx + 0x49c8], 0x41
movss dword [rbx + 0x4a28], xmm0
call fcn.1400031b0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x1400135d0
lea r11, [0x14003e810]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x1400135b3
cmp byte [r8], r9b
jne 0x1400135b3
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 0x1400135a0
not ecx
call fcn.14000a5d0
test rax, rax
je 0x14001361f
cmp byte [rax + 0xbe], 0
je 0x14001361f
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 + 0x5e58]
movsx r9d, word [rbx + 0x5e58]
call fcn.1400031b0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x2030347
call fcn.14000d260
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14003b680
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140018870
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5fb0], 0
lea rbx, [rcx + 0x5fb8]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140018917
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x1400188ca
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14001afa0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140003c90
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5fb0]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5fc0]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x140049660]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001891f
mov rcx, rbx
call fcn.140003c90
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140018c40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x140049668]
xor ebp, ebp
cmp byte [rbx + 0x5f08], bpl
jne 0x140018d1f
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140018d18
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.140003550
mov rsi, rax
test rax, rax
je 0x140018d18
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x140018ca4
mov rcx, rax
call fcn.140018e70
mov r8, qword [0x140049668]
test r8, r8
je 0x140018d0f
movsx rdx, word [r8 + 0x6078]
lea rcx, [r8 + 0x607c]
mov r9d, dword [r8 + 0x3f60]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x140018d04
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 + 0x6078], cx
movsx rax, cx
lea rcx, [r8 + 0x607c]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x6074]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x5f08], 1
movss xmm0, dword [rbx + 0x5f0c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x140018dae
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5f0c], xmm0
jb 0x140018dae
mov rdi, qword [rbx + 0x20]
test rdi, rdi
je 0x140018da1
mov rax, qword [0x140049668]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x5f0c], ebp
call fcn.1400190d0
lea rdx, [0x14003e344]
mov rcx, rdi
mov rsi, rax
call fcn.140003460
mov rdi, rax
test rax, rax
je 0x140018da8
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x140018da8
mov byte [rbx + 0xce], 1
mov dword [rbx + 0x5f0c], ebp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140018dd0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140049668]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140018e33
mov qword [rsp], rbx
lea rbx, [0x14003e810]
nop dword [rax]
cmp r9b, 0x23
jne 0x140018e13
cmp byte [r8], r9b
jne 0x140018e13
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 0x140018e00
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5f20]
not eax
mov r8, qword [r10 + 0x5f28]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x140018e5f
cmp dword [r8 + 8], eax
je 0x140018e66
add r8, 0x48
cmp r8, rcx
jne 0x140018e50
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x14002dd60
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x140049010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x140049668]
mov rbp, rcx
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14002df7e
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14002df7e
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x140049668]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x14002de34
movsx rdx, word [r8 + 0x6078]
lea rax, [r8 + 0x607c]
mov r9d, dword [r8 + 0x3f60]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x14002de29
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 + 0x6078], cx
movsx rax, cx
lea rax, [rax*8 + 0x607c]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x6070]
test rdi, rdi
je 0x14002de51
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 0x14002de54
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x140043458]
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 0x14002de97
mov rsi, qword [r8 + 0x90]
jmp 0x14002de9a
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 0x14002dec5
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x140049668]
mov rcx, qword [rax + 0x4ae0]
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
nop word [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14002df3e
inc rbx
cmp rbx, 5
jl 0x14002df20
jmp 0x14002df6a
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 0x14002df80
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14003b680
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x14003c034
Capabilities:
Parse pe header

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

Function at 0x141cd5058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141cd51df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141cd5089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141cd506f
add dl, dl
jne 0x141cd5096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141cd50f6
xor eax, eax
add dl, dl
jne 0x141cd50a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141cd51ad
add dl, dl
jne 0x141cd50b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141cd50c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141cd50d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141cd50dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141cd50ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141cd507e
mov eax, 1
add dl, dl
jne 0x141cd5106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141cd5113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141cd50fb
sub eax, ebx
mov ebx, 1
jne 0x141cd514c
mov ecx, 1
add dl, dl
jne 0x141cd512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141cd513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141cd5123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141cd507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141cd5168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141cd5175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141cd515d
cmp eax, 0x7d00
jae 0x141cd519b
cmp eax, 0x500
jb 0x141cd5196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141cd507e
cmp eax, 0x7f
ja 0x141cd519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141cd507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141cd51d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x141cd507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1004012e0
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r14, rcx
mov rcx, rdx
mov r13, qword [r14]
call sub.msys_2.0.dll_strdup
mov r12, rax
test rax, rax
je 0x100401436
movzx ebx, byte [rax]
test bl, bl
je 0x100401498
lea rsi, [rax + 1]
xor ebp, ebp
xor edi, edi
jmp 0x100401350
test edi, edi
je 0x100401345
call sub.msys_2.0.dll___locale_ctype_ptr
mov r8, rax
lea eax, [rdi + 1]
cdqe
test byte [r8 + rax], 4
jne 0x100401340
cmp edi, 0x2c
mov edi, r15d
jne 0x100401345
mov edi, 0x2c
movzx ebx, byte [rsi]
add rsi, 1
test bl, bl
je 0x100401391
call sub.msys_2.0.dll___locale_ctype_ptr
movzx edx, bl
movzx r15d, bl
test byte [rdx + rax + 1], 8
jne 0x100401320
cmp bl, 0x2c
je 0x100401340
cmp edi, 0x2c
jne 0x100401378
movsxd rax, ebp
add ebp, 1
mov byte [r12 + rax], 0x2c
movsxd rax, ebp
add rsi, 1
mov edi, r15d
add ebp, 1
mov byte [r12 + rax], bl
movzx ebx, byte [rsi - 1]
test bl, bl
jne 0x100401350
movsxd rbp, ebp
add rbp, r12
mov byte [rbp], 0
movzx ebx, byte [r12]
test bl, bl
je 0x100401436
mov rcx, r12
call sub.msys_2.0.dll_strlen
mov r15, qword [r14]
mov rsi, rax
lea r13, [rax + 1]
cmp bl, 0x2c
je 0x100401458
test r15, r15
je 0x10040145d
mov rcx, r15
call sub.msys_2.0.dll_strlen
test rax, rax
je 0x100401480
cmp byte [r15 + rax - 1], 0x2c
je 0x100401480
lea r13, [rsi + 2]
lea rbx, [0x100404004]
lea rcx, [r13 + rax]
call sub.msys_2.0.dll_malloc
mov r13, rax
test rax, rax
je 0x1004014a0
mov rcx, rax
mov rdx, r15
call sub.msys_2.0.dll_strcpy
mov rcx, r15
call sub.msys_2.0.dll_free
mov rdx, rbx
mov rcx, r13
call sub.msys_2.0.dll_strcat
mov rdx, r12
mov rcx, r13
call sub.msys_2.0.dll_strcat
mov qword [r14], r13
mov rcx, r12
call sub.msys_2.0.dll_free
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test r15, r15
jne 0x100401480
mov rcx, r13
call sub.msys_2.0.dll_malloc
mov r13, rax
test rax, rax
je 0x1004014a0
mov byte [r13], 0
lea rbx, [0x100404003]
jmp 0x10040141d
mov rcx, r15
lea rbx, [0x100404003]
call sub.msys_2.0.dll_strlen
jmp 0x1004013f4
mov rbp, rax
jmp 0x100401397
lea rcx, str.add_to_tab_list
call sub.msys_2.0.dll_perror
mov ecx, 1
call sub.msys_2.0.dll_exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x2fc4d9270
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4da350
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d9c72
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fc108]
test eax, eax
je 0x2fc4d9d0a
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fc110]
mov qword [rbp - 8], rax
jmp 0x2fc4d9cee
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d9ce2
cmp qword [rbp - 0x10], 0
je 0x2fc4d9ce2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d9ca8
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d9d0b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d9e10
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d9e38
mov eax, 0
jmp 0x2fc4d9e86
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d9e61
mov eax, 0
jmp 0x2fc4d9e86
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d9e81
mov eax, 0
jmp 0x2fc4d9e86
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d9e8c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d9f0a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d9f01
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d9f01
mov rax, qword [rbp - 8]
jmp 0x2fc4d9f1f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d9ed4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d9950
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4daa30
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4da352
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fc108]
test eax, eax
je 0x2fc4da3ea
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fc110]
mov qword [rbp - 8], rax
jmp 0x2fc4da3ce
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4da3c2
cmp qword [rbp - 0x10], 0
je 0x2fc4da3c2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4da388
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4da3eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4da4f0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4da518
mov eax, 0
jmp 0x2fc4da566
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4da541
mov eax, 0
jmp 0x2fc4da566
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4da561
mov eax, 0
jmp 0x2fc4da566
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4da56c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4da5ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4da5e1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4da5e1
mov rax, qword [rbp - 8]
jmp 0x2fc4da5ff
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4da5b4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x141253000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x14125300a
jmp 0x14125500f
jmp fcn.140bc9058
Function at 0x140001a70
Capabilities:
Decode data using base64 via winapi

Disassembly:
push rbx
push rsi
push rdi
push r15
sub rsp, 0x68
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor r15d, r15d
mov qword [rsp + 0x48], rdx
cmp qword [r8 + 0x18], 0xf
mov rdi, r8
mov rbx, rdx
mov dword [rsp + 0x48], r15d
mov rcx, r8
jbe 0x140001aa9
mov rcx, qword [r8]
mov edx, dword [rdi + 0x10]
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x60], r14
lea r8d, [r9 + 1]
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov esi, dword [rsp + 0x48]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 0xf
cmp rsi, 0xf
ja 0x140001b0d
mov r8d, esi
mov qword [rbx + 0x10], rsi
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
mov byte [rbx + rsi], r15b
jmp 0x140001b80
mov eax, 0x16
mov rbp, rsi
or rbp, 0xf
cmp rbp, rax
cmovb rbp, rax
lea rcx, [rbp + 1]
cmp rcx, 0x1000
jb 0x140001b5c
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001be4
mov rcx, rax
call fcn.140001f00
test rax, rax
je 0x140001b55
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x140001b64
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001f00
mov r14, rax
mov r8, rsi
mov qword [rbx], r14
xor edx, edx
mov qword [rbx + 0x10], rsi
mov rcx, r14
mov qword [rbx + 0x18], rbp
call sub.VCRUNTIME140.dll_memset
mov byte [r14 + rsi], r15b
cmp qword [rbx + 0x18], 0xf
mov r9, rbx
jbe 0x140001b8d
mov r9, qword [rbx]
cmp qword [rdi + 0x18], 0xf
mov rcx, rdi
jbe 0x140001b9a
mov rcx, qword [rdi]
mov edx, dword [rdi + 0x10]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], r15
mov r8d, 1
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov r14, qword [rsp + 0x60]
mov rax, rbx
mov rbp, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140001ee0
add rsp, 0x68
pop r15
pop rdi
pop rsi
pop rbx
ret
call fcn.140001170
int3

Function at 0x140002858
Capabilities:
Parse pe header

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