joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140067370
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov rbx, qword [rdx]
mov rbp, rcx
lea rcx, [rsp + 0x50]
mov esi, r8d
mov rdi, rdx
call qword [sym.imp.USER32.dll_GetCursorPos]
mov r11d, dword [rsp + 0x50]
mov eax, dword [rsp + 0x54]
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov dword [rdi + 0x26c], r11d
mov dword [rdi + 0x270], eax
call qword [sym.imp.USER32.dll_ScreenToClient]
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x54]
cmp eax, dword [rdi + 0x274]
jne 0x1400673d6
cmp ecx, dword [rdi + 0x278]
je 0x1400673fe
cmp esi, 1
mov dword [rdi + 0x274], eax
mov dword [rdi + 0x278], ecx
jl 0x1400673fe
mov dword [rsp + 0x20], ecx
mov r9d, eax
mov r8, rdi
mov rcx, rbp
mov edx, 0xfffffff5
call fcn.140061180
mov ecx, dword [rbp + 0x18]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, dword [rbp + 0x1c]
movzx r12d, ax
shr r12d, 0xf
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
movzx ebx, ax
shr ebx, 0xf
cmp r12d, dword [rdi + 0x27c]
je 0x1400674a4
cmp esi, 1
jl 0x1400674a4
cmp byte [rdi + 0x2b8], 0
je 0x1400674a4
mov eax, dword [rsp + 0x54]
mov r9d, dword [rsp + 0x50]
mov r8, rdi
mov rcx, rbp
mov dword [rsp + 0x20], eax
test r12d, r12d
je 0x140067454
mov edx, 0xfffffff9
jmp 0x140067498
mov edx, 0xfffffff8
call fcn.140061180
cmp byte [rdi + 0x284], 0
je 0x14006749d
mov rcx, qword [rdi]
mov edx, 0xfffffff0
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov r9d, dword [rsp + 0x50]
mov r8, rdi
bt eax, 0x18
mov eax, dword [rsp + 0x54]
mov rcx, rbp
mov dword [rsp + 0x20], eax
mov edx, 0xfffffffa
jb 0x140067498
mov edx, 0xfffffff4
call fcn.140061180
mov byte [rdi + 0x284], 0
test esi, esi
je 0x1400674af
mov dword [rdi + 0x27c], r12d
cmp ebx, dword [rdi + 0x280]
je 0x1400674e2
cmp esi, 1
jl 0x1400674e2
mov eax, dword [rsp + 0x54]
mov r9d, dword [rsp + 0x50]
mov r8, rdi
mov rcx, rbp
mov edx, 0xfffffff7
mov dword [rsp + 0x20], eax
test ebx, ebx
jne 0x1400674dd
mov edx, 0xfffffff6
call fcn.140061180
test esi, esi
je 0x1400674ec
mov dword [rdi + 0x280], ebx
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x14006ff60
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov rbp, rcx
lea rcx, [rsp + 0x20]
mov edi, r9d
mov rbx, r8
mov r13b, dl
call fcn.1400083e0
xor r15d, r15d
lea rcx, [rsp + 0x40]
xor edx, edx
lea r8d, [r15 + 0x70]
mov r12, r15
mov rsi, r15
lea r14d, [r15 + 1]
call fcn.140019a70
cmp edi, 2
jb 0x14006ffe2
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 8]
call fcn.140063fa0
cmp word [rax], r15w
je 0x14006ffe2
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 8]
call fcn.140063fa0
mov rcx, rax
call fcn.1400172a0
mov r12, rax
cmp edi, 3
jb 0x14006ffff
mov rcx, qword [rbx + 8]
mov rcx, qword [rcx + 0x10]
call fcn.140063fa0
mov rcx, rax
call fcn.1400172a0
mov rsi, rax
cmp edi, 4
jb 0x140070040
mov rcx, qword [rbx + 8]
mov rcx, qword [rcx + 0x18]
call fcn.140063fa0
cmp word [rax], r15w
je 0x140070040
mov rax, qword [rbx + 8]
mov edx, SafeArrayCreateEx
mov rcx, qword [rax + 0x18]
call fcn.140051b80
cmp al, r15b
jne 0x140070040
call fcn.140013410
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.140001110
cmp edi, 5
jb 0x140070056
mov rax, qword [rbx + 8]
mov rcx, qword [rax + 0x20]
call fcn.140008d20
movzx r14d, ax
mov edi, WSAStartup
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8, rdi
call fcn.140019a70
mov rax, qword [rsp + 0x20]
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x50], rax
mov rax, qword [rbx + 8]
mov dword [rsp + 0x44], 0x40
mov qword [rsp + 0x48], r15
mov rcx, qword [rax]
call fcn.140063fa0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x70], r14d
mov qword [rsp + 0x58], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ebx, eax
cmp r12, r15
je 0x1400700bf
mov rcx, r12
call fcn.140018ec8
cmp rsi, r15
je 0x1400700cc
mov rcx, rsi
call fcn.140018ec8
cmp ebx, r15d
jne 0x140070102
mov rax, qword [rbp]
xor r8d, r8d
movsxd rcx, dword [rax + 4]
lea edi, [r8 + 1]
add rcx, rbp
mov edx, edi
call fcn.140003990
mov rbx, qword [rsp + 0x100]
mov rcx, rbx
call fcn.1400038c0
mov dword [rbx + 8], edi
mov dword [rbx], r15d
jmp 0x140070145
cmp r13b, r15b
je 0x140070118
mov rax, qword [rsp + 0xa8]
mov qword [rbp + 0x710], rax
jmp 0x140070145
mov rbx, qword [rsp + 0x100]
mov rcx, rbx
call fcn.1400038c0
mov rcx, qword [rsp + 0xa8]
mov edi, 1
mov dword [rbx + 8], edi
mov dword [rbx], edi
cmp rcx, r15
je 0x140070145
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x20]
call fcn.140003410
lea r11, [rsp + 0xb0]
xor eax, eax
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140070a40
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
mov eax, 0x2060
call fcn.140031e20
sub rsp, rax
lea rcx, [rsp + 0x20]
mov rbp, rdx
call fcn.1400083e0
lea rcx, [rsp + 0x40]
call fcn.1400083e0
mov rcx, rbp
call fcn.140063fa0
xor r12d, r12d
movzx ecx, word [rax]
mov rsi, rax
mov dil, r12b
mov rbx, r12
cmp cx, r12w
je 0x140070bc5
lea r13d, [r12 + 0x25]
inc rbx
cmp cx, r13w
jne 0x140070b73
cmp word [rsi + rbx*2], r13w
jne 0x140070aca
lea rcx, [rsp + 0x20]
mov edx, r13d
mov dil, 1
call fcn.14005bd40
inc rbx
jmp 0x140070b80
lea rdx, [0x14009a680]
lea rcx, [rsp + 0x40]
call fcn.1400089b0
jmp 0x140070af4
cmp r11w, r12w
je 0x140070aff
lea rcx, [rsp + 0x40]
movzx edx, r11w
call fcn.14005bd40
inc rbx
movzx r11d, word [rsi + rbx*2]
cmp r11w, r13w
jne 0x140070add
cmp word [rsi + rbx*2], r12w
je 0x140070b90
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov r8d, 0xfff
inc rbx
mov word [rsp + 0x60], r12w
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rcx, [rsp + 0x20]
cmp eax, r12d
je 0x140070b42
lea rdx, [rsp + 0x60]
call fcn.140012750
mov dil, 1
jmp 0x140070b80
lea rdx, [0x1400a1b8c]
mov dil, 1
call fcn.140012750
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.1400642f0
lea rdx, [0x1400a1b8c]
lea rcx, [rsp + 0x20]
call fcn.140012750
jmp 0x140070b80
movzx edx, cx
lea rcx, [rsp + 0x20]
call fcn.14005bd40
mov cx, word [rsi + rbx*2]
cmp cx, r12w
jne 0x140070a9e
jmp 0x140070bb3
lea rdx, [0x1400a1b8c]
lea rcx, [rsp + 0x20]
mov dil, 1
call fcn.140012750
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.1400642f0
cmp dil, r12b
je 0x140070bc5
lea rdx, [rsp + 0x20]
mov rcx, rbp
call fcn.1400150f0
lea rcx, [rsp + 0x40]
call fcn.140003410
lea rcx, [rsp + 0x20]
call fcn.140003410
lea r11, [rsp + 0x2060]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x14007dee0
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov rax, rdx
mov rdi, rcx
or edx, 0xffffffff
mov rcx, rax
mov rbx, r8
call fcn.140015b00
mov r8b, 1
mov rdx, rbx
mov rcx, rdi
xor esi, esi
xor r13b, r13b
mov rbp, rax
xor r14d, r14d
mov qword [rdi + 0x20], rbx
call fcn.140044ed0
mov rcx, rbp
call fcn.14001a220
lea rcx, [rax + 1]
call fcn.140018cc8
cmp byte [rdi + 8], 1
mov r12, rax
jne 0x14007df5d
lea edx, [rsi + 0x14]
xor r8d, r8d
mov rcx, rdi
call fcn.140053ef0
mov rcx, rdi
mov r13b, al
call fcn.140044d50
mov r14d, eax
mov bl, byte [rbp]
jmp 0x14007e02b
inc esi
mov dword [rsp + 0x60], esi
cmp bl, 0x21
je 0x14007e021
cmp bl, 0x23
je 0x14007e01b
cmp bl, 0x2b
je 0x14007e015
cmp bl, 0x5e
je 0x14007e00f
mov rcx, rdi
cmp bl, 0x7b
je 0x14007dfb5
call fcn.140053320
mov r8d, 1
mov dl, bl
mov rcx, rdi
call fcn.14005d2c0
and dword [rdi + 0x18], 0x3f00
jmp 0x14007e025
lea rax, [rsp + 0x60]
mov r9, r12
mov r8, rbp
mov dl, 0x7d
mov qword [rsp + 0x20], rax
call fcn.140044bb0
test eax, eax
je 0x14007dfe2
mov r8d, 1
mov dl, 0x7b
mov rcx, rdi
call fcn.14005d2c0
jmp 0x14007e025
mov rcx, r12
call fcn.14001a220
test rax, rax
je 0x14007e009
mov rcx, rdi
call fcn.140053320
mov rdx, r12
mov rcx, rdi
call fcn.14007da30
and dword [rdi + 0x18], 0x3f00
mov esi, dword [rsp + 0x60]
jmp 0x14007e025
or dword [rdi + 0x18], 8
jmp 0x14007e025
or dword [rdi + 0x18], 2
jmp 0x14007e025
or dword [rdi + 0x18], 0x10
jmp 0x14007e025
or dword [rdi + 0x18], 1
movsxd rax, esi
mov bl, byte [rax + rbp]
test bl, bl
jne 0x14007df65
cmp byte [rdi + 8], 1
jne 0x14007e054
mov edx, r14d
mov rcx, rdi
call fcn.140053a40
mov r8b, r13b
mov edx, reloc.WSOCK32.dll_sendto
mov rcx, rdi
call fcn.140053ef0
mov rcx, rbp
call fcn.140018ec8
mov rcx, r12
call fcn.140018ec8
mov rdx, qword [rdi + 0x20]
xor r8d, r8d
mov rcx, rdi
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
jmp fcn.140044ed0
Function at 0x140011249
Capabilities:
Terminate process

Disassembly:
jmp 0x140013a70
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]
add rsp, 0x28
ret

Function at 0x1400112e9
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014dc0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014de0
xor al, al
jmp 0x140014e61
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014df3
xor al, al
jmp 0x140014e61
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014e1d
xor al, al
jmp 0x140014e61
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014e31
xor al, al
jmp 0x140014e61
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014e43
xor al, al
jmp 0x140014e61
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014e5f
xor al, al
jmp 0x140014e61
mov al, 1
add rsp, 0x38
ret
Function at 0x140001078
Capabilities:
Get common file path
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
xor ebx, ebx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
je 0x140001101
mov ebx, esi
add rbx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
lea edx, [rdi + 8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x1400010fa
mov rdx, rax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x140001113
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, 0x1f
test edi, edi
cmove edi, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x140001113
xor ebx, ebx
jmp 0x140001113
mov edi, 0xe
jmp 0x140001113
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, 0x1f
test edi, edi
cmove edi, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x140001144
mov rdx, rbx
lea rcx, str.ORIGINAL_SETUP_WORKINGDIR_ENV_VAR
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400012dc
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
lea r8, str.Microsoft.Windows.Setup.Autorun_F2F632C7_AC94_4B7A_D06B_97D56ED9DC8B
xor ecx, ecx
xor edx, edx
xor esi, esi
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
test rax, rax
je 0x140001326
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140001326
mov rcx, rbx
mov esi, 1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
test rdi, rdi
je 0x14000132e
mov qword [rdi], rbx
xor ecx, ecx
test rdi, rdi
cmove rcx, rbx
test rcx, rcx
je 0x140001342
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140001518
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xe0
mov rsi, rdx
mov rbx, rcx
mov edi, 0x68
lea rcx, [rsp + 0x70]
mov r8d, edi
xor edx, edx
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x50]
mov dword [rsp + 0x70], edi
mov qword [rsp + 0x48], rax
xor edi, edi
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], rdi
mov rdx, rbx
mov qword [rsp + 0x30], rdi
xor ecx, ecx
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1400015a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x1400015fc
mov rcx, qword [rsp + 0x50]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400015df
test rsi, rsi
je 0x1400015e4
mov rcx, qword [rsp + 0x50]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x1400015e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x1400015e4
mov edi, 0x8000ffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140001614
Capabilities:
Check if file exists
Get file attributes
Get system information on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x288
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor r15d, r15d
mov r14, r9
mov rbp, r8
mov rbx, rdx
mov rsi, rcx
cmp word [rcx], r15w
je 0x1400017db
test rdx, rdx
je 0x1400017db
cmp word [rdx], r15w
je 0x1400017db
xor edx, edx
lea r8d, [r15 + 0x30]
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rsp + 0x30]
test eax, eax
je 0x14000169e
cmp eax, 9
je 0x140001695
mov eax, 0x8000ffff
jmp 0x1400017e0
lea rdi, [0x140003408]
jmp 0x1400016a5
lea rdi, [0x140003410]
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
call sub.msvcrt.dll_memset
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r15w
jne 0x1400016bb
mov ecx, 0x5c
mov qword [rsp + 0x28], rbx
cmp cx, word [rsi + rax*2 - 2]
lea r8, [0x140003418]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rdi
mov r9, rsi
mov edx, 0x104
je 0x1400016f6
lea r8, str._s_s_s
call section..text
test eax, eax
js 0x1400017e0
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000172d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x1400017e0
test al, 0x10
je 0x14000173b
mov eax, 0x800700a1
jmp 0x1400017e0
mov ecx, 0x18
call fcn.140001dc4
mov rbx, rax
test rax, rax
je 0x140001772
lea rax, [0x140003010]
mov qword [rbx + 0x10], r15
lea r8, [rbx + 8]
mov qword [rbx], rax
lea rdx, [rsp + 0x60]
mov dword [r8], r15d
call fcn.14000199c
mov qword [rbx + 0x10], rax
jmp 0x140001775
mov rbx, r15
test rbp, rbp
je 0x1400017b8
lea rdx, [0x140003404]
mov rcx, rbx
call fcn.140001b68
test eax, eax
je 0x14000179c
mov rdx, rbp
mov rcx, rbx
call fcn.140001b68
test eax, eax
jne 0x1400017b8
test rbx, rbx
je 0x1400017b5
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
mov rax, qword [rax]
call qword [0x140003340]
mov rbx, r15
test rbx, rbx
je 0x140001713
cmp qword [rbx + 0x10], r15
lea rcx, [0x14000350c]
mov rdx, r14
cmovne rcx, qword [rbx + 0x10]
call fcn.140001518
jmp 0x1400017e0
mov eax, 0x80070057
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400021b0
add rsp, 0x288
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001800
Capabilities:
Enumerate gui resources
Set current directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
mov r12, rcx
xor edi, edi
and dword [rbp - 0x10], edi
xor ecx, ecx
mov qword [rbp - 8], rdi
mov r15, r8
call fcn.1400012dc
test eax, eax
je 0x140001851
and dword [rbp - 0xc], edi
lea rdx, [rbp - 0xc]
lea rcx, [0x140001360]
call qword [sym.imp.USER32.dll_EnumWindows]
mov eax, 0xb7
jmp 0x14000195c
call fcn.140001154
mov rbx, rax
test rax, rax
je 0x140001942
call fcn.14000121c
mov rsi, rax
test rax, rax
je 0x140001942
call fcn.140001078
cmp qword [rsi + 0x10], rdi
lea r14, [0x14000350c]
mov rdx, r14
mov rcx, r14
cmovne rdx, qword [rsi + 0x10]
cmp qword [rbx + 0x10], rdi
cmovne rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400018aa
lea r9, [rbp - 0x10]
mov r8, r15
call fcn.140001614
jmp 0x1400018af
mov eax, 0x80070057
test eax, eax
jns 0x140001929
lea rcx, [rbp - 8]
call fcn.1400012dc
test eax, eax
je 0x1400018db
and dword [rbp - 0xc], edi
lea rdx, [rbp - 0xc]
lea rcx, [0x140001360]
call qword [sym.imp.USER32.dll_EnumWindows]
mov eax, 0xb7
jmp 0x140001922
lea rdx, str.Sources_
mov rcx, rbx
call fcn.140001b68
cmp qword [rbx + 0x10], rdi
mov rcx, r14
cmovne rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rdx, str.autorun.dll
mov rcx, rbx
call fcn.140001b68
cmp qword [rbx + 0x10], rdi
mov r8, r15
mov rcx, r12
cmovne r14, qword [rbx + 0x10]
mov rdx, r14
call fcn.1400013d0
mov rdi, qword [rbp - 8]
mov dword [rbp - 0x10], eax
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
mov rax, qword [rax]
call qword [0x140003340]
mov eax, dword [rbp - 0x10]
jmp 0x14000194b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x10], eax
test rdi, rdi
je 0x14000195c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp - 0x10]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140001f1c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x1400055e8], rbx
je 0x140001f83
cmp rax, rbx
jne 0x140001f76
mov ebx, 1
mov esi, ebx
jmp 0x140001f88
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001f5b
mov ebx, 1
mov eax, dword [0x1400055f0]
cmp eax, ebx
jne 0x140001fa0
mov edi, 0x1f
mov ecx, edi
call fcn.1400a1000
jmp 0x14000200c
mov eax, dword [0x1400055f0]
test eax, eax
jne 0x140002001
mov dword [0x1400055f0], ebx
lea r15, [0x140003388]
lea rdi, [0x140003370]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140001ff3
test eax, eax
jne 0x140001ff7
cmp qword [rdi], r14
je 0x140001fe8
mov rax, qword [rdi]
mov rcx, qword [0x140003340]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x140001fca
test eax, eax
je 0x140002007
mov eax, 0xff
jmp 0x140002160
mov dword [0x140005024], ebx
mov edi, 0x1f
mov eax, dword [0x1400055f0]
cmp eax, ebx
jne 0x140002033
lea rdx, [0x140003368]
lea rcx, [0x140003358]
call sub.msvcrt.dll__initterm
mov dword [0x1400055f0], 2
test esi, esi
jne 0x140002041
mov rax, r14
xchg qword [0x1400055e8], rax
cmp qword [0x1400055f8], r14
je 0x140002074
lea rcx, [0x1400055f8]
call fcn.140002340
test eax, eax
je 0x140002074
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400055f8]
mov r9, qword [0x140003340]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000208d
mov eax, 0xff
jmp 0x140002160
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x140002111
cmp word [rcx], r14w
je 0x1400020a6
test edx, edx
jne 0x140002111
movzx eax, word [rcx]
sub ax, bx
cmp ax, di
ja 0x1400020bc
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400020a6
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001800
mov dword [0x140005020], eax
cmp dword [0x140005040], r14d
jne 0x1400020fa
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140005024], r14d
jne 0x14000210f
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140005020]
jmp 0x140002160
cmp word [rcx], 0x22
jne 0x140002125
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140002096
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.1400023c0
add rsp, 0x28
jmp 0x140001f1c
Function at 0x140002240
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000228c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140002284
cmp dword [rcx + 0x3c], edx
jl 0x140002284
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140002284
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 0x14000228c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140002be0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14001cc38]
cmp eax, dword [0x14001cc78]
jg 0x140002c1e
jne 0x140002cab
mov eax, dword [0x14001cc54]
cmp eax, dword [0x14001cc80]
jg 0x140002c1e
jne 0x140002cab
mov eax, dword [0x14001cbf8]
cmp dword [0x14001cc60], eax
jl 0x140002cab
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Error
call fcn.14000faa0
mov rcx, rax
lea rdx, [0x14000ffc0]
call qword [sym.imp.MSVCP140.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]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x1388
lea rcx, [rsp + 0x38]
call fcn.1400101a0
mov rcx, rax
call fcn.1400101b0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Exit
call fcn.14000faa0
mov rcx, rax
lea rdx, [0x14000ffc0]
call qword [sym.imp.MSVCP140.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]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x3e8
lea rcx, [rsp + 0x38]
call fcn.1400101a0
mov rcx, rax
call fcn.1400101b0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
add rsp, 0x28
ret