joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ee940
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x10]
call fcn.1400ec050
mov rax, qword [rbp - 0x10]
mov rsi, qword [rbp - 8]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x1400ee99d
mov rcx, qword [rbp]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rcx
call 0x1005c76cf

Function at 0x1400f1300
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x1e8
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov rdi, qword [rax + 8]
movzx eax, word [rax + 0x10]
mov word [rbp + 0x166], ax
mov rax, qword [0x140198268]
cmp rax, 3
jne 0x1400f14f2
lea rax, [rbp + 0x166]
mov qword [rbp + 0x150], rax
cmp rdi, 0x17f
ja 0x1400f1518
lea rbx, [rbp - 0x60]
mov rcx, rbx
mov r8, rdi
call fcn.140119a10
mov byte [rbp + rdi - 0x60], 0
lea rax, [rdi + 1]
cmp rdi, 0xe
ja 0x1400f1398
xor edx, edx
nop word [rax + rax]
cmp byte [rbp + rdx - 0x60], 0
je 0x1400f1454
inc rdx
cmp rax, rdx
jne 0x1400f1380
jmp 0x1400f14bd
lea rcx, [rbp - 0x59]
and rcx, 0xfffffffffffffff8
sub rcx, rbx
je 0x1400f13ce
xor edx, edx
nop word [rax + rax]
cmp byte [rbp + rdx - 0x60], 0
je 0x1400f1454
inc rdx
cmp rcx, rdx
jne 0x1400f13b0
lea rdx, [rdi - 0xf]
cmp rcx, rdx
jbe 0x1400f13d2
jmp 0x1400f141e
lea rdx, [rdi - 0xf]
movdqa xmm0, xmmword [0x140127700]
movabs r8, 0x8080808080808080
nop word cs:[rax + rax]
movdqu xmm1, xmmword [rbp + rcx - 0x60]
movdqa xmm2, xmm1
paddq xmm2, xmm0
pandn xmm1, xmm2
pshufd xmm2, xmm1, 0xee
por xmm2, xmm1
movq r9, xmm2
test r9, r8
jne 0x1400f141e
add rcx, 0x10
cmp rcx, rdx
jbe 0x1400f13f0
sub rax, rcx
je 0x1400f14bd
lea r8, [rcx + rbp]
add r8, 0xffffffffffffffa0
xor edx, edx
nop word cs:[rax + rax]
cmp byte [r8 + rdx], 0
je 0x1400f1451
inc rdx
cmp rax, rdx
jne 0x1400f1440
jmp 0x1400f14bd
add rdx, rcx
cmp rdx, rdi
jne 0x1400f14bd
pxor xmm0, xmm0
movdqa xmmword [rbp + 0x120], xmm0
movdqa xmmword [rbp + 0x140], xmm0
movdqa xmmword [rbp + 0x130], xmm0
mov dword [rbp + 0x128], 1
mov qword [rbp + 0x158], 0
lea rcx, [rbp - 0x60]
lea r8, [rbp + 0x120]
lea r9, [rbp + 0x158]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1400f14d1
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1400f14e9
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1400f152a
mov rax, qword [rbp + 0x158]
movzx ecx, word [rbp + 0x166]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
jmp 0x1400f152a
mov rbx, rdx
call fcn.1401248e0
mov rdx, rbx
lea rax, [rbp + 0x166]
mov qword [rbp + 0x150], rax
cmp rdi, 0x17f
jbe 0x1400f1357
lea r9, [rbp + 0x150]
mov rcx, rsi
mov r8, rdi
call fcn.140124950
nop
add rsp, 0x1e8
pop rbx
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400fd010
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rsi, r8
mov r14, rdx
mov rax, qword [rcx + 0x18]
mov qword [rsp + 0x20], rax
cmp rax, 0xffffffffffffffff
je 0x1400fd1d1
mov r15, qword [rcx + 0x10]
mov rdi, qword [rcx + 0x20]
jmp 0x1400fd077
mov rdx, qword [rcx + 0x10]
lea rcx, [rsp + 0x28]
mov r8, r14
xor r9d, r9d
call fcn.1400fa830
movzx eax, byte [rsp + 0x31]
cmp al, 3
jne 0x1400fd1f8
cmp al, 2
jne 0x1400fd2ae
mov r12, qword [rsp + 0x28]
jmp 0x1400fd236

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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov qword [rsp + 0x30], r8
mov rsi, rdx
mov rbx, qword [rcx + 0x18]
cmp rbx, 0xffffffffffffffff
je 0x1400fd47f
mov r14, qword [rcx + 0x10]
mov r12, qword [rcx + 0x20]
mov rdx, qword [rcx + 0x10]
lea rcx, [rsp + 0x20]
mov r8, rsi
mov r9b, 1
call fcn.1400fa830
movzx eax, byte [rsp + 0x29]
cmp al, 3
jne 0x1400fd4a6
cmp al, 2
jne 0x1400fd4db
mov r13, qword [rsp + 0x20]
lea rcx, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.36.0_srciopoll_evented.rs
call fcn.14011adb0
int3
Function at 0x140116a54
Capabilities:
Parse pe header

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

Function at 0x1401197f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140119818
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140119818
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140120330
Capabilities:
Link many functions at runtime

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rcx, [0x14015091d]
call sub.kernel32.dll_GetModuleHandleA
test rax, rax
je 0x140120382
mov rdi, rax
lea rdx, [0x14015093e]
mov rcx, rax
call sub.kernel32.dll_GetProcAddress
test rax, rax
je 0x140120382
mov rsi, rax
lea rdx, [0x14015094c]
mov rcx, rdi
call sub.kernel32.dll_GetProcAddress
test rax, rax
je 0x140120382
mov r14, rax
xor edi, edi
jmp 0x140120406
lea rcx, [0x1401508d8]
call sub.kernel32.dll_GetModuleHandleA
test rax, rax
je 0x14012046e
mov rsi, rax
lea rdx, str.NtCreateKeyedEvent
mov rcx, rax
call sub.kernel32.dll_GetProcAddress
test rax, rax
je 0x14012046e
mov rbx, rax
lea rdx, str.NtReleaseKeyedEvent
mov rcx, rsi
call sub.kernel32.dll_GetProcAddress
test rax, rax
je 0x14012046e
mov rdi, rax
lea rdx, str.NtWaitForKeyedEvent
mov rcx, rsi
call sub.kernel32.dll_GetProcAddress
test rax, rax
je 0x14012046e
mov rsi, rax
lea rcx, [rsp + 0x20]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rbx
test eax, eax
jne 0x14012046e
mov r14, qword [rsp + 0x20]
movzx eax, byte [0x140198310]
mov edx, 0x18
xor ecx, ecx
call fcn.1400f22c0
test rax, rax
je 0x140120473
mov rbx, rax
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], r14
xor eax, eax
lock cmpxchg qword [0x1401981c0], rbx
je 0x140120461
mov rsi, rax
cmp qword [rbx], 0
je 0x14012044c
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [0x140198260]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140120490
mov ecx, 8
mov edx, 0x18
call fcn.14011a540
int3
Function at 0x140124950
Capabilities:
Resolve dns

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
lea rbp, [rsp + 0x60]
cmp r8, 0xffffffffffffffff
je 0x140124b70
mov rbx, r8
mov r15, r8
inc r15
js 0x140124b7c
mov rdi, r9
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x140198310]
xor ecx, ecx
mov rdx, r15
call fcn.1400f22c0
test rax, rax
je 0x140124b81
mov r12, rax
mov rcx, rax
mov rdx, r14
mov r8, rbx
call fcn.140119a10
cmp rbx, 0xf
ja 0x1401249e8
test rbx, rbx
je 0x140124a8f
xor eax, eax
nop word cs:[rax + rax]
cmp byte [r14 + rax], 0
je 0x140124af8
inc rax
cmp rbx, rax
jne 0x1401249d0
jmp 0x140124a8f
lea rax, [r14 + 7]
and rax, 0xfffffffffffffff8
sub rax, r14
jne 0x140124a40
lea rcx, [rbx - 0x10]
xor eax, eax
movdqa xmm0, xmmword [0x140127700]
movabs rdx, 0x8080808080808080
nop dword [rax]
movdqu xmm1, xmmword [r14 + rax]
movdqa xmm2, xmm1
paddq xmm2, xmm0
pandn xmm1, xmm2
pshufd xmm2, xmm1, 0xee
por xmm2, xmm1
movq r8, xmm2
test r8, rdx
jne 0x140124a6c
add rax, 0x10
cmp rax, rcx
jbe 0x140124a10
jmp 0x140124a6c
cmp rax, rbx
cmovae rax, rbx
xor ecx, ecx
nop dword [rax]
cmp byte [r14 + rcx], 0
je 0x140124af8
inc rcx
cmp rax, rcx
jne 0x140124a50
lea rcx, [rbx - 0x10]
cmp rax, rcx
jbe 0x1401249fb
cmp rax, rbx
je 0x140124a8f
nop word cs:[rax + rax]
cmp byte [r14 + rax], 0
je 0x140124af8
inc rax
cmp rbx, rax
jne 0x140124a80
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], rbx
lea rcx, [rbp - 0x40]
call fcn.1400067d0
mov rbx, rax
mov r14, rdx
pxor xmm0, xmm0
movdqa xmmword [rbp - 0x40], xmm0
movdqa xmmword [rbp - 0x20], xmm0
movdqa xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x38], 1
mov qword [rbp - 8], 0
lea r8, [rbp - 0x40]
lea r9, [rbp - 8]
mov rcx, rax
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x140124b2b
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x140124b3f
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, qword [0x140198260]
xor edx, edx
mov r8, r12
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
jmp qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [rdi]
mov rax, qword [rbp - 8]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rbx], 0
test r14, r14
je 0x140124b60
mov rcx, qword [0x140198260]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea rcx, str.library_alloc_src_ffic_str.rs
call fcn.14011adb0
call fcn.1400066b0
mov ecx, 1
mov rdx, r15
call fcn.14011a520
int3
Function at 0x5e81d0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x5e81dd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x5e81ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x5e81d5
lea eax, [rcx + 1]
jmp 0x5e81fb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x5e820e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x5e81f4
sub eax, 3
jb 0x5e822e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x5e827d
sar eax, 1
movsxd rbp, eax
jb 0x5e8264
jmp 0x5e823c
add ebx, ebx
jne 0x5e823a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x5e8264
inc ecx
add ebx, ebx
jne 0x5e824a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x5e8264
call r11
adc ecx, ecx
add ebx, ebx
jne 0x5e825d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x5e824c
add ecx, 2
jmp 0x5e8269
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.005e8192
jmp 0x5e81dd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x8fa00
mov dl, 0x17
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x5e82c9
cmp rsi, rcx
jae 0x5e82d1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x5e82b0
cmp al, 0x8f
ja 0x5e82b0
cmp byte [rsi - 2], 0xf
je 0x5e82b6
sub al, 0xe8
cmp al, 1
ja 0x5e829a
cmp rsi, rcx
jae 0x5e82d1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x5e82a0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x5e82d1
lodsb al, byte [rsi]
jmp 0x5e82b0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1e5000]
mov eax, dword [rdi]
or eax, eax
je 0x5e832e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1e8000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x5e82de
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x5e8328
mov qword [rbx], rax
add rbx, 8
jmp 0x5e82fe
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x5e8368
cmp al, 0xef
ja 0x5e835a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x5e833a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x5e8349
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x5e83bc
sub rsp, 0xffffffffffffff80
jmp 0x464380
Function at 0x140001294
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov r9, rcx
lea r10, [rcx + 0x9c4]
mov r11d, VarBoolFromI1
mov edx, dword [r10 + 4]
xor edx, dword [r10]
btr edx, 0x1f
xor edx, dword [r10]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
add r10, 4
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
dec r11
mov dword [r10 - 0x9c4], ecx
jne 0x1400012a4
lea r10, [r9 + 0xd50]
mov r11d, 0x18c
mov edx, dword [r10 + 4]
xor edx, dword [r10]
btr edx, 0x1f
xor edx, dword [r10]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
add r10, 4
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
dec r11
mov dword [r10 - 0x9c4], ecx
jne 0x1400012e8
mov edx, dword [r9 + 0x1380]
xor edx, dword [r9 + 4]
btr edx, 0x1f
xor edx, dword [r9 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
and dword [r9], r11d
ret

Function at 0x140001af4
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
mov r8d, 0x270
mov rbx, rcx
cmp dword [rcx], r8d
jne 0x140001b46
lea r9, [rcx + 8]
mov edx, dword [r9 - 4]
xor edx, dword [r9]
btr edx, 0x1f
xor edx, dword [r9 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
add r9, 4
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x62c]
xor ecx, edx
dec r8
mov dword [r9 + 0x9b8], ecx
jne 0x140001b0c
jmp 0x140001b53
cmp dword [rcx], 0x4e0
jb 0x140001b53
call fcn.140001294
mov eax, dword [rbx]
mov edx, dword [rbx + rax*4 + 4]
inc eax
mov dword [rbx], eax
mov eax, dword [rbx + 0x1384]
mov ecx, edx
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 0x20
pop rbx
ret
Function at 0x140007260
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r13, rcx
xor ecx, ecx
movsxd rbp, r8d
mov r12, rdx
call fcn.140227c78
mov rcx, rax
call fcn.140227b94
call fcn.140227bac
mov esi, 0x51eb851f
mov ebx, eax
mov eax, esi
imul ebx
sar edx, 6
mov r8d, edx
shr r8d, 0x1f
add edx, r8d
imul edx, edx, 0xc8
sub ebx, edx
call fcn.140227bac
lea r15, [0x140381550]
mov edi, eax
mov eax, esi
imul edi
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov rcx, r15
imul edx, edx, 0x19
sub edi, edx
mov dl, 0xa
add edi, 8
mov dword [rsp + 0x70], edi
call fcn.140005ac0
mov rcx, r15
call fcn.140003d80
lea edx, [rbx + 0x14]
mov rcx, r15
call fcn.140004c28
mov dl, 0xa
mov rcx, rax
mov rbx, rax
call fcn.140005ac0
mov rcx, rbx
call fcn.140003d80
cmp edi, 1
jl 0x140007384
mov esi, edi
mov r14d, 0xb60b60b7
call fcn.140227bac
mov edi, eax
mov eax, r14d
imul edi
add edx, edi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xb4
sub edi, edx
call fcn.140227bac
mov rcx, r15
mov ebx, eax
mov eax, r14d
imul ebx
add edx, ebx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x5a
sub ebx, edx
lea edx, [rdi + 0x32]
call fcn.140004c28
mov edx, ebx
mov rcx, rax
call fcn.140004c28
mov dl, 0xa
mov rcx, rax
mov rbx, rax
call fcn.140005ac0
mov rcx, rbx
call fcn.140003d80
dec rsi
jne 0x140007318
mov r14d, dword [r13]
mov r15d, dword [r13 + 4]
mov rax, rbp
cmp rbp, 0x2dc6c0
jle 0x140007477
lea rcx, [r12 + 0x2dc6c0]
add rax, 0xffffffffffd23940
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x78], rax
mov edx, dword [rsp + 0x70]
inc r14b
lea rcx, [0x140381550]
movzx r14d, r14b
mov ebp, dword [r13 + r14*4 + 8]
add r15b, bpl
movzx r15d, r15b
mov esi, dword [r13 + r15*4 + 8]
mov dword [r13 + r14*4 + 8], esi
mov dword [r13 + r15*4 + 8], ebp
call fcn.140004c28
mov rcx, rax
mov dl, 0xa
mov rbx, rax
call fcn.140005ac0
mov rcx, rbx
call fcn.140003d80
movzx ecx, byte [r13 + r15*4 + 8]
movzx r11d, byte [r13 + r14*4 + 8]
mov r10, qword [rsp + 0x60]
xor eax, eax
test cl, cl
sete al
xor edx, edx
mov r8d, ecx
add eax, dword [r13 + r11*4 + 8]
test r11b, r11b
mov dword [r13 + r14*4 + 8], eax
mov eax, dword [r13 + rcx*4 + 8]
sete dl
lea ecx, [rdx + rax]
lea eax, [r14 + r15]
mov dword [r13 + r15*4 + 8], ecx
movzx ecx, al
add sil, cl
add sil, bpl
movzx ecx, sil
mov al, byte [r13 + rcx*4 + 8]
xor byte [r10], al
mov eax, dword [r13 + rcx*4 + 8]
inc r10
xor dword [r13 + r11*4 + 8], eax
mov eax, dword [r13 + r14*4 + 8]
mov qword [rsp + 0x60], r10
add eax, edx
xor dword [r13 + r8*4 + 8], eax
dec qword [rsp + 0x78]
jne 0x1400073b4
mov rbx, qword [rsp + 0x68]
mov dword [r13], r14d
mov dword [r13 + 4], r15d
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140007d68
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbp
push rdi
push r12
lea rbp, [rsp - 0x1300]
mov eax, 0x1400
call fcn.140229400
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x1428], rbx
mov qword [rsp + 0x1430], rsi
mov rax, qword [0x14037f168]
xor rax, rsp
mov qword [rbp + 0x12f0], rax
mov r12, rdx
mov rsi, rcx
mov dil, 0x85
cmp rcx, rdx
je 0x140007df0
movzx ebx, byte [rsi]
mov dl, bl
mov cl, dil
call fcn.1400010c0
mov dil, al
imul ebx, ebx, 0x1ce8
mov eax, 0x4ec4ec4f
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
add dil, dl
xor dil, 0x50
inc rsi
cmp rsi, r12
jne 0x140007dba
mov qword [rsp + 0x40], reloc.OLEAUT32.dll_SafeArrayDestroy
and qword [rsp + 0x38], 0
mov byte [rsp + 0x28], 0
lea rcx, [0x1402841d8]
call fcn.140228150
mov r8, rax
lea rdx, [0x1402841d8]
lea rcx, [rsp + 0x28]
call fcn.140005cfc
nop
call fcn.1402584a0
nop
cmp qword [rsp + 0x40], 0x10
jb 0x140007e3d
mov rcx, qword [rsp + 0x28]
call fcn.140009464
call fcn.1402584a0
or dword [rbp + 0x12e4], 0xffffffff
mov dword [rsp + 0x64], eax
mov edx, 1
mov r8d, edx
mov r9d, 0x270
mov ecx, eax
shr ecx, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
add eax, r8d
mov dword [rsp + rdx*4 + 0x64], eax
inc r8d
inc rdx
cmp rdx, r9
jl 0x140007e5b
mov dword [rsp + 0x60], r9d
mov ebx, 6
mov r9b, 0x56
mov r8b, 0xab
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x20]
call fcn.140003cd4
mov dl, al
mov cl, dil
call fcn.1400010c0
mov dil, al
dec rbx
jne 0x140007e84
movzx eax, al
mov rcx, qword [rbp + 0x12f0]
xor rcx, rsp
call fcn.140229090
lea r11, [rsp + 0x1400]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret
Function at 0x14001a358
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14001a3bb
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001a3cf
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001a3cf
mov rcx, qword [rbx]
and qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
jmp 0x14001a3d4
cmp dword [rcx + 8], 0
je 0x14001a3cf
mov rdx, r8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x14001a3d4
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14001a424
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x14001a44a
mov r8, rdx
mov rdx, qword [rbx]
call fcn.14001a358
jmp 0x14001a4b1
cmp byte [0x1403843b0], 0
jne 0x14001a48e
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001a47e
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1403843a8], rax
jmp 0x14001a485
mov rax, qword [0x1403843a8]
mov byte [0x1403843b0], 1
jmp 0x14001a495
mov rax, qword [0x1403843a8]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14001a4ab
mov r8d, dword [rbx + 8]
xor r9d, r9d
call rax
jmp 0x14001a4b1
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14001ad28
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rdx]
mov rbx, rdx
cmp dword [rcx - 0x10], 0
je 0x14001ad5a
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001ad5a
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.14003c760
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400227ec
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx + 0xb0], 0
mov edi, r9d
mov rbx, r8
mov rax, rdx
je 0x140022866
xor r8d, r8d
call fcn.140022720
mov rsi, rax
test rax, rax
jne 0x140022822
mov eax, edi
jmp 0x14002287c
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov rdx, rbx
mov rcx, rsi
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
cmove edi, dword [rsp + 0x30]
jmp 0x14002281e
mov r9, qword [rcx + 0xd8]
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140025be4
Capabilities:
Get graphical window text

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
movsxd rsi, r8d
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0xc8], 0
jne 0x140025c22
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x140025cd6
call fcn.140018d0c
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x140025c41
mov ecx, 0x80004005
call fcn.14000a194
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rcx, qword [rbx + 0xc8]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + 0x118]
mov rdx, rsi
or rsi, 0xffffffffffffffff
mov r9, rsi
mov r8, qword [rsp + 0x40]
mov rcx, rdi
call fcn.140229a48
test eax, eax
je 0x140025ca9
cmp eax, 0xc
je 0x140025ca3
cmp eax, 0x16
je 0x140025c9d
cmp eax, 0x22
je 0x140025c9d
cmp eax, 0x50
je 0x140025ca9
call fcn.14000d728
int3
call fcn.14000d728
int3
call fcn.14000d6e0
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
add ecx, esi
test ecx, ecx
jg 0x140025cd4
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140027c6c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.1400161a4
mov rsi, rax
test rax, rax
je 0x140027ce8
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x140027ce3
cmp dword [rbx], 0x40
jb 0x140027ce3
mov rcx, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
mov qword [rbx + 8], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x140027ce3
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x140027cec
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret