joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006bd30
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x270
xor r9d, r9d
movzx r14d, dl
xor edx, edx
mov rbp, rcx
lea r8d, [r9 + 1]
call fcn.14009a0d0
test eax, eax
je 0x14006bdd1
mov rcx, rbp
call fcn.14009ab90
mov rbx, rax
test eax, eax
je 0x14006bdd3
test r14b, r14b
jne 0x14006bdd3
mov r8d, ebx
xor edx, edx
mov ecx, 0x101000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x14006bdd3
mov rcx, rax
mov esi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_GetProcessId]
cmp eax, ebx
jne 0x14006bdb1
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x14006be63
cmp esi, 0x102
jne 0x14006bdd3
mov eax, ebx
jmp 0x14006be65
xor ebx, ebx
xor edx, edx
mov dword [rsp + 0x30], 0x238
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x14006be5a
nop dword [rax]
test ebx, ebx
je 0x14006be1a
cmp ebx, dword [rsp + 0x38]
je 0x14006be83
mov edx, 0x5c
lea rcx, [rsp + 0x5c]
call fcn.1400b972c
test rax, rax
je 0x14006be34
add rax, 2
jmp 0x14006be39
lea rax, [rsp + 0x5c]
mov rdx, rbp
mov rcx, rax
call fcn.1400be170
mov rcx, rdi
test eax, eax
je 0x14006be98
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14006be10
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14b, r14b
cmovne ebx, dword [rsp + 0x50]
mov eax, ebx
jmp 0x14006be65
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x38]
test r14b, r14b
cmovne eax, dword [rsp + 0x50]
jmp 0x14006be65

Function at 0x1400709b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [0x14011eac0]
mov r8, rdx
cmp eax, 3
je 0x1400709fb
add eax, 0xfffffffc
cmp eax, 1
ja 0x140070a0c
mov rcx, qword [0x14011ea48]
movabs rax, 0x2aaaaaaaaaaaaaab
sub rcx, qword [0x14011ea40]
add rcx, 0x18
imul rcx
sar rdx, 2
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp edx, dword [0x14011eacc]
jge 0x140070a0c
cmp qword [0x14011ea68], r8
je 0x140070a0c
mov rdx, r8
jmp fcn.140008960
ret
Function at 0x140079320
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r13
push r14
sub rsp, 0x20
mov r13, r8
mov esi, r9d
mov rbx, rdx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x147
mov rcx, qword [r13 + 0x28]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [r13 + 0x28]
mov rdi, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov r14d, eax
lea ecx, [rax*2 + 2]
movsxd rcx, ecx
call fcn.1400be2f4
mov rbp, rax
test rax, rax
jne 0x14007938a
mov rcx, rbx
call fcn.140011000
jmp 0x1400794b1
mov rcx, qword [r13 + 0x28]
lea r8d, [r14 + 1]
mov rdx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextW]
movsxd r14, eax
cmp rdi, 0xffffffffffffffff
je 0x1400793ce
mov rcx, qword [r13 + 0x28]
test eax, eax
jne 0x140079409
xor r9d, r9d
mov r8, rdi
mov edx, 0x149
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x140079420
mov rdi, 0xffffffffffffffff
cmp rdi, rdi
jne 0x140079420
mov rcx, qword [r13 + 0x28]
mov r9, rbp
mov edx, 0x158
mov r8, 0xffffffffffffffff
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140079420
test esi, esi
je 0x140079420
xor esi, esi
mov qword [rbx + 0x20], rbp
mov dword [rbx + 0x10], esi
mov qword [rbx], rbp
mov qword [rbx + 8], r14
jmp 0x1400794b1
lea r8, [rdi - 1]
mov r9, rbp
mov edx, 0x158
call qword [sym.imp.USER32.dll_SendMessageW]
cmp rdi, rax
jne 0x1400793ce
mov rcx, rbp
call fcn.1400be2e0
test esi, esi
je 0x1400794ea
cmp esi, 2
jne 0x14007943f
test byte [r13 + 0x51], sil
jne 0x1400794ea
mov rcx, qword [r13 + 0x28]
xor r9d, r9d
mov r8, rdi
mov qword [rsp + 0x40], r15
mov edx, 0x149
call qword [sym.imp.USER32.dll_SendMessageW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x1400794ac
xor esi, esi
lea r14, [rax + rax]
cmp rax, 0xff
ja 0x1400794ca
mov rax, qword [rbx + 0x18]
mov qword [rbx], rax
mov word [r14 + rax], si
mov qword [rbx + 8], r15
mov r9, qword [rbx]
mov r8, rdi
mov rcx, qword [r13 + 0x28]
mov edx, 0x148
call qword [sym.imp.USER32.dll_SendMessageW]
cmp rax, 0xffffffffffffffff
jne 0x1400794ac
lea rax, [0x1400f9b50]
mov dword [rbx + 0x10], esi
mov qword [rbx], rax
mov qword [rbx + 8], rsi
mov r15, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop rdi
ret
lea rcx, [r14 + 2]
call fcn.1400be2f4
mov qword [rbx + 0x20], rax
test rax, rax
jne 0x140079474
mov rcx, rbx
call fcn.140011000
test eax, eax
je 0x1400794ac
jmp 0x140079480
lea eax, [rdi + 1]
mov dword [rbx + 0x10], 1
movsxd rcx, eax
mov qword [rbx], rcx
jmp 0x1400794b1
Function at 0x140079bd0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r14
push r15
sub rsp, 0x20
mov rcx, qword [r8 + 0x28]
mov rbp, r8
mov rdi, rdx
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd r14, eax
xor r15d, r15d
mov rbx, r14
cmp r14, 0xffffffffffffffff
jne 0x140079c0c
inc rbx
cmp word [r15 + rbx*2], r15w
jne 0x140079c02
mov qword [rsp + 0x40], rsi
lea rsi, [rbx + rbx]
cmp rbx, 0xff
ja 0x140079c7b
mov rax, qword [rdi + 0x18]
mov qword [rdi], rax
mov word [rsi + rax], r15w
mov qword [rdi + 8], rbx
mov rdx, qword [rdi]
lea r8d, [r14 + 1]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.USER32.dll_GetWindowTextW]
movsxd rcx, eax
mov qword [rdi + 8], rcx
test eax, eax
je 0x140079c5d
mov rax, qword [rdi]
cmp word [rax + rcx*2 - 2], r15w
jne 0x140079c5d
lea rax, [rcx - 1]
mov qword [rdi + 8], rax
mov eax, 1
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
lea rcx, [rsi + 2]
call fcn.1400be2f4
mov qword [rdi + 0x20], rax
test rax, rax
jne 0x140079c22
mov rcx, rdi
call fcn.140011000
cmp eax, 1
je 0x140079c2e
xor eax, eax
jmp 0x140079c62

Function at 0x140079da0
Capabilities:
Hide graphical window

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x30], 0
mov rbx, rcx
je 0x140079ee0
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x140079e16
xor r9d, r9d
xor r8d, r8d
mov edx, 0x406
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x140079e16
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
xor edi, edi
mov esi, eax
mov rcx, qword [rbx + 0x40]
xor r9d, r9d
mov r8, rdi
mov edx, 0x414
call qword [sym.imp.USER32.dll_SendMessageW]
test rax, rax
je 0x140079e03
mov rcx, rax
call qword [sym.imp.USER32.dll_DestroyIcon]
inc rdi
sub rsi, 1
jne 0x140079de0
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140079e56
mov rcx, qword [rbx + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_SetMenu]
cmp byte [rbx + 0x110], 0
jne 0x140079e56
mov rcx, qword [rbx + 0x30]
mov byte [rbx + 0x110], 1
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rax, qword [rbx + 0x28]
test rax, rax
jne 0x140079e6d
cmp rbx, qword [0x140122a78]
jne 0x140079e94
test rax, rax
je 0x140079e73
lea rdx, [rax + 0x20]
jmp 0x140079e7a
lea rdx, [0x140122a78]
mov rcx, qword [rbx + 0x20]
lea r8, [rcx + 0x28]
test rcx, rcx
jne 0x140079e8e
lea r8, [0x140122c98]
mov qword [rdx], rcx
mov qword [r8], rax
mov rcx, rbx
mov qword [rbx + 0x30], 0
call fcn.140079ef0
cmp byte [rbx + 0x115], 0
je 0x140079eb6
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WSOCK32.dll_recv]
cmp dword [0x140122a3c], 0
jne 0x140079ee0
lea rcx, [0x140124530]
call fcn.140046530
test al, al
jne 0x140079ee0
mov edx, 4
lea rcx, [0x140124530]
call fcn.140046950
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140085ba0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x70
cmp dword [0x14011c180], 0
mov r15, r9
mov rbp, r8
mov r14, rdx
mov rdi, rcx
je 0x140085c06
cmp dword [0x140122a2c], 0
jne 0x140085c06
movsxd r10, dword [rdx + 0x48]
test r10d, r10d
jle 0x140085c06
mov rax, qword [rdx + 0x38]
xor ecx, ecx
mov edx, dword [r8 + 0x10]
add rax, 0xe
nop dword [rax]
cmp dword [rax - 6], edx
jne 0x140085bfa
cmp byte [rax], 1
je 0x140085c22
inc rcx
add rax, 0x10
cmp rcx, r10
jl 0x140085bf0
xor al, al
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov eax, dword [0x140122a3c]
cmp eax, dword [reloc.WSOCK32.dll_inet_addr]
jge 0x140085c06
mov rbx, qword [0x14011c188]
cmp dword [rbx + 0x68], 0
jg 0x140085c06
inc eax
add rbx, 0xc8
mov dword [0x140122a3c], eax
mov rax, qword [0x140122a30]
mov qword [0x14011c188], rbx
test rax, rax
je 0x140085c68
lea rcx, [rax + 0x80]
jmp 0x140085c6a
xor ecx, ecx
test rbx, rbx
je 0x140085c78
lea rax, [rbx + 0x80]
jmp 0x140085c7a
xor eax, eax
movups xmm0, xmmword [rcx]
xor edx, edx
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
movsd xmm0, qword [rcx + 0x40]
xorps xmm1, xmm1
movsd qword [rax + 0x40], xmm0
lea rcx, [0x140124530]
movups xmmword [rbx], xmm1
movups xmmword [rbx + 0x10], xmm1
movups xmmword [rbx + 0x20], xmm1
movups xmmword [rbx + 0x30], xmm1
movups xmmword [rbx + 0x40], xmm1
movups xmmword [rbx + 0x50], xmm1
movups xmmword [rbx + 0x60], xmm1
movups xmmword [rbx + 0x70], xmm1
mov byte [rbx + 0x7f], 1
mov dword [rbx + 0x68], 0
call fcn.140045c90
movzx eax, byte [rbx + 0xc2]
test al, al
jne 0x140085cee
mov byte [rbx + 0xc2], al
cmp dword [0x140124cd4], 0
je 0x140085d00
cmp dword [0x140124cd0], 0
jne 0x140085d04
test al, al
je 0x140085d3a
mov dword [rbx + 0x88], reloc.WSOCK32.dll_recv
mov byte [rbx + 0x7f], 0
test al, al
jne 0x140085d3a
cmp dword [0x140124cd4], 0
jge 0x140085d28
mov dword [rbx + 0x70], 0xffffffff
jmp 0x140085d3a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x74], eax
mov eax, dword [0x140124cd4]
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140124cd8], eax
mov rcx, rdi
mov rax, qword [rdi]
call qword [rax + reloc.WSOCK32.dll_htonl]
mov r9d, dword [rbp + 0x10]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x30], r15
lea rcx, [r14 + 0x38]
mov qword [rsp + 0x28], rdi
mov r8d, 2
mov byte [rsp + 0x20], 1
mov dword [rsp + 0x50], 5
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x68], 1
mov qword [rsp + 0x58], rbp
call fcn.140091f60
mov rdx, qword [rdi]
mov rcx, rdi
mov ebx, eax
call qword [rdx + reloc.WSOCK32.dll_recv]
call fcn.140004870
cmp ebx, 7
sete al
jmp 0x140085c08
Function at 0x140085db0
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp word [rcx], 0
mov rbx, rcx
je 0x140085ec3
xor dil, dil
cmp word [rcx + 2], 0
je 0x140085e03
movzx eax, word [rbx]
cmp ax, 0x21
je 0x140085df3
cmp ax, 0x2b
je 0x140085def
cmp ax, 0x5e
jne 0x140085e03
mov al, 2
jmp 0x140085df5
mov al, 1
jmp 0x140085df5
mov al, 4
add rbx, 2
or dil, al
cmp word [rbx + 2], 0
jne 0x140085dd6
xor ecx, ecx
mov byte [rsp + 0x40], 0
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140023340
movzx esi, al
test al, al
je 0x140085ec3
movzx eax, dil
or al, 4
test byte [rsp + 0x40], 0xc
movzx ecx, al
movzx eax, dil
cmove ecx, eax
movzx r8d, cl
movzx eax, r8b
or al, 2
test byte [rsp + 0x40], 3
movzx ecx, al
cmove ecx, r8d
movzx edx, cl
mov rcx, rbx
movzx eax, dl
or al, 1
test byte [rsp + 0x40], 0x30
movzx edi, al
cmove edi, edx
xor edx, edx
call fcn.140023250
movzx edx, ax
test ax, ax
jne 0x140085e8e
xor edx, edx
movzx ecx, sil
call fcn.140023ea0
movzx edx, ax
mov eax, 0x100
and dx, ax
movzx eax, dil
or al, 8
movzx ecx, al
test dx, dx
movzx eax, dil
cmove ecx, eax
movzx eax, cl
shl ax, 8
or ax, si
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x48]
xor eax, eax
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140087a60
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x30
mov r14, rdx
mov rbx, rcx
movzx eax, word [rbx]
cmp ax, 0x20
je 0x140087a80
cmp ax, 9
jne 0x140087a86
add rbx, 2
jmp 0x140087a71
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
test ax, ax
je 0x140087caf
cmp word [rbx + 2], 0
lea rcx, [rbx + 2]
jne 0x140087ab7
mov word [rdx + 2], ax
mov al, 1
mov byte [rdx], 0
jmp 0x140087cb1
mov byte [rdx], 1
xor sil, sil
mov edx, 0x2b
call fcn.1400b97d8
mov rbp, rax
test rax, rax
je 0x140087b98
lea rdi, [rbp - 2]
cmp rdi, rbx
jbe 0x140087af8
nop dword [rax]
movzx eax, word [rdi]
cmp ax, 0x20
je 0x140087aef
cmp ax, 9
jne 0x140087af8
sub rdi, 2
cmp rdi, rbx
ja 0x140087ae0
sub rdi, rbx
lea rdx, str.Ctrl
sar rdi, 1
mov rcx, rbx
inc rdi
mov r8, rdi
call fcn.1400be350
test eax, eax
jne 0x140087b1d
or sil, 1
jmp 0x140087b57
mov r8, rdi
lea rdx, [0x1400fe440]
mov rcx, rbx
call fcn.1400be350
test eax, eax
jne 0x140087b39
or sil, 4
jmp 0x140087b57
mov r8, rdi
lea rdx, str.Shift
mov rcx, rbx
call fcn.1400be350
test eax, eax
jne 0x140087caf
or sil, 0x10
lea rbx, [rbp + 2]
nop dword [rax + rax]
movzx eax, word [rbx]
cmp ax, 0x20
je 0x140087b6f
cmp ax, 9
jne 0x140087b75
add rbx, 2
jmp 0x140087b60
test ax, ax
je 0x140087caf
mov edx, 0x2b
lea rcx, [rbx + 2]
call fcn.1400b97d8
mov rbp, rax
test rax, rax
jne 0x140087ad3
xor ecx, ecx
cmp word [rbx + 2], cx
jne 0x140087c69
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, word [rbx]
mov rdi, rax
call qword [sym.imp.USER32.dll_CharLowerW]
mov rbx, rax
cmp ax, 0xa
jne 0x140087bc9
mov dl, 0xd
movzx eax, dl
jmp 0x140087c84
mov rdx, rdi
movzx ecx, bx
call qword [sym.imp.USER32.dll_VkKeyScanExW]
movsx rdx, ax
mov rcx, rdx
shr rcx, 8
cmp cl, 0xff
jne 0x140087c1c
cmp dl, 0xff
jne 0x140087c1c
cmp bx, 0x5a
ja 0x140087c09
cmp bx, 0x41
jb 0x140087c21
movzx eax, bl
cmp bx, 0x5a
ja 0x140087c17
cmp bx, 0x41
jb 0x140087c17
mov cl, 1
jmp 0x140087c19
lea eax, [rbx - 0x61]
cmp ax, 0x19
ja 0x140087c21
movzx eax, bl
and al, 0xdf
xor cl, cl
movzx edx, al
test cl, 0x38
je 0x140087c28
xor dl, dl
movzx eax, dl
jmp 0x140087c84
movzx eax, cl
and al, 6
cmp al, 6
jne 0x140087c37
or sil, 8
jmp 0x140087c55
test cl, 2
je 0x140087c46
test sil, 3
jne 0x140087c46
or sil, 1
test cl, 4
je 0x140087c55
test sil, 0xc
jne 0x140087c55
or sil, 4
test cl, 1
je 0x140087c64
test sil, 0x30
jne 0x140087c64
or sil, 0x10
movzx eax, dl
jmp 0x140087c84
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140023340
movzx eax, al
mov word [r14 + 2], ax
test sil, 1
je 0x140087c93
or byte [r14], 8
test sil, 4
je 0x140087c9d
or byte [r14], 0x10
test sil, 0x10
je 0x140087ca7
or byte [r14], 4
test ax, ax
setne al
jmp 0x140087cb1
xor al, al
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140095a50
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x30], rbx
mov r14, rdx
mov qword [rbp + 0x38], rsi
mov rbx, rcx
mov esi, 1
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140095b44
xor r12d, r12d
xor r9d, r9d
mov qword [rsp + 0x30], r12
xor r8d, r8d
mov dword [rsp + 0x28], r12d
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140095b44
mov rbx, 0xffffffffffffffff
nop dword [rax]
cmp word [r14 + rbx*2 + 2], r12w
lea rbx, [rbx + 1]
jne 0x140095ac0
lea edx, [rbx + 4]
lea eax, [rdx + rdx]
mov ecx, eax
add rax, 0xf
cmp rax, rcx
ja 0x140095ae7
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1400d7a10
sub rsp, rax
lea r8, str.__s_
mov r9, r14
lea rdi, [rsp + 0x40]
mov rcx, rdi
call fcn.14009a330
lea ebx, [rbx*2 + 6]
mov qword [rsp + 0x20], r12
mov r8d, ebx
lea r9, [rbp + 0x40]
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140095b32
cmp dword [rbp + 0x40], ebx
je 0x140095b35
mov esi, r12d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
cmove esi, r12d
mov rbx, qword [rbp + 0x30]
mov eax, esi
mov rsi, qword [rbp + 0x38]
mov rsp, rbp
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140096620
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
sub rsp, 0x240
xor esi, esi
mov dword [r11 + 0x10], 0xff
lea rax, [r11 + 0x20]
xor edx, edx
mov qword [rsp + 0x38], rax
lea r9, [r11 + 0x10]
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x40]
mov qword [rsp + 0x28], rsi
mov rdi, rcx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x14009672c
nop
mov rax, qword [0x14011c188]
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov rcx, rdi
mov r9d, dword [rax + 0xb0]
lea rax, [rsp + 0x270]
or r9d, 0x20019
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140096739
mov rcx, qword [rsp + 0x270]
call fcn.140096620
mov rcx, qword [rsp + 0x270]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140096739
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
test eax, eax
jne 0x140096739
lea rax, [rsp + 0x278]
mov dword [rsp + 0x268], 0xff
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x268]
mov qword [rsp + 0x30], rsi
lea r8, [rsp + 0x40]
mov qword [rsp + 0x28], rsi
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x140096670
xor eax, eax
add rsp, 0x240
pop rdi
pop rsi
pop rbx
ret
mov eax, ebx
add rsp, 0x240
pop rdi
pop rsi
pop rbx
ret

Function at 0x140098160
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 0x40]
lea r9, [rsp + 0x40]
xor eax, eax
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x40]
add rsp, 0x38
ret

Function at 0x14009bbc0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x10020
call fcn.1400d7a10
sub rsp, rax
mov rdi, rdx
lea rcx, str.ComSpec
lea rdx, [rsp + 0x20]
mov r8d, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test eax, eax
je 0x14009bc29
lea rcx, [rbx + 1]
cmp rcx, 0x7fff
ja 0x14009bc29
lea r8, [rbx*2 + 2]
mov rcx, rdi
lea rdx, [rsp + 0x20]
call fcn.1400b9890
mov eax, ebx
mov rbx, qword [rsp + 0x10030]
add rsp, 0x10020
pop rdi
ret
xor eax, eax
mov word [rdi], ax
mov eax, ebx
mov rbx, qword [rsp + 0x10030]
add rsp, 0x10020
pop rdi
ret
Function at 0x14009c5a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor ebx, ebx
mov esi, r9d
mov r12d, r8d
mov r14d, edx
mov r13, rcx
mov r15d, ebx
test rcx, rcx
je 0x14009c5de
xor edx, edx
lea r8d, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
jmp 0x14009c5e5
mov rdi, qword [0x140122ac0]
test rdi, rdi
je 0x14009c7ad
mov qword [rsp + 0x80], rbp
lea rbp, [0x140125044]
test r14d, r14d
jns 0x14009c60e
movzx eax, r14w
neg ax
movzx edx, ax
jmp 0x14009c646
test r14d, r14d
mov dword [rsp + 0x44], ebx
mov eax, 1
mov qword [rsp + 0x48], rbp
cmovne eax, r14d
lea r9, [rsp + 0x40]
lea r8, [0x14009c580]
mov dword [rsp + 0x40], eax
mov edx, recv
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov rdx, qword [rsp + 0x48]
cmp rdx, rbp
je 0x14009c778
mov r8d, recv
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14009c778
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14009c778
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x14009c778
cmp r12d, 0xffffffff
cmovne esi, r12d
test esi, esi
jne 0x14009c6a8
lea ecx, [rsi + 0xb]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, eax
movzx eax, word [rbp + 4]
lea r8, [rbp + 6]
mov r11, rbx
mov r9d, ebx
cmp bx, ax
jae 0x14009c778
mov rdx, r8
mov r10d, eax
mov ebp, 0x100
nop word [rax + rax]
movzx eax, byte [r8]
mov ecx, ebx
test eax, eax
cmove eax, ebp
cmp eax, r9d
jle 0x14009c6e8
cmp r9d, esi
setl cl
jmp 0x14009c6ed
cmp eax, esi
setge cl
test ecx, ecx
je 0x14009c6f7
mov r11, rdx
mov r9d, eax
add rdx, 0xe
add r8, 0xe
sub r10, 1
jne 0x14009c6d0
test r11, r11
je 0x14009c778
movzx edx, word [r11 + 0xc]
lea r8d, [r10 + 3]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x14009c778
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14009c778
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x14009c778
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x30], ebx
mov r9d, 0x30000
mov edx, eax
mov dword [rsp + 0x28], ebx
mov r8d, 1
mov dword [rsp + 0x20], ebx
mov rcx, rbp
call qword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov r15, rax
mov rcx, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x80]
test rcx, rcx
je 0x14009c79a
test r15, r15
je 0x14009c79a
mov qword [rcx], rdi
mov rax, r15
jmp 0x14009c7ce
test r13, r13
je 0x14009c7a8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r15, r15
jne 0x14009c795
test r14d, r14d
jle 0x14009c7b8
lea ebx, [r14 - 1]
jmp 0x14009c7c0
cmp r14d, 0xffffffff
cmovl ebx, r14d
mov r8d, ebx
mov rdx, r13
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ExtractIconW]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14009fa40
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
xor edi, edi
mov qword [rsp + 0x60], rbp
xor r9d, r9d
mov ebp, edx
mov rbx, rcx
lea edx, [rdi + 0x10]
test r8b, r8b
je 0x14009face
lea rax, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x1f4
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
jne 0x14009fad7
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x70], edi
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x70]
test r8d, r8d
je 0x14009fad7
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x14009fad7
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14009fad7
xor r8d, r8d
call qword [sym.imp.USER32.dll_PostMessageW]
test ebp, ebp
cmovns edi, ebp
mov rbp, qword [rsp + 0x60]
test edi, edi
je 0x14009fb3b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, 1
mov ecx, 0x8000012f
mov esi, eax
call fcn.140001710
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14009fb3b
add edi, esi
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x14009fb3b
mov edx, 1
mov ecx, 0x8000012f
call fcn.140001710
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x14009fb10
mov rax, rbx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret