joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e0234
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x140121a40
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x30]
lea rcx, [0x1403510a9]
call fcn.1400e103a
mov r8d, 2
mov rdx, qword [rbp + 0x148]
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140121ac9
mov eax, dword [0x1403270e8]
add eax, 2
lea rcx, str.hResource___0
mov qword [rsp + 0x28], rcx
lea rcx, [0x1402abb38]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8d, eax
lea rdx, str.C:ProjectsWTL10_10320_ReleaseInclude_atlgdi.h
mov ecx, 2
call fcn.1400daca8
cmp eax, 1
jne 0x140121ac9
int3
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x140121b25
mov eax, dword [0x1403270e8]
add eax, 4
lea rcx, str.hGlobal___0
mov qword [rsp + 0x28], rcx
lea rcx, [0x1402abb38]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8d, eax
lea rdx, str.C:ProjectsWTL10_10320_ReleaseInclude_atlgdi.h
mov ecx, 2
call fcn.1400daca8
cmp eax, 1
jne 0x140121b25
int3
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x140121b7a
mov eax, dword [0x1403270e8]
add eax, 6
lea rcx, str.pBitmapInfoHeader___0
mov qword [rsp + 0x28], rcx
lea rcx, [0x1402abb38]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8d, eax
lea rdx, str.C:ProjectsWTL10_10320_ReleaseInclude_atlgdi.h
mov ecx, 2
call fcn.1400daca8
cmp eax, 1
jne 0x140121b7a
int3
mov rax, qword [rbp + 0x48]
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret

Function at 0x1400e08ab
Capabilities:
Print debug messages

Disassembly:
jmp 0x140251a60
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1400e0a3b
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1401cbbc0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1401cb510
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401cbc09
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140354020]
jmp 0x1401cbc18
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1400e1067
Capabilities:
Capture webcam image

Disassembly:
jmp 0x140124890
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x30]
lea rcx, [0x1403510a6]
call fcn.1400e103a
mov rax, qword [rbp + 0xe0]
mov rcx, qword [rax]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x140124901
lea rax, str.::IsWindow_this__m_hWnd_
mov qword [rsp + 0x28], rax
lea rax, [0x1402abb38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x16e7
lea rdx, str.C:ProjectsWTL10_10320_ReleaseInclude_atlctrls.h
mov ecx, 2
call fcn.1400daca8
cmp eax, 1
jne 0x140124901
int3
mov eax, dword [rbp + 0xe8]
xor r9d, r9d
mov r8d, eax
mov edx, 0x419
mov rax, qword [rbp + 0xe0]
mov rcx, qword [rax]
call qword [sym.imp.USER32.dll_SendMessageW]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

Function at 0x1400e1355
Capabilities:
Terminate thread

Disassembly:
jmp 0x14017eed0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x1403519fe]
call fcn.1400e103a
mov rcx, qword [rbp + 0xe0]
call fcn.1400dec3b
movzx eax, al
test eax, eax
je 0x14017ef18
mov edx, 0xffffffff
mov rax, qword [rbp + 0xe0]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rax, qword [rbp + 0xe0]
mov byte [rax + 0x28], 0
mov rax, qword [rbp + 0xe0]
mov qword [rax + 0x30], 0
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

Function at 0x1400e13e1
Capabilities:
Print debug messages

Disassembly:
jmp 0x14019eb10
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edx, edx
mov rdi, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.1400df370
and qword [rdi + 0x50], 0
lea rax, [0x140000000]
and dword [rdi + 0x58], 0
lea rcx, [rdi + 0x28]
and dword [rdi + 0x5c], 0
xor r8d, r8d
mov qword [rdi + 0x10], rax
xor edx, edx
mov qword [rdi + 8], rax
lea rax, [0x1402d1050]
mov qword [rdi + 0x20], rax
mov dword [rdi], 0x60
mov dword [rdi + 0x18], 0xe00
call fcn.1400dd566
test eax, eax
jne 0x14019eba7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x14019eba7
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x14019eba0
lea rcx, str.ERROR_:_Unable_to_initialize_critical_section_in_CAtlBaseModule_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [0x14032eef0], 1
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x1400e1841
Capabilities:
Set registry value

Disassembly:
jmp 0x14017c6e0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x140329a40]
xor rax, rbp
mov qword [rbp + 0x160], rax
lea rcx, [0x14035171d]
call fcn.1400e103a
mov edx, 8
lea rcx, [rbp + 0x48]
call fcn.1400daef1
lea rcx, [rbp + 0x48]
call fcn.1400de76d
nop
mov dword [rbp + 0x64], 3
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x64]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.SupportedFeatures
mov rcx, qword [rbp + 0x198]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea r8, [rbp + 0x28]
lea rdx, str.Instances
mov rcx, qword [rbp + 0x198]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea rdx, str.Process_Monitor_24_Instance
lea rcx, [rbp + 0x48]
call fcn.1400debaa
lea rcx, [rbp + 0x48]
call fcn.1400db833
inc eax
mov eax, eax
shl rax, 1
mov qword [rbp + 0x158], rax
lea rcx, [rbp + 0x48]
call fcn.1400db531
mov rcx, qword [rbp + 0x158]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.DefaultInstance
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea r8, [rbp + 8]
lea rdx, str.Process_Monitor_24_Instance
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea rdx, str.385200
lea rcx, [rbp + 0x48]
call fcn.1400debaa
lea rcx, [rbp + 0x48]
call fcn.1400db833
inc eax
mov eax, eax
shl rax, 1
mov qword [rbp + 0x158], rax
lea rcx, [rbp + 0x48]
call fcn.1400db531
mov rcx, qword [rbp + 0x158]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.Altitude
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rbp + 0x64], 0
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x64]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Flags
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rbp + 0x144], 1
lea rcx, [rbp + 0x48]
call fcn.1400dbf6d
mov eax, dword [rbp + 0x144]
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x1402c4400]
call fcn.1400dfc67
mov eax, edi
mov rcx, qword [rbp + 0x160]
xor rcx, rbp
call fcn.1400dd6a1
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x1402641f0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400db464
sub rsp, rax
mov rax, qword [0x140329a40]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140331260]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1402643e2
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x140264336
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140264336
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14026431b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1402642b8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1402643a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140264401
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x1402643dd
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140264401
jmp 0x14026428e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400dd6a1
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1402644b0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400db464
sub rsp, rax
mov rax, qword [0x140329a40]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140331260]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1402646bd
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x140264609
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140264609
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x1402645e9
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x140264578
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14026467d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1402646dc
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x1402646b8
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1402646dc
jmp 0x14026454e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400dd6a1
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140001dfc
Capabilities:
Parse pe header

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

Function at 0x140006350
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000614c
Function at 0x1400090a0
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400090d0
xor eax, eax
jmp 0x140009193
mov rbp, rbx
cmp word [rax], si
je 0x1400090f5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400090dc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400090d8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140008fc0
movsxd r14, eax
test eax, eax
jne 0x140009133
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400090c9
mov rcx, r14
call fcn.1400074a4
mov rdi, rax
test rax, rax
jne 0x14000914c
xor ecx, ecx
call fcn.140006d90
jmp 0x140009128
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140008fc0
test eax, eax
jne 0x14000917d
mov rcx, rdi
call fcn.140006d90
jmp 0x140009187
xor ecx, ecx
call fcn.140006d90
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14000e7e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000e808
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000e808
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002590
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x10], 0
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x140002638
xor edi, edi
test rsi, rsi
je 0x1400025e3
nop
mov eax, dword [rbx + 0x10]
cmp dword [rbx + 0x14], eax
je 0x1400025ff
movsxd rdx, dword [rbx + 0x14]
mov rcx, qword [rbx + 8]
inc rdi
movzx edx, byte [rdx + rcx]
mov byte [rdi + rbp - 1], dl
inc dword [rbx + 0x14]
cmp rdi, rsi
jb 0x1400025c0
add qword [rbx + 0x18], rdi
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x48]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
mov rdx, qword [rbx + 8]
mov rcx, qword [rbx]
lea r9, [rsp + 0x40]
mov r8d, 0x10000
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400025e3
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1400025e3
mov dword [rbx + 0x10], eax
mov dword [rbx + 0x14], 0
jmp 0x1400025c8
mov qword [rcx + 0x10], 0
call fcn.140011770
mov qword [rbx + 0x18], rax
jmp 0x1400025b7
Function at 0x140002a50
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov rax, qword [rdx + 0x18]
mov rsi, rdx
mov rdi, rcx
cmp dword [rax], 1
jg 0x14002cd80
mov rax, qword [rsi]
xor r13d, r13d
mov qword [rsp + 0x70], rbp
mov qword [rsi + 8], r13
xor r12b, r12b
mov byte [rax], r13b
cmp dword [rdi + 0x10], r13d
je 0x14002cda4
mov rbx, r13
mov eax, dword [rdi + 0x10]
cmp dword [rdi + 0x14], eax
je 0x140002b4e
movsxd rdx, dword [rdi + 0x14]
mov rax, qword [rdi + 8]
inc rbx
movzx ecx, byte [rdx + rax]
lea eax, [rdx + 1]
mov byte [rsp + rbx + 0x5f], cl
mov dword [rdi + 0x14], eax
cmp rbx, 1
jb 0x140002a91
add qword [rdi + 0x18], rbx
test rbx, rbx
je 0x140002b84
movzx ebp, byte [rsp + 0x60]
cmp bpl, 0xd
je 0x140002b18
cmp bpl, 0xa
je 0x140002b3b
mov rax, qword [rsi + 0x18]
mov r12b, 1
mov rcx, rsi
cmp dword [rax], 1
jg 0x14002cdc2
mov rdx, qword [rsi + 8]
inc rdx
call fcn.1400029c0
mov rcx, qword [rsi + 8]
mov rax, qword [rsi]
mov byte [rcx + rax], bpl
inc qword [rsi + 8]
mov rcx, qword [rsi + 8]
mov rax, qword [rsi]
mov byte [rcx + rax], r13b
jmp 0x140002a84
lea rdx, [rsp + 0x60]
mov r8d, 1
mov rcx, rdi
call fcn.140002590
test rax, rax
je 0x140002b3b
cmp byte [rsp + 0x60], 0xa
jne 0x14002cdff
mov al, 1
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi]
lea r9, [rsp + 0x68]
mov r8d, 0x10000
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140002abc
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x140002abc
jmp 0x14002cdb6
test r12b, r12b
jne 0x140002b3b
xor al, al
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
dec dword [rax]
mov rcx, rdx
call fcn.14003c6a0
mov ecx, reloc.WSOCK32.dll_recv
mov qword [rsi + reloc.WSOCK32.dll_recv], 0x10
call fcn.140014ee8
mov qword [rsi], rax
jmp 0x140002a6f
mov rcx, rdi
mov qword [rdi + 0x10], r13
call fcn.14004cca0
nop
jmp 0x140002a8e
mov dword [rdi + 0x10], eax
mov dword [rdi + 0x14], r13d
jmp 0x140002a9d
dec dword [rax]
call fcn.14003c6a0
mov rcx, qword [rsi + 8]
add rcx, 2
call fcn.14004df70
mov rcx, rax
mov qword [rsi + 0x10], rax
call fcn.140014ee8
mov r8, qword [rsi + 8]
mov rdx, qword [rsi]
inc r8
mov rcx, rax
mov rbx, rax
call fcn.140014740
mov qword [rsi], rbx
jmp 0x140002af9
mov r8d, 1
or rdx, 0xffffffffffffffff
mov rcx, rdi
call fcn.1400116c0
nop
jmp 0x140002b3b
Function at 0x140010210
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x50
mov rdi, rcx
call fcn.1400034c0
lea rax, [rsp + 0x70]
lea rdx, str.SoftwareAutoIt_v3AutoIt
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002dae0
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x48], rbp
lea rdx, str.Include
xor ebp, ebp
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbp
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140010317
mov ecx, dword [rsp + 0x68]
mov eax, 2
mov qword [rsp + 0x40], rsi
inc ecx
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140014ee8
lea rcx, [rsp + 0x30]
mov rdx, rax
call fcn.140013ab0
mov rsi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
lea r11, [rsp + 0x68]
lea rdx, str.Include
xor r9d, r9d
mov qword [rsp + 0x28], r11
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140010308
mov eax, dword [rsp + 0x68]
mov rdx, rsi
mov rcx, rdi
shr eax, 1
mov dword [rsp + 0x68], eax
mov word [rsi + rax*2], bp
call fcn.14000e8f0
mov bl, 1
lea rcx, [rsp + 0x30]
call fcn.140014210
mov rsi, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x48]
movzx eax, bl
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
xor al, al
jmp 0x14001032f
Function at 0x140011f40
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x40
mov rsi, qword [rsp + 0x70]
xor r12d, r12d
mov edi, r9d
lea rax, [rsp + 0x30]
mov rbp, r8
lea r9d, [r12 + 1]
xor r8d, r8d
mov word [rsi], r12w
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002c120
mov rcx, qword [rsp + 0x30]
lea eax, [rdi + rdi]
xor r9d, r9d
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140011ffc
mov eax, dword [rsp + 0x70]
shr eax, 1
mov dword [rsp + 0x70], eax
cmp eax, edi
jae 0x14002c127
mov word [rsi + rax*2], r12w
mov bl, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret
xor bl, bl
jmp 0x140011fd3
xor al, al
jmp 0x140011fe6
lea eax, [rdi - 1]
jmp 0x140011fcc

Function at 0x1400124c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x10040
call fcn.1400244c0
sub rsp, rax
mov rdi, rcx
xor edx, edx
lea rcx, [0x140000000]
nop
movzx eax, byte [rdx + rcx + 0xaa2c0]
inc rdx
mov byte [rsp + rdx + 0x1f], al
movzx eax, byte [rdx + rcx + 0xaa047]
mov byte [rsp + rdx + 0x27], al
cmp rdx, 8
jl 0x1400124e0
lea rdx, str.AU3_
lea rcx, [rsp + 0x10058]
call fcn.140015dc0
lea rdx, [rsp + 0x10058]
lea rcx, [rsp + 0x30]
mov r8d, 4
call fcn.140014740
xor esi, esi
mov qword [rsp + 0x10050], rbx
nop word [rax + rax]
mov r9, qword [rdi]
lea rcx, [rsp + 0x40]
mov edx, 1
mov r8d, 0x10000
call fcn.140017784
cmp eax, 0x18
jl 0x1400125cd
lea r11d, [rax - 0x14]
xor edx, edx
mov rbx, rax
test r11d, r11d
jle 0x1400125a8
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x20]
sub r8, rax
nop dword [rax + rax]
xor r9d, r9d
xor r10d, r10d
lea rcx, [rsp + r10 + 0x20]
movzx eax, byte [r8 + rcx]
cmp byte [rcx], al
je 0x1400125bf
cmp r9d, 0x14
je 0x14002bfc0
inc edx
inc r8
cmp edx, r11d
jl 0x140012580
mov rcx, qword [rdi]
mov edx, 0xffffffec
lea esi, [rsi + rbx - 0x14]
lea r8d, [rdx + 0x15]
call fcn.140017be0
jmp 0x140012540
inc r10
inc r9d
cmp r10, 0x14
jl 0x140012586
jmp 0x140012594
mov eax, 3
mov rbx, qword [rsp + 0x10050]
mov rsi, qword [rsp + 0x10060]
add rsp, 0x10040
pop rdi
ret
mov rcx, qword [rdi]
lea edx, [rsi + rdx + 0x14]
xor r8d, r8d
call fcn.140017be0
mov r9, qword [rdi]
mov edx, 1
lea r8d, [rdx + 3]
lea rcx, [rsp + 0x10058]
call fcn.140017784
lea rdx, str.EA06
lea rcx, [rsp + 0x10058]
mov byte [rsp + 0x1005c], 0
call fcn.1400177c0
neg eax
sbb eax, eax
and eax, 4
jmp 0x1400125d2