joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002235
Capabilities:
Create process on windows

Disassembly:
push rbp
sub rsp, 0x150
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xe0], rcx
mov dword [rbp + 0xcc], 0
mov rdx, qword [rbp + 0xe0]
lea rax, [rbp + 0x60]
mov r9, rdx
lea r8, str.__s____guest
mov edx, 0x64
mov rcx, rax
call dbg.snprintf
lea rax, [rbp - 0x10]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 0x10], 0x68
lea rax, [rbp - 0x30]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sym.memset
mov word [rbp + 0x30], 0
lea rax, [rbp + 0x60]
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
je 0x140002335
mov eax, dword [rbp - 0x20]
mov dword [rbp + 0xcc], eax
mov rax, qword [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp + 0xcc]
add rsp, 0x150
pop rbp
ret

Function at 0x140002344
Capabilities:
Hide graphical window

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
lea rdx, [rbp - 8]
mov rax, qword [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call rax
mov rax, qword [rbp + 0x18]
mov edx, eax
mov eax, dword [rbp - 8]
cmp edx, eax
jne 0x14000247c
mov rax, qword [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_IsIconic]
call rax
mov dword [rbp - 4], eax
mov eax, dword [rbp - 4]
mov edx, eax
lea rax, str.state__d_n
mov rcx, rax
call dbg.printf
mov rax, qword [rbp + 0x10]
mov edx, 6
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
mov ecx, 0x64
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, str.minimizing
mov rcx, rax
call sym.puts
lea rax, str.Showing
mov rcx, rax
call sym.puts
mov rax, qword [rbp + 0x10]
mov edx, 9
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
mov ecx, 0x190
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [rbp + 0x10]
mov r8d, 2
mov edx, 0x32
mov rcx, rax
call sym.SimulateMouseClick
mov rax, qword [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_SetFocus]
call rax
mov ecx, 0x64
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_SetForegroundWindow]
call rax
mov ecx, 0x64
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_SetActiveWindow]
call rax
mov ecx, 0x64
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov eax, 0
jmp 0x140002481
mov eax, 1
add rsp, 0x30
pop rbp
ret
Function at 0x140002487
Capabilities:
Enumerate gui resources

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov dword [rbp + 0x10], ecx
mov eax, dword [rbp + 0x10]
mov r8d, eax
mov edx, 0
mov ecx, 0x400
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x1400024e1
mov eax, dword [rbp + 0x10]
mov rdx, rax
lea rax, [sym.EnumWindowsProc]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_EnumWindows]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x140002517
lea rax, str.taskkill__IM_chrome.exe__f
mov rcx, rax
call sym.runCommandHidden
call sym.getChromePath
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.startProcess
mov dword [0x140067490], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.free
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000251e
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov rax, rsp
mov rsi, rax
mov rax, qword [rbp + 0x28]
mov rcx, rax
call sym.strlen
add rax, 1
mov rdx, rax
sub rdx, 1
mov qword [rbp - 0x10], rdx
add rax, 0xf
shr rax, 4
shl rax, 4
call fcn.1400043c0
sub rsp, rax
lea rax, [rsp + 0x20]
mov qword [rbp - 0x18], rax
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.strcpy
mov dword [rbp - 4], 0
jmp 0x1400025ab
mov rdx, qword [rbp - 0x18]
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rdx + rax]
add eax, 1
mov ecx, eax
mov rdx, qword [rbp - 0x18]
mov eax, dword [rbp - 4]
cdqe
mov byte [rdx + rax], cl
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
movsxd rbx, eax
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.strlen
cmp rbx, rax
jb 0x140002589
mov rax, qword [rbp + 0x20]
lea rdx, [0x140063d0d]
mov rcx, rax
call sym.fopen
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0x1400025e5
mov rsp, rsi
jmp 0x14000261f
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.strlen
lea rcx, [rax + 1]
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x18]
mov r9, rdx
mov r8, rcx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sym.fclose
mov rsp, rsi
mov rsp, rbp
pop rbx
pop rsi
pop rbp
ret
Function at 0x140002cf4
Capabilities:
Query environment variable
Terminate process

Disassembly:
push rbp
sub rsp, 0x140
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xd0], rcx
lea rax, str.APPDATA
mov rcx, rax
call sym.getenv
mov qword [rbp + 0xb8], rax
cmp qword [rbp + 0xb8], 0
jne 0x140002d44
lea rax, str.APPDATA_environment_variable_is_not_set.
mov rcx, rax
call sym.puts
mov ecx, 1
call sym.exit
mov rcx, qword [rbp + 0xb8]
lea rax, [rbp - 0x50]
mov rdx, qword [rbp + 0xd0]
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str._s_s
mov edx, 0x104
mov rcx, rax
call dbg.snprintf
lea rax, [rbp - 0x50]
mov rdx, rax
lea rax, [0x1400674a0]
mov rcx, rax
mov rax, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
call rax
test eax, eax
je 0x140002ddc
lea rax, [rbp - 0x50]
mov rdx, rax
lea rax, str.Not_in_the_target_directory:__s_n
mov rcx, rax
call dbg.printf
lea rax, [0x1400674a0]
mov rdx, rax
lea rax, str.current_path__t:__s_n
mov rcx, rax
call dbg.printf
lea rax, [rbp - 0x50]
mov rdx, rax
lea rax, str.target_path__t:__s_n
mov rcx, rax
call dbg.printf
mov eax, 0
jmp 0x140002df7
lea rax, [rbp - 0x50]
mov rdx, rax
lea rax, str.Executable_is_in_the_target_directory:__s_n
mov rcx, rax
call dbg.printf
mov eax, 1
add rsp, 0x140
pop rbp
ret

Function at 0x140002e00
Capabilities:
Query environment variable
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
lea rax, str.APPDATA
mov rcx, rax
call sym.getenv
mov qword [rbp - 8], rax
movabs rax, 0x64656873696e6966
mov qword [rbp - 0x1d], rax
movabs rax, 0x6578652e646568
mov qword [rbp - 0x18], rax
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x70]
lea rdx, [rbp - 0x1d]
mov qword [rsp + 0x28], rdx
lea rdx, [0x140005020]
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str._s_s_s
mov edx, 0x46
mov rcx, rax
call dbg.snprintf
lea rax, [rbp - 0x70]
mov rdx, rax
lea rax, str.copying_to__s_n
mov rcx, rax
call dbg.printf
lea rax, [rbp - 0x70]
lea rdx, [0x14006411b]
mov rcx, rax
call sym.fopen
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140002eb3
lea rax, str.Error_creating_file
mov rcx, rax
call sym.perror
jmp 0x140002efb
mov eax, 0x5a0f3
cdqe
mov rdx, qword [rbp - 0x10]
mov r9, rdx
mov r8, rax
mov edx, 1
lea rax, [0x140006020]
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.fclose
lea rax, [rbp - 0x1d]
mov rdx, rax
lea rax, str.File_extracted_successfully_as__s._n
mov rcx, rax
call dbg.printf
nop
add rsp, 0xa0
pop rbp
ret
Function at 0x1400035f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call dbg.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140003660
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140067624]
mov rbx, rcx
test esi, esi
jle 0x140003790
mov rax, qword [0x140067628]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400036ab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140003735
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140003690
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400037b2
mov rax, qword [0x140067628]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140067628]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003797
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000372e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140003740
add dword [0x140067624], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140067628]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000372e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400036b8
mov rax, qword [0x140067628]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003d50
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140067680]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140067660]
test rbx, rbx
je 0x140003dac
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140003da3
test eax, eax
jne 0x140003da3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003d88
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003fc0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140003fd8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140003fe0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140003ff0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000403d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140004034
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000403f
add rax, 0x28
cmp rax, r9
jne 0x140004020
xor eax, eax
ret

Function at 0x140004040
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400040d0
mov rdx, qword [0x1400647e0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400040be
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400040be
cmp word [rax + 0x18], 0x20b
jne 0x1400040be
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400040d0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400040a9
add rbx, 0x28
cmp rbx, rdi
je 0x1400040d0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400040a0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400040e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400647e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140004100
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140004108
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140004100
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000415d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140004154
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140004100
add rax, 0x28
cmp rax, r9
jne 0x140004140
xor eax, eax
ret

Function at 0x140004160
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400647e0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000417f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140004188
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000417f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x1400041a0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400647e0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400041c0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400041c8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400041c0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140004210
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140004207
test rcx, rcx
je 0x1400041c0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1400041f8
xor eax, eax
ret

Function at 0x140004220
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400647e0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000423f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140004248
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140004260
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400647e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140004280
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140004288
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140004280
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140004280
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400042d4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400042e0
add rdx, 0x28
cmp r9, rdx
jne 0x1400042c0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1400042f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400647e0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140004312
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140004320
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140004312
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140004312
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140004312
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140004375
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140004388
add rdx, 0x28
cmp r10, rdx
jne 0x140004360
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140004397
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400043a7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000437e
test ecx, ecx
jg 0x140004390
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140004a70
Capabilities:
Log keystrokes via application hook

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
xor esi, esi
call dbg.__main
call sym.__p__acmdln
mov rbx, qword [rax]
test rbx, rbx
jne 0x140004abb
jmp 0x140004b31
test cl, cl
je 0x140004ae8
and esi, 1
je 0x140004ad0
mov esi, 1
call sym._ismbblead
test eax, eax
je 0x140004ab7
cmp byte [rbx + 1], 1
sbb rbx, 0xffffffffffffffff
add rbx, 1
movsx ecx, byte [rbx]
cmp cl, 0x20
jle 0x140004a98
mov eax, esi
xor eax, 1
cmp cl, 0x22
cmove esi, eax
jmp 0x140004aa6
test cl, cl
je 0x140004ae8
nop dword [rax]
movzx eax, byte [rbx + 1]
add rbx, 1
test al, al
je 0x140004ae8
cmp al, 0x20
jle 0x140004ad8
lea rdx, [rsp + 0x20]
xor eax, eax
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov r9d, 0xa
test byte [rsp + 0x5c], 1
je 0x140004b16
movzx r9d, word [rsp + 0x60]
mov rcx, qword [0x1400647e0]
mov r8, rbx
xor edx, edx
add rsp, 0x90
pop rbx
pop rsi
pop rdi
jmp sym.WinMain
lea rbx, [0x140064440]
jmp 0x140004ae8
Function at 0x140007610
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov eax, r8d
mov rbp, rdx
mov ebx, r8d
shr eax, 4
mov rsi, rcx
mov r8d, 6
add ax, 1
mov rcx, rbp
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
mov r12, rax
je 0x140007772
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140007772
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x140007772
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x1400076b6
nop
cmp rdi, r11
jae 0x140007772
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x1400076a0
cmp rdi, r11
jae 0x140007772
movzx eax, word [rdi]
test ax, ax
je 0x140007772
movzx ebx, ax
mov rax, qword [rsi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or ecx, eax
jge 0x1400076ec
mov edx, ebx
mov rcx, rsi
call fcn.140003d40
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x140007709
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
movsxd r9, ecx
mov rcx, qword [rsi]
lea rdi, [rbx + rbx]
mov rdx, rdi
add r9, r9
call fcn.1402279d0
test eax, eax
je 0x140007748
cmp eax, 0xc
je 0x140007742
cmp eax, 0x16
je 0x14000773c
cmp eax, 0x22
je 0x14000773c
cmp eax, 0x50
je 0x140007748
call fcn.1401f8920
int3
call fcn.1401f8920
int3
call fcn.1401f88d8
int3
test ebx, ebx
js 0x140007767
mov rcx, qword [rsi]
cmp ebx, dword [rcx - 0xc]
jg 0x140007767
mov dword [rcx - 0x10], ebx
mov rcx, qword [rsi]
mov eax, 1
mov word [rdi + rcx], 0
jmp 0x140007774
mov ecx, 0x80070057
call fcn.140003d20
int3
xor eax, eax
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 0x140007790
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1400077c3
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbx, rax
je 0x140007807
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140007802
cmp rbx, r11
jae 0x140007807
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x1400077f0
cmp rbx, r11
jb 0x14000780b
xor eax, eax
jmp 0x140007817
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001ecc0
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
lea rbx, [rcx + 0x430]
mov rdi, rcx
test rbx, rbx
je 0x14001ece0
cmp qword [rbx + 0x40], 0
jne 0x14001ecfe
mov rax, qword [rbx]
mov dword [rcx + 0x714], 0xcbd
xor r8d, r8d
mov edx, 0x1d3
mov rcx, rbx
call qword [rax + 0x268]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
call fcn.1401f34b8
cmp rax, rbx
je 0x14001edc3
mov rcx, qword [rdi + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
test rbx, rbx
jne 0x14001ed32
xor edi, edi
jmp 0x14001ed36
mov rdi, qword [rbx + 0x40]
mov edx, 0xfffffff0
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowLongW]
bt eax, 0x1d
jae 0x14001ed61
mov edx, 3
mov rcx, rdi
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rdi
call qword [sym.imp.USER32.dll_UpdateWindow]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, eax
mov ebp, eax
je 0x14001ed90
mov r8d, 1
mov edx, eax
mov ecx, esi
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
cmp esi, ebp
je 0x14001edaa
xor r8d, r8d
mov edx, ebp
mov ecx, esi
call qword [sym.imp.USER32.dll_AttachThreadInput]
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov edx, 1
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.1401ed80c
Function at 0x14001f1f0
Capabilities:
Log keystrokes

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0xa8], 0
mov rbx, rcx
je 0x14001f2d3
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
call fcn.1401f34b8
cmp qword [rbx + 0xa8], rax
je 0x14001f2d3
mov rcx, qword [rbx + 0x40]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov rbx, qword [rbx + 0xa8]
test rbx, rbx
je 0x14001f246
mov rbx, qword [rbx + 0x40]
mov edx, 0xfffffff0
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowLongW]
bt eax, 0x1d
jae 0x14001f271
mov edx, 3
mov rcx, rbx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rbx
call qword [sym.imp.USER32.dll_UpdateWindow]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
mov esi, eax
je 0x14001f2a0
mov r8d, 1
mov edx, eax
mov ecx, edi
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetForegroundWindow]
cmp edi, esi
je 0x14001f2ba
xor r8d, r8d
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_AttachThreadInput]
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret