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

Disassembly:
push rsi
push rdi
push r15
sub rsp, 0x20
mov rdi, qword [0x140051910]
xor esi, esi
mov r15, rcx
mov dword [rdi + 0x2d9c], esi
test rcx, rcx
je 0x14001350a
mov qword [rsp + 0x40], rbx
lea rbx, [rdi + 0x2da0]
mov dword [rdi + 0x2d9c], esi
mov ecx, dword [rbx + 4]
mov qword [rsp + 0x48], rbp
test ecx, ecx
jns 0x14001344a
mov eax, ecx
cdq
sub eax, edx
mov edx, esi
sar eax, 1
add eax, ecx
mov rcx, rbx
test eax, eax
cmovg edx, eax
call fcn.140014500
mov dword [rbx], esi
cmp dword [rbx + 4], esi
jne 0x14001345e
mov edx, 8
mov rcx, rbx
call fcn.140014500
movsxd rcx, dword [rbx]
mov ebp, esi
mov rax, qword [rbx + 8]
mov byte [rcx + rax], sil
inc dword [rbx]
cmp dword [rdi + 0x2db0], esi
jle 0x1400134aa
mov qword [rsp + 0x50], r14
mov r14, rsi
nop dword [rax]
mov r9, qword [rdi + 0x2db8]
mov r8, rbx
add r9, r14
mov rcx, rdi
mov rdx, r9
call qword [r9 + 0x20]
inc ebp
add r14, 0x30
cmp ebp, dword [rdi + 0x2db0]
jl 0x140013480
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
cmp qword [rbx + 8], rsi
je 0x1400134b9
mov esi, dword [rbx]
dec esi
mov rax, qword [rdi + 0x2da8]
lea rdx, [0x1400457ec]
test rax, rax
movsxd rsi, esi
lea rdi, [0x140051908]
mov rcx, r15
cmovne rdi, rax
call fcn.140002890
mov rbx, rax
test rax, rax
je 0x140013505
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
Function at 0x14001b500
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
push r13
push r14
sub rsp, 0xb8
mov r13, rcx
movsxd rax, r9d
xor ecx, ecx
mov qword [rsp + 0x60], rax
mov dword [rsp + 0xe8], ecx
mov r14, rdx
test r9d, r9d
jle 0x14001b762
mov qword [r11 + 8], rbx
lea rbx, [r8 + 0x20]
mov qword [r11 + 0x10], rbp
movzx ebp, byte [r13 + 0x24]
mov qword [r11 + 0x18], rsi
mov qword [r11 - 0x18], rdi
mov edi, pe_nt_image_headers64
mov qword [r11 - 0x20], r12
xor r12d, r12d
mov qword [r11 - 0x28], r15
movaps xmmword [r11 - 0x38], xmm6
movaps xmmword [r11 - 0x48], xmm7
xorps xmm7, xmm7
movaps xmmword [r11 - 0x58], xmm8
movzx r11d, byte [r13 + 0x20]
movss xmm8, dword [0x14004a4c0]
nop word [rax + rax]
movss xmm6, dword [rbx - 0x20]
comiss xmm6, xmm7
jbe 0x14001b5ca
movsxd r10, dword [r14 + 0x24]
mov r9, qword [r14 + 8]
movsx ecx, di
movzx eax, byte [r10 + r9 + 7]
movzx edx, byte [r10 + r9 + 6]
imul edx, ecx
movsx ecx, di
add dx, ax
movzx eax, byte [r10 + r9 + 5]
movsx r8d, dx
movzx edx, byte [r10 + r9 + 4]
imul edx, ecx
add ax, dx
cwde
sub eax, r8d
movd xmm0, eax
jmp 0x14001b5e9
movsxd rdx, dword [r14 + 0x1c]
xorps xmm6, xmm8
mov rax, qword [r14 + 8]
movzx ecx, byte [rdx + rax + 0x12]
movzx eax, byte [rdx + rax + 0x13]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
xor edi, edi
mov byte [rbx], r11b
mov byte [rbx + 1], bpl
divss xmm6, xmm0
cmp dword [rbx - 0x10], edi
jle 0x14001b700
mov r15, qword [rsp + 0xf0]
mov rax, r12
shl rax, 4
add r15, 6
xor esi, esi
add r15, rax
nop word [rax + rax]
mov rax, qword [rbx - 0x18]
test rax, rax
jne 0x14001b630
mov edx, dword [rbx - 0x1c]
add edx, edi
jmp 0x14001b633
mov edx, dword [rax + rsi]
mov eax, dword [r13 + 0x24]
xorps xmm3, xmm3
xorps xmm2, xmm2
mov rcx, r14
cvtsi2ss xmm3, rax
mov eax, dword [r13 + 0x20]
cvtsi2ss xmm2, rax
mulss xmm3, xmm6
mulss xmm2, xmm6
call fcn.140016830
mov edx, eax
mov rcx, r14
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
movss dword [rsp + 0x28], xmm7
movss dword [rsp + 0x20], xmm7
call fcn.140019160
movzx ecx, word [r13 + 0x1c]
inc r12
movzx r11d, word [r13 + 0x20]
movzx eax, cx
sub ax, word [rsp + 0x50]
dec cx
movzx ebp, word [r13 + 0x24]
dec ax
add ax, r11w
inc edi
add ax, word [rsp + 0x54]
add rsi, 4
mov word [r15 - 2], ax
movzx eax, bp
sub ax, word [rsp + 0x58]
add ax, cx
mov ecx, dword [rsp + 0xe8]
add ax, word [rsp + 0x5c]
inc ecx
mov word [r15], ax
add r15, 0x10
mov dword [rsp + 0xe8], ecx
cmp edi, dword [rbx - 0x10]
jl 0x14001b620
jmp 0x14001b707
mov ecx, dword [rsp + 0xe8]
add rbx, 0x28
mov edi, pe_nt_image_headers64
sub qword [rsp + 0x60], 1
jne 0x14001b580
movaps xmm8, xmmword [rsp + 0x70]
movaps xmm7, xmmword [rsp + 0x80]
movaps xmm6, xmmword [rsp + 0x90]
mov r15, qword [rsp + 0xa0]
mov r12, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0xe0]
mov rbp, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xd0]
mov eax, ecx
add rsp, 0xb8
pop r14
pop r13
ret
Function at 0x14001f460
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, 0xff000000
je 0x14001f619
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movss xmm3, dword [rsp + 0x70]
xorps xmm0, xmm0
comiss xmm3, xmm0
mov esi, r9d
mov rdi, r8
mov rbp, rdx
mov rbx, rcx
jbe 0x14001f4f6
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.14001edd0
mov r8d, dword [rbx + 0x80]
mov r9d, esi
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
call fcn.14001e3e0
mov ecx, dword [rbx + 0x84]
test ecx, ecx
jns 0x14001f4e7
mov eax, ecx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, ecx
lea rcx, [rbx + 0x80]
test eax, eax
cmovg edx, eax
call fcn.1400140a0
mov dword [rbx + 0x80], 0
jmp 0x14001f605
mov edx, 6
movaps xmmword [rsp + 0x30], xmm6
mov r8d, 4
call fcn.14001d2c0
movzx edx, word [rbx + 0x48]
mov rax, qword [rbx + 0x38]
movss xmm1, dword [rdi]
movss xmm2, dword [rbp + 4]
movss xmm3, dword [rbp]
lea ecx, [rdx + 1]
movss xmm6, dword [rax + 4]
movss xmm5, dword [rax]
movss xmm4, dword [rdi + 4]
mov rax, qword [rbx + 0x58]
mov word [rax], dx
mov rax, qword [rbx + 0x58]
mov word [rax + 2], cx
lea ecx, [rdx + 2]
mov rax, qword [rbx + 0x58]
mov word [rax + 4], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 6], dx
add dx, 3
mov rax, qword [rbx + 0x58]
mov word [rax + 8], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 0xa], dx
movsd xmm0, qword [rbp]
mov rax, qword [rbx + 0x50]
movsd qword [rax], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm5
movss dword [rax + 0xc], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], esi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x14], xmm1
movss dword [rax + 0x18], xmm2
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x1c], xmm5
movss dword [rax + 0x20], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x24], esi
movsd xmm0, qword [rdi]
mov rax, qword [rbx + 0x50]
movsd qword [rax + 0x28], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x30], xmm5
movss dword [rax + 0x34], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x38], esi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x3c], xmm3
movss dword [rax + 0x40], xmm4
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x44], xmm5
movss dword [rax + 0x48], xmm6
mov rax, qword [rbx + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
mov dword [rax + 0x4c], esi
add qword [rbx + 0x50], 0x50
add dword [rbx + 0x48], 4
add qword [rbx + 0x58], 0xc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140043b08
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
push rbp
push r15
mov rax, 0x8c
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x14001dd59
sub rsp, 0x28
call fcn.140041830
mov rdx, qword [rsp + 0x4a8]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.1400418a0
add rsp, 0x10
mov dword [0x1400fa001], 0x4000096
mov dword [0x1400fa001], 0x400009a
push qword [rsp + 0x4a0]
push 0x18
pop rcx
pop rdx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x468], rax
mov dword [0x1400fa001], 0x400009b
cmp qword [rsp + 0x468], 0
je 0x14001df4b
mov dword [0x1400fa001], 0x400009c
lea rbp, [rsp + 0x30]
mov dword [rbp], 0x438
mov dword [0x1400fa001], 0x400009d
lea rax, [rsp + 0x30]
mov rax, rax
push rax
push qword [rsp + 0x470]
pop rcx
pop rdx
call sub.KERNEL32.dll_Module32FirstW
mov qword [rsp + 0x470], rax
mov dword [0x1400fa001], 0x400009e
cmp qword [rsp + 0x470], 0
je 0x14001df34
mov dword [0x1400fa001], 0x400009f
push rcx
sub rsp, 0x28
call fcn.140041410
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push 1
push 1
push qword [rsp + 0x48]
push rcx
sub rsp, 0x20
call fcn.140041410
add rsp, 0x20
pop rcx
push rax
push rcx
sub rsp, 0x28
call fcn.140041410
add rsp, 0x28
pop rcx
push rax
lea rbp, [rsp + 0x68]
lea rax, [rbp + 0x30]
mov rax, rax
push rax
pop rcx
pop rdx
sub rsp, 0x20
call fcn.14003ff10
add rsp, 0x20
push rax
call fcn.140041640
mov rdx, rax
pop rax
add qword [rsp], rdx
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call fcn.14003ecc0
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.140023594
add rsp, 0x28
pop rax
and rax, rax
je 0x14001def2
mov dword [0x1400fa001], 0x40000a0
lea rbp, [rsp + 0x30]
push qword [rbp + 0x18]
pop rax
mov qword [rsp + 0x478], rax
mov dword [0x1400fa001], 0x40000a1
jmp 0x14001df34
mov dword [0x1400fa001], 0x40000a2
mov dword [0x1400fa001], 0x40000a3
lea rax, [rsp + 0x30]
mov rax, rax
push rax
push qword [rsp + 0x470]
pop rcx
pop rdx
call sub.KERNEL32.dll_Module32NextW
mov qword [rsp + 0x470], rax
mov dword [0x1400fa001], 0x40000a4
jmp 0x14001de14
mov dword [0x1400fa001], 0x40000a5
push qword [rsp + 0x468]
pop rcx
call sub.KERNEL32.dll_CloseHandle
mov dword [0x1400fa001], 0x40000a6
mov dword [0x1400fa001], 0x40000a8
mov rax, qword [rsp + 0x478]
jmp 0x14001df76
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.140041910
add rsp, 0x28
pop rax
add rsp, 0x488
pop r15
pop rbp
ret
Function at 0x14001f27b
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push r15
mov rax, 0xa
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x14001f28a
sub rsp, 0x28
call fcn.140041830
mov dword [0x1400fa001], 0x400007f
mov dword [0x1400fa001], 0x4000081
mov qword [rsp + 0x70], 0
mov dword [0x1400fa001], 0x4000083
lea rax, [rsp + 0x40]
mov rax, rax
push rax
pop rcx
call sub.KERNEL32.dll_GetNativeSystemInfo
mov dword [0x1400fa001], 0x4000084
lea rbp, [rsp + 0x40]
movsx r15, word [rbp]
cmp r15, 9
jne 0x14001f3f2
mov dword [0x1400fa001], 0x4000085
movabs rax, str.IsWow64Process
push rax
movabs rax, str.kernel32.dll
push rax
pop rcx
pop rdx
call fcn.14001f11a
mov qword [rsp + 0x28], rax
mov dword [0x1400fa001], 0x4000086
cmp qword [rsp + 0x28], 0
je 0x14001f3e8
mov dword [0x1400fa001], 0x4000087
push qword [rsp + 0x90]
push 0
push 0x400
pop rcx
pop rdx
pop r8
call sub.KERNEL32.dll_OpenProcess
mov qword [rsp + 0x38], rax
mov dword [0x1400fa001], 0x4000088
cmp qword [rsp + 0x38], 0
je 0x14001f3de
mov dword [0x1400fa001], 0x4000089
lea rax, [rsp + 0x30]
mov rax, rax
push rax
push qword [rsp + 0x40]
push qword [rsp + 0x38]
pop rcx
pop rdx
pop r8
call fcn.1400284bc
mov dword [0x1400fa001], 0x400008a
push qword [rsp + 0x38]
pop rcx
call sub.KERNEL32.dll_CloseHandle
mov dword [0x1400fa001], 0x400008b
mov r15, qword [rsp + 0x30]
and r15, r15
jne 0x14001f3d4
mov dword [0x1400fa001], 0x400008c
mov qword [rsp + 0x70], 1
mov dword [0x1400fa001], 0x400008d
mov dword [0x1400fa001], 0x400008e
mov dword [0x1400fa001], 0x400008f
mov dword [0x1400fa001], 0x4000090
mov dword [0x1400fa001], 0x4000092
mov rax, qword [rsp + 0x70]
jmp 0x14001f41a
add rsp, 0x78
pop r15
pop rbp
ret
Function at 0x14001f6d0
Capabilities:
Acquire debug privileges

Disassembly:
push rbp
push r15
mov rax, 8
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x14001f6da
sub rsp, 0x28
call fcn.140041830
mov dword [0x1400fa001], 0x15d
mov dword [0x1400fa001], 0x15e
mov byte [rsp + 0x28], 0
mov dword [0x1400fa001], 0x160
lea rax, [rsp + 0x30]
mov rax, rax
push rax
push 0x28
sub rsp, 0x20
call sub.KERNEL32.dll_GetCurrentProcess
add rsp, 0x20
mov rax, rax
push rax
pop rcx
pop rdx
pop r8
call sub.ADVAPI32.DLL_OpenProcessToken
and rax, rax
je 0x14001f86f
mov dword [0x1400fa001], 0x161
lea rax, [rsp + 0x38]
mov dword [0x1400fa001], 0x163
lea rax, [rsp + 0x38]
mov rax, rax
push rax
movabs rax, str.SeDebugPrivilege
push rax
push 0
pop rcx
pop rdx
pop r8
call sub.ADVAPI32.DLL_LookupPrivilegeValueW
and rax, rax
je 0x14001f851
mov dword [0x1400fa001], 0x164
lea rax, [rsp + 0x40]
mov dword [0x1400fa001], 0x167
lea rbp, [rsp + 0x40]
mov dword [rbp], 1
mov dword [0x1400fa001], 0x168
lea rbp, [rsp + 0x38]
movsxd rax, dword [rbp]
push rax
lea rbp, [rsp + 0x48]
push rbp
pop rbp
pop rax
mov dword [rbp + 4], eax
mov dword [0x1400fa001], 0x169
lea rbp, [rsp + 0x38]
movsxd rax, dword [rbp + 4]
push rax
lea rbp, [rsp + 0x48]
push rbp
pop rbp
pop rax
mov dword [rbp + 8], eax
mov dword [0x1400fa001], 0x16a
push rbp
pop rbp
mov dword [rbp + 0xc], 2
mov dword [0x1400fa001], 0x16c
lea rax, [rsp + 0x60]
mov rax, rax
push rax
lea rax, [rsp + 0x58]
mov rax, rax
push rax
push 0x10
lea rax, [rsp + 0x58]
mov rax, rax
push rax
push 0
push qword [rsp + 0x58]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
add rsp, 0x30
mov rax, rax
push rax
pop rax
mov byte [rsp + 0x28], al
mov dword [0x1400fa001], 0x16d
mov dword [0x1400fa001], 0x16e
push qword [rsp + 0x30]
pop rcx
call sub.KERNEL32.dll_CloseHandle
mov dword [0x1400fa001], 0x16f
mov dword [0x1400fa001], 0x170
movsx rax, byte [rsp + 0x28]
movsx rax, al
jmp 0x14001f89c
add rsp, 0x68
pop r15
pop rbp
ret

Function at 0x140020825
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
push r15
xor rax, rax
push rax
sub rsp, 0x28
call fcn.140041830
mov dword [0x1400fa001], 0x100002b
mov dword [0x1400fa001], 0x100002c
push qword [rsp + 0x40]
pop rcx
call sub.USER32.DLL_GetAsyncKeyState
mov r15, rax
and r15, 0x8000
and r15, r15
je 0x140020879
mov dword [0x1400fa001], 0x100002d
mov rax, 1
jmp 0x140020890
mov dword [0x1400fa001], 0x100002e
mov dword [0x1400fa001], 0x100002f
xor rax, rax
add rsp, 0x30
pop r15
ret
Function at 0x140020b5e
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rcx
push r15
xor rax, rax
push rax
push rax
push rax
sub rsp, 0x28
call fcn.140041830
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.1400418a0
add rsp, 0x10
mov dword [0x1400fa001], 0x3a2
mov dword [0x1400fa001], 0x3a4
push 5
sub rsp, 8
sub rsp, 0x20
call sub.USER32.DLL_GetDesktopWindow
add rsp, 0x28
mov rax, rax
push rax
pop rcx
pop rdx
call sub.USER32.DLL_GetWindow
mov qword [rsp + 0x30], rax
mov dword [0x1400fa001], 0x3a5
cmp qword [rsp + 0x30], 0
je 0x140020d86
mov dword [0x1400fa001], 0x3a6
push rcx
sub rsp, 0x28
call fcn.140041410
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140041410
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push qword [rsp + 0x50]
pop rcx
sub rsp, 0x20
call sub.USER32.DLL_GetWindowTextLengthW
add rsp, 0x28
mov r15, rax
add r15, 2
mov rax, r15
push rax
pop rcx
pop rdx
sub rsp, 0x20
call fcn.14003f790
add rsp, 0x28
lea rcx, [rsp + 0x40]
pop rdx
call fcn.1400414d0
mov dword [0x1400fa001], 0x3a7
push qword [rsp + 0x38]
pop rcx
call fcn.14003ed50
mov rax, rax
push rax
push qword [rsp + 0x40]
push qword [rsp + 0x40]
pop rcx
pop rdx
pop r8
call sub.USER32.DLL_GetWindowTextW
mov dword [0x1400fa001], 0x3a8
push rcx
sub rsp, 0x28
call fcn.140041410
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140041410
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140041410
add rsp, 0x28
pop rcx
push rax
push qword [rsp + 0x50]
pop rcx
pop rdx
sub rsp, 0x20
call fcn.14003f8e0
add rsp, 0x28
call fcn.140041760
push rcx
sub rsp, 0x20
call fcn.140041410
add rsp, 0x20
pop rcx
push rax
push rcx
sub rsp, 0x28
call fcn.140041410
add rsp, 0x28
pop rcx
push rax
push qword [rsp + 0x60]
pop rcx
pop rdx
sub rsp, 0x20
call fcn.14003f8e0
add rsp, 0x20
push rax
call fcn.140041640
mov rdx, rax
pop rax
add qword [rsp], rdx
push rax
call fcn.140041640
mov rdx, rax
pop rax
add qword [rsp + 8], rdx
pop rcx
pop rdx
sub rsp, 0x20
call fcn.14003ebc0
add rsp, 0x28
pop rcx
push rax
sub rsp, 0x28
call fcn.140023594
add rsp, 0x28
pop rax
and rax, rax
je 0x140020d4e
mov dword [0x1400fa001], 0x3a9
mov rax, 1
jmp 0x140020da2
mov dword [0x1400fa001], 0x3aa
mov dword [0x1400fa001], 0x3ab
push 2
push qword [rsp + 0x38]
pop rcx
pop rdx
call sub.USER32.DLL_GetWindow
mov qword [rsp + 0x30], rax
mov dword [0x1400fa001], 0x3ac
jmp 0x140020bc5
mov dword [0x1400fa001], 0x3ad
xor rax, rax
jmp 0x140020da2
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.140041910
add rsp, 0x28
mov rcx, qword [rsp + 0x40]
sub rsp, 0x28
call fcn.140041910
add rsp, 0x28
pop rax
add rsp, 0x40
pop r15
ret
Function at 0x140021c03
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
push rbp
mov rax, 0x4b
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x140021c10
sub rsp, 0x28
call fcn.140041830
mov rdx, qword [rsp + 0x290]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.1400418a0
add rsp, 0x10
mov dword [0x1400fa001], 0x200006b
mov dword [0x1400fa001], 0x200006f
lea rbp, [rsp + 0x38]
mov dword [rbp], 0x238
mov dword [0x1400fa001], 0x2000071
push 0
push 2
pop rcx
pop rdx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x30], rax
mov dword [0x1400fa001], 0x2000072
cmp qword [rsp + 0x30], 0
je 0x140021e75
mov dword [0x1400fa001], 0x2000073
lea rbp, [rsp + 0x38]
mov dword [rbp], 0x238
mov dword [0x1400fa001], 0x2000074
lea rax, [rsp + 0x38]
mov rax, rax
push rax
push qword [rsp + 0x38]
pop rcx
pop rdx
call sub.KERNEL32.dll_Process32FirstW
and rax, rax
je 0x140021e57
mov dword [0x1400fa001], 0x2000075
mov dword [0x1400fa001], 0x2000076
push rcx
sub rsp, 0x28
call fcn.140041410
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140041410
add rsp, 0x28
pop rcx
push rax
lea rbp, [rsp + 0x50]
lea rax, [rbp + 0x2c]
mov rax, rax
push rax
pop rcx
pop rdx
sub rsp, 0x20
call fcn.14003ff10
add rsp, 0x28
lea rcx, [rsp + 0x278]
pop rdx
call fcn.1400414d0
mov dword [0x1400fa001], 0x2000078
push rcx
sub rsp, 0x28
call fcn.140041410
add rsp, 0x28
pop rcx
push rax
sub rsp, 8
push rcx
sub rsp, 0x28
call fcn.140041410
add rsp, 0x28
pop rcx
push rax
push qword [rsp + 0x288]
pop rcx
pop rdx
sub rsp, 0x20
call fcn.14003f040
add rsp, 0x28
call fcn.140041760
push rcx
sub rsp, 0x20
call fcn.140041410
add rsp, 0x20
pop rcx
push rax
push rcx
sub rsp, 0x28
call fcn.140041410
add rsp, 0x28
pop rcx
push rax
push qword [rsp + 0x40]
pop rcx
pop rdx
sub rsp, 0x20
call fcn.14003f040
add rsp, 0x20
pop rcx
sub rsp, 8
call fcn.140041790
add rsp, 8
mov rcx, rax
pop rdx
push rcx
mov rcx, rdx
sub rsp, 0x20
call fcn.140041790
add rsp, 0x20
pop rcx
mov rdx, rax
call fcn.1400415b0
or rax, rax
je 0x140021e15
mov dword [0x1400fa001], 0x2000079
push qword [rsp + 0x30]
pop rcx
call sub.KERNEL32.dll_CloseHandle
mov dword [0x1400fa001], 0x200007a
lea rbp, [rsp + 0x38]
movsxd rax, dword [rbp + 8]
movsxd rax, eax
jmp 0x140021e9e
mov dword [0x1400fa001], 0x200007b
mov dword [0x1400fa001], 0x200007c
lea rax, [rsp + 0x38]
mov rax, rax
push rax
push qword [rsp + 0x38]
pop rcx
pop rdx
call sub.KERNEL32.dll_Process32NextW
and rax, rax
je 0x140021e47
xor rax, rax
jmp 0x140021e4e
mov rax, 1
and rax, rax
je 0x140021cd7
mov dword [0x1400fa001], 0x200007d
mov dword [0x1400fa001], 0x200007e
push qword [rsp + 0x30]
pop rcx
call sub.KERNEL32.dll_CloseHandle
mov dword [0x1400fa001], 0x200007f
mov dword [0x1400fa001], 0x2000081
xor rax, rax
movsxd rax, eax
jmp 0x140021e9e
push rax
mov rcx, qword [rsp + 0x278]
sub rsp, 0x28
call fcn.140041910
add rsp, 0x28
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.140041910
add rsp, 0x28
pop rax
add rsp, 0x280
pop rbp
ret
Function at 0x140023594
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x140133380]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x1400243f8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x1401464a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140024452
mov r8, qword [0x1400fa2f4]
mov rcx, qword [0x140145108]
lea edx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1401464a8]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, rbx
call fcn.140023518
lea rcx, [0x1400243d0]
mov rdx, rbx
call fcn.140024730
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x14002445c
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1401464a8], eax
add rsp, 0x28
jmp fcn.1400243f8
Function at 0x140024730
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x1401464b0], 0
mov r14, rdx
mov r15, rcx
lea rbx, [0x1401464c0]
jne 0x14002477d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x1401464e8], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x1401464b0], 1
mov ecx, dword [0x1401464e8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x140024852
mov rcx, qword [0x140145108]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x14002487d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1401464b8]
test rax, rax
je 0x1400247cd
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x1401464b8], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea r9, [rbp + 0x20]
mov r8, rdi
mov rcx, rax
mov rdx, rbx
mov dword [rsp + 0x20], 0x100000
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
lea r8, [0x140024898]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x1401464e8]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x140145108]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x14002487d
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret