joyce8/EMBER2024-capa huggingface dataset:
Function at 0x142f30046
Capabilities:
Encode data using base64

Disassembly:
push rcx
inc word [rsp + rdx*2 + 7]
sub bl, 0x9f
shr word [rsp + rdx*2 + 8], 0xc4
movzx edi, dl
xor cx, dx
neg bl
dec bl
rol al, 0x82
rol cx, 0x2b
xor bl, 0x14
sar rax, cl
pop r11
xchg dx, cx
xor sil, bl
shl dword [rsp + rdx*2 - 0x1aa1e], 0xdb
seta r11b
lea rbx, [rsp + rbx + 0x10]
mov edx, dword [rbx + rdx - 0xd50f]
mov dword [rcx + rbp - 0x28f0006], edx
call fcn.142f6b02d
xor dword [rsp + rbx*2 - 0x10b626f6], eax
mov rsi, qword [rsp + rbx*2 - 0x10b626f6]
movsxd rax, eax
call fcn.142f55c25
sar rdi, cl
jae 0x142f5cf0a
lea r11, [rsp + r11 + 0x28]
movzx ax, byte [r11 + rbx - 1]
xadd rdx, rcx
lea rbp, [rbp + rbx*2 - 4]
sbb bl, ch
mov word [rbp + rbx - 1], ax
adc rbx, 0xfffffffffa1dea82
pop rdx
pop rdx
pop r11
pop r9
pop rcx
jle fcn.142f8d918
neg r11d
not al
not r11d
push rax
call fcn.142f53a9d
neg bx
rol bx, 1
dec bx
xor si, bx
sal edx, 0x96
rol dl, 0x85
and rdx, r11
mov word [rdx + rbp - 2], bx
movzx ebx, byte [rdx + r10 + 6]
shl rax, 0x7b
pop rdi
rol cl, 2
xor bl, sil
jmp 0x142f1eca1
lea r10, [rcx + r10 - 0x34020030]
add edi, ecx
call fcn.142f2debf
rol dx, 1
dec dx
lea rbx, [rax + rax*2 - 0x135e5dfa]
xchg rbx, r9
movzx ecx, r11w
not dx
xor r11d, eax
dec dil
neg ebx
rol dx, 1
call fcn.142f44075
mov rdx, qword [rbp + riz]
mov r9, qword [rbp + 8]
mov ecx, 0x719bda93
lea rax, [rcx*2 - 0x53dca549]
add rdx, r9
neg ax
jo 0x142f7a0ab
mov qword [rcx + rbp - 0x719bda8b], rdx
movzx r9d, cl
movzx ebx, r9b
lea r11, [rax + 0x1901f91e]
mov rcx, qword [rbp + rcx - 0x719bda8b]
jne 0x142f43652
not r11d
push r9
xor dword [rsp + rax - 0x59adfff9], 0x613d6988
jp 0x142f2f27a
inc dword [rsp + rdx - 0x483a]
movsx ebx, r11w
mov rsi, qword [rsp + rdx*4 - 0x120ec]
mov word [rsp + rdx*2 - 0x9079], 0x389d
movsxd r9, r9d
sar dword [rsp + r11 - 0x483a], 0x33
or cx, 0x372c
sal rdx, 0x2f
adc r8, r9
sub dl, 0x3b
sub dword [rsp + r11*2 - 0x9076], 0xf68bef00
mov qword [rsp + r11 - 0x483d], r8
ret 8

Function at 0x142f64480
Capabilities:
Encode data using base64

Disassembly:
xor dword [rsp + rdx - 0xbe44], r9d
sar edx, 0x4f
mov qword [rsp + rdx - 1], rdx
mov rsi, qword [rsp + rdx*2 + 6]
jae 0x142f20397

Function at 0x142f73532
Capabilities:
Encode data using base64

Disassembly:
and r9b, r9b
mov qword [rsp + rdi - 0x1e], 0x7725db1c
rol r11d, 1
xadd cx, r9w
setns byte [rsp + rdi*8 - 0xf0]
mov qword [rsp + rdi*4 - 0x78], rsi
xadd r9b, al
or ebx, eax
lea rdx, [rbx + rax*2 + 0x4225f30a]
xor dword [rsp + rdi - 0x1e], r11d
rol edx, cl
neg edx
pop rsi
jno 0x142fa230b
call fcn.142f6e997
movsxd r11, r11d
js 0x142f78763
mov r11d, dword [r10]
push 0x239ee822
xor r11d, esi
mov eax, dword [rsp + 3]
or rax, 0xfffffffff69d4f8e
bswap r11d
inc r11d
movsx ecx, al
push rax
rol r11d, 1
xchg byte [rsp + rax*2 + 0x12c560a5], ch
dec r11d
mov qword [rsp + rax + 0x962b059], rsi
xor dword [rsp + rax*8 + 0x4b158290], r11d
movzx esi, ax
not word [rsp + rax*2 + 0x12c560a7]
mov rsi, qword [rsp + rax*2 + 0x12c560aa]
call fcn.142f77a6d
Function at 0x142f80cf8
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + rdx], rsi
xchg rcx, rdx
xor dword [rsp + rcx], edi
xor r9w, 0x41a1
sal rbx, 0xb1
movsx esi, r9b
pop rsi
call fcn.142f1c8a1
push rcx
lea edi, [r11 + rdi - 0x6e05b69a]
not edi
and r9, 0x519b7384
adc qword [rsp + rdx - 0x440abbb8], rdx
pop rdx
inc edi
ror byte [rsp + rax - 0x2c], 0x21
dec ebx
xor edi, ebx
call fcn.142f5557f
add qword [rsp + rdx], rsi
mov r9d, 0xcd090b15
mov ecx, edx
movzx ebx, r9w
xor dword [rsp + rdx*4], eax
sub dx, di
mov r11d, ecx
shr r11b, 6
pop rsi
movsxd rax, eax
inc r9
adc r8, rax
ror dil, 0xc7
add rcx, qword [rbp + rdx - 0x7da6]
inc rdi
call fcn.142f5df78
lea edi, [rdi + rdx*8 + 0x5803bf85]
mov qword [rsp + rdx], 0xffffffff84391421
rol edi, 2
xadd r9b, cl
jne 0x142f2f4b0
movzx edi, byte [r10]
mov edx, 0xd83ca02d
lea r11, [rdx + 0x219571ae]
xor dil, sil
rol dil, 1
movzx eax, dl
mov ecx, 0x411b08b5
xor dil, 0x39
movsx ebx, r11b
lea r9, [rax + r11 - 0x6ca74f3]
jmp 0x142f934d1
mov edi, dword [r10 + rax - 0x2c]
bswap r9
sub r11d, edx
xor edi, esi
neg edi
sal r9w, 0x46
movzx ebx, r9w
xor edx, 0xbf3506ae
dec edi
not edi
sar dword [rsp + rax - 0x29], cl
rol edi, 1
ror qword [rsp + rdx - 0x440abbc0], cl
jae 0x142f4b77d
call fcn.142f7ef93
dec dil
xadd r9d, ecx
or rdx, rcx
rol dil, 1
xor sil, dil
xchg cl, r9b
shr r11w, 0x87
add dl, 0x32
adc rdi, rsp
dec dx
push rcx
cmovg ax, word [rsp + rax*2 - 0x54]
movzx bx, byte [rdi + rax*8 - 0x168]
mov word [rbp + rax - 0x2f], bx
jl 0x142f8a552
Function at 0x140001070
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140008008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, qword [r8]
mov rdi, r8
and qword [r8], 0
mov rsi, rdx
mov r14, rcx
test rbx, rbx
je 0x1400010e6
mov r15d, 0x400000
and dword [rsp + 0x30], 0
lea r9, [rsp + 0x30]
mov rcx, qword [r14]
mov r8d, ebx
cmp rbx, r15
mov rdx, rsi
cmova r8d, r15d
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x30]
add qword [rdi], rdx
add rsi, rdx
sub rbx, rdx
test eax, eax
je 0x140001101
test edx, edx
je 0x1400010e6
test rbx, rbx
jne 0x1400010a6
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140004100
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400010e8
Function at 0x100002454
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r12
push r13
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor r12d, r12d
xor eax, eax
lock cmpxchg qword [0x100004758], rdi
je 0x1000024a2
cmp rax, rdi
jne 0x100002495
mov edi, 1
mov r12d, edi
jmp 0x1000024a7
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100002479
mov edi, 1
mov eax, dword [0x100004750]
cmp eax, edi
jne 0x1000024bd
mov ecx, 0x1f
call fcn.10017e000
jmp 0x10000251a
mov eax, dword [0x100004750]
test eax, eax
jne 0x100002514
mov dword [0x100004750], edi
lea r13, [0x100001290]
lea rsi, [0x100001278]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
cmp rsi, r13
jae 0x100002506
test eax, eax
jne 0x100002506
mov rcx, qword [rsi]
test rcx, rcx
je 0x1000024fb
call rcx
mov dword [rsp + 0x20], eax
add rsi, 8
mov qword [rsp + 0x28], rsi
jmp 0x1000024e4
test eax, eax
je 0x10000251a
mov eax, 0xff
jmp 0x1000025ec
mov dword [0x100004184], edi
mov eax, dword [0x100004750]
cmp eax, edi
jne 0x100002541
lea rdx, [0x100001270]
lea rcx, [0x100001260]
call sub.msvcrt.dll__initterm
mov dword [0x100004750], 2
test r12d, r12d
jne 0x10000254f
xor eax, eax
xchg qword [0x100004758], rax
cmp qword [0x100004760], 0
je 0x100002578
lea rcx, [0x100004760]
call fcn.10000284c
test eax, eax
je 0x100002578
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100004760]
mov r8, qword [0x100004168]
mov rdx, qword [0x100004170]
mov ecx, dword [0x100004160]
call fcn.100001b54
mov dword [0x100004180], eax
cmp dword [0x100004164], 0
jne 0x1000025a8
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x100004184], 0
jne 0x1000025bd
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x100004180]
jmp 0x1000025ec
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
add rsp, 0x30
pop r13
ret
sub rsp, 0x28
call fcn.100002960
add rsp, 0x28
jmp 0x100002454
Function at 0x402774
Capabilities:
Get file size

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rbx, rdx
lea rdx, [rax + 0x20]
mov r15d, r8d
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov edi, eax
je 0x402990
xor r14d, r14d
cmp dword [rsp + 0x98], r14d
jne 0x402990
mov rcx, qword [rbx + 0x18]
mov ebp, r15d
lea r8d, [r14 + 4]
mov r13d, dword [rcx + 0x54]
lea rsi, [rcx + 4]
mov rcx, qword [rbx + 8]
sub ebp, r13d
xor r9d, r9d
xor edx, edx
add edi, ebp
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp rax, r14
mov r12, rax
je 0x402990
mov edx, dword [rbx + 0x50]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_FlushViewOfFile]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov r11, qword [rbx + 0x10]
lea edx, [r14 + 2]
mov qword [rsp + 0x28], r11
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
test rax, rax
mov r14, rax
jne 0x40285d
and qword [rsp + 0x28], rax
and qword [rsp + 0x20], rax
lea edx, [rax + 2]
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov r14, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp r14, qword [rbx + 0x10]
je 0x402882
xor edx, edx
mov rcx, rbx
mov qword [rbx + 0x10], r14
call fcn.0040490c
mov rsi, qword [rbx + 0x18]
add rsi, 4
cmp dword [rbx + 0x50], edi
je 0x40288a
mov dword [rbx + 0x50], edi
mov rcx, qword [rbx + 0x10]
lea r9, [rsp + 0x88]
mov r8w, 6
xor edx, edx
call sub.imagehlp.dll_ImageDirectoryEntryToData
test rax, rax
mov r11, rax
je 0x4028f7
mov r9d, dword [rsp + 0x88]
cmp r9d, 0x1c
jb 0x4028f7
movabs rax, 0x2492492492492493
mov rcx, r9
mul r9
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 4
imul rcx, rcx, 0x1c
cmp r9, rcx
jne 0x4028f7
test r9d, r9d
je 0x4028f7
lea rax, [r11 + 0x18]
add dword [rax], ebp
add rax, 0x1c
add dword [rsp + 0x88], 0xffffffe4
jne 0x4028e7
mov rax, qword [rbx + 0x18]
mov dword [rax + 0x54], r15d
mov eax, dword [rsi + 8]
test eax, eax
je 0x40290b
add eax, ebp
mov dword [rsi + 8], eax
mov rcx, qword [rbx + 0x30]
xor edx, edx
cmp word [rsi + 2], dx
jbe 0x40294c
add rcx, 0x18
mov eax, dword [rcx - 4]
test eax, eax
je 0x402927
add eax, ebp
mov dword [rcx - 4], eax
mov eax, dword [rcx]
test eax, eax
je 0x402931
add eax, ebp
mov dword [rcx], eax
mov eax, dword [rcx + 4]
test eax, eax
je 0x40293d
add eax, ebp
mov dword [rcx + 4], eax
movzx eax, word [rsi + 2]
add edx, 1
add rcx, 0x28
cmp edx, eax
jb 0x40291b
mov r8d, dword [rsp + 0x30]
mov edx, r13d
lea rcx, [r15 + r14]
sub r8d, r13d
add rdx, r14
call fcn.004051e6
mov rax, qword [rsp + 0x80]
mov r11, qword [rax + 0x20]
test r11, r11
je 0x402989
mov rdx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
lea ecx, [r9 + 0xa]
mov qword [rsp + 0x20], r15
call r11
mov eax, 1
jmp 0x402992
xor eax, eax
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x404578
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov r10, qword [rcx + 0x18]
mov rbx, rdx
movzx eax, word [r10 + 6]
mov rdx, r10
lea r8d, [rax + rax*4]
movzx eax, word [r10 + 0x14]
lea r9d, [rax + r8*8]
sub r9d, dword [rcx + 0x10]
cmp word [r10 + 0x18], 0x20b
lea r8d, [r9 + r10 + 0x18]
jne 0x404601
mov r11d, dword [rdx + 0x84]
xor r10d, r10d
test r11d, r11d
je 0x4045f7
lea r9, [rdx + 0x8c]
mov ecx, dword [r9 - 4]
cmp ecx, dword [rdx + 0x54]
jae 0x4045ea
cmp ecx, r8d
jb 0x4045ea
cmp r10d, 0xa
jne 0x4045e3
mov r8d, dword [rcx + rdx]
test r8d, r8d
je 0x4045e3
add r8d, ecx
jmp 0x4045ea
mov eax, dword [r9]
lea r8d, [rcx + rax]
add r10d, 1
add r9, 8
cmp r10d, r11d
jb 0x4045c1
mov eax, dword [rdx + 0x54]
sub eax, r8d
mov dword [rbx], eax
jmp 0x40464d
xor r10d, r10d
cmp dword [rdx + 0x74], r10d
jbe 0x404645
lea r9, [rdx + 0x7c]
mov ecx, dword [r9 - 4]
cmp ecx, dword [rdx + 0x54]
jae 0x404637
cmp ecx, r8d
jb 0x404637
cmp r10d, 0xa
jne 0x404630
mov r8d, dword [rcx + rdx]
test r8d, r8d
je 0x404630
add r8d, ecx
jmp 0x404637
mov eax, dword [r9]
lea r8d, [rcx + rax]
add r10d, 1
add r9, 8
cmp r10d, dword [rdx + 0x74]
jb 0x40460e
mov ecx, dword [rdx + 0x54]
sub ecx, r8d
mov dword [rbx], ecx
mov rbx, qword [rsp + 8]
mov eax, r8d
ret

Function at 0x404828
Capabilities:
Get file size

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
test r8d, r8d
mov esi, r8d
mov rbx, rdx
setne al
mov byte [rdx + 0x3f], 1
mov rdi, rcx
mov byte [rdx + 0x3e], al
mov eax, r8d
neg eax
sbb r8d, r8d
and qword [r11 - 0x10], 0
and dword [rsp + 0x20], 0
and r8d, 0xfffffffe
xor r9d, r9d
xor edx, edx
add r8d, 4
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test rax, rax
mov rbp, rax
je 0x4048ed
neg esi
mov rcx, rax
sbb edx, edx
and qword [rsp + 0x20], 0
xor r9d, r9d
and edx, 2
xor r8d, r8d
add edx, 2
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rbp
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [rbx + 0x50], eax
jne 0x4048cd
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
and qword [rbx + 0x10], 0
cmp qword [rbx + 0x10], 0
je 0x4048ed
xor edx, edx
mov rcx, rbx
call fcn.0040490c
test eax, eax
je 0x4048ed
mov qword [rbx + 8], rdi
mov eax, 1
jmp 0x4048ef
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x40490c
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push rbx
sub rsp, 0x30
mov r8, rcx
mov edx, dword [rcx + 0x50]
mov ebx, 1
mov r9, qword [rcx + 0x10]
mov ax, 0x5a4d
cmp word [r9], ax
je 0x40493e
cmp word [r9], 0x4550
je 0x40493e
xor ebx, ebx
mov dword [rsp + 0x20], ebx
jmp 0x404a7c
cmp word [r9], ax
jne 0x4049a1
movsxd rcx, dword [r9 + 0x3c]
test ecx, ecx
jne 0x40495b
mov byte [r8 + 0x3d], bl
xor ebx, ebx
mov dword [rsp + 0x20], ebx
jmp 0x404a7c
cmp ecx, edx
ja 0x404996
mov eax, edx
sub eax, ecx
cmp eax, 0x108
jb 0x404996
lea r10, [r9 + rcx]
mov qword [r8 + 0x18], r10
lea rcx, [r9 + rdx]
lea rax, [r10 + 0x108]
cmp rax, rcx
ja 0x40498b
lea rax, [r9 + 0x40]
cmp r10, rax
jae 0x4049a5
xor ebx, ebx
mov dword [rsp + 0x20], ebx
jmp 0x404a7c
xor ebx, ebx
mov dword [rsp + 0x20], ebx
jmp 0x404a7c
mov qword [rcx + 0x18], r9
mov rcx, qword [r8 + 0x18]
mov r10, rdx
mov rax, rcx
sub rax, r9
add rax, 0x108
cmp rax, rdx
jbe 0x4049c8
xor ebx, ebx
mov dword [rsp + 0x20], ebx
jmp 0x404a7c
cmp dword [rcx], 0x4550
je 0x4049ed
cmp word [rcx], 0x454e
je 0x4049de
cmp word [rcx], 0x454c
jne 0x4049e2
mov byte [r8 + 0x3d], bl
xor ebx, ebx
mov dword [rsp + 0x20], ebx
jmp 0x404a7c
mov byte [r8 + 0x3d], 0
cmp word [rcx + 0x14], 0
jne 0x404a01
xor ebx, ebx
mov dword [rsp + 0x20], ebx
jmp 0x404a7c
cmp word [rcx + 0x18], 0x10b
jne 0x404a2b
cmp dword [rcx + 0x34], 0x80000000
setae al
mov byte [r8 + 0x3c], al
cmp byte [rcx + 0x1a], 3
jae 0x404a30
cmp byte [rcx + 0x1b], 5
jae 0x404a30
xor ebx, ebx
mov dword [rsp + 0x20], ebx
jmp 0x404a7c
mov byte [r8 + 0x3c], 0
movzx eax, word [rcx + 0x14]
lea rdx, [rax + rcx + 0x18]
mov qword [r8 + 0x30], rdx
lea rax, [r8 + 0x40]
mov qword [r8 + 0x48], rax
mov qword [rax], rax
movzx eax, word [rcx + 0x16]
mov dword [r8 + 0x38], eax
movzx eax, word [rcx + 6]
mov dword [r8 + 0x28], eax
mov qword [r8 + 0x20], rdx
lea rcx, [rax + rax*4]
lea r8, [rdx + rcx*8]
cmp r8, rdx
jbe 0x404a72
lea rax, [r10 + r9]
cmp r8, rax
jbe 0x404a78
xor ebx, ebx
mov dword [rsp + 0x20], ebx
test ebx, ebx
jne 0x404a90
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, 0xb
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x404a98
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x404b2c
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
cmp byte [rcx + 0x3e], 0
mov rbx, rcx
je 0x404b57
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x404bdf
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x404bdf
mov edx, dword [rcx + 0x50]
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
call sub.imagehlp.dll_CheckSumMappedFile
test rax, rax
je 0x404bdf
mov rcx, qword [rbx + 0x18]
cmp word [rcx + 0x18], 0x10b
je 0x404b86
cmp word [rcx + 0x18], 0x20b
jne 0x404b8d
mov eax, dword [rsp + 0x30]
mov dword [rcx + 0x58], eax
mov edx, dword [rbx + 0x50]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_FlushViewOfFile]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rbx + 8]
mov edi, dword [rbx + 0x50]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp edi, eax
je 0x404bdf
mov rcx, qword [rbx + 8]
xor r9d, r9d
xor r8d, r8d
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x404bf4
cmp rcx, 0xffffffffffffffff
je 0x404bf4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rbx + 8], 0xffffffffffffffff
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x4059d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x405a1a
cmp rcx, 0xffffffffffffffff
je 0x405a1a
cmp word [rcx], 0x5a4d
jne 0x405a12
cmp dword [rcx + 0x3c], edx
jl 0x405a12
cmp dword [rcx + 0x3c], 0x10000000
jae 0x405a12
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 0x405a1a
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14002d210
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14002d21d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14002d22d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14002d215
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14002d245
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14002d232
sub eax, 3
jb 0x14002d25f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14002d296
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14002d286
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14002d284
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14002d273
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14002d1d2
jmp 0x14002d21d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x17a00
mov dl, 0xe
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14002d2e2
cmp rsi, rcx
jae 0x14002d2ea
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14002d2c9
cmp al, 0x8f
ja 0x14002d2c9
cmp byte [rsi - 2], 0xf
je 0x14002d2cf
sub al, 0xe8
cmp al, 1
ja 0x14002d2b3
cmp rsi, rcx
jae 0x14002d2ea
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14002d2b9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14002d2ea
lodsb al, byte [rsi]
jmp 0x14002d2c9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x2b000]
mov eax, dword [rdi]
or eax, eax
je 0x14002d347
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x2d1dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14002d2f7
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14002d341
mov qword [rbx], rax
add rbx, 8
jmp 0x14002d317
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14002d381
cmp al, 0xef
ja 0x14002d373
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14002d353
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14002d362
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14002d3d5
sub rsp, 0xffffffffffffff80
jmp 0x140006708
Function at 0x140001060
Capabilities:
Get common file path

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 r12
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r12, str.NVSVC64.DLL
mov rcx, r12
mov edi, eax
call fcn.14004a2f8
lea r8d, [rdi + 1]
mov ecx, 0x40
add rax, r8
lea rdx, [rax + rax]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
xor esi, esi
mov rbx, rax
test rax, rax
je 0x140001113
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, 0x5c
lea ecx, [rax - 1]
cmp word [rbx + rcx*2], r8w
je 0x1400010d8
mov ecx, eax
inc eax
mov word [rbx + rcx*2], r8w
mov rcx, r12
movsxd rbp, eax
call fcn.14004a2f8
test rax, rax
je 0x140001110
add rbp, rbp
mov rdi, r12
sub rbp, r12
add rbp, rbx
movzx eax, word [rdi]
mov rcx, r12
inc esi
mov word [rdi + rbp], ax
add rdi, 2
call fcn.14004a2f8
mov ecx, esi
cmp rcx, rax
jb 0x1400010f4
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x140001610
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x620]
sub rsp, 0x720
mov rax, qword [0x1400ce148]
xor rax, rsp
mov qword [rbp + 0x610], rax
xor edi, edi
test r8, r8
mov r15d, edx
mov r14, rcx
mov rdx, rcx
lea r13, [0x14009d6cc]
cmovne r13, r8
lea rcx, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x60], rdi
mov esi, edi
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x14000167a
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400016cb
mov rcx, qword [rsp + 0x60]
call fcn.1400015c4
mov rcx, r13
lea ebx, [rax + rax - 2]
call fcn.1400015c4
mov r12d, eax
add r12d, r12d
lea ecx, [r12 + rbx]
call fcn.14004a850
mov rsi, rax
test rax, rax
je 0x1400016cb
mov r8, qword [rsp + 0x60]
mov r9d, ebx
mov edx, ebx
mov rcx, rax
call fcn.14004a934
lea rcx, [rbx + rsi]
mov edx, r12d
mov r9d, r12d
mov r8, r13
call fcn.14004a934
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400016db
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test rsi, rsi
je 0x140001817
lea rcx, [rbp - 0xe]
xor edx, edx
mov r8d, 0x206
mov word [rbp - 0x10], di
call fcn.14004a330
lea rcx, [rbp + 0x202]
xor edx, edx
mov r8d, 0x40e
mov word [rbp + 0x200], di
call fcn.14004a330
lea rcx, [rbp - 0x10]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp di, word [rbp - 0x10]
je 0x140001733
lea rcx, [rbp - 0x10]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea rax, str.NVSVC64.DLL
mov dword [rsp + 0x30], r15d
lea r9, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x10]
lea r8, str._srundll32.exe__s_s_nvsvcErrorReport__d
lea rcx, [rbp + 0x200]
mov edx, 0x208
mov qword [rsp + 0x20], rax
call fcn.14004a71c
xor edx, edx
lea rcx, [rbp - 0x78]
lea r8d, [rdx + 0x60]
call fcn.14004a330
lea rax, str.WinSta0Default
mov ebx, 1
mov qword [rbp - 0x70], rax
xor eax, eax
lea r8, [rbp + 0x200]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x80]
xor r9d, r9d
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], 0x400
xor edx, edx
mov rcx, r14
mov dword [rsp + 0x28], edi
mov dword [rbp - 0x80], 0x68
mov dword [rbp - 0x44], ebx
mov qword [rsp + 0x20], rdi
mov word [rbp - 0x40], bx
mov qword [rsp + 0x68], rdi
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x1400017f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000180f
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dil, bl
mov rcx, rsi
call fcn.14004a810
mov al, dil
mov rcx, qword [rbp + 0x610]
xor rcx, rsp
call fcn.140049cd0
mov rbx, qword [rsp + 0x778]
add rsp, 0x720
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret