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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x38
mov eax, edx
mov rbp, r9
mov rdi, r8
sub eax, 0x100
mov r12d, edx
mov rsi, rcx
je 0x4612a7
sub eax, 2
je 0x461279
cmp eax, 2
jne 0x46128d
cmp r8, 0x70
jb 0x46128d
cmp r8, 0x71
ja 0x46128d
bt r9, 0x1d
jae 0x46128d
lea ecx, [rax + 0x10]
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, reloc.COMCTL32.dll_InitCommonControls
mov bx, ax
shr ebx, 0xf
and bl, 1
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, InitCommonControls
mov r13w, ax
shr r13d, 0xf
and r13b, 1
call qword [sym.imp.USER32.dll_GetKeyState]
xor edx, edx
mov r11w, ax
shr r11d, 0xf
and r11b, 1
cmp bl, dl
je 0x46128d
cmp r13b, dl
jne 0x46128d
cmp r11b, dl
jne 0x46128d
mov rax, qword [rsi + 0x10]
cmp rdi, 0x70
mov rcx, qword [rax + 0x58]
setne dl
mov rax, qword [rcx]
call qword [rax + VariantCopyInd]
jmp 0x461323
cmp r8, 9
je 0x461323
cmp r8, 0x1b
je 0x461323
mov rdx, qword [rsi]
mov rcx, qword [rsi + 8]
mov r9, rdi
mov r8d, r12d
mov qword [rsp + 0x20], rbp
call qword [sym.imp.USER32.dll_CallWindowProcW]
jmp 0x461325
cmp r8, 9
je 0x461312
cmp r8, 0x78
jne 0x46128d
lea ecx, [r8 - 0x66]
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, reloc.COMCTL32.dll_InitCommonControls
mov bx, ax
shr ebx, 0xf
and bl, 1
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, InitCommonControls
mov r13w, ax
shr r13d, 0xf
and r13b, 1
call qword [sym.imp.USER32.dll_GetKeyState]
xor edx, edx
mov r11w, ax
shr r11d, 0xf
and r11b, 1
cmp bl, dl
jne 0x46128d
cmp r13b, dl
jne 0x46128d
cmp r11b, dl
jne 0x46128d
lea rcx, [0x004d0780]
call fcn.0044a594
jmp 0x461323
mov rcx, qword [rcx + 0x10]
mov rcx, qword [rcx + 0xa8]
call qword [sym.imp.USER32.dll_SetFocus]
xor eax, eax
add rsp, 0x38
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x46c054
Capabilities:
Create process on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0xd0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rbp, r9
mov rsi, r8
mov r12, rcx
lea rcx, [rsp + 0x20]
call fcn.0040288c
nop
mov dx, 0x2e
lea rcx, [rsp + 0x20]
call fcn.00402ca4
mov edi, eax
lea rcx, [rsp + 0x20]
call fcn.00402cdc
xor ebx, ebx
cmp edi, ebx
jl 0x46c0a3
cmp edi, eax
jge 0x46c0d2
mov edx, dword [rsp + 0x28]
cmp dword [rsp + 0x2c], edx
jne 0x46c0bb
lea rcx, [rsp + 0x20]
call fcn.0040241c
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
mov eax, edx
mov word [rcx + rax*2], 0x2e
inc edx
mov word [rcx + rdx*2], bx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x60], 0x70
mov dword [rsp + 0x64], 0x140
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.0040288c
nop
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.0040288c
mov r11, qword [rsp + 0x30]
mov qword [rsp + 0x78], r11
mov qword [rsp + 0x80], rbx
mov eax, dword [rsp + 0x48]
neg eax
sbb rcx, rcx
and rcx, qword [rsp + 0x40]
mov qword [rsp + 0x88], rcx
mov dword [rsp + 0x90], 1
mov qword [rsp + 0xc8], rbx
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edi, dword [rsp + 0x98]
mov rax, qword [rsp + 0xc8]
mov qword [rbp], rax
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_free
cmp edi, 0x20
ja 0x46c1bc
cmp edi, 0x1f
jne 0x46c1b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.0040544c
lea r9d, [rdi - 0xf]
lea r8, [0x004994a8]
mov rdx, qword [rax]
mov rcx, rsi
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_free
nop
mov ebx, 0x80004005
jmp 0x46c1bc
mov rcx, qword [rsp + 0x20]
call sub.msvcrt.dll_free
mov eax, ebx
add rsp, 0xd0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x47639c
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, reloc.COMCTL32.dll_InitCommonControls
mov di, ax
shr edi, 0xf
and dil, 1
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, InitCommonControls
mov bx, ax
shr ebx, 0xf
and bl, 1
call qword [sym.imp.USER32.dll_GetKeyState]
mov r11w, ax
shr r11d, 0xf
and r11b, 1
jne 0x4763fe
xor edx, edx
cmp dil, dl
je 0x476409
cmp bl, dl
jne 0x476409
mov rcx, rsi
call fcn.004786b0
jmp 0x476413
xor dl, dl
cmp dil, dl
jne 0x476409
cmp bl, dl
je 0x47640b
mov dl, 1
mov rcx, rsi
call fcn.00473920
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
Function at 0x48324c
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov rax, rsp
sub rsp, 0x2f8
mov edx, ecx
lea r8, [rax + 0x10]
xor ecx, ecx
mov qword [rax + 0x10], 0
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov rcx, qword [rsp + 0x308]
test rcx, rcx
je 0x4832d4
lea r8, [rsp + 0x30]
mov r9d, 0x2b8
mov edx, 0x80
mov dword [rsp + 0x20], 0x4008
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea rcx, [rsp + 0x310]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
mov rcx, qword [rsp + 0x310]
test rcx, rcx
je 0x4832ce
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x308]
call qword [rax + 0x28]
mov rcx, qword [rsp + 0x310]
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
mov eax, dword [rsp + 0x38]
jmp 0x4832d6
xor eax, eax
add rsp, 0x2f8
ret

Function at 0x4832e0
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 0x486b24
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 0x486b57
cmp dword [rbx + 0x54], 1
ja 0x486b57
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x48]
jmp 0x486b5f
mov rcx, rbx
call fcn.00486780
add rsp, 0x20
pop rbx
ret
Function at 0x48709c
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.00402700
nop
cmp byte [rdi], 0
je 0x48711f
mov rdx, qword [rdi + 8]
lea rcx, [rsp + 0x80]
call fcn.00457b0c
nop
mov r8, rax
mov edx, 0xdb0
lea rcx, [rsp + 0x70]
call fcn.00457bfc
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.0040297c
nop
mov rcx, qword [rsp + 0x70]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x80]
call sub.msvcrt.dll_free
lea rcx, [rdi + 0x18]
call fcn.00402cdc
lea ebx, [rax + 1]
mov r8d, ebx
lea rdx, [rsp + 0x40]
lea rcx, [rdi + 0x18]
call fcn.0041061c
nop
mov rax, qword [rdi + 0x18]
lea rdx, [rax + rbx*2]
lea rcx, [rsp + 0x60]
call fcn.0040279c
nop
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.00486fc4
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.00486fc4
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.0040288c
nop
lea rcx, [rsp + 0x30]
call fcn.00402b04
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.00402b90
lea rcx, [rsp + 0x30]
call fcn.00402b04
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.00402b90
lea rcx, [rsp + 0x30]
call fcn.00402b04
cmp byte [rdi + 1], 0
je 0x487202
mov edx, 0x3f4
lea rcx, [rsp + 0x30]
call fcn.0045c67c
lea rdx, [0x0049d2d8]
lea rcx, [rsp + 0x30]
call fcn.00402bd4
lea rcx, [rdi + 0x10]
xor r8d, r8d
lea rdx, [rsp + 0x80]
call fcn.0040b550
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call fcn.00402bd4
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 0x48726d
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 sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x60]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_free
nop
mov rcx, qword [rsp + 0x50]
call sub.msvcrt.dll_free
add rsp, 0x378
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x48ba68
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x58
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
xor ebp, ebp
cmp dword [rdx + 8], ebp
jne 0x48ba92
lea eax, [rbp - 1]
jmp 0x48bb79
cmp ebx, 0xffffffff
cmove ebx, ebp
lea rcx, [rsp + 0x38]
call fcn.00402700
nop
mov edx, 0x110
cmp dword [rsp + 0x44], edx
jae 0x48bab8
lea rcx, [rsp + 0x38]
call fcn.00402394
mov r8d, 0x10e
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, qword [rsp + 0x38]
mov word [rcx + 0x21c], bp
mov edx, ebp
cmp word [rcx], bp
je 0x48baea
inc edx
add rcx, 2
cmp word [rcx], bp
jne 0x48badf
mov dword [rsp + 0x40], edx
cmp eax, ebp
je 0x48baf9
cmp eax, 0x10e
jb 0x48bb06
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.0040297c
mov dword [rsp + 0x20], 1
lea r9, [rsp + 0x88]
xor r8d, r8d
mov edx, ebx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.SHELL32.dll_ExtractIconExW]
cmp eax, 1
jne 0x48bb6a
mov r8, qword [rsp + 0x88]
cmp r8, rbp
je 0x48bb6a
lea edx, [rax - 2]
mov rcx, qword [rsi + 0x48]
call qword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.USER32.dll_DestroyIcon]
mov ebx, dword [rsi + 0x40]
lea ecx, [rbx + 1]
mov dword [rsi + 0x40], ecx
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
mov eax, ebx
jmp 0x48bb79
mov rcx, qword [rsp + 0x38]
call sub.msvcrt.dll_free
mov eax, 0xffffffff
add rsp, 0x58
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x48c2b0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rsi, rcx
mov ecx, reloc.COMCTL32.dll_InitCommonControls
mov rbx, rdx
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x12
mov di, ax
shr edi, 0xf
and dil, 1
call qword [sym.imp.USER32.dll_GetKeyState]
mov r11w, ax
shr r11d, 0xf
test r11b, 1
jne 0x48c36a
movzx ecx, word [rbx + 0x18]
xor edx, edx
cmp dil, dl
je 0x48c33a
cmp cx, 0x41
je 0x48c340
movzx eax, cx
cmp eax, 0x20
je 0x48c322
cmp eax, 0x6a
jle 0x48c36a
cmp eax, 0x6d
jle 0x48c322
cmp eax, 0x6f
je 0x48c322
cmp eax, 0xbb
je 0x48c322
cmp eax, 0xbd
jne 0x48c36a
cmp dil, dl
jne 0x48c36a
cmp cx, 0x20
mov rcx, rsi
setne dl
call fcn.0048c1a8
mov al, 1
jmp 0x48c36c
cmp cx, 0x6a
jne 0x48c2fd
mov ecx, 2
lea r9, [rsp + 0x20]
mov edx, 0x102b
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x2c], ecx
mov rcx, qword [rsi + 0x50]
mov r8, 0xffffffffffffffff
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x48c336
xor al, al
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret

Function at 0x494c30
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 0x494c5c
cmp dword [rsp + 0x24], 6
jne 0x494c5c
cmp dword [rsp + 0x28], 0
je 0x494c85
lea rcx, [0x00497ba8]
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 0x494c85
mov ecx, 0xc00
call rax
add rsp, 0x148
ret
Function at 0x494fe0
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 0x49501b
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 0x4950f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x198
mov rax, qword [0x004d00e8]
mov qword [rsp + 0x150], rax
mov rax, qword [0x004d0db0]
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 0x495206
cmp dword [0x004d0da8], eax
jne 0x495206
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 0x4951d9
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, [0x004986ea]
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 0x4951d9
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x004d0db0], rax
jmp 0x4951e0
mov rax, qword [0x004d0db0]
test rax, rax
mov rbx, qword [rsp + 0x190]
jne 0x495206
lea rcx, str.hhctrl.ocx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov qword [0x004d0db0], rax
je 0x49522e
mov r10, qword [0x004d0da0]
test r10, r10
jne 0x495239
lea edx, [r10 + 0xf]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov r10, rax
mov qword [0x004d0da0], rax
jne 0x495239
mov dword [0x004d0da8], r13d
xor eax, eax
jmp 0x495248
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.00495fa0
add rsp, 0x198
ret
Function at 0x495af0
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 0x495b2d
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
lea rdi, [0x00400000]
jmp 0x495bbb
movsxd rax, dword [0x0040003c]
lea rdi, [0x00400000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x495b51
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x495bbb
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x495b98
cmp ecx, 0x20b
je 0x495b70
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x495bbb
cmp dword [rax + 0x84], 0xe
ja 0x495b84
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x495bbb
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xd0], ebx
jmp 0x495bbb
cmp dword [rax + 0x74], 0xe
ja 0x495ba9
xor ebx, ebx
mov dword [rsp + 0xd0], ebx
jmp 0x495bbb
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 [0x004d1360], 0xffffffffffffffff
mov qword [0x004d1368], 0xffffffffffffffff
mov rcx, qword [sym.imp.msvcrt.dll__fmode]
mov eax, dword [0x004d0de4]
mov dword [rcx], eax
mov rcx, qword [sym.imp.msvcrt.dll__commode]
mov eax, dword [0x004d0de0]
mov dword [rcx], eax
call fcn.004946b0
cmp dword [0x004d00d8], 0
jne 0x495c15
lea rcx, [fcn.004946b0]
call qword [sym.imp.msvcrt.dll___setusermatherr]
lea rdx, [0x00497a08]
lea rcx, [0x00497a00]
call fcn.0057a000
mov r11d, dword [0x004d0ddc]
mov dword [rsp + 0xd8], r11d
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x004d0dd8]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x3c]
call qword [sym.imp.msvcrt.dll___getmainargs]
lea rdx, [0x004979f8]
lea rcx, [0x00497950]
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 0x495cb6
nop
nop
inc r8
mov qword [rsp + 0x30], r8
movzx eax, byte [r8]
test al, al
je 0x495ca6
cmp al, 0x22
je 0x495ca6
jmp 0x495c90
cmp byte [r8], 0x22
jne 0x495cc6
inc r8
mov qword [rsp + 0x30], r8
jmp 0x495cc6
cmp byte [r8], 0x20
jbe 0x495cc6
inc r8
mov qword [rsp + 0x30], r8
jmp 0x495cb6
movzx eax, byte [r8]
test al, al
je 0x495cdc
cmp al, 0x20
ja 0x495cdc
inc r8
mov qword [rsp + 0x30], r8
jmp 0x495cc6
test byte [rsp + 0x8c], 1
je 0x495cf1
movzx r9d, word [rsp + 0x90]
jmp 0x495cf7
mov r9d, 0xa
xor edx, edx
mov rcx, rdi
call fcn.00456ea4
mov edi, eax
mov dword [rsp + 0x38], eax
test ebx, ebx
jne 0x495d13
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
call qword [sym.imp.msvcrt.dll__cexit]
jmp 0x495d37
mov eax, edi
jmp 0x495d40
mov rbx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
add rsp, 0xc8
ret
Function at 0x495e70
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, [0x004d0e90]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [0x004d0f88]
lea rdx, [rsp + 0x70]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x495ef1
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 [0x004d0f88]
jmp 0x495f0d
mov r11, qword [rsp + 0x68]
lea rax, [rsp + 0x68]
add rax, 8
mov qword [0x004d0f88], r11
mov qword [0x004d0f28], rax
mov rax, qword [0x004d00e8]
mov qword [0x004d0e00], r11
mov qword [0x004d0f10], rdi
mov dword [0x004d0df0], 0xc0000409
mov dword [0x004d0df4], 1
mov qword [rsp + 0x50], rax
mov rax, qword [0x004d00e0]
xor ecx, ecx
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x004a51f0]
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 [0x004d00e8]
jne 0x495fb9
rol rcx, 0x10
test cx, 0xffff
jne 0x495fb5
ret
ror rcx, 0x10
jmp 0x495e70
Function at 0x14001cb10
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10090
call fcn.140020af0
sub rsp, rax
mov rax, qword [0x14005efc0]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x80], ax
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x14001cbd2
nop dword [rax + rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14001cb7d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14001cb70
cmp rcx, 1
jb 0x14001cc2a
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14001cba0
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1400300ac
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14001cb60
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x14001cc03
lea rcx, [rsp + 0x80]
call fcn.140032ee4
jmp 0x14001cc05
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140020820
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14002fe58
int3
Function at 0x1400203a0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14005efc0]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x140020445
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x1400203fd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x1400203f0
cmp rcx, 1
jb 0x140020476
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140020413
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1400300ac
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x1400203e0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140020820
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.14002fe58
int3

Function at 0x1400206b0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14005efc0]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x140020755
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14002070d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x140020700
cmp rcx, 1
jb 0x140020787
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140020723
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.1400300ac
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x1400206f0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140020820
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14002fe58
int3

Function at 0x140021254
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002129e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002129e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002129e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002129e
cmp dword [rcx + 0x84], 0xe
jbe 0x14002129e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400212a0
xor al, al
add rsp, 0x28
ret
Function at 0x140026698
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140026503
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140026503
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140026503
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140026503
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140026503
cmp dword [rcx + 0x84], 0xe
jbe 0x140026503
cmp dword [rcx + 0xf8], 0
je 0x140026503
mov ecx, ebx
call fcn.1400265b4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140026390
nop
cmp dword [rbp + 0x20], 0
je 0x140026551
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002655c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140026494