joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140019cd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x53e0], 0
lea rbx, [rcx + 0x53e8]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140019d73
mov ecx, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test ecx, ecx
jns 0x140019d26
mov eax, ecx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, ecx
mov rcx, rbx
test eax, eax
cmovg edx, eax
call fcn.14001c160
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.1400032b0
mov eax, dword [rbx]
lea rcx, [0x14004d1d8]
mov r9, qword [rdi + 0x53e0]
test eax, eax
lea edx, [rax - 1]
mov rax, qword [rdi + 0x53f0]
cmove edx, r14d
test rax, rax
movsxd r8, edx
mov edx, 1
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x140019d7b
mov rcx, rbx
call fcn.1400032b0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14001a420
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
movzx r8d, byte [rcx]
lea rdx, [rcx + 1]
mov r14, qword [0x14004d1e0]
mov r9d, 0xffffffff
mov ebx, r9d
test r8b, r8b
je 0x14001a484
lea r10, [0x140040640]
cmp r8b, 0x23
jne 0x14001a467
cmp byte [rdx], r8b
jne 0x14001a467
cmp byte [rdx + 1], r8b
cmove ebx, r9d
movzx ecx, bl
movzx eax, r8b
movzx r8d, byte [rdx]
xor rcx, rax
shr ebx, 8
inc rdx
xor ebx, dword [r10 + rcx*4]
test r8b, r8b
jne 0x14001a454
mov eax, dword [r14 + 0x5390]
xor edi, edi
mov qword [rsp + 0x30], rbp
not ebx
mov qword [rsp + 0x38], rsi
test eax, eax
jle 0x14001a4e5
mov esi, edi
mov ebp, edi
test rsi, rsi
js 0x14001a4aa
cmp edi, eax
jl 0x14001a4c4
mov r8d, 0x6f9
lea rdx, str.C:UsersmahdiDesktopNew_folder__4_catrineimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [r14 + 0x5398]
cmp dword [rax + rbp + 8], ebx
je 0x14001a502
mov eax, dword [r14 + 0x5390]
inc edi
inc rsi
add rbp, 0x48
cmp edi, eax
jl 0x14001a4a1
xor eax, eax
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
test edi, edi
js 0x14001a50f
cmp edi, dword [r14 + 0x5390]
jl 0x14001a529
mov r8d, 0x6f9
lea rdx, str.C:UsersmahdiDesktopNew_folder__4_catrineimgui.h
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movsxd rax, edi
lea rcx, [rax + rax*8]
mov rax, qword [r14 + 0x5398]
lea rax, [rax + rcx*8]
jmp 0x14001a4e7
Function at 0x140036780
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 0x210
call fcn.140012020
cmp byte [rax], 0
je 0x140036805
mov ecx, 0xa0
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x140036805
mov rbx, qword [0x14004d1e0]
test rbx, rbx
jne 0x1400367d4
mov r8d, 0xf04
lea rdx, str.C:UsersmahdiDesktopNew_folder__4_catrineimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rbx, qword [0x14004d1e0]
cmp byte [rbx + 0x37a9], 0
je 0x1400367f1
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x210
call fcn.140002460
mov dword [rbx + 0x380], 0x210
mov dword [rbx + 0x940], 0xa0
mov ecx, 0x214
call fcn.140012020
cmp byte [rax], 0
je 0x140036884
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x140036884
mov rbx, qword [0x14004d1e0]
test rbx, rbx
jne 0x140036853
mov r8d, 0xf04
lea rdx, str.C:UsersmahdiDesktopNew_folder__4_catrineimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rbx, qword [0x14004d1e0]
cmp byte [rbx + 0x37a9], 0
je 0x140036870
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x214
call fcn.140002460
mov dword [rbx + 0x384], 0x214
mov dword [rbx + 0x950], 0xa1
mov ecx, 0x212
call fcn.140012020
cmp byte [rax], 0
je 0x140036903
mov ecx, 0x5b
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x140036903
mov rbx, qword [0x14004d1e0]
test rbx, rbx
jne 0x1400368d2
mov r8d, 0xf04
lea rdx, str.C:UsersmahdiDesktopNew_folder__4_catrineimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rbx, qword [0x14004d1e0]
cmp byte [rbx + 0x37a9], 0
je 0x1400368ef
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x212
call fcn.140002460
mov dword [rbx + 0x26c], 0x212
mov dword [rbx + 0x948], 0x5b
mov ecx, 0x216
call fcn.140012020
cmp byte [rax], 0
je 0x140036982
mov ecx, 0x5c
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
jne 0x140036982
mov rbx, qword [0x14004d1e0]
test rbx, rbx
jne 0x140036951
mov r8d, 0xf04
lea rdx, str.C:UsersmahdiDesktopNew_folder__4_catrineimgui.cpp
lea rcx, str.GImGui___0___No_current_context._Did_you_call_ImGui::CreateContext___and_ImGui::SetCurrentContext_____
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rbx, qword [0x14004d1e0]
cmp byte [rbx + 0x37a9], 0
je 0x14003696e
xorps xmm3, xmm3
lea rcx, [rbx + 8]
xor r8d, r8d
mov edx, 0x216
call fcn.140002460
mov dword [rbx + 0x270], 0x216
mov dword [rbx + 0x958], 0x5c
add rsp, 0x20
pop rbx
ret
Function at 0x14003a3cc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003a416
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003a416
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003a416
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003a416
cmp dword [rcx + 0x84], 0xe
jbe 0x14003a416
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003a418
xor al, al
add rsp, 0x28
ret
Function at 0x1800019d0
Capabilities:
Encode data using base64

Disassembly:
push rdi
mov edi, edx
mov r11, rcx
test rcx, rcx
je 0x180001b28
test edx, edx
js 0x180001b28
test r8, r8
je 0x180001b12
mov qword [rsp + 0x10], rbx
mov ebx, edx
test edx, edx
jle 0x180001b07
mov qword [rsp + 0x18], rbp
mov ebp, 0x3d
mov qword [rsp + 0x20], rsi
lea rsi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
cmp ebx, 3
jl 0x180001a89
movzx ecx, byte [r11 + 1]
movzx r9d, byte [r11]
mov edx, ecx
movzx r10d, byte [r11 + 2]
mov eax, r9d
shr rax, 2
add r11, 3
shl r9, 4
movsx eax, byte [rax + rsi]
mov word [r8], ax
mov eax, ecx
shr rax, 4
mov ecx, r10d
or rax, r9
shr rcx, 6
and eax, 0x3f
movsx eax, byte [rax + rsi]
mov word [r8 + 2], ax
lea rax, [rdx*4]
or rcx, rax
and ecx, 0x3f
movsx eax, byte [rcx + rsi]
mov word [r8 + 4], ax
add r8, 6
mov eax, r10d
and eax, 0x3f
movsx eax, byte [rax + rsi]
mov word [r8], ax
jmp 0x180001aee
movzx r9d, byte [r11]
inc r11
cmp ebx, 2
jne 0x180001a9e
movzx edx, byte [r11]
inc r11
jmp 0x180001aa0
xor dl, dl
movzx eax, r9b
shr rax, 2
movzx ecx, dl
shr rcx, 4
movsx eax, byte [rax + rsi]
mov word [r8], ax
movzx eax, r9b
shl rax, 4
or rcx, rax
and ecx, 0x3f
movsx eax, byte [rcx + rsi]
mov word [r8 + 2], ax
cmp ebx, 1
jne 0x180001ad7
mov eax, ebp
jmp 0x180001ae1
movzx eax, dl
and eax, 0xf
movsx eax, byte [rsi + rax*4]
mov word [r8 + 4], ax
add r8, 6
mov word [r8], bp
sub ebx, 3
add r8, 2
test ebx, ebx
jg 0x180001a16
mov rsi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x10]
xor eax, eax
mov word [r8], ax
lea ecx, [rdi + 2]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
shl eax, 2
pop rdi
ret
or eax, 0xffffffff
pop rdi
ret
Function at 0x1800036e0
Capabilities:
Query service status
Start service

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x50
mov rax, qword [0x180033008]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0x20000000
xor bpl, bpl
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x180003816
mov r8d, 0x34
mov qword [rsp + 0x68], rdi
lea rdx, str.lghydssvr
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x180003756
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x180003766
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x180003811
cmp dword [rsp + 0x24], 1
mov qword [rsp + 0x60], rbx
jne 0x1800037f3
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov rcx, rdi
test eax, eax
jne 0x18000379e
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x18000380c
lea rdx, [rsp + 0x20]
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1800037f6
nop
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rsp + 0x24], 4
je 0x1800037e1
inc ebx
cmp ebx, 0xa
je 0x1800037dc
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1800037b0
jmp 0x1800037f6
xor bpl, bpl
jmp 0x1800037f6
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov bpl, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, bpl
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800086e0
mov rbp, qword [rsp + 0x70]
add rsp, 0x50
pop rsi
ret
Function at 0x180005300
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x180033008]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp byte [rcx], 0
mov qword [rsp + 0x48], 0xf
mov qword [rsp + 0x40], 0
mov byte [rsp + 0x30], 0
jne 0x18000533a
xor r8d, r8d
jmp 0x18000534a
or r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rcx + r8], 0
jne 0x180005340
mov rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.180003f20
mov rdi, qword [rsp + 0x48]
lea rcx, [rsp + 0x30]
mov rbx, qword [rsp + 0x30]
cmp rdi, 0x10
mov r8d, 0x20
cmovae rcx, rbx
cmp qword [rsp + 0x40], r8
cmovb r8, qword [rsp + 0x40]
test r8, r8
je 0x180005394
lea rdx, str.llccxnETPyDrgoAfpKsMMUqDKnalcNCd
call fcn.1800233d0
test eax, eax
jne 0x1800053ca
cmp qword [rsp + 0x40], 0x20
jne 0x1800053ca
mov qword [rsp + 0x28], 0
lea r8, [0x1800052d0]
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call fcn.18000cc04
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x30]
cmp rdi, 0x10
jb 0x180005406
lea rax, [rdi + 1]
cmp rax, 0x1000
jb 0x1800053fe
test byte [rsp + 0x30], 0x1f
jne 0x18000541e
mov rax, qword [rbx - 8]
cmp rax, rbx
jae 0x180005424
sub rbx, rax
cmp rbx, 8
jb 0x18000542a
cmp rbx, 0x27
ja 0x180005430
mov rbx, rax
mov rcx, rbx
call fcn.180008748
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800086e0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
call fcn.180010dc4
int3
call fcn.180010dc4
int3
call fcn.180010dc4
int3
call fcn.180010dc4
int3
Function at 0x1800061a0
Capabilities:
Delete registry key

Disassembly:
sub rsp, 0x298
mov rax, qword [0x180033008]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x258
call fcn.18000bdf0
lea rdx, str._shellexContextMenuHandlerslanguanghuyanext64
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea r8, str.2235625B_050A_45CC_B626_CC5E6884B1EB
lea rdx, str.CLSID_sInprocServer32
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x20]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea r8, str.2235625B_050A_45CC_B626_CC5E6884B1EB
lea rdx, str.CLSID_sSettings
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x20]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea r8, str.2235625B_050A_45CC_B626_CC5E6884B1EB
lea rdx, str.CLSID_s
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x20]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1800086e0
add rsp, 0x298
ret
Function at 0x140002080
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x14000217b
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x140002183
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x1400021ba
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x140002190
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400021e5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x14000220b
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x1400021f0
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000a380
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a3c5
xor al, al
jmp 0x14000a412
cmp word [rbx], 0
je 0x14000a3dd
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a3d0
cmp word [rsp + 0x30], 0
je 0x14000a40b
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a433
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a3f0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000b550
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000f61c
int3
Function at 0x14000a920
Capabilities:
Read file on windows

Disassembly:
test rdx, rdx
je 0x14000aaac
push rbp
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x60], r14
xor sil, sil
xor r14d, r14d
mov qword [rsp + 0x50], rbx
mov rdi, rdx
mov rbp, rcx
nop word [rax + rax]
mov rax, qword [0x1400345d8]
mov rcx, qword [0x1400345e0]
sub rax, rcx
je 0x14000a994
mov rdx, qword [0x1400345d0]
cmp rdi, rax
mov rbx, rdi
cmovae rbx, rax
add rdx, rcx
mov r8, rbx
mov rcx, rbp
call fcn.14000d3f0
add rbp, rbx
sub rdi, rbx
add qword [0x1400345e0], rbx
jmp 0x14000aa92
mov rax, qword [0x1400325c0]
mov rcx, qword [0x1400325b8]
cmp rax, rcx
jb 0x14000aa40
test sil, sil
jne 0x14000aa40
cmp rcx, rax
jne 0x14000aaad
mov rcx, qword [0x1400345e8]
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [0x1400345f0]
mov eax, eax
sub rcx, rax
je 0x14000aa92
mov rdx, qword [0x1400325b0]
lea r9, [rsp + 0x58]
mov ebx, 0x20003
mov qword [rsp + 0x20], r14
cmp rcx, rbx
cmovb rbx, rcx
mov rcx, qword [0x1400345e8]
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000aab3
mov eax, dword [rsp + 0x58]
cmp rax, rbx
jne 0x14000aab3
add qword [0x140032590], rbx
mov qword [0x1400325c0], r14
mov qword [0x1400325b8], rbx
jmp 0x14000aa92
mov rcx, qword [0x1400325a8]
lea r8, [0x1400325b0]
lea rdx, [0x1400345d0]
mov qword [0x1400345e0], r14
mov qword [0x1400345d8], 0x20000
call fcn.140006f80
mov rcx, qword [0x1400345e0]
cmp rcx, qword [0x1400345d8]
sete sil
cmp rax, 0xffffffffffffff88
ja 0x14000aaad
mov qword [0x1400345d8], rcx
mov qword [0x1400345e0], r14
test rdi, rdi
jne 0x14000a950
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
call fcn.14000a820
int3
call fcn.14000a860
int3

Function at 0x14000aac0
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x80
mov rcx, qword [0x1400325a0]
xor ebx, ebx
test rcx, rcx
je 0x14000ab55
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
test eax, eax
jne 0x14000ab36
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], rbx
xor edx, edx
mov r8d, eax
mov dword [rsp + 0x28], ebx
lea rax, [rsp + 0x90]
mov r9d, 0x400
mov ecx, 0x1300
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea rcx, str.Failed_to_send_CTRL_C_to_child_process.
call fcn.14000fcbc
mov rcx, qword [rsp + 0x90]
call fcn.14000fcbc
mov rcx, qword [0x1400325a0]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x1400325a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400325c8], bl
je 0x14000aba5
lea rax, [0x1400325d0]
mov qword [rsp + 0x40], rbx
lea rcx, [0x1400298c0]
mov qword [rsp + 0x50], rax
mov eax, 0x414
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x70], rcx
lea rcx, [rsp + 0x40]
mov word [rsp + 0x60], ax
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x64], ebx
mov qword [rsp + 0x68], rbx
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
add rsp, 0x80
pop rbx
ret
Function at 0x1400191d4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14001925b
mov rsi, rbx
cmp word [rax], bp
je 0x14001921a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140019204
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140019200
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400168b0
mov rdi, rax
test rax, rax
je 0x140019248
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000d3f0
mov rbp, rdi
xor ecx, ecx
call fcn.1400158d4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001b824
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001b83a
mov al, 1
jmp 0x14001b89a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001b84b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001b898
mov ecx, dword [rcx + 0x18]
nop
call fcn.140019978
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001b898
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001b898
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001b898
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001b89a
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001fd50
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001fd78
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001fd78
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [str.D__f_]
mov dword [rax], 1
mov rax, qword [str.H__f_]
mov dword [rax], 1
mov rax, qword [str.L__f_]
mov dword [rax], 1
mov rax, qword [0x1400b1c00]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14002a990
Capabilities:
Query environment variable

Disassembly:
push r14
mov eax, 0x10080
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14008e260
sub rsp, rax
xor eax, eax
xor edx, edx
xor esi, esi
mov r14d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x80], ax
mov r12, rcx
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x2e]
mov word [rsp + 0x30], dx
test dil, dil
je 0x14002aa39
nop dword [rax]
mov rax, r14
lea rbx, [rbp + rsi*2]
sub rax, rsi
cmp word [rbp + rsi*2], 0
je 0x14002a9fe
nop dword [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x14002a9f0
test rax, rax
je 0x14009f170
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r13
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [r12 + rsi]
test dil, dil
jne 0x14002a9d8
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, rbp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14002aa68
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10080
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x14002aa80
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
xor eax, eax
xor esi, esi
mov r13d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x30], ax
mov rbp, rcx
mov r14, rdx
lea r15, [rsp + 0x30]
lea r12, [rsp + 0x2e]
test dil, dil
je 0x14002ab21
nop word [rax + rax]
mov rax, r13
lea rbx, [r15 + rsi*2]
sub rax, rsi
cmp word [r15 + rsi*2], 0
je 0x14002aae6
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x14002aad8
test rax, rax
je 0x14009f176
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r12
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [rbp + rsi]
test dil, dil
jne 0x14002aac0
mov rdx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret