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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, qword [rcx + 8]
mov r13, qword [rcx]
xor r9d, r9d
test rbp, rbp
lea r12d, [r9 + 1]
mov r14d, r8d
mov r15d, edx
mov edi, 0x159a55e5
mov esi, 0x1f123bb5
mov r10, r12
mov r11d, r12d
je 0x41df85
movzx ecx, di
shr edi, 0x10
imul ecx, ecx, 0x9069
add edi, ecx
movzx ecx, si
shr esi, 0x10
mov edx, edi
shl edx, 0x10
imul ecx, ecx, 0x4650
add esi, ecx
add edx, esi
xor edx, r14d
mov eax, edx
shr edx, 1
and eax, r12d
je 0x41df74
cmp r9, 0x400
jb 0x41df74
mov ecx, edx
shr edx, 2
mov r8d, r12d
and ecx, 3
inc ecx
shl r8d, cl
sub r8d, r12d
and r8d, edx
shr edx, cl
mov eax, edx
inc r8d
shr edx, 3
and eax, 7
je 0x41df3d
mov ecx, edx
shr edx, 2
mov eax, r12d
and ecx, 3
inc ecx
shl eax, cl
sub eax, r12d
and eax, edx
shr edx, cl
add r8d, eax
jmp 0x41de91
add r11d, r12d
mov ecx, r11d
mov rax, r12
shl rax, cl
cmp rax, r9
jb 0x41de8e
cmp r15d, r11d
mov ecx, 5
mov ebx, r15d
cmova ebx, r11d
lea eax, [rcx - 1]
cmp ebx, 0x15
cmovbe ecx, eax
shl r12d, cl
add r12d, 0xffffffff
movzx ecx, di
shr edi, 0x10
mov r10d, r12d
and r10d, edx
movzx edx, si
shr esi, 0x10
imul ecx, ecx, 0x9069
add edi, ecx
add r10d, 6
imul edx, edx, 0x4650
add esi, edx
mov edx, edi
shl edx, 0x10
add edx, esi
xor edx, r14d
cmp r10d, ebx
ja 0x41debe
mov ecx, r10d
mov r10d, 1
mov eax, edx
shl r10, cl
dec r10
and r10, rax
cmp r10, r9
jb 0x41df34
movzx ecx, di
shr edi, 0x10
imul ecx, ecx, 0x9069
add edi, ecx
movzx ecx, si
shr esi, 0x10
mov edx, edi
imul ecx, ecx, 0x4650
add esi, ecx
shl edx, 0x10
add edx, esi
xor edx, r14d
jmp 0x41debe
mov r12d, 1
add r10, r12
mov eax, r8d
lea rdx, [r13 + r9]
mov rcx, rbp
sub rcx, r9
cmp rax, rcx
cmova r8d, ecx
mov rcx, rdx
mov ebx, r8d
sub rcx, r10
add r9, rbx
test r8d, r8d
je 0x41df7c
mov al, byte [rcx]
add rcx, r12
mov byte [rdx], al
add rdx, r12
sub rbx, r12
jne 0x41df63
jmp 0x41df7c
mov byte [r13 + r9], dl
add r9, r12
cmp r9, rbp
jb 0x41de0a
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x43763c
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x80
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov r12, rcx
mov edx, dword [rcx + 0x20]
mov rax, qword [rcx + 0x18]
mov rsi, qword [rax + rdx*8 - 8]
lea rdx, str.CreateDecoder
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x28], rax
lea rdx, str.CreateEncoder
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x30], rax
lea rdx, str.GetMethodProperty
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x20], rax
xor edi, edi
cmp rax, rdi
je 0x437809
mov dword [rsp + 0xb0], 1
lea rdx, str.GetNumberOfMethods
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rdi
je 0x4376db
lea rcx, [rsp + 0xb0]
call rax
cmp eax, edi
jne 0x437883
mov ebp, edi
cmp dword [rsp + 0xb0], edi
jbe 0x437809
mov eax, dword [r12 + 0x20]
dec eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], ebp
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x5c]
mov r8d, 3
mov edx, ebp
mov rcx, qword [rsi + 0x20]
call fcn.004362e8
cmp eax, edi
jne 0x437883
lea rax, [rsp + 0x59]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x6c]
mov r8d, 2
mov edx, ebp
mov rcx, qword [rsi + 0x20]
call fcn.004362e8
cmp eax, edi
jne 0x437883
mov rax, qword [rsi + 0x20]
mov word [rsp + 0x38], di
mov word [rsp + 0x3a], di
mov qword [rsp + 0x40], rdi
mov byte [rsp + 0x5a], dil
mov byte [rsp + 0x5b], dil
lea r8, [rsp + 0x38]
mov edx, 0xa
mov ecx, ebp
call rax
mov ebx, eax
cmp eax, edi
je 0x437786
lea rcx, [rsp + 0x38]
call fcn.0040bf6c
jmp 0x4377b2
cmp word [rsp + 0x38], 0xb
jne 0x43779f
mov byte [rsp + 0x5b], 1
cmp word [rsp + 0x40], di
setne byte [rsp + 0x5a]
jmp 0x4377a6
cmp word [rsp + 0x38], di
jne 0x4377f6
lea rcx, [rsp + 0x38]
call fcn.0040bf6c
mov ebx, edi
cmp ebx, edi
jne 0x437805
lea rcx, [r12 + 0x60]
call fcn.004368b4
mov ecx, dword [r12 + 0x68]
lea eax, [rcx + 1]
mov dword [r12 + 0x68], eax
imul rcx, rcx, 0x2c
add rcx, qword [r12 + 0x60]
lea rdx, [rsp + 0x50]
mov r8d, 0x2c
call sub.msvcrt.dll_memcpy
inc ebp
cmp ebp, dword [rsp + 0xb0]
jae 0x437809
jmp 0x4376ea
lea rcx, [rsp + 0x38]
call fcn.0040bf6c
mov ebx, 0x80004005
mov eax, ebx
jmp 0x437883
lea rdx, str.GetHashers
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rdi
je 0x437881
lea rcx, [rsi + 0x40]
call rax
cmp eax, edi
jne 0x437883
mov rcx, qword [rsi + 0x40]
cmp rcx, rdi
je 0x437881
mov rax, qword [rcx]
call qword [rax + 0x18]
mov esi, eax
cmp eax, edi
jbe 0x437881
mov ecx, dword [r12 + 0x20]
dec ecx
mov dword [rsp + 0xb0], ecx
mov dword [rsp + 0xb4], edi
lea rcx, [r12 + 0x70]
call fcn.004441a4
mov r11d, dword [r12 + 0x78]
lea eax, [r11 + 1]
mov dword [r12 + 0x78], eax
mov rcx, qword [r12 + 0x70]
mov rax, qword [rsp + 0xb0]
mov qword [rcx + r11*8], rax
inc edi
cmp edi, esi
jb 0x43783d
xor eax, eax
add rsp, 0x80
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x44e3f0
Capabilities:
Get disk information

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov r13, r9
mov rbp, r8
mov rsi, rdx
mov rbx, rcx
mov dword [rsp + 0x88], 0
mov edi, dword [rdx]
cmp byte [rdx + 0x18], 0
je 0x44e47c
mov edi, 1
lea r8d, [rdi + 2]
lea rdx, [rsp + 0x28]
mov rcx, rbp
call fcn.00415b84
mov rcx, qword [rsp + 0x28]
cmp word [rcx + 2], 0x3a
jne 0x44e477
cmp word [rcx + 4], 0x5c
jne 0x44e477
call qword [sym.imp.KERNEL32.dll_AreFileApisANSI]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
je 0x44e469
cmp eax, 2
jne 0x44e472
mov edi, dword [rsi]
mov rcx, qword [rsp + 0x28]
jmp 0x44e477
mov rcx, qword [rsp + 0x28]
call fcn.00404258
mov rcx, rbp
call fcn.00403ca0
lea r12d, [rax + 1]
mov rax, qword [rbp]
lea rdx, [rax + r12*2]
mov rcx, r13
call fcn.004038a4
dec edi
je 0x44e530
dec edi
je 0x44e4fa
lea rcx, [rsp + 0x28]
call fcn.004036c0
nop
lea rcx, [rsp + 0x28]
call fcn.004078c4
test al, al
jne 0x44e4dd
mov dword [rsp + 0x88], 0x22995
lea rdx, [0x00495ec0]
lea rcx, [rsp + 0x88]
call sub.msvcrt.dll__CxxThrowException
int3
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.0040381c
nop
mov rcx, qword [rsp + 0x28]
call fcn.00404258
mov rax, rbx
jmp 0x44e541
lea rdx, [rsi + 8]
lea rcx, [rsp + 0x28]
call fcn.0040381c
nop
lea rcx, [rsp + 0x28]
call fcn.0040abe0
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.0040381c
nop
mov rcx, qword [rsp + 0x28]
call fcn.00404258
mov rax, rbx
jmp 0x44e541
mov r8d, r12d
mov rdx, rbx
mov rcx, rbp
call fcn.00415b84
mov rax, rbx
add rsp, 0x48
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x453248
Capabilities:
Identify system language via api

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx ebx, ax
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx edi, ax
cmp bx, ax
jne 0x4533d4
movzx ecx, ax
and cx, 0x3ff
shr di, 0xa
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 0
movzx ecx, cx
lea rdx, [rsp + 0x28]
call fcn.004530cc
lea rcx, [rsp + 0x48]
call fcn.00452d78
nop
xor esi, esi
movzx r12d, di
movsxd rbx, dword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
xor eax, eax
test esi, esi
cmove eax, r12d
cmp eax, ebx
jae 0x45332f
mov rbp, qword [rdi + rax*8]
cmp dword [rbp + 8], 0
je 0x45332f
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x38]
call fcn.0040381c
nop
mov rdx, qword [rbp]
lea rcx, [rsp + 0x38]
call fcn.00403b64
lea rdx, str..txt
lea rcx, [rsp + 0x38]
call fcn.00403b64
lea r8, [0x0047875c]
mov rdx, qword [rsp + 0x38]
lea rcx, [0x00498c78]
call fcn.004021b0
test al, al
jne 0x453338
mov rcx, qword [rsp + 0x38]
call fcn.00404258
inc esi
cmp esi, 2
jb 0x4532c4
jmp 0x453395
mov rdx, qword [rbp]
lea rcx, [0x00498c68]
call fcn.00403a1c
nop
mov rcx, qword [rsp + 0x38]
call fcn.00404258
nop
mov rcx, qword [rsp + 0x48]
call fcn.00404258
nop
test ebx, ebx
je 0x45338b
lea rsi, [rdi + rbx*8]
add ebx, 0xffffffff
sub rsi, 8
mov rbp, qword [rsi]
test rbp, rbp
je 0x453387
mov rcx, qword [rbp]
call fcn.00404258
mov rcx, rbp
call fcn.00404258
test ebx, ebx
jne 0x453367
mov rcx, rdi
call fcn.00404258
jmp 0x4533d4
mov rcx, qword [rsp + 0x48]
call fcn.00404258
nop
test ebx, ebx
je 0x4533cc
lea rsi, [rdi + rbx*8]
add ebx, 0xffffffff
sub rsi, 8
mov rbp, qword [rsi]
test rbp, rbp
je 0x4533c8
mov rcx, qword [rbp]
call fcn.00404258
mov rcx, rbp
call fcn.00404258
test ebx, ebx
jne 0x4533a8
mov rcx, rdi
call fcn.00404258
add rsp, 0x60
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x45408c
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
mov r11w, ax
shr r11d, 0xf
test r11b, 1
jne 0x4540bf
cmp dword [rbx + 0x54], 1
ja 0x4540bf
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x48]
jmp 0x4540c7
mov rcx, rbx
call fcn.00453ce8
add rsp, 0x20
pop rbx
ret
Function at 0x4548f4
Capabilities:
Get file system object information

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x378
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov rdi, r9
mov ebp, r8d
mov r12d, edx
mov rsi, rcx
lea rcx, [rsp + 0x50]
call fcn.004036c0
nop
cmp byte [rdi], 0
je 0x454977
mov rdx, qword [rdi + 8]
lea rcx, [rsp + 0x80]
call fcn.00452ba8
nop
mov r8, rax
mov edx, 0xdb0
lea rcx, [rsp + 0x70]
call fcn.00452c98
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.0040390c
nop
mov rcx, qword [rsp + 0x70]
call fcn.00404258
nop
mov rcx, qword [rsp + 0x80]
call fcn.00404258
lea rcx, [rdi + 0x18]
call fcn.00403ca0
lea ebx, [rax + 1]
mov r8d, ebx
lea rdx, [rsp + 0x40]
lea rcx, [rdi + 0x18]
call fcn.00415b84
nop
mov rax, qword [rdi + 0x18]
lea rdx, [rax + rbx*2]
lea rcx, [rsp + 0x60]
call fcn.0040372c
nop
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.0045481c
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.0045481c
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.0040381c
nop
lea rcx, [rsp + 0x30]
call fcn.00403a94
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.00403b20
lea rcx, [rsp + 0x30]
call fcn.00403a94
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.00403b20
lea rcx, [rsp + 0x30]
call fcn.00403a94
cmp byte [rdi + 1], 0
je 0x454a5a
mov edx, 0x3f4
lea rcx, [rsp + 0x30]
call fcn.00452ff8
lea rdx, [0x00477fb8]
lea rcx, [rsp + 0x30]
call fcn.00403b64
lea rcx, [rdi + 0x10]
xor r8d, r8d
lea rdx, [rsp + 0x80]
call fcn.0040c598
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call fcn.00403b64
mov edx, r12d
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rdx, qword [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov dword [rsp + 0x20], 0x110
mov r9d, 0x2b8
lea r8, [rsp + 0xb0]
mov edx, 0x80
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test rax, rax
je 0x454ac5
mov edx, ebp
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
xor r9d, r9d
mov r8, qword [rsp + 0xb0]
mov edx, 0x170
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
nop
mov rcx, qword [rsp + 0x30]
call fcn.00404258
nop
mov rcx, qword [rsp + 0x60]
call fcn.00404258
nop
mov rcx, qword [rsp + 0x40]
call fcn.00404258
nop
mov rcx, qword [rsp + 0x50]
call fcn.00404258
add rsp, 0x378
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x4585f8
Capabilities:
Hide graphical window

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x88
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rsi, rcx
mov rcx, qword [rcx + 0x110]
test rcx, rcx
je 0x458631
mov rdx, qword [rsi + 0x118]
test rdx, rdx
je 0x458631
mov rax, qword [rcx]
xor r8d, r8d
call qword [rax + 0x50]
mov dl, 1
mov rcx, rsi
call fcn.00457dac
mov edx, 0x198
lea rcx, [rsp + 0x28]
call fcn.00452fb4
mov r8, qword [rax]
mov ebx, 2
mov edx, ebx
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_SetDlgItemTextW]
mov rcx, qword [rsp + 0x28]
call fcn.00404258
mov edx, ebx
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov edx, 0xf4
lea r9d, [rbx - 1]
mov r8, r9
call qword [sym.imp.USER32.dll_SendMessageW]
mov edx, 0x1bc
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov edx, 0x1be
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov r11, qword [rsi]
mov rcx, rsi
call qword [r11 + 0x70]
lea rcx, [rsp + 0x40]
call fcn.004036c0
nop
lea rcx, [rsp + 0x50]
call fcn.004036c0
nop
lea rax, [rsp + 0x60]
mov qword [rsp + 0xb0], rax
lea rcx, [rsp + 0x60]
call fcn.004036c0
nop
lea rcx, [rsp + 0x70]
call fcn.004036c0
nop
lea rbx, [rsi + 0x288]
mov qword [rsp + 0xb0], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
cmp dword [rsi + 0x240], 0
setne bpl
lea rdx, [rsi + 0x248]
lea rcx, [rsp + 0x40]
call fcn.0040390c
lea rdx, [rsi + 0x258]
lea rcx, [rsp + 0x50]
call fcn.0040390c
lea rdx, [rsi + 0x268]
lea rcx, [rsp + 0x60]
call fcn.0040390c
lea rdx, [rsi + 0x278]
lea rcx, [rsp + 0x70]
call fcn.0040390c
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [rsp + 0x58], 0
je 0x4587b4
mov byte [rsi + 0x2b3], 1
cmp dword [rsp + 0x48], 0
jne 0x458798
lea rdx, [0x0047875c]
lea rcx, [rsp + 0x40]
call fcn.00403a1c
mov r9d, InitCommonControls
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4587f6
test bpl, bpl
jne 0x4587fb
mov byte [rsi + 0x2b3], 1
cmp dword [rsp + 0x78], 0
je 0x458840
cmp dword [rsp + 0x68], 0
jne 0x4587df
lea rdx, [0x0047875c]
lea rcx, [rsp + 0x60]
call fcn.00403a1c
xor r9d, r9d
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_MessageBoxW]
test bpl, bpl
je 0x458840
cmp byte [rsi + 0x1ae], 0
jne 0x458840
mov byte [rsi + 0x1ad], 1
mov rcx, rsi
call fcn.00457914
nop
mov rcx, qword [rsp + 0x70]
call fcn.00404258
mov rcx, qword [rsp + 0x60]
call fcn.00404258
mov rcx, qword [rsp + 0x50]
call fcn.00404258
mov rcx, qword [rsp + 0x40]
call fcn.00404258
mov al, 1
jmp 0x458877
xor edx, edx
mov rcx, qword [rsi + 8]
call qword [sym.imp.USER32.dll_EndDialog]
nop
mov rcx, qword [rsp + 0x70]
call fcn.00404258
mov rcx, qword [rsp + 0x60]
call fcn.00404258
mov rcx, qword [rsp + 0x50]
call fcn.00404258
mov rcx, qword [rsp + 0x40]
call fcn.00404258
mov al, 1
add rsp, 0x88
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x45bc4c
Capabilities:
Get file system object information

Disassembly:
push rbx
sub rsp, 0x2f0
mov rbx, r8
lea r8, [rsp + 0x30]
bts edx, 7
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x4010
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, dword [rsp + 0x38]
mov dword [rbx], ecx
add rsp, 0x2f0
pop rbx
ret
Function at 0x46e410
Capabilities:
Check os version

Disassembly:
sub rsp, 0x148
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x46e43c
cmp dword [rsp + 0x24], 6
jne 0x46e43c
cmp dword [rsp + 0x28], 0
je 0x46e465
lea rcx, [0x00471c40]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.SetDefaultDllDirectories
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x46e465
mov ecx, 0xc00
call rax
add rsp, 0x148
ret

Function at 0x46e570
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x40]
mov r9, r8
mov rbx, rcx
mov r8, rdx
mov qword [rsp + 0x28], rax
xor ecx, ecx
xor edx, edx
mov dword [rsp + 0x20], 0
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
mov qword [rbx], rax
je 0x46e5ab
xor eax, eax
add rsp, 0x30
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 1
test eax, eax
cmovne ecx, eax
mov eax, ecx
add rsp, 0x30
pop rbx
ret

Function at 0x46e5d0
Capabilities:
Create thread
Resume thread

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x58], rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rsi
mov rsi, r9
mov r9, r8
mov rbx, rcx
mov r8, rdx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
test rax, rax
mov qword [rbx], rax
mov rbx, qword [rsp + 0x58]
mov rdi, rax
je 0x46e635
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x46e656
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 1
test eax, eax
cmovne ecx, eax
mov eax, ecx
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
add rsp, 0x48
ret
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x48
ret
Function at 0x46e8d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x198
mov rax, qword [0x00498710]
mov qword [rsp + 0x150], rax
mov rax, qword [0x00498d00]
mov qword [r11 - 0x10], rbp
mov qword [r11 - 0x18], rsi
test rax, rax
mov qword [r11 - 0x20], rdi
mov qword [r11 - 0x28], r12
mov qword [r11 - 0x30], r13
mov rdi, r9
mov esi, r8d
mov r12, rdx
mov rbp, rcx
mov r13d, 1
jne 0x46e9e6
cmp dword [0x00498cf8], eax
jne 0x46e9e6
lea rax, [rsp + 0x38]
mov qword [r11 - 8], rbx
lea rdx, str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46e9b9
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, [0x004727aa]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x30], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
test eax, eax
cmove ebx, r13d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x46e9b9
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x00498d00], rax
jmp 0x46e9c0
mov rax, qword [0x00498d00]
test rax, rax
mov rbx, qword [rsp + 0x190]
jne 0x46e9e6
lea rcx, str.hhctrl.ocx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov qword [0x00498d00], rax
je 0x46ea0e
mov r10, qword [0x00498cf0]
test r10, r10
jne 0x46ea19
lea edx, [r10 + 0xf]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov r10, rax
mov qword [0x00498cf0], rax
jne 0x46ea19
mov dword [0x00498cf8], r13d
xor eax, eax
jmp 0x46ea28
mov r9, rdi
mov r8d, esi
mov rdx, r12
mov rcx, rbp
call r10
mov r13, qword [rsp + 0x168]
mov r12, qword [rsp + 0x170]
mov rdi, qword [rsp + 0x178]
mov rsi, qword [rsp + 0x180]
mov rbp, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x150]
call fcn.0046f2a0
add rsp, 0x198
ret
Function at 0x46ed90
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
sub rsp, 0xc8
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
cmp word [0x00400000], 0x5a4d
je 0x46edcd
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
lea rdi, [0x00400000]
jmp 0x46ee5b
movsxd rax, dword [0x0040003c]
lea rdi, [0x00400000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x46edf1
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x46ee5b
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x46ee38
cmp ecx, 0x20b
je 0x46ee10
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x46ee5b
cmp dword [rax + 0x84], 0xe
ja 0x46ee24
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x46ee5b
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
jmp 0x46ee5b
cmp dword [rax + 0x74], 0xe
ja 0x46ee49
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x46ee5b
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
mov ecx, 2
call qword [sym.imp.msvcrt.dll___set_app_type]
mov qword [0x0049b2a8], 0xffffffffffffffff
mov qword [0x0049b2b0], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x00498d14]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x00498d10]
mov dword [rcx], eax
call fcn.0053b000
cmp dword [0x00498700], 0
jne 0x46eeb5
lea rcx, [0x0046f040]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x00471708]
lea rcx, [0x00471700]
call sub.msvcrt.dll__initterm
mov r11d, dword [0x00498d0c]
mov dword [rsp + 0xd8], r11d
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x00498d08]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x3c]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x004716f8]
lea rcx, [0x004716a0]
call sub.msvcrt.dll__initterm
mov r11, qword [sym.imp.msvcrt.dll__acmdln]
mov r8, qword [r11]
mov qword [rsp + 0x30], r8
cmp byte [r8], 0x22
jne 0x46ef56
nop
nop
inc r8
mov qword [rsp + 0x30], r8
movzx eax, byte [r8]
test al, al
je 0x46ef46
cmp al, 0x22
je 0x46ef46
jmp 0x46ef30
cmp byte [r8], 0x22
jne 0x46ef66
inc r8
mov qword [rsp + 0x30], r8
jmp 0x46ef66
cmp byte [r8], 0x20
jbe 0x46ef66
inc r8
mov qword [rsp + 0x30], r8
jmp 0x46ef56
movzx eax, byte [r8]
test al, al
je 0x46ef7c
cmp al, 0x20
ja 0x46ef7c
inc r8
mov qword [rsp + 0x30], r8
jmp 0x46ef66
test byte [rsp + 0x8c], 1
je 0x46ef91
movzx r9d, word [rsp + 0x90]
jmp 0x46ef97
mov r9d, 0xa
xor edx, edx
mov rcx, rdi
call fcn.00469e80
mov edi, eax
mov dword [rsp + 0x38], eax
test ebx, ebx
jne 0x46efb3
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x46efd7
mov eax, edi
jmp 0x46efe0
mov rbx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
add rsp, 0xc8
ret
Function at 0x46f110
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, rcx
lea rsi, [0x00498dc0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [0x00498eb8]
lea rdx, [rsp + 0x70]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x46f191
mov rdx, qword [rsp + 0x70]
mov qword [rsp + 0x38], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x48]
mov r9, rax
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov r8, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov r11, qword [0x00498eb8]
jmp 0x46f1ad
mov r11, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
add rax, 8
mov qword [0x00498eb8], r11
mov qword [0x00498e58], rax
mov rax, qword [0x00498710]
mov qword [0x00498d30], r11
mov qword [0x00498e40], rdi
mov dword [0x00498d20], 0xc0000409
mov dword [0x00498d24], 1
mov qword [rsp + 0x50], rax
mov rax, qword [0x00498708]
xor ecx, ecx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x0047b9d0]
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]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x68
ret
cmp rcx, qword [0x00498710]
jne 0x46f2b9
rol rcx, 0x10
test cx, 0xffff
jne 0x46f2b5
ret
ror rcx, 0x10
jmp 0x46f110
Function at 0x140001800
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x140008008]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov rbx, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400018a3
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000189a
cmp qword [rbx + 0x18], 8
mov r8, rbx
jb 0x14000185d
mov r8, qword [rbx]
lea rax, [rsp + 0x4c]
sub r8, rax
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140001884
add rax, 2
test ecx, ecx
jne 0x140001870
mov rcx, rdi
test edx, edx
je 0x1400018c6
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001850
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400037a0
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x1400018a5