joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d700
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 0x14000d7cc
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14000d7cc
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 0x14000d7e5
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 0x14000d7bc
cmp byte [rax], 0x5c
jne 0x14000d7b6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14000d7b6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14000d7a2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14000d7b3
test r8b, 0x10
jne 0x14000d7b6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14000d7b6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140008390
test edi, edi
jne 0x14000d720
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.140008380
int3

Function at 0x140010e84
Capabilities:
Get geographical location

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

Function at 0x140012244
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov rbx, rcx
mov qword [rsp + 0x30], 0
lea rcx, str._rdpwrap.txt
lea r8d, [r9 + 3]
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18000225d
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
or r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rbx + r8], 0
jne 0x180002230
lea r9, [rsp + 0x40]
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180004390
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x1800042d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
lea rcx, [0x1800185f0]
mov rbx, rdx
call fcn.1800021c0
cmp byte [0x18001db38], 0
jne 0x1800042f9
call fcn.180002dd0
mov rax, qword [0x18001db48]
test rax, rax
je 0x18000430c
mov rdx, rbx
mov ecx, edi
call rax
lea rcx, str.____ServiceMain_r_n
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1800021c0

Function at 0x180004330
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x180018620]
call fcn.1800021c0
cmp byte [0x18001db38], 0
jne 0x180004353
call fcn.180002dd0
mov rax, qword [0x18001db40]
test rax, rax
je 0x180004364
mov rcx, rbx
call rax
lea rcx, str.____SvchostPushServiceGlobals_r_n
add rsp, 0x20
pop rbx
jmp fcn.1800021c0
Function at 0x411aa0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x411c2b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.0042c1a0
xorps xmm15, xmm15
mov r14, qword [0x00bb17f8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x411b05
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x411b14
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x411b33
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x411b43
cmp rbx, 0x1000
jae 0x411b0b
jmp 0x411bad
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x411b55
xor edx, edx
jmp 0x411ba4
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.0042c1a0
xorps xmm15, xmm15
mov r14, qword [0x00bb17f8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x411b39
jmp 0x411b28
call fcn.00458a40
xorps xmm15, xmm15
mov r14, qword [0x00bb17f8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00430500
lea rax, [0x00475568]
mov ebx, 0x18
nop dword [rax]
call fcn.00430d80
mov rax, qword [rsp + 0x38]
call fcn.00430ac0
lea rax, [0x0047582e]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00430d80
mov rax, qword [rsp + 0x30]
call fcn.00430ac0
call fcn.00430740
call fcn.00430560
lea rax, [0x00476f63]
mov ebx, 0x21
call fcn.0042eb60
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.004553a0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00411aa0
Function at 0x411c60
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x411e86
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_MufgiotBikes]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.0042c220
xorps xmm15, xmm15
mov r14, qword [0x00bb17f8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x411cd3
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x411ce2
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x411d05
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x411d15
cmp rbx, 0x1000
jae 0x411cd9
nop
jmp 0x411d98
add rsp, 0x50
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
cmp rbx, 0x1000
jae 0x411d2d
xor esi, esi
jmp 0x411d8a
mov rax, qword [sym.imp.kernel32.dll_MufgiotBikes]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.0042c220
xorps xmm15, xmm15
mov r14, qword [0x00bb17f8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x411d0b
jmp 0x411cf6
call fcn.00458a40
xorps xmm15, xmm15
mov r14, qword [0x00bb17f8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x411e20
nop dword [rax + rax]
call fcn.00430500
lea rax, [0x00475847]
mov ebx, 0x19
call fcn.00430d80
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call fcn.00430ac0
lea rax, [0x0047582e]
mov ebx, 0x19
call fcn.00430d80
mov eax, dword [rsp + 0x34]
call fcn.00430ac0
nop
call fcn.00430740
call fcn.00430560
lea rax, [0x00473623]
mov ebx, 0xd
call fcn.0042eb60
nop dword [rax + rax]
cmp eax, 0x5af
je 0x411dc0
call fcn.00430500
lea rax, [0x00475847]
mov ebx, 0x19
call fcn.00430d80
mov rax, qword [rsp + 0x38]
call fcn.00430ac0
lea rax, [0x0047582e]
mov ebx, 0x19
call fcn.00430d80
mov eax, dword [rsp + 0x34]
nop dword [rax]
call fcn.00430ac0
call fcn.00430740
call fcn.00430560
lea rax, [0x004769c5]
mov ebx, 0x1f
nop dword [rax + rax]
call fcn.0042eb60
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.004553a0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp fcn.00411c60
Function at 0x4571e0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x00bb1860]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x00bb15e8], 0
je 0x457216
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x00bb1b20]
aesenc xmm0, xmmword [0x00bb1b30]
aesenc xmm0, xmmword [0x00bb1b40]
movq rax, xmm0
ret
jmp 0x407e20

Function at 0x458ec0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x458ef4
mov rcx, 0x28
jmp 0x458eff
shl rcx, 3
add rcx, 0x1480
mov qword [0x00bb17f8], rcx
pop rbp
ret

Function at 0x45e040
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x45e10a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.00402840
xorps xmm15, xmm15
mov r14, qword [0x00bb17f8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x45e0ef
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x00467180]
xor ebx, ebx
mov rcx, rdx
call fcn.004413a0
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.0045e3a0
inc rbx
cmp rcx, rbx
jae 0x45e0de
mov edi, 1
lea rsi, [0x00467180]
call fcn.00441480
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x0048c348]
lea rsi, [0x0048c0a8]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.004553a0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.0045e040
Function at 0x14000609c
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
and qword [rax - 0x28], 0
mov rdi, r9
and qword [rax - 0x30], 0
mov rsi, r8
and dword [r9], 0
xor r9d, r9d
and dword [rax + 0x18], 0
lea rax, [rax + 0x18]
and qword [r8], 0
mov ebp, edx
mov r14, rcx
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 7]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
nop dword [rax + rax]
test eax, eax
jne 0x14000610d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x140006185
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x140006183
mov ecx, eax
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x140006132
mov eax, 0x8007000e
jmp 0x140006185
and qword [rsp + 0x30], 0
lea rax, [rsp + 0x70]
and qword [rsp + 0x28], 0
mov r9, rbx
mov r8d, 7
mov qword [rsp + 0x20], rax
mov edx, ebp
mov rcx, r14
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
nop dword [rax + rax]
test eax, eax
jne 0x14000617a
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
jmp 0x1400060f0
mov eax, dword [rsp + 0x70]
mov dword [rdi], eax
mov qword [rsi], rbx
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x1400061a0
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
and qword [rax - 0x28], 0
mov rdi, r9
and qword [rax - 0x30], 0
mov rsi, r8
and dword [r9], 0
xor r9d, r9d
and dword [rax + 0x18], 0
lea rax, [rax + 0x18]
and qword [r8], 0
mov ebp, edx
mov r14, rcx
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 7]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
nop dword [rax + rax]
test eax, eax
jne 0x140006211
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x140006289
mov eax, dword [rsp + 0x70]
test eax, eax
je 0x140006287
mov ecx, eax
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x140006236
mov eax, 0x8007000e
jmp 0x140006289
and qword [rsp + 0x30], 0
lea rax, [rsp + 0x70]
and qword [rsp + 0x28], 0
mov r9, rbx
mov r8d, 7
mov qword [rsp + 0x20], rax
mov edx, ebp
mov rcx, r14
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
nop dword [rax + rax]
test eax, eax
jne 0x14000627e
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
jmp 0x1400061f4
mov eax, dword [rsp + 0x70]
mov dword [rdi], eax
mov qword [rsi], rbx
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140009ab8
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
xor esi, esi
and dword [rax + 0x18], ebx
mov rdi, r9
mov r14, r8
mov r15, rdx
test r8, r8
je 0x140009c06
test rcx, rcx
je 0x140009c06
test r9, r9
je 0x140009c06
and qword [rax - 0x28], rbx
and qword [r8], rbx
lea r8d, [rbx + 1]
and dword [rdx], ebx
mov edx, 0x80000000
or qword [r9], 0xffffffffffffffff
xor r9d, r9d
mov dword [rax - 0x30], 0x80
mov dword [rax - 0x38], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
jne 0x140009b53
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140009bd1
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
mov ebp, eax
cmp eax, 0xffffffff
je 0x140009b37
cmp dword [rsp + 0x70], ebx
je 0x140009b7b
mov ebx, 0x80004005
jmp 0x140009bd5
and qword [rsp + 0x28], rbx
xor r9d, r9d
mov rcx, qword [rdi]
xor edx, edx
and dword [rsp + 0x20], ebx
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x140009b37
xor r9d, r9d
mov qword [rsp + 0x20], rbp
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
nop dword [rax + rax]
test rax, rax
je 0x140009b37
mov dword [r15], ebp
mov qword [r14], rax
test ebx, ebx
je 0x140009bee
cmp qword [rdi], 0xffffffffffffffff
je 0x140009bee
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
or qword [rdi], 0xffffffffffffffff
test rsi, rsi
je 0x140009c02
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, ebx
jmp 0x140009c0b
mov eax, 0x80070057
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140009c2c
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x40
mov rcx, qword [0x14000f6b8]
mov ebx, r8d
and dword [rax + 8], 0
mov rsi, rdx
test rcx, rcx
je 0x140009d1a
test rdx, rdx
je 0x140009d1a
test ebx, ebx
je 0x140009d1a
and qword [rax - 0x18], 0
xor r9d, r9d
and dword [rax - 0x20], 0
xor r8d, r8d
mov edx, 0x40000000
mov dword [rax - 0x28], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140009cb7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140009d16
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, ebx
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x140009cf7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140009d07
mov eax, dword [rsp + 0x50]
sub eax, ebx
neg eax
sbb ebx, ebx
and ebx, 0x80004005
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, ebx
jmp 0x140009d1f
mov eax, 0x80070057
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140009e70
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14000f880], rbx
je 0x140009ebc
cmp rax, rbx
jne 0x140009eaf
mov ebx, 1
mov esi, ebx
jmp 0x140009ec1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140009e94
mov ebx, 1
mov eax, dword [0x14000f888]
cmp eax, ebx
jne 0x140009ed7
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x140009f3c
mov eax, dword [0x14000f888]
test eax, eax
jne 0x140009f36
mov dword [0x14000f888], ebx
lea r15, [0x14000b540]
lea rdi, [0x14000b528]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140009f28
test eax, eax
jne 0x140009f2c
cmp qword [rdi], 0
je 0x140009f1d
mov rax, qword [rdi]
mov rcx, qword [0x14000b508]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x140009efe
test eax, eax
je 0x140009f3c
mov eax, 0xff
jmp 0x14000a018
mov dword [0x14000d034], ebx
mov eax, dword [0x14000f888]
cmp eax, ebx
jne 0x140009f63
lea rdx, [0x14000b520]
lea rcx, [0x14000b510]
call sub.msvcrt.dll__initterm
mov dword [0x14000f888], 2
test esi, esi
jne 0x140009f70
xor eax, eax
xchg qword [0x14000f880], rax
cmp qword [0x14000f890], 0
je 0x140009fa4
lea rcx, [0x14000f890]
call fcn.14000a220
test eax, eax
je 0x140009fa4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14000f890]
mov r9, qword [0x14000b508]
call r9
mov r8, qword [0x14000d048]
mov rdx, qword [0x14000d040]
mov ecx, dword [0x14000d038]
call fcn.140001008
mov dword [0x14000d030], eax
cmp dword [0x14000d050], 0
jne 0x140009fd4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000d034], 0
jne 0x140009fe9
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000d030]
jmp 0x14000a018
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1400a4000
add rsp, 0x28
jmp 0x140009e70

Function at 0x14000a10c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000a158
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000a150
cmp dword [rcx + 0x3c], edx
jl 0x14000a150
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000a150
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000a158
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001220
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x428
mov rax, qword [0x140021008]
xor rax, rsp
mov qword [rsp + 0x420], rax
movzx edx, cx
lea r8, [0x14001c0e0]
xor esi, esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1400012fe
mov rbx, rax
xor esi, esi
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x1400012fe
mov edi, eax
xor esi, esi
xor ecx, ecx
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400012fe
mov rbx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x1400012fc
mov esi, edi
mov rcx, rsi
call fcn.140004e28
mov r14, rax
mov rcx, rax
mov rdx, rbx
mov r8, rsi
call fcn.140002b70
lea rsi, [rsp + 0x20]
mov r8d, 0x400
mov rcx, rsi
xor edx, edx
call fcn.140003220
mov rcx, rsi
mov rdx, r14
mov r8d, edi
call section..text
mov edi, eax
movsxd rbx, eax
mov rcx, rbx
call fcn.1400017e8
mov rsi, rax
test ebx, ebx
jle 0x1400012fe
mov r8d, edi
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140002b70
jmp 0x1400012fe
xor esi, esi
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.140001800
mov rax, rsi
add rsp, 0x428
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140001320
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get common file path
Read file via mapping

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x2a8
mov rax, qword [0x140021008]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rsi, rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], 0
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x50], rsi
mov rcx, rsi
mov qword [rsp + 0x58], rax
mov rdx, rax
mov r9d, 0x18
call sub.KERNEL32.dll_K32GetModuleInformation
mov r14, qword [rsp + 0x70]
lea rsi, [rsp + 0x90]
mov r8d, 0x208
mov rcx, rsi
xor edx, edx
call fcn.140003220
mov rcx, rsi
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, str._ntdll.dll
mov rcx, rsi
call fcn.140004f28
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov rcx, rsi
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x48], rax
mov rcx, rax
xor edx, edx
mov r8d, 0x1000002
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x40], rax
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x60], rax
movsxd r15, dword [r14 + 0x3c]
movzx edi, word [r15 + r14 + 6]
test di, di
je 0x1400014fb
lea r12, [r14 + r15]
add r12, 0x18
xor r13d, r13d
lea rbx, str..text
lea rsi, [rsp + 0x6c]
jmp 0x140001490
add r13, 1
movzx eax, di
add r12, 0x28
cmp r13, rax
jae 0x1400014fb
movzx ebp, word [r14 + r15 + 0x14]
add rbp, r12
mov rcx, rbp
mov rdx, rbx
call fcn.140004ea0
test eax, eax
jne 0x140001480
mov dword [rsp + 0x6c], 0
mov edx, dword [rbp + 8]
mov ecx, dword [rbp + 0xc]
add rcx, r14
mov r8d, 0x40
mov r9, rsi
mov rdi, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rdi
mov r8d, dword [rbp + 8]
mov edx, dword [rbp + 0xc]
lea rcx, [rdx + r14]
add rdx, qword [rsp + 0x60]
call fcn.140002b70
mov r8d, dword [rsp + 0x6c]
mov edx, dword [rbp + 8]
mov ecx, dword [rbp + 0xc]
add rcx, r14
mov r9, rsi
call rdi
movzx edi, word [r14 + r15 + 6]
jmp 0x140001480
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call rsi
mov rcx, qword [rsp + 0x48]
call rsi
mov rcx, qword [rsp + 0x40]
call rsi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140001800
nop
add rsp, 0x2a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret