joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140020a64
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000e758
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140020aee
cmp byte [rbp - 0x21], r15b
je 0x140020ae9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140020b24
call fcn.140015320
test eax, eax
jne 0x140020b10
cmp byte [rbp - 0x21], r15b
je 0x140020b08
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140020b24
cmp byte [rbp - 0x21], r15b
je 0x140020b21
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140010e00
test eax, eax
jne 0x140020bc4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000e758
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140020b63
cmp byte [rbp - 0x21], r15b
je 0x140020b98
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140020b98
call fcn.140015320
test eax, eax
jne 0x140020b84
cmp byte [rbp - 0x21], r15b
je 0x140020b7d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140020b98
cmp byte [rbp - 0x21], r15b
je 0x140020b95
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140010e00
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140020bc4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140020bc7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140020bd5
mov rcx, rdi
call fcn.140014fa4
cmp byte [rbp + 0x3f], r15b
je 0x140020be4
mov rcx, qword [rbp + 0x27]
call fcn.140014fa4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140011334
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1400229b0
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, reloc.WS2_32.dll_select
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x158]
mov rax, qword [0x1400360c0]
xor rax, rbp
mov qword [rbp + 0xf8], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.140011668
mov dword [rbp + 4], 0xffffffff
mov eax, dword [rbp + 0x128]
mov dword [rbp + 0xf4], eax
mov eax, dword [rbp + 0xf4]
dec eax
mov dword [rbp + 0xf4], eax
cmp dword [rbp + 0xf4], 9
ja case.0x140022a48.7
movsxd rax, dword [rbp + 0xf4]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x22c28]
add rax, rcx
jmp rax
mov eax, dword [rbp + 0x130]
mov dword [rbp + 0x24], eax
lea r8, [rbp + 0x24]
mov edx, 0x8004667e
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [rbp + 4], eax
jmp case.0x140022a48.7
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x130]
mov r8d, 0x20
mov edx, 0xffff
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rbp + 4], eax
jmp case.0x140022a48.7
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x130]
mov r8d, 4
mov edx, 0xffff
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rbp + 4], eax
jmp case.0x140022a48.7
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x130]
mov r8d, 0x1002
mov edx, 0xffff
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rbp + 4], eax
jmp case.0x140022a48.7
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x130]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rbp + 4], eax
jmp case.0x140022a48.7
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x130]
mov r8d, 0x1006
mov edx, 0xffff
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rbp + 4], eax
jmp case.0x140022a48.7
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x130]
mov r8d, 0x1005
mov edx, 0xffff
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rbp + 4], eax
jmp case.0x140022a48.7
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x130]
mov r8d, 1
mov edx, 6
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rbp + 4], eax
jmp case.0x140022a48.7
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x130]
mov r8d, 4
xor edx, edx
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xffffffff
jne 0x140022bea
mov dword [rbp + 0xf4], 0xffffffff
jmp 0x140022bf4
mov dword [rbp + 0xf4], 0
mov eax, dword [rbp + 0xf4]
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_accept
call fcn.140011573
mov eax, edi
mov rcx, qword [rbp + 0xf8]
xor rcx, rbp
call fcn.1400112df
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x14001136b
Capabilities:
Terminate process

Disassembly:
jmp 0x140028150
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140011483
Capabilities:
Parse pe header

Disassembly:
jmp 0x14002ac30
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14002ac50
xor al, al
jmp 0x14002acd1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14002ac63
xor al, al
jmp 0x14002acd1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14002ac8d
xor al, al
jmp 0x14002acd1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14002aca1
xor al, al
jmp 0x14002acd1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14002acb3
xor al, al
jmp 0x14002acd1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002accf
xor al, al
jmp 0x14002acd1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400114b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
jmp 0x140022560
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1f8
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x3a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x218]
mov rax, qword [0x1400360c0]
xor rax, rbp
mov qword [rbp + 0x198], rax
mov byte [rbp + 0x154], 0
lea rcx, reloc.WS2_32.dll_accept
call fcn.140011668
mov dword [rbp + 4], shutdown
mov dword [rbp + 0x24], 0
mov dword [rbp + 0x44], 0
cmp qword [rbp + 0x1c8], 0
je 0x1400225eb
lea rax, [rbp + 4]
mov qword [rbp + 0x188], rax
jmp 0x1400225f6
mov qword [rbp + 0x188], 0
cmp qword [rbp + 0x1c8], 0
je 0x140022614
mov byte [rbp + 0x154], 1
lea rax, [rbp + 0x68]
mov qword [rbp + 0x190], rax
jmp 0x14002261f
mov qword [rbp + 0x190], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov rax, qword [rbp + 0x188]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x190]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x24]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x44]
mov r8d, dword [rbp + 0x1d8]
mov rdx, qword [rbp + 0x1d0]
mov rcx, qword [rbp + 0x1c0]
call qword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
jne 0x1400226ba
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp + 0x184], eax
cmp dword [rbp + 0x184], 0x2733
je 0x1400226a8
cmp dword [rbp + 0x184], 0x2738
je 0x1400226ac
cmp dword [rbp + 0x184], 0x2746
je 0x1400226a8
jmp 0x1400226b3
xor eax, eax
jmp 0x140022710
mov eax, 0xfffffffe
jmp 0x140022710
mov eax, 0xffffffff
jmp 0x140022710
mov eax, dword [rbp + 0x24]
and eax, 0x8000
test eax, eax
je 0x1400226cd
mov eax, 0xfffffffe
jmp 0x140022710
cmp qword [rbp + 0x1c8], 0
je 0x14002270d
mov rax, qword [rbp + 0x1c8]
mov ecx, dword [rbp + 0x6c]
mov dword [rax], ecx
cmp byte [rbp + 0x154], 0
jne 0x1400226f8
lea rcx, [0x140030f70]
call fcn.1400110ff
movzx ecx, word [rbp + 0x6a]
call qword [sym.imp.WS2_32.dll_ntohs]
mov rcx, qword [rbp + 0x1c8]
mov word [rcx + 4], ax
mov eax, dword [rbp + 0x44]
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, reloc.WS2_32.dll_connect
call fcn.140011573
mov rax, rdi
mov rcx, qword [rbp + 0x198]
xor rcx, rbp
call fcn.1400112df
lea rsp, [rbp + 0x1a8]
pop rdi
pop rbp
ret

Function at 0x1400114ba
Capabilities:
Resolve dns

Disassembly:
jmp 0x140021900
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, reloc.WS2_32.dll_accept
call fcn.140011668
mov rcx, qword [rbp + 0x108]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x140021949
mov rax, qword [rbp + 8]
movsx eax, word [rax + 0x10]
cmp eax, 2
je 0x14002195e
mov rdx, qword [rbp + 0x108]
mov rcx, qword [rbp + 0x100]
call fcn.140011285
jmp 0x140021980
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 8]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rax + rcx]
mov rcx, qword [rbp + 0x100]
mov eax, dword [rax]
mov dword [rcx], eax
xor eax, eax
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x1400114d3
Capabilities:
Execute command

Disassembly:
jmp 0x1400248f0
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400360c0]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.140011668
mov byte [rbp + 0x44], 0
xor r8d, r8d
lea rdx, [rbp + 8]
mov rcx, qword [0x140036378]
call fcn.14001150f
test eax, eax
jle 0x1400249a8
mov eax, dword [rbp + 8]
mov dword [rbp + 0x114], eax
cmp dword [rbp + 0x114], 2
je 0x140024970
cmp dword [rbp + 0x114], 3
je 0x140024965
jmp 0x14002499d
mov rcx, qword [rbp + 0x20]
call fcn.14001134d
jmp 0x14002499d
lea rcx, [0x140032154]
call qword [sym.imp.ucrtbased.dll_system]
mov cl, 1
call fcn.14001118b
lea rcx, str._nClient:_Connection_Dropped__Server_Full_or_Server_Offline_...
call fcn.1400112bc
mov rax, qword [0x1400368f0]
mov dword [rax], 0xffffffff
mov rcx, qword [rbp + 0x20]
call fcn.140011339
jmp 0x140024931
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_accept
call fcn.140011573
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.1400112df
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x140011627
Capabilities:
Initialize winsock library

Disassembly:
jmp 0x140021c30
push rbp
push rdi
sub rsp, 0x2c8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x7a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400360c0]
xor rax, rbp
mov qword [rbp + 0x298], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.140011668
mov eax, 0x101
mov word [rbp + 4], ax
lea rdx, [rbp + 0x30]
movzx ecx, word [rbp + 4]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140021c8f
mov eax, 0xffffffff
jmp 0x140021cd1
movzx eax, word [rbp + 0x30]
and rax, 0xff
movzx eax, al
cmp eax, 1
jne 0x140021cb7
movzx eax, word [rbp + 0x30]
shr rax, 8
and rax, 0xff
movzx eax, al
cmp eax, 1
je 0x140021cc4
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0xffffffff
jmp 0x140021cd1
mov ecx, 1
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_accept
call fcn.140011573
mov rax, rdi
mov rcx, qword [rbp + 0x298]
xor rcx, rbp
call fcn.1400112df
lea rsp, [rbp + 0x2a8]
pop rdi
pop rbp
ret

Function at 0x1400116a9
Capabilities:
Send data
Send data on socket

Disassembly:
jmp 0x1400227c0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x178
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x198]
mov rax, qword [0x1400360c0]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.140011668
mov dword [rbp + 0x34], 0
cmp qword [rbp + 0x148], 0
je 0x140022864
mov r8d, select
xor edx, edx
lea rcx, [rbp + 8]
call fcn.1400114ec
mov eax, 2
mov word [rbp + 8], ax
mov rax, qword [rbp + 0x148]
movzx ecx, word [rax + 4]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0xa], ax
mov rax, qword [rbp + 0x148]
mov eax, dword [rax]
mov dword [rbp + 0xc], eax
cmp qword [rbp + 0x148], 0
je 0x14002287b
mov qword [rbp + shutdown8], 0x10
jmp 0x140022886
mov qword [rbp + 0x108], 0
cmp qword [rbp + 0x148], 0
je 0x14002289d
lea rax, [rbp + 8]
mov qword [rbp + 0x110], rax
jmp 0x1400228a8
mov qword [rbp + 0x110], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov eax, dword [rbp + 0x108]
mov dword [rsp + 0x30], eax
mov rax, qword [rbp + 0x110]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
lea r9, [rbp + 0x34]
mov r8d, dword [rbp + 0x158]
mov rdx, qword [rbp + 0x150]
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, 0xffffffff
jne 0x140022914
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14002290d
xor eax, eax
jmp 0x140022917
mov eax, 0xffffffff
jmp 0x140022917
mov eax, dword [rbp + 0x34]
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, reloc.WS2_32.dll_bind
call fcn.140011573
mov rax, rdi
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.1400112df
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x1400116ae
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
jmp 0x140022230
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, reloc.WS2_32.dll_shutdown
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x158]
mov rax, qword [0x1400360c0]
xor rax, rbp
mov qword [rbp + 0x108], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.140011668
mov dword [rbp + 0x34], shutdown
lea r8, [rbp + 0x34]
lea rdx, [rbp + 8]
mov rcx, qword [rbp + 0x130]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x1400222a6
mov eax, 0xffffffff
jmp 0x1400222c9
mov rax, qword [rbp + 0x138]
mov ecx, dword [rbp + 0xc]
mov dword [rax], ecx
movzx ecx, word [rbp + 0xa]
call qword [sym.imp.WS2_32.dll_ntohs]
mov rcx, qword [rbp + 0x138]
mov word [rcx + 4], ax
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_bind
call fcn.140011573
mov rax, rdi
mov rcx, qword [rbp + 0x108]
xor rcx, rbp
call fcn.1400112df
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret
Function at 0x140002150
Capabilities:
Check os version

Disassembly:
sub rsp, 0xd8
mov rax, qword [0x1402097f0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, DllRegisterServer
call fcn.140155e10
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], DllRegisterServer
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
cmp dword [rsp + 0x24], 6
setae al
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140155de0
add rsp, 0xd8
ret

Function at 0x140002290
Capabilities:
Get graphical window text

Disassembly:
push rdi
sub rsp, 0x70
mov rax, qword [0x1402097f0]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x20]
mov r8d, 0x3f
call qword [sym.imp.USER32.dll_GetWindowTextA]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x20]
repne scasb al, byte [rdi]
not rcx
dec rcx
sete al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140155de0
add rsp, 0x70
pop rdi
ret
Function at 0x140002760
Capabilities:
Enumerate threads
Get process image filename

Disassembly:
push rdi
sub rsp, 0x1f0
mov rax, qword [0x1402097f0]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
xor eax, eax
xor edx, edx
lea ecx, [rax + 4]
mov dword [0x140203060], eax
mov dword [0x14020307c], eax
mov dword [0x140203098], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140002912
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x140002909
mov qword [rsp + 0x208], rbp
mov qword [rsp + 0x210], rsi
lea rsi, [0x140203060]
mov qword [rsp + 0x200], rbx
lea rbp, str.TouchZone
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x1400028d4
mov r8d, dword [rsp + 0x2c]
xor edx, edx
mov ecx, 0x401
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1400028d4
lea rdx, [rsp + 0x110]
mov r8d, 0xc8
mov rcx, rax
call sub.PSAPI.DLL_GetProcessImageFileNameA
lea rcx, [rsp + 0x110]
mov dl, 0x5c
call fcn.140002720
inc eax
movsxd rcx, eax
lea rdx, [rsp + rcx + 0x110]
lea rcx, [rsp + 0x40]
sub rcx, rdx
nop word [rax + rax]
movzx eax, byte [rdx]
inc rdx
mov byte [rcx + rdx - 1], al
test al, al
jne 0x140002860
lea rcx, [rsp + 0x40]
mov dl, 0x2e
call fcn.140002720
cmp eax, 1
jl 0x140002886
cdqe
mov byte [rsp + rax + 0x40], 0
mov r9, rsi
mov r10, rbp
mov r11d, 3
lea rax, [rsp + 0x40]
mov r8, r10
sub r8, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400028b3
inc rax
test ecx, ecx
jne 0x1400028a0
test edx, edx
jne 0x1400028be
mov dword [r9], 1
add r10, 0x1c
add r9, 0x1c
dec r11
jne 0x140002892
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov dword [rsp + 0x20], 0x1c
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1400027f0
mov rsi, qword [rsp + 0x210]
mov rbp, qword [rsp + 0x208]
mov rbx, qword [rsp + 0x200]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.140155de0
add rsp, 0x1f0
pop rdi
ret

Function at 0x140002980
Capabilities:
Get session information

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x48]
lea r8d, [rbx + 8]
or edx, 0xffffffff
xor ecx, ecx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], rax
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
mov rcx, qword [rsp + 0x48]
test eax, eax
je 0x1400029c3
cmp dword [rsp + 0x40], 4
jne 0x1400029c3
cmp dword [rcx], ebx
sete bl
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140002f90
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x160
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbx, rcx
mov dword [rax + 0x10], 8
mov dword [rax + 0x14], 0xff
lea rcx, [rax + 0x10]
call qword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov rcx, rbx
call fcn.1400082d4
xor ecx, ecx
call fcn.14000d0e8
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x14020bf40], rax
test rax, rax
je 0x1400031bb
mov dword [0x14020bed4], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x14020beb8], rax
test rax, rax
je 0x14000315a
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x14020beb0], rax
test rax, rax
je 0x14000315a
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x14020bf48], rax
test rax, rax
je 0x14000315a
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x14020bf50], rax
test rax, rax
je 0x14000315a
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x14020bf20], rax
test rax, rax
je 0x14000315a
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x14020bed8], rax
test rax, rax
je 0x14000315a
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x14020bf38], rax
test rax, rax
je 0x14000315a
lea rax, [0x14020bed0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140002b30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x14020bf58], rax
mov rcx, rbx
call fcn.140008cd0
mov r8d, 1
or edx, 0xffffffff
mov rcx, qword [0x14020bf40]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, rbx
call fcn.140008cf0
cmp dword [0x14020bed4], 1
jne 0x14000315a
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140003420
nop
lea rcx, [rsp + 0x40]
call fcn.14000c12c
nop
lea rcx, [rsp + 0x40]
call fcn.14000b608
mov rcx, qword [0x14020bf40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x14020beb8]
call fcn.140003f70
lea rcx, [0x14020beb0]
call fcn.140003f70
lea rcx, [0x14020bf48]
call fcn.140003f70
lea rcx, [0x14020bf50]
call fcn.140003f70
lea rcx, [0x14020bf20]
call fcn.140003f70
lea rcx, [0x14020bf38]
call fcn.140003f70
lea rcx, [0x14020bed8]
call fcn.140003f70
xor eax, eax
add rsp, 0x160
pop rbx
ret
Function at 0x1400034a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CyHidWinDlg.virtual_712
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xe0], rdx
test rdx, 0xffffffffffff0000
jne 0x14000c553
cmp dword [rcx + 0xd8], 0
jne 0x14000c553
movzx eax, dx
mov dword [rcx + 0xd8], eax
call fcn.140017760
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.14000c4b8
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140003760
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx + 8]
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x1400037e0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], r8d
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x38
ret

Function at 0x140003820
Capabilities:
Set registry value

Disassembly:
push rdi
sub rsp, 0x30
mov r10, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
lea r9d, [rax + 1]
repne scasb al, byte [rdi]
not rcx
and ecx, ecx
mov dword [rsp + 0x28], ecx
mov rcx, qword [r10 + 8]
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x30
pop rdi
ret

Function at 0x140003870
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x50]
mov rbx, r8
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400038bc
mov eax, dword [rsp + 0x68]
mov dword [rbx], eax
mov eax, 1
add rsp, 0x40
pop rbx
ret
xor eax, eax
add rsp, 0x40
pop rbx
ret

Function at 0x140003940
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r9
mov rbp, r8
mov rdi, rdx
mov rbx, rcx
call fcn.140003730
test eax, eax
jne 0x140003974
mov rdx, rdi
mov rcx, rbx
call fcn.140003790
mov r8d, dword [rsi]
mov rdx, rbp
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.1400037e0