joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001f20
Capabilities:
Check if file exists
Load windows common language runtime

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
lea rax, [r11 + 0x10]
xor ebp, ebp
xor esi, esi
xor ebx, ebx
mov r12, rcx
test rax, rax
je 0x140001fd9
and qword [r11 + 0x10], rbx
lea rcx, str.mscoree.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
jne 0x140001f86
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140001f7f
cmp eax, 0x7e
je 0x140001f7f
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x140001fc5
mov edi, 0x80040641
jmp 0x140001fc5
lea rdx, str.CLRCreateInstance
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140001fa0
lea edi, [rax + 1]
jmp 0x140001fc5
lea r8, [rsp + 0x48]
lea rdx, [0x1400130e8]
lea rcx, [0x140012808]
call rax
mov edi, eax
test eax, eax
js 0x140001fc5
mov rbx, qword [rsp + 0x48]
and qword [rsp + 0x48], rsi
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140001fd5
mov rax, qword [rcx]
call qword [rax + 0x10]
test edi, edi
je 0x140002036
lea rcx, str.mscoree.dll
xor edi, edi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
test rax, rax
jne 0x140002017
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140002010
cmp eax, 0x7e
je 0x140002010
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x14000207e
mov edi, 0x80040641
jmp 0x14000207e
lea rdx, str.CorBindToRuntimeEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
jne 0x140002036
mov edi, 0x8000ffff
jmp 0x140002070
mov qword [r12 + 0x10], rsi
mov rsi, rbx
mov qword [r12], rbp
xor ebp, ebp
xor ebx, ebx
cmp qword [r12 + 8], rsi
je 0x14000208c
test rsi, rsi
je 0x14000205b
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [r12 + 8]
test rcx, rcx
je 0x14000206b
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [r12 + 8], rsi
test rbp, rbp
je 0x14000207e
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rbx, rbx
je 0x14000208c
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x10]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
Function at 0x140002400
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rcx
mov ebx, esi
test rcx, rcx
je 0x1400024ad
mov word [rcx], si
mov rdx, rcx
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x14000244d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400024a2
cmp eax, 0x104
jb 0x14000245b
mov ebx, 0x8007000e
jmp 0x1400024a6
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x14000246f
mov ebx, 0x80004005
jmp 0x1400024a6
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x140002468
lea rdx, str.vstoee.dll
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x140002468
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400024a9
mov ebx, 0x8000ffff
test ebx, ebx
jns 0x1400024a9
mov word [rdi], si
mov eax, ebx
jmp 0x1400024b2
mov eax, 0x80004003
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400029b0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r15
mov rbp, rsp
sub rsp, 0x30
xor r13d, r13d
mov rbx, rcx
test rcx, rcx
je 0x140002ba7
lea rax, [rbp + 0x50]
or r15, 0xffffffffffffffff
mov edi, 0x20019
mov dword [rcx], r15d
lea rdx, str.CLSID000C0126_0000_0000_C000_000000000046InprocServer32
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov r9d, edi
mov qword [rbp + 0x50], r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, eax
test eax, eax
je 0x140002a13
cmp eax, 2
jne 0x140002b1b
cmp qword [rbp + 0x50], r13
jne 0x140002b7e
lea rax, [rbp + 0x50]
mov rsi, 0xffffffff80000002
lea rdx, str.SOFTWAREMicrosoftOffice15.0ClickToRunConfiguration
mov r9d, edi
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp qword [rbp + 0x50], r13
jne 0x140002a74
lea rax, [rbp + 0x50]
lea rdx, str.SOFTWAREMicrosoftOfficeClickToRunConfiguration
mov r9d, edi
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, eax
cmp qword [rbp + 0x50], r13
je 0x140002b7e
mov rcx, qword [rbp + 0x50]
lea rax, [rbp + 0x40]
lea r9, [rbp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.Platform
xor r8d, r8d
mov qword [rsp + 0x20], r13
mov dword [rbp + 0x48], r13d
mov dword [rbp + 0x40], r13d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, eax
test eax, eax
jne 0x140002b7e
cmp dword [rbp + 0x48], 1
jne 0x140002b77
mov edi, dword [rbp + 0x40]
test edi, edi
je 0x140002b77
shr edi, 1
lea eax, [rdx + 2]
inc edi
mov esi, edi
mul rsi
cmovo rax, r15
mov rcx, rax
call fcn.1400042e4
mov r12, rax
test rax, rax
jne 0x140002aeb
mov edi, 0x8007000e
jmp 0x140002b8d
mov rcx, qword [rbp + 0x50]
lea eax, [rdi + rdi]
lea r9, [rbp + 0x48]
mov dword [rbp + 0x40], eax
lea rax, [rbp + 0x40]
lea rdx, str.Platform
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140002b2b
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x140002b8d
mov ecx, dword [rbp + 0x40]
lea rax, [rdi + rdi]
cmp rcx, rax
jae 0x140002b77
shr rcx, 1
mov eax, 4
lea rdi, [0x140013010]
mov word [r12 + rcx*2], r13w
mov ecx, eax
mov rsi, r12
repe cmpsw word [rsi], word [rdi]
jne 0x140002b5d
mov dword [rbx], 2
jmp 0x140002b8a
lea rdi, [0x140013018]
mov rsi, r12
mov rcx, rax
repe cmpsw word [rsi], word [rdi]
jne 0x140002b77
mov dword [rbx], 1
jmp 0x140002b8a
mov edi, 0x8007000d
jmp 0x140002b8d
test edx, edx
mov eax, r13d
sete al
inc eax
mov dword [rbx], eax
mov edi, r13d
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x140002b9c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jns 0x140002ba3
mov dword [rbx], r15d
mov eax, edi
jmp 0x140002bac
mov eax, 0x80004003
add rsp, 0x30
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140002bc4
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
xor r13d, r13d
cmp ecx, 1
mov r12, rdx
mov edx, 0x80070057
mov eax, r13d
mov rsi, r8
cmovl eax, edx
test r12, r12
cmove eax, edx
test r8, r8
jne 0x140002c0d
mov eax, 0x80004003
jmp 0x140002cd3
mov qword [r8], r13
test eax, eax
js 0x140002cd3
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
or r8, 0xffffffffffffffff
mov rbx, rax
xor eax, eax
mov rcx, r8
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdx, rcx
cmp rcx, 1
jb 0x140002c9b
mov rdi, qword [r12]
mov ebp, r13d
lea r14d, [rax + 0x22]
cmp r14w, word [rbx]
mov rcx, r8
sete bpl
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ebp, ebp
je 0x140002c6e
lea rax, [rcx + 2]
cmp rdx, rax
jb 0x140002c9b
cmp rdx, rcx
jb 0x140002c9b
mov rax, r13
mov r8, rcx
mov rcx, qword [r12]
test ebp, ebp
setne al
lea rdx, [rbx + rax*2]
call fcn.1400042f0
test eax, eax
jne 0x140002c9b
test ebp, ebp
je 0x140002ca5
cmp r14w, word [rbx + rdi*2 + 2]
je 0x140002ca5
mov eax, 0x8000ffff
mov qword [rsi], r13
jmp 0x140002cd3
neg ebp
mov edx, 0x20
sbb rax, rax
and eax, 2
add rax, rdi
lea rcx, [rbx + rax*2]
jmp 0x140002cc5
cmp r13w, ax
je 0x140002ccd
add rcx, 2
movzx eax, word [rcx]
cmp dx, ax
je 0x140002cbb
mov qword [rsi], rcx
mov eax, r13d
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x140002cf8
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x140015070]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
xor esi, esi
cmp ecx, 1
mov eax, 0x80070057
mov ebx, esi
mov rdi, r8
cmovl ebx, eax
test rdx, rdx
cmove ebx, eax
test r8, r8
jne 0x140002d47
mov ebx, 0x80004003
jmp 0x140002e72
or dword [r8], 0xffffffff
test ebx, ebx
js 0x140002e72
lea r8, [rsp + 0x28]
mov qword [rsp + 0x28], rsi
mov qword [rbp - 0x58], rsi
call fcn.140002bc4
mov ebx, eax
test eax, eax
js 0x140002e5c
lea rax, [rbp - 0x50]
test rax, rax
je 0x140002e57
lea rcx, [rbp - 0x50]
mov word [rbp - 0x50], si
mov qword [rsp + 0x30], rsi
call fcn.140003cac
mov rcx, qword [rsp + 0x30]
mov ebx, eax
test rcx, rcx
je 0x140002da1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jns 0x140002dae
mov word [rbp - 0x50], si
jmp 0x140002e5c
mov ebx, 0x70
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, ebx
call fcn.140006f10
lea rax, [rsp + 0x40]
test rax, rax
je 0x140002e1d
or dword [rsp + 0x44], 0x2000140
lea rax, [rbp - 0x50]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x28]
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x70], 5
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x140002e37
mov rcx, qword [rbp - 0x58]
or ebx, 0xffffffff
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x20], eax
test eax, eax
je 0x140002e24
cmp eax, ebx
je 0x140002e37
mov ebx, 0x8000ffff
jmp 0x140002e5c
mov rcx, qword [rbp - 0x58]
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x140002e4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140002e5c
mov eax, dword [rsp + 0x20]
mov ebx, esi
mov dword [rdi], eax
jmp 0x140002e5c
mov ebx, 0x80004003
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x140002e6b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jns 0x140002e72
or dword [rdi], 0xffffffff
mov eax, ebx
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140004050
mov rbx, qword [rsp + 0x2f0]
add rsp, 0x2d0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000373c
Capabilities:
Check if file exists
Identify system language via api

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x178]
sub rsp, 0x260
mov rax, qword [0x140015070]
xor rax, rsp
mov qword [rbp + 0x150], rax
xor r15d, r15d
mov r12d, 0x104
lea rdx, [rsp + 0x40]
mov r8d, r12d
xor ecx, ecx
mov qword [0x140017758], r15
mov qword [rsp + 0x30], r15
mov word [rsp + 0x38], r15w
mov esi, r15d
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1400037c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
movzx eax, ax
or eax, 0x80070000
test r11d, r11d
cmovle eax, r11d
jmp 0x140003925
cmp eax, r12d
jne 0x1400037d1
mov eax, 0x8007007a
jmp 0x140003925
lea rcx, [rsp + 0x40]
mov edx, 0x5c
call fcn.14000e104
mov r14, rax
test rax, rax
jne 0x1400037f2
mov eax, 0x8000ffff
jmp 0x140003925
lea rcx, str.MSO.dll
movzx ebx, r15w
mov edi, r15d
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003820
lea rdx, str._MsoGetUILcid_0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140003836
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x14000383a
call rax
mov ebx, eax
test edi, edi
js 0x140003862
test bx, bx
je 0x140003862
mov eax, 0x3ff
mov word [rsp + 0x30], bx
mov esi, 2
and bx, ax
mov eax, 0x400
or bx, ax
mov word [rsp + 0x32], bx
movsxd rbx, esi
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
inc esi
mov word [rsp + rbx*2 + 0x30], ax
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movsxd rcx, esi
inc esi
mov word [rsp + rcx*2 + 0x30], ax
mov ecx, 0x409
movsxd rax, esi
inc esi
mov word [rsp + rax*2 + 0x30], cx
cmp esi, 5
ja 0x1400037e8
lea rcx, [rsp + 0x40]
lea rax, [r14 + 2]
mov rbx, r15
sub rax, rcx
movsxd rdi, esi
sar rax, 1
sub r12d, eax
test esi, esi
jle 0x140003920
movsxd rsi, r12d
movzx eax, word [rsp + rbx*2 + 0x30]
lea rcx, str.VSTOInstallerUI.dll
lea r9, str._u_s
mov qword [rsp + 0x28], rcx
lea rcx, [r14 + 2]
mov r8, rsi
mov rdx, rsi
mov dword [rsp + 0x20], eax
call fcn.14000e138
test eax, eax
js 0x1400037c7
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
jne 0x140003955
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
cmp eax, 2
je 0x140003918
cmp eax, 3
je 0x140003918
cmp eax, 0x7e
jne 0x1400037ae
inc rbx
cmp rbx, rdi
jl 0x1400038b9
mov eax, 0x80004005
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.140004050
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov qword [0x140017758], rax
xor eax, eax
jmp 0x140003925
Function at 0x140003cac
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x250
mov rax, qword [0x140015070]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor ebp, ebp
mov rbx, rcx
test rcx, rcx
je 0x140003e66
lea rax, [rsp + 0x30]
mov word [rcx], bp
test rax, rax
je 0x140003e58
lea rax, [rsp + 0x30]
lea edx, [rbp + 0x2c]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov word [rsp + 0x30], bp
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov r11d, eax
cmp eax, 0x80004005
jne 0x140003d3a
lea rax, [rsp + 0x30]
lea edx, [rbp + 0x2b]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov r11d, eax
mov r12d, 0x8000ffff
test r11d, r11d
js 0x140003d4e
cmovne r11d, r12d
test r11d, r11d
jns 0x140003d5c
mov word [rsp + 0x30], bp
test r11d, r11d
js 0x140003e5e
lea rdx, str.Microsoft_SharedVSTO
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jne 0x140003d7a
mov r11d, r12d
jmp 0x140003e5e
lea rsi, [rsp + 0x30]
mov edi, 0x104
mov rcx, rbx
sub rsi, rbx
mov edx, edi
mov r11d, ebp
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140003db0
movzx eax, word [rsi + rcx]
test ax, ax
je 0x140003db0
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x140003d8f
test rdx, rdx
jne 0x140003dbf
sub rcx, 2
mov r11d, 0x8007007a
mov word [rcx], bp
test r11d, r11d
js 0x140003e5e
lea rdx, str.10.0VSTOInstaller.exe
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x140003d72
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov r11d, ebp
test eax, eax
jne 0x140003e61
mov rcx, rbx
lea rax, [rdi + 0x7ffffefa]
test rax, rax
je 0x140003e13
movzx eax, word [rsi + rcx]
test ax, ax
je 0x140003e13
mov word [rcx], ax
add rcx, 2
dec rdi
jne 0x140003df2
test rdi, rdi
jne 0x140003e22
sub rcx, 2
mov r11d, 0x8007007a
mov word [rcx], bp
test r11d, r11d
js 0x140003e5e
lea rdx, str.9.0VSTOInstaller.exe
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x140003d72
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140003d72
mov r11d, ebp
jmp 0x140003e61
mov r11d, 0x80004003
mov word [rbx], bp
mov eax, r11d
jmp 0x140003e6b
mov eax, 0x80004003
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140004050
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x140005dc3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140015070]
jne 0x14000406a
rol rcx, 0x10
test cx, 0xffff
jne 0x140004066
repz ret
ror rcx, 0x10
jmp 0x140005d1c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140016cc0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140016db8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140005da1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140016cc0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140005dc3
mov rax, qword [rsp + 0x88]
mov qword [0x140016db8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140016d58], rax
mov rax, qword [0x140016db8]
mov qword [0x140016c30], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140016d40], rax
mov dword [0x140016c20], 0xc0000409
mov dword [0x140016c24], 1
mov rax, qword [0x140015070]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140015078]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140016cb8], eax
mov ecx, 1
call fcn.140009844
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140010fa0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140016cb8], 0
jne 0x140005e4a
mov ecx, 1
call fcn.140009844
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1400091e0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140015070]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14000584c
xor ebx, ebx
cmp qword [0x140017460], rbx
mov rdi, rax
jne 0x1400092f3
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1400093ca
lea rdx, [0x140011508]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400093ca
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140017460], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140017468], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140017470], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140017480], rax
test rax, rax
je 0x1400092ea
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140017478], rax
jmp 0x1400092fa
mov rax, qword [0x140017478]
jmp 0x140009301
mov rax, qword [0x140017478]
mov r11, qword [0x140017480]
cmp rax, rdi
je 0x140009368
cmp r11, rdi
je 0x140009368
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140017480]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140009368
test rax, rax
je 0x140009368
call rsi
test rax, rax
je 0x140009362
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140009362
test byte [rsp + 0x40], 1
jne 0x140009368
bts ebp, 0x15
jmp 0x1400093a8
mov rcx, qword [0x140017468]
cmp rcx, rdi
je 0x1400093a8
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400093a8
call rax
mov rbx, rax
test rax, rax
je 0x1400093a8
mov rcx, qword [0x140017470]
cmp rcx, rdi
je 0x1400093a8
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400093a8
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140017460]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400093ca
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1400093cc
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140004050
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1cb4e195b
Capabilities:
Hide graphical window

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
nop
add rsp, 0x20
pop rbp
ret

Function at 0x1cb4e1cc0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.1cb4e2d90
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x1cb4e26c2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1cb67c108]
test eax, eax
je 0x1cb4e275a
lea rax, [0x1cb67c0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1cb67c110]
mov qword [rbp - 8], rax
jmp 0x1cb4e273e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1cb4e2732
cmp qword [rbp - 0x10], 0
je 0x1cb4e2732
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1cb4e26f8
lea rax, [0x1cb67c0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1cb4e275b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1cb4e2860
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1cb4e2888
mov eax, 0
jmp 0x1cb4e28d6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1cb4e28b1
mov eax, 0
jmp 0x1cb4e28d6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1cb4e28d1
mov eax, 0
jmp 0x1cb4e28d6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1cb4e28dc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1cb4e295a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1cb4e2951
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1cb4e2951
mov rax, qword [rbp - 8]
jmp 0x1cb4e296f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1cb4e2924
mov eax, 0
add rsp, 0x20
pop rbp
ret