joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010880
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14001094c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14001094c
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140010965
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14001093c
cmp byte [rax], 0x5c
jne 0x140010936
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140010936
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140010922
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140010933
test r8b, 0x10
jne 0x140010936
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140010936
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.14000d010
test edi, edi
jne 0x1400108a0
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.14000d000
int3

Function at 0x140015220
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 0x14001527d
lea rbx, [0x140078070]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140015264
cmp r10, 2
jb 0x140015264
cmp byte [r9], r8b
jne 0x140015264
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 0x140015240
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1400152bf
lea rbx, [0x140078070]
cmp r8b, 0x23
jne 0x1400152a3
cmp byte [r9], r8b
jne 0x1400152a3
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 0x140015290
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x140015400
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14001541a
mov qword [r8], 0
lea rdx, [0x140077be0]
call fcn.1400152d0
mov rbx, rax
test rax, rax
jne 0x14001543a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140015511
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140015511
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140015511
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140015511
cmp rdi, 0xffffffffffffffff
je 0x140015511
mov rax, qword [0x14008d738]
test rax, rax
je 0x1400154ae
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140015511
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x1400154fe
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14008d738]
test rax, rax
je 0x1400154f3
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14001551a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14001550c
mov qword [r14], rdi
mov rax, rsi
jmp 0x14001551c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140019440
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xf0]
lea r11, [0x140078070]
mov rax, qword [rcx + 0xf8]
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 + 0x3f40], ebx
jne 0x1400194d6
mov r8, r10
mov edx, 4
mov ecx, ebx
call fcn.14002db50
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x1400194e0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
mov rax, qword [rcx + 0xf8]
lea r9, [0x140078070]
vmovss xmm3, dword [rcx + 0x110]
vmovss xmm4, dword [rcx + 0x114]
movsxd rcx, dword [rcx + 0xf0]
vmovss xmm0, dword [rdx]
vmovss xmm2, dword [rdx + 4]
vsubss xmm1, xmm0, xmm3
mov r8d, dword [rax + rcx*4 - 4]
not r8d
movzx ecx, r8b
shr r8d, 8
vmovss dword [rsp], xmm1
movzx eax, byte [rsp]
xor rcx, rax
movzx eax, byte [rsp + 1]
vmovss xmm1, dword [rdx + 8]
vsubss xmm0, xmm2, xmm4
vmovss dword [rsp + 4], xmm0
xor r8d, dword [r9 + rcx*4]
vmovss xmm0, dword [rdx + 0xc]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 2]
vsubss xmm2, xmm1, xmm3
vmovss dword [rsp + 8], xmm2
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 3]
vsubss xmm1, xmm0, xmm4
vmovss dword [rsp + 0xc], xmm1
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 4]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 5]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 6]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 7]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 8]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 9]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xa]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xb]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xc]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xd]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xe]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [r9 + rcx*4]
movzx ecx, byte [rsp + 0xf]
movzx edx, r8b
shr r8d, 8
xor rdx, rcx
xor r8d, dword [r9 + rdx*4]
not r8d
mov eax, r8d
add rsp, 0x18
ret
Function at 0x140026440
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14008c010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x14008d738]
mov edi, ecx
cmp byte [rbx + 0x4a9d], 0
jne 0x1400264a1
cmp byte [rbx + 0x4a9e], 0
jne 0x1400264a1
movsx r9d, word [rbx + 0x5bc2]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140015080
test dil, 1
je 0x1400265cf
jmp 0x140026529
vmovss xmm1, dword [rbx + 0x389c]
vmovss xmm0, dword [0x14007d754]
vfmadd213ss xmm0, xmm1, dword [rbx + 0xe0c]
vmovss xmm2, dword [0x14007d774]
vfmadd213ss xmm2, xmm1, dword [rbx + 0xe08]
movsx r9d, word [rbx + 0x5bc2]
lea r8, str.Tooltip__02d
xor eax, eax
mov dword [rbx + 0x47d4], 1
vmovss dword [rbx + 0x47e0], xmm2
vmovss dword [rbx + 0x47e4], xmm0
mov qword [rbx + 0x47e8], rax
lea rcx, [rsp + 0x20]
vmovss xmm0, dword [rbx + 0x3904]
vmulss xmm1, xmm0, dword [0x14007d664]
or dword [rbx + 0x47d0], 0x41
lea edx, [rax + 0x10]
vmovss dword [rbx + 0x4830], xmm1
call fcn.140015080
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140026580
lea r11, [0x140078070]
nop dword [rax]
cmp r9b, 0x23
jne 0x140026563
cmp byte [r8], r9b
jne 0x140026563
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 0x140026550
not ecx
call fcn.14001d2e0
test rax, rax
je 0x1400265cf
cmp byte [rax + 0xb6], 0
je 0x1400265cf
mov byte [rax + 0xbb], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xbd], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xd8], 1
mov edx, 0x10
inc word [rbx + 0x5bc2]
movsx r9d, word [rbx + 0x5bc2]
call fcn.140015080
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14001fab0
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14006bf30
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14002c460
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 + 0x5ca8], 0
lea rbx, [rcx + 0x5cb0]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14002c507
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14002c4ba
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.14002e870
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.140015ca0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5ca8]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5cb8]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x14008d730]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14002c50f
mov rcx, rbx
call fcn.140015ca0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14002c980
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x14008d738]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x14002c9e3
mov qword [rsp], rbx
lea rbx, [0x140078070]
nop dword [rax]
cmp r9b, 0x23
jne 0x14002c9c3
cmp byte [r8], r9b
jne 0x14002c9c3
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 0x14002c9b0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5c20]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x14002ca17
mov r10, qword [r10 + 0x5c28]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x14002ca1e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x14002ca04
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x140059a80
Capabilities:
Hash data with crc32

Disassembly:
push rdi
sub rsp, 0x20
test dword [rcx + 0x10], 0x100000
mov rdi, rdx
je 0x140059b0c
movzx r9d, byte [rdx]
lea r8, [rdx + 1]
mov r10d, 0xffffffff
mov eax, r10d
test r9b, r9b
je 0x140059ae0
lea r11, [0x140078070]
nop
cmp r9b, 0x23
jne 0x140059ac3
cmp byte [r8], r9b
jne 0x140059ac3
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140059ab0
mov rcx, qword [0x14008d738]
not eax
cmp dword [rcx + 0x3f58], eax
jne 0x140059af7
mov dword [rcx + 0x3f5c], eax
cmp dword [rcx + 0x3f88], eax
jne 0x140059b69
mov byte [rcx + 0x3f8c], 1
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x14008d738]
xor edx, edx
mov qword [rsp + 0x30], rbx
mov rcx, rdi
mov qword [rsp + 0x38], rsi
mov rbx, qword [rax + 0x3ef8]
movsxd rax, dword [rbx + 0xf0]
mov r8, qword [rbx + 0xf8]
mov r8d, dword [r8 + rax*4 - 4]
call fcn.140015220
mov rcx, qword [rbx]
mov esi, eax
mov rbx, qword [rsp + 0x30]
cmp dword [rcx + 0x3f40], eax
jne 0x140059b62
mov r8, rdi
mov edx, 0xb
mov ecx, eax
call fcn.14002db50
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140062640
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400626b8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1400626b8
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1400626a5
nop
cmp rbx, rcx
jae 0x1400626b8
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140062690
cmp rbx, rcx
jae 0x1400626b8
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x1400626ba
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400626d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14008c010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rcx
mov qword [r11 - 0x20], rcx
xor edi, edi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x54], edi
mov dword [rsp + 0x50], edi
lea rax, [r11 - 0x18]
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x40], rdi
lea rax, [r11 - 0x14]
mov qword [r11 - 0x48], rax
lea r9d, [rdi + 2]
lea r8, [0x140076a50]
lea rdx, str.SoftwareNinjaHackzLicense
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140062815
xor eax, eax
mov qword [rbx], rax
call fcn.140009310
mov rcx, rax
test rax, rax
je 0x140062827
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
mov ecx, 1
mov dword [rsp + 0x40], ecx
mov edx, dword [rsp + 0x50]
shr edx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edx
or ecx, eax
jge 0x140062781
mov rcx, rbx
call fcn.14000b430
mov rax, qword [rbx]
lea r10, [rsp + 0x50]
mov qword [rsp + 0x30], r10
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov r9d, 2
lea r8, [0x140076a50]
lea rdx, str.SoftwareNinjaHackzLicense
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x1400627f8
mov eax, dword [rsp + 0x50]
shr eax, 1
lea ecx, [rax - 1]
test ecx, ecx
js 0x14006280a
mov rdx, qword [rbx]
cmp ecx, dword [rdx - 0xc]
jg 0x14006280a
mov dword [rdx - 0x10], ecx
mov rcx, qword [rbx]
mov word [rcx + rax*2 - 2], di
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14006bf30
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
jle 0x140062802
movzx eax, ax
or eax, 0x80070000
mov ecx, eax
call fcn.1400091e0
int3
mov ecx, 0x80070057
call fcn.1400091e0
int3
jle 0x14006281f
movzx eax, ax
or eax, 0x80070000
mov ecx, eax
call fcn.1400091e0
nop
mov ecx, 0x80004005
call fcn.1400091e0
int3
Function at 0x1400629b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov esi, edx
mov r14, rcx
xor edx, edx
lea rcx, [0x14008d460]
call fcn.14006cfdc
mov r15d, 1
mov rdi, rax
mov ebx, r15d
test rax, rax
je 0x140062a43
mov ebp, esi
shr ebp, 4
lea eax, [rbp + 1]
movzx r12d, ax
nop
xor r9d, r9d
mov r8, r12
mov rcx, rdi
lea edx, [r9 + 6]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x140062a2b
mov r8d, esi
mov rdx, rax
mov rcx, rdi
call fcn.140062640
test rax, rax
jne 0x140062a64
mov edx, ebx
lea rcx, [0x14008d460]
inc ebx
call fcn.14006cfdc
mov rdi, rax
test rax, rax
jne 0x140062a00
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
test rdi, rdi
je 0x140062a43
inc bp
mov r8d, 6
movzx edx, bp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x140062b5b
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140062b5b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140062b5b
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and esi, 0xf
jbe 0x140062ae9
nop word [rax + rax]
cmp rbx, rcx
jae 0x140062b5b
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add esi, 0xffffffff
jne 0x140062ad0
cmp rbx, rcx
jae 0x140062b5b
cmp word [rbx], 0
je 0x140062b5b
mov rax, qword [r14]
mov edx, r15d
movzx edi, word [rbx]
mov ecx, dword [rax - 0xc]
sub edx, dword [rax - 8]
sub ecx, edi
or edx, ecx
jge 0x140062b13
mov edx, edi
mov rcx, r14
call fcn.14000b430
movzx r9d, word [rbx]
lea r8, [rbx + 2]
mov rcx, qword [r14]
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wmemcpy_s]
test eax, eax
je 0x140062b3f
cmp eax, 0xc
je 0x140062b7d
cmp eax, 0x16
je 0x140062b67
cmp eax, 0x22
je 0x140062b67
cmp eax, 0x50
jne 0x140062b72
mov rax, qword [r14]
cmp edi, dword [rax - 0xc]
jg 0x140062b67
mov dword [rax - 0x10], edi
xor ecx, ecx
mov rax, qword [r14]
mov word [rax + rdi*2], cx
mov eax, r15d
jmp 0x140062a45
xor ecx, ecx
mov r15d, ecx
mov eax, ecx
jmp 0x140062a45
mov ecx, 0x80070057
call fcn.1400091e0
int3
mov ecx, 0x80004005
call fcn.1400091e0
int3
mov ecx, 0x8007000e
call fcn.1400091e0
int3

Function at 0x14006ccc0
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
lea rax, [rsp + 0x28]
mov r11, r8
mov r13, qword [rax]
mov rdi, r9
mov qword [rax], 0
lea rax, [rsp + 0x28]
mov r8, qword [rax]
mov rbp, rdx
mov r14, rcx
test r11, r11
je 0x1400013c2
mov ecx, 0x5a4d
cmp word [r11], cx
jne 0x1400013c2
movsxd rcx, dword [r11 + 0x3c]
cmp ecx, 0x400
jg 0x1400013c2
add rcx, r11
cmp dword [rcx], 0x4550
je 0x1400013e8
mov qword [rax], r8
xor al, al
mov rbx, qword [rsp + 0x30]
lea rcx, [rsp + 0x28]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
mov qword [rcx], r13
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
cmp dword [rcx + 0xb0], 0
je 0x1400013c5
mov r15d, dword [rcx + 0xb4]
xor ebx, ebx
mov r12d, dword [rcx + 0xb0]
test r15, r15
je 0x14000148f
nop word [rax + rax]
lea r9, [r11 + rbx]
add r9, r12
mov eax, dword [r9]
test eax, eax
je 0x14000148f
mov ecx, dword [r9 + 4]
test ecx, ecx
je 0x14000148f
lea r10, [rcx - 8]
mov esi, eax
shr r10, 1
lea r8, [r9 + 8]
mov edx, 0
je 0x140001483
nop word [rax + rax]
movzx eax, word [r8]
mov ecx, eax
and eax, 0xfff
add rax, rsi
shr rcx, 0xc
test rcx, rcx
je 0x140001483
cmp rcx, 3
jne 0x1400013c5
cmp rax, rdi
jae 0x1400013c5
lea rcx, [r11 + rax]
add r8, 2
mov rax, r14
inc rdx
sub rax, rbp
add qword [rcx], rax
cmp rdx, r10
jb 0x140001440
mov eax, dword [r9 + 4]
add rbx, rax
cmp rbx, r15
jb 0x140001410
test rbx, rbx
setne al
jmp 0x1400013c7

Function at 0x1400014a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
lea rsi, [0x140005080]
xor r9d, r9d
lea r14, [rsp + 0x10]
mov r10d, 1
mov rdi, qword [r14]
lea r15, str.awdawdawdgagwd76D762_duoy_duo2D
mov r11d, 2
mov qword [r14], r9
sub r10, rsi
sub r11, rsi
mov ebx, 3
movabs rbp, 0x135c81135c81135d
sub rbx, rsi
nop dword [rax + rax]
lea r8, [r9 + rsi]
mov rax, rbp
mul r9
mov rax, r9
mov rcx, r9
sub rax, rdx
add r9, 4
shr rax, 1
add rax, rdx
shr rax, 7
imul rax, rax, 0xee
sub rcx, rax
movzx eax, byte [rcx + r15]
lea rcx, [r8 + r10]
xor byte [r8], al
mov rax, rbp
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 7
imul rax, rax, 0xee
sub rcx, rax
movzx eax, byte [rcx + r15]
lea rcx, [r8 + r11]
xor byte [r8 + 1], al
mov rax, rbp
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 7
imul rax, rax, 0xee
sub rcx, rax
movzx eax, byte [rcx + r15]
lea rcx, [r8 + rbx]
xor byte [r8 + 2], al
mov rax, rbp
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 7
imul rax, rax, 0xee
sub rcx, rax
movzx eax, byte [rcx + r15]
xor byte [r8 + 3], al
cmp r9, 0x2e00
jb 0x140001500
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov qword [r14], rdi
mov rdi, qword [rsp + 0x30]
pop r15
pop r14
ret
Function at 0x1400015f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
lea r13, [rsp + 0x68]
movabs rdx, 0xff00ff00ff00ff00
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], r13
mov r14, qword [r13]
xor r14, rdx
mov qword [rsp + 0x20], r14
xor edi, edi
mov qword [r13], rdi
mov r9d, 0x5a4d
movzx edx, word [0x140005080]
cmp dx, r9w
jne 0x1400017b9
mov rax, qword [0x1400050bc]
cmp eax, 0x400
jg 0x1400017b9
movsxd rsi, eax
lea r12, [0x140005080]
add rsi, r12
cmp dword [rsi], 0x4550
jne 0x1400017b9
lea rcx, [rsp + 0x68]
lea r10, [rsp + 0x68]
mov r8, qword [r10]
cmp dx, r9w
je 0x1400016a8
mov qword [r10], r8
jmp 0x1400016ba
movsxd rbx, eax
add rbx, 0xb0
add rbx, r12
cmp dword [rbx], 0
jne 0x1400016bd
mov rbx, rdi
mov qword [rcx], rdi
mov r15, qword [rsi + 0x30]
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtUnmapViewOfSection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, qword [rsi + 0x30]
mov rcx, 0xffffffffffffffff
call rax
mov edx, dword [rsi + 0x50]
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbp, rax
test rax, rax
jne 0x140001738
test rbx, rbx
je 0x1400017b9
mov edx, dword [rsi + 0x50]
xor ecx, ecx
lea r9d, [rax + 0x40]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbp, rax
test rax, rax
je 0x1400017b9
mov qword [rsi + 0x30], rbp
mov r8d, dword [rsi + 0x54]
mov rdx, r12
mov rcx, rbp
call sub.VCRUNTIME140.dll_memcpy
cmp di, word [rsi + 6]
jae 0x140001782
lea rbx, [rsi + 0x11c]
nop dword [rax + rax]
mov r8d, dword [rbx - 4]
mov edx, dword [rbx]
add rdx, r12
mov ecx, dword [rbx - 8]
add rcx, rbp
call sub.VCRUNTIME140.dll_memcpy
inc edi
lea rbx, [rbx + 0x28]
movzx eax, word [rsi + 6]
cmp edi, eax
jl 0x140001760
mov rcx, rbp
call fcn.140001080
cmp rbp, r15
je 0x1400017a1
mov r9d, dword [rsi + 0x50]
mov r8, rbp
mov rdx, r15
mov rcx, rbp
call fcn.140001360
mov eax, dword [rsi + 0x28]
add rax, rbp
call rax
nop
movabs rax, 0xff00ff00ff00ff00
xor r14, rax
jmp 0x1400017c8
movabs rax, 0xff00ff00ff00ff00
xor r14, rax
xor al, al
mov qword [r13], r14
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400018b0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140002178
Capabilities:
Parse pe header

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