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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
mov ebx, ecx
mov rsi, r8
xor ecx, ecx
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx edx, bx
mov r8, rdi
mov rcx, rax
mov r14, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x140012efc
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rdi
mov rcx, r14
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test rbx, rbx
je 0x140012efc
test eax, eax
je 0x140012efc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x140012efc
mov rcx, qword [rsi]
mov dword [rbp - 0x20], 0x7823cc87
mov dword [rbp - 0x1c], 0xc3876c44
mov dword [rbp - 0x18], 0x5173863f
mov dword [rbp - 0x14], 0x52be6216
mov dword [rbp - 0x10], 0xf156f486
mov dword [rbp - 0xc], 0xbe1b1ac
mov dword [rbp - 8], 0x44e4a307
mov dword [rbp - 4], 0xdbcf04a
cmp rcx, qword [rsi + 8]
je 0x140012e9b
mov qword [rsi + 8], rcx
mov rax, qword [rsi + 0x10]
sub rax, rcx
mov qword [rbp + 0x38], rdi
cmp rdi, rax
jbe 0x140012eb7
lea rdx, [rbp + 0x38]
mov rcx, rsi
call fcn.140012f40
xor ebx, ebx
test rdi, rdi
je 0x140012ef8
nop
mov rdx, qword [rsi + 8]
mov rax, rbx
and eax, 0x1f
movzx ecx, byte [rbp + rax - 0x20]
xor cl, byte [r14 + rbx]
mov byte [rbp + 0x20], cl
cmp rdx, qword [rsi + 0x10]
je 0x140012ee4
mov byte [rdx], cl
inc qword [rsi + 8]
jmp 0x140012ef0
lea r8, [rbp + 0x20]
mov rcx, rsi
call fcn.140013030
inc rbx
cmp rbx, rdi
jb 0x140012ec0
mov al, 1
jmp 0x140012efe
xor al, al
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x140013720
Capabilities:
Load windows common language runtime

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
cmp qword [0x1400812c0], 0
jne 0x140013812
xor ebx, ebx
lea r8, [rsp + 0x48]
lea rdx, [0x14006eb28]
mov qword [rsp + 0x48], rbx
lea rcx, [0x14006eb18]
call qword [sym.imp.mscoree.dll_CLRCreateInstance]
lea rdi, [0x1400812c0]
test eax, eax
js 0x1400137d5
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x40], rbx
lea r8, [0x14006eb08]
lea rdx, str.v4.0.30319
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov ebx, eax
test eax, eax
js 0x1400137c6
mov rcx, qword [rsp + 0x40]
lea r8, [0x14006ad20]
mov r9, rdi
lea rdx, [0x14006ad30]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov ebx, eax
test eax, eax
js 0x1400137bb
mov rcx, qword [0x1400812c0]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
test ebx, ebx
jns 0x140013812
cmp qword [0x1400812c0], 0
jne 0x140013812
lea r9, [0x14006ad20]
mov qword [rsp + 0x20], rdi
lea r8, [0x14006ad30]
xor edx, edx
lea rcx, str.v2.0.50727
call qword [sym.imp.mscoree.dll_CorBindToRuntime]
test eax, eax
js 0x14001381f
mov rcx, qword [0x1400812c0]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov al, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
xor r9d, r9d
lea r8, [0x14006e458]
lea rdx, [0x14006e470]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rbx, qword [rsp + 0x50]
xor al, al
add rsp, 0x30
pop rdi
ret
Function at 0x1400159f0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x14007e040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov edi, r9d
mov rbx, rdx
test r8b, r8b
jne 0x140015ae2
mov rdx, rcx
lea rcx, [rsp + 0x60]
call fcn.140012630
mov rdx, rbx
lea rcx, [rsp + 0x80]
call fcn.140012630
mov dword [rsp + 0xa0], edi
mov ecx, 0x48
call fcn.140035354
mov rbx, rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.140012630
nop
lea rcx, [rbx + 0x20]
lea rdx, [rsp + 0x80]
call fcn.140012630
mov ecx, dword [rsp + 0xa0]
mov dword [rbx + 0x40], ecx
mov qword [rsp + 0x50], rbx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x14001b0b0]
xor edx, edx
xor ecx, ecx
call fcn.140042580
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140015b25
lea rcx, [rsp + 0x60]
call fcn.140015b50
cmp dword [rsp + 0x38], 0
je 0x140015b38
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x50]
call fcn.140034a84
test eax, eax
jne 0x140015b38
jmp 0x140015b04
cmp qword [rdx + 0x18], 7
jbe 0x140015aec
mov rbx, qword [rdx]
cmp qword [rcx + 0x18], 7
jbe 0x140015af6
mov rcx, qword [rcx]
mov r8, rbx
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140035300
mov rbx, qword [rsp + 0xe0]
add rsp, 0xc0
pop rdi
ret
mov dword [rsp + 0x38], 0
mov ecx, 6
call fcn.1400349e8
nop
mov ecx, 1
call fcn.1400349e8
int3

Function at 0x140015c10
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x14007e040]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140015c80
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140002ab0
mov dword [rsp + 0x30], 1
mov r8d, SafeArrayDestroy
lea rdx, [0x140070660]
mov rcx, rbx
call fcn.140003660
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140035300
add rsp, 0x260
pop rbx
ret
Function at 0x1400196a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
movabs rax, 0xcbf29ce484222325
sar r8, 1
mov r9d, 0
add r8, r8
je 0x1400196e4
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1400196d0
ret
Function at 0x14001e920
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
mov ebp, 0xfffd
nop word [rax + rax]
movzx ecx, word [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x14001ea03
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14001ea03
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 0x14001ea21
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 0x14001e9f3
cmp word [rax], 0x5c
jne 0x14001e9ec
lea rdx, [rax + 2]
cmp rdx, rcx
je 0x14001e9ec
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14001e9d7
movzx ecx, word [rdx]
sub cx, 0x28
cmp cx, 1
jbe 0x14001e9e9
test r8b, 0x10
jne 0x14001e9ec
movzx ecx, word [rdx]
sub cx, 0x7b
test bp, cx
jne 0x14001e9ec
mov rax, rdx
add rax, 2
mov qword [rbx], rax
mov rcx, rbx
call fcn.14001aa40
test edi, edi
jne 0x14001e950
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.14001aa30
int3
Function at 0x14002aa20
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x14007e040]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
xor esi, esi
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbx + 0xe0]
test rcx, rcx
je 0x14002aa6c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x1400811c0]
mov r8d, dword [rbx + 0xa0]
xor edx, edx
mov ecx, 0xc3a
call rax
mov qword [rbx + 0xe0], rax
lea rcx, [rbx + 0x60]
call fcn.1400320e0
mov dword [rbp - 0x29], esi
mov dword [rbp - 0x39], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x14002ab0e
lea rdx, [rbp - 0x39]
mov rcx, qword [rbx + 0xe0]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x14002ab0e
mov eax, dword [rbp - 0x39]
cmp dword [rbp - 0x29], eax
je 0x14002ab0e
lea r8, [0x1400813e0]
cmp qword [0x1400813f8], 7
cmova r8, qword [0x1400813e0]
lea rdx, [0x140081620]
cmp qword [0x140081638], 7
cmova rdx, qword [0x140081620]
xor ecx, ecx
lea r9d, [rcx + 0x10]
call qword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
jmp 0x14002abcd
cmp qword [rbx + 0xe0], rsi
jne 0x14002abcb
lea rdx, [0x1400815c0]
lea rcx, [rbp - 9]
call fcn.140012630
lea rdx, [0x1400813e0]
lea rcx, [rbp + 0x17]
call fcn.140012630
mov dword [rbp + 0x37], 0x10
mov ecx, 0x48
call fcn.140035354
mov rbx, rax
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x39], rax
lea rdx, [rbp - 9]
mov rcx, rax
call fcn.140012630
nop
lea rcx, [rbx + 0x20]
lea rdx, [rbp + 0x17]
call fcn.140012630
mov ecx, dword [rbp + 0x37]
mov dword [rbx + 0x40], ecx
mov qword [rbp - 0x29], rbx
lea rax, [rbp - 0x11]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9, rbx
lea r8, [0x14001b0b0]
xor edx, edx
xor ecx, ecx
call fcn.140042580
mov qword [rbp - 0x19], rax
test rax, rax
je 0x14002abf2
lea rcx, [rbp - 9]
call fcn.140015b50
cmp dword [rbp - 0x11], 0
je 0x14002ac00
movaps xmm0, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 0x29], xmm0
lea rcx, [rbp - 0x29]
call fcn.140034a84
test eax, eax
jne 0x14002ac00
jmp 0x14002abcd
mov al, 1
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140035300
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov dword [rbp - 0x11], esi
mov ecx, 6
call fcn.1400349e8
nop
mov ecx, 1
call fcn.1400349e8
int3
Function at 0x140032570
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14007e040]
xor rax, rsp
mov qword [rsp + 0x88], rax
xor edi, edi
mov rax, qword [0x1400811d8]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r8
mov r9, rdx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x80]
call rax
mov rbx, rax
test rax, rax
jne 0x140032700
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.14002b3d0
nop
lea r8, [0x140081600]
cmp qword [0x140081618], 7
cmova r8, qword [0x140081600]
mov r9, qword [0x140081610]
mov rcx, rax
call fcn.140007040
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
lea r8, [0x1400813e0]
cmp qword [0x1400813f8], 7
cmova r8, qword [0x1400813e0]
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rdx, qword [rsp + 0x48]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x1400326a8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400326a3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140032749
call fcn.140035320
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], di
mov rdx, qword [rsp + 0x80]
cmp rdx, 7
jbe 0x1400326fc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400326f7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140032743
call fcn.140035320
xor al, al
jmp 0x140032722
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140035300
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
call fcn.14003c3f8
nop
call fcn.14003c3f8
nop
int3
Function at 0x140032750
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x14007e040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rdx
mov qword [rsp + 0x50], rdx
xor r15d, r15d
lea r14, [r15 - 1]
cmp qword [rdx + 0x10], r15
jne 0x1400327a3
lea rdx, [rcx + 0x60]
cmp rdi, rdx
je 0x1400327a3
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 7
jbe 0x14003279b
mov rdx, qword [rdx]
mov rcx, rdi
call fcn.1400023a0
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x1400327b0
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003286e
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x1400327cc
mov rcx, qword [rdi]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, r14
je 0x14003286e
mov qword [rsp + 0x48], r15
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140032864
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.1400355d8
mov rsi, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.14005a480
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x48]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003285c
movsxd rax, dword [rsi + 0x3c]
mov r14d, dword [rax + rsi + 8]
mov rcx, rsi
call fcn.140035320
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x1400328a9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400328a4
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400328dd
mov rcx, r8
call fcn.140035320
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 7
mov word [rdi], r15w
mov rax, r14
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140035300
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14003c3f8
int3
Function at 0x1400360fc
Capabilities:
Parse pe header

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

Function at 0x140041cbc
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x14007e040]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x1400622e8]
mov rbp, rcx
call fcn.14004f350
xor edi, edi
test rax, rax
je 0x140041da2
mov ebx, edi
call fcn.140042734
mov r14d, dword [rax]
call fcn.140042734
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.14004f29c
mov rsi, rax
test rax, rax
je 0x140041d33
call fcn.140042734
mov dword [rax], r14d
jmp 0x140041d5d
call fcn.140042734
cmp dword [rax], 0x22
jne 0x140041d9a
call fcn.140042734
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.14004f29c
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x140041d9a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140041d61
cmp rax, 3
je 0x140041d7c
mov rcx, rsi
call fcn.140041c18
test al, al
je 0x140041d8d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140041d8d
mov dil, 1
mov rcx, rbx
call fcn.1400406ec
mov al, dil
jmp 0x140041da4
mov rcx, rbx
call fcn.1400406ec
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140035300
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1400420e8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140041f47
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140041f47
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140041f47
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140041f47
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140041f47
cmp dword [rcx + 0x84], 0xe
jbe 0x140041f47
cmp dword [rcx + 0xf8], 0
je 0x140041f47
mov ecx, ebx
call fcn.140042004
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140041dd4
nop
cmp dword [rbp + 0x20], 0
je 0x140041f95
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140041fa0
int3
xor r8d, r8d
xor edx, edx
jmp 0x140041ed8
Function at 0x140053184
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14005320b
mov rsi, rbx
cmp word [rax], bp
je 0x1400531ca
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400531b4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400531b0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14004b89c
mov rdi, rax
test rax, rax
je 0x1400531f8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14005a840
mov rbp, rdi
xor ecx, ecx
call fcn.14004b860
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14005a0b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14005a0d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14005a0d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002e28
Capabilities:
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edi, edi
cmp word [0x14000cd18], di
jne 0x140002e7d
cmp dword [0x14000cd04], edi
jne 0x140002e70
call fcn.140005c0c
test eax, eax
je 0x140002f63
cmp word [0x14000cd18], di
jne 0x140002e7d
call fcn.140003d0c
test eax, eax
je 0x140002f63
call fcn.140005b4c
test eax, eax
je 0x140002f63
call fcn.140006028
test eax, eax
je 0x140002f63
mov ebx, 0x105
lea rcx, [rsp + 0x30]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea r8, [0x1400096f8]
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1400073cc
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x140002ef3
lea rdx, str.DecryptFileA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140002ef3
xor edx, edx
lea rcx, [0x14000d610]
call qword [vtable.H_MA8HI.0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x14000cd04], edi
jne 0x140002f9f
cmp dword [0x14000de60], edi
jne 0x140002f9f
mov edx, 0x104
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x140002f86
mov edx, 0x4f0
xor r9d, r9d
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov dword [rsp + 0x20], FDIDestroy
xor ecx, ecx
call fcn.140004a70
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [0x14000d544], ecx
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140007c20
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
mov edx, 2
lea rcx, [rsp + 0x140]
mov r8d, edx
call fcn.1400065b0
test eax, eax
je 0x140002f63
lea rcx, [0x14000d610]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x140002fba
mov edx, 0x4bc
jmp 0x140002f30
cmp dword [0x14000cd0c], edi
jne 0x140003056
lea rax, [0x14000d040]
mov ecx, 0x28
mov dword [rax], 1
lea rax, [rax + 0x20]
sub rcx, 1
jne 0x140002fd2
test byte [0x14000cd18], 1
jne 0x140003024
test byte [0x14000de64], 1
jne 0x140003024
mov eax, dword [0x14000c1ac]
lea r9, [0x140003720]
neg eax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
sbb rdx, rdx
xor r8d, r8d
add rdx, 0x7d5
call fcn.140007304
test rax, rax
jmp 0x14000302b
call fcn.140005940
test eax, eax
jne 0x14000303c
mov dword [0x14000d544], 0x8007042b
jmp 0x140002f63
lea rcx, [0x140007110]
call fcn.140006fb0
test eax, eax
je 0x140002f63
mov dword [0x14000d544], edi
mov eax, dword [0x14000d028]
test al, 0x40
jne 0x140003072
test al, al
js 0x140003072
movzx ecx, word [0x14000de78]
call fcn.140002174
jmp 0x140003074
mov eax, edi
mov dword [0x14000de7c], eax
mov eax, dword [0x14000cd04]
test eax, eax
jne 0x14000309f
cmp dword [0x14000de60], edi
jne 0x14000309f
call fcn.140003e4c
test eax, eax
je 0x140002f63
mov eax, dword [0x14000cd04]
cmp word [0x14000cd18], di
jne 0x1400030b1
test eax, eax
jne 0x1400030b1
call fcn.14000466c
mov eax, 1
jmp 0x140002f65
Function at 0x14001126c
Capabilities:
Terminate process

Disassembly:
jmp 0x140013cf0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x140011302
Capabilities:
Create thread

Disassembly:
jmp 0x1400125d0
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x30]
lea rcx, [0x1400250f3]
call fcn.140011438
nop
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x1400111b8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x14001264a
lea rdx, str.Error_creating_thread.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001108c
lea rdx, [0x14001103c]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov eax, 1
jmp 0x1400126df
xor eax, eax
cmp eax, 1
je 0x1400126c2
call fcn.1400113c5
movzx eax, al
test eax, eax
je 0x1400126b4
lea r9, str.HiddenWindow
lea r8, str.STATIC
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExW]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x1400126b4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.USER32.dll_SendMessageW]
nop
lea r9, str.HiddenWindow
lea r8, str.STATIC
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExW]
mov qword [rbp + 0x28], rax
jmp 0x140012679
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
jmp 0x14001264a
mov edx, 0xffffffff
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor eax, eax
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret