joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013a90
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rbx, rdx
mov rdi, rcx
call qword [sym.imp.USER32.dll_GetFocus]
mov rcx, qword [rdi + 0xc8]
cmp rax, rcx
je 0x140013ac1
cmp rbx, qword [rdi + 0x168]
je 0x140013ac1
call qword [sym.imp.USER32.dll_SetFocus]
mov rax, qword [rdi + 0x168]
cmp rbx, rax
je 0x140013bef
mov qword [rsp + 0x70], rsi
xor esi, esi
test rax, rax
je 0x140013b46
xorps xmm0, xmm0
mov qword [rsp + 0x30], 0x17
movdqu xmmword [rsp + 0x44], xmm0
mov qword [rsp + 0x54], rsi
mov dword [rsp + 0x5c], esi
mov qword [rsp + 0x38], rbx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rdi + 0x168]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
mov rax, qword [rcx]
call qword [rax + 0x280]
mov rdx, qword [rdi + 0x168]
lea r8, str.killfocus
xor r9d, r9d
mov byte [rsp + 0x28], sil
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call fcn.140014220
mov qword [rdi + 0x168], rsi
test rbx, rbx
je 0x140013bea
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp rax, rdi
jne 0x140013bea
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x200]
test al, al
je 0x140013bea
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x218]
test al, al
je 0x140013bea
xorps xmm0, xmm0
mov qword [rdi + 0x168], rbx
movdqu xmmword [rsp + 0x44], xmm0
mov qword [rsp + 0x30], 0x18
mov qword [rsp + 0x54], rsi
mov dword [rsp + 0x5c], esi
mov qword [rsp + 0x38], rbx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rdi + 0x168]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x40], eax
mov rax, qword [rcx]
call qword [rax + 0x280]
mov rdx, qword [rdi + 0x168]
lea r8, str.setfocus
xor r9d, r9d
mov byte [rsp + 0x28], sil
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call fcn.140014220
mov rsi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x14001f770
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x250]
sub rsp, 0x350
mov rax, qword [0x140144038]
xor rax, rsp
mov qword [rbp + 0x240], rax
mov rdi, rcx
mov edx, 0xfffffff0
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3fffff
or eax, 0x6000000
mov r8d, eax
mov edx, 0xfffffff0
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_SetWindowLongW]
lea rsi, [rdi + 0x58]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x60]
mov r8, rax
mov rdx, qword [rdi + 8]
mov rcx, rsi
call fcn.14000f330
lea rdx, [rdi + 0x40]
xor r14d, r14d
test rdi, rdi
cmove rdx, r14
lea rcx, [rdi + 0x598]
call fcn.14000c670
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x50], xmm0
mov dword [rbp + 0x60], r14d
mov byte [rbp + 0x194], 1
mov qword [rbp + 0x198], r14
movdqa xmmword [rbp + 0x1a0], xmm0
mov rax, qword [rdi]
lea rdx, [rbp - 0x40]
mov rcx, rdi
call qword [rax + 0x50]
nop
mov rax, qword [rdi]
mov r8, qword [rax + 0x58]
mov rax, qword [rbp - 0x40]
lea rdx, [rsp + 0x30]
mov rcx, rdi
cmp word [rax], r14w
je 0x14001f890
call r8
mov rcx, qword [rax]
call fcn.1400b02b8
movzx ebx, ax
lea rax, [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
cmp rcx, rax
je 0x14001f86d
call fcn.1400a95f0
lea r9, [rdi + 0x48]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rsi
mov r8, qword [rbp - 0x40]
mov rdx, rbx
lea rcx, [rbp + 0x50]
call fcn.14004ad90
mov rbx, rax
jmp 0x14001f8d2
lea rbx, [rdi + 0x48]
test rdi, rdi
cmove rbx, r14
call r8
nop
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rsi
mov r9, rbx
xor r8d, r8d
mov rdx, qword [rax]
lea rcx, [rbp + 0x50]
call fcn.14004ad90
mov rbx, rax
lea rax, [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
cmp rcx, rax
je 0x14001f8d2
call fcn.1400a95f0
test rbx, rbx
jne 0x14001f940
lea r8d, [rbx - 1]
lea rdx, [0x1401146c0]
lea rcx, [rsp + 0x30]
call fcn.14000c7e0
nop
mov rax, qword [rdi]
lea rdx, [rbp + 0x1b0]
mov rcx, rdi
call qword [rax + 0x58]
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14000cc70
lea rcx, [rbp + 0x1b0]
call fcn.14000c8c0
lea rcx, [rsp + 0x30]
call fcn.14000c8e0
mov rdx, rax
lea r9d, [rbx + 0x10]
lea r8, str.Duilib
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rdx, rbx
mov rcx, rsi
call fcn.140012c20
lea rdx, [rdi + 0x38]
test rdi, rdi
cmove rdx, r14
lea rcx, [rdi + 0x568]
call fcn.14000c670
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + gethostname]
nop
lea rax, [rbp - 0x38]
mov rcx, qword [rbp - 0x40]
cmp rcx, rax
je 0x14001f97f
call fcn.1400a95f0
nop
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x14001f98d
call fcn.1400a95f0
mov rcx, qword [rbp + 0x58]
test rcx, rcx
je 0x14001f99b
call fcn.1400a95f0
xor eax, eax
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.1400a23f0
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140024ff0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x140024ffb
xor eax, eax
ret
lea r11, [0x14010f250]
not ecx
cmp r8d, 8
jb 0x1400250d1
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x140025020
test r8d, r8d
je 0x1400250fd
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1400250e0
not ecx
mov eax, ecx
ret

Function at 0x140025a30
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov r10, r8
mov rdi, r9
imul r10d, edx
mov rsi, rdx
cmp byte [r9], 0
mov r11, rcx
je 0x140025a8a
mov rdx, rcx
mov qword [rsp + 0x20], 0
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x48]
mov r8d, r10d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140025a76
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x48]
xor edx, edx
div rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov edx, dword [r9 + 0x2c]
mov ecx, dword [r9 + 0x28]
sub ecx, edx
mov qword [rsp + 0x40], rbx
lea eax, [rdx + r10]
cmp eax, dword [r9 + 0x28]
cmovbe ecx, r10d
add rdx, qword [r9 + 0x20]
mov ebx, ecx
mov r8d, ecx
mov rcx, r11
call fcn.1400a4a90
add dword [rdi + 0x2c], ebx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
xor edx, edx
div rsi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140025ad0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x30
cmp byte [rcx], 0
mov r14, rdx
mov qword [rsp + 0x58], rbp
mov rbx, rcx
mov qword [rsp + 0x68], rsi
mov esi, 1
je 0x140025b24
lea rdi, [rcx + 0x10]
mov qword [rsp + 0x20], 0
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x60]
mov r8d, esi
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140025b1e
mov byte [rdi], sil
mov ebp, dword [rsp + 0x60]
jmp 0x140025b55
mov edi, dword [rcx + 0x2c]
mov ecx, dword [rcx + 0x28]
lea eax, [rdi + 1]
cmp eax, ecx
jbe 0x140025b35
mov esi, ecx
sub esi, edi
mov rdx, rdi
mov r8d, esi
add rdx, qword [rbx + 0x20]
lea rcx, [rsp + 0x50]
mov ebp, esi
call fcn.1400a4a90
lea eax, [rdi + rsi]
mov dword [rbx + 0x2c], eax
lea rdi, [rbx + 0x10]
mov rsi, qword [rsp + 0x68]
cmp ebp, 1
mov rbp, qword [rsp + 0x58]
jne 0x140025b77
movzx eax, byte [rsp + 0x50]
mov dword [r14], eax
xor eax, eax
add rsp, 0x30
pop r14
pop rdi
pop rbx
ret
cmp byte [rbx], 0
je 0x140025b6c
cmp byte [rdi], 0
je 0x140025b6c
mov eax, 0xffffffff
add rsp, 0x30
pop r14
pop rdi
pop rbx
ret
Function at 0x140026ac0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x140026cc6
cmp dword [rcx + 0x1c], 0
je 0x140026cc6
cmp qword [rcx + 0x80], 0
je 0x140026aef
call fcn.140027060
lea r9, [rsp + 0x50]
mov rcx, rdi
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
call fcn.140026810
test eax, eax
je 0x140026b16
mov eax, 0xffffff99
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0xb0
mov qword [rsp + 0x48], rbx
call fcn.1400a95e8
mov rbx, rax
test rax, rax
jne 0x140026b3c
lea eax, [rbx - 0x68]
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0x4000
mov qword [rsp + 0x20], rbp
call fcn.1400a95e8
mov ecx, dword [rsp + 0x40]
xor ebp, ebp
mov dword [rbx + 0x68], ecx
mov ecx, dword [rsp + 0x50]
mov dword [rbx + 0x6c], ecx
mov qword [rbx], rax
mov dword [rbx + 0x70], ebp
test rax, rax
jne 0x140026b82
mov rcx, rbx
call fcn.1400a95f0
mov rbx, qword [rsp + 0x48]
lea eax, [rbp - 0x68]
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov eax, dword [rdi + 0x40]
mov ecx, dword [rdi + 0x38]
mov dword [rbx + 0x78], eax
mov rax, qword [rdi]
mov qword [rbx + 0x88], rax
mov eax, dword [rdi + 0x10]
mov dword [rbx + 0x94], eax
mov dword [rbx + 0x64], ebp
mov dword [rbx + 0x74], ebp
mov dword [rbx + 0x90], ecx
mov dword [rbx + 0x24], ebp
test ecx, ecx
je 0x140026bd1
lea rcx, [rbx + 8]
mov qword [rbx + 0x38], rbp
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x48], rbp
call fcn.140025380
test eax, eax
jne 0x140026bd1
mov dword [rbx + 0x64], 1
mov eax, dword [rdi + 0x44]
movzx ecx, byte [rdi + 0x34]
mov dword [rbx + 0x7c], eax
and cl, 1
mov eax, dword [rdi + 0x48]
mov dword [rbx + 0x80], eax
mov eax, dword [rdi + 0x34]
shr eax, 3
mov byte [rbx + 0x98], cl
test al, 1
je 0x140026bfd
movzx eax, byte [rdi + 0x3d]
jmp 0x140026c01
movzx eax, byte [rdi + 0x43]
mov byte [rbx + 0xac], al
neg cl
mov dword [rbx + 0x9c], 0x12345678
sbb eax, eax
mov dword [rbx + 0xa0], 0x23456789
and eax, 0xc
mov dword [rbx + 0xa4], 0x34567890
mov dword [rbx + 0xa8], eax
test rsi, rsi
je 0x140026c9a
lea r8, [0x14010f250]
nop
movzx eax, byte [rsi]
test al, al
je 0x140026c9a
mov edx, dword [rbx + 0x9c]
xor rax, rdx
movzx ecx, al
shr edx, 8
xor edx, dword [r8 + rcx*4]
mov ecx, dword [rbx + 0xa4]
movzx eax, dl
add eax, dword [rbx + 0xa0]
mov dword [rbx + 0x9c], edx
imul edx, eax, 0x8088405
movzx eax, cl
shr ecx, 8
inc edx
mov dword [rbx + 0xa0], edx
shr rdx, 0x18
xor rax, rdx
xor ecx, dword [r8 + rax*4]
mov dword [rbx + 0xa4], ecx
add rsi, 1
jne 0x140026c40
mov eax, dword [rsp + 0x58]
mov ecx, dword [rdi + 0x7c]
add eax, 0x1e
add ecx, eax
mov dword [rbx + 0x10], ebp
mov rbp, qword [rsp + 0x20]
xor eax, eax
mov dword [rbx + 0x60], ecx
mov qword [rdi + 0x80], rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
mov eax, 0xffffff9a
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x140027100
Capabilities:
Get common file path

Disassembly:
mov dword [rsp + 0x18], r8d
push rbp
push r13
push r14
sub rsp, 0x50
cmp qword [rcx], 0
mov ebp, r9d
mov r13, rdx
mov r14, rcx
jne 0x1400272ef
cmp dword [rcx + 8], 0xffffffff
jne 0x1400272ef
mov qword [rsp + 0x70], rbx
lea rbx, [rcx + 0x250]
mov rdx, rbx
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rbx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140027150
movzx ecx, word [r14 + rax*2 + 0x24e]
cmp cx, 0x5c
je 0x140027188
cmp cx, 0x2f
je 0x140027188
sub rbx, 2
cmp word [rbx + 2], 0
lea rbx, [rbx + 2]
jne 0x140027175
mov eax, dword [0x140113138]
mov dword [rbx], eax
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r15
cmp ebp, 1
jne 0x1400271e5
mov r9d, ebp
xor r8d, r8d
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1400271f6
mov eax, 0x2000000
mov r12, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x78]
mov r15, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop r14
pop r13
pop rbp
ret
lea eax, [rbp - 2]
cmp eax, 1
jbe 0x1400271f6
mov ecx, 0x10000
mov eax, ecx
jmp 0x1400271bf
xor edi, edi
xor r12b, r12b
xor r15b, r15b
mov esi, edi
cmp ebp, 1
je 0x14002724e
cmp ebp, 2
jne 0x14002726c
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 1]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140027249
mov ecx, 0x200
mov eax, ecx
jmp 0x1400271bf
mov r15b, 1
jmp 0x140027251
mov rsi, r13
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
setne r12b
mov ecx, gethostbyname
call fcn.1400a2514
lea ecx, [rbp - 1]
mov rbx, rax
cmp ecx, 1
jbe 0x1400272a0
mov word [rax], 0x100
mov byte [rax + 0x18], dil
mov qword [rax + 0x20], r13
mov eax, dword [rsp + 0x80]
mov dword [rbx + 0x28], eax
mov dword [rbx + 0x2c], edi
mov dword [rbx + 0x14], edi
jmp 0x1400272d2
mov byte [rax], 1
mov byte [rax + 0x18], r15b
mov byte [rax + 1], r12b
mov qword [rax + 8], rsi
mov byte [rax + 0x10], dil
mov dword [rax + 0x14], edi
test r12b, r12b
je 0x1400272d2
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbx + 0x14], eax
mov rcx, rbx
call fcn.140025e20
test rax, rax
mov qword [r14], rax
mov ecx, 0x200
cmove edi, ecx
mov eax, edi
jmp 0x1400271bf
mov eax, 0x1000000
add rsp, 0x50
pop r14
pop r13
pop rbp
ret
Function at 0x140027a30
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
push rsi
sub rsp, 0x458
mov rax, qword [0x140144038]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x140027a6d
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140027a6d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [rsi]
test ax, ax
je 0x140027b7e
mov qword [rsp + 0x480], rbp
mov rcx, rsi
mov qword [rsp + 0x450], rdi
mov rdi, rsi
nop
cmp ax, 0x2f
je 0x140027a9c
cmp ax, 0x5c
jne 0x140027a9f
mov rdi, rcx
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x140027a90
xor ebp, ebp
cmp rdi, rsi
je 0x140027af4
sub rdi, rsi
lea rcx, [rsp + 0x230]
sar rdi, 1
mov rdx, rsi
add rdi, rdi
mov r8, rdi
call fcn.1400a4a90
cmp rdi, 0x208
jae 0x140027b98
lea rdx, [rsp + 0x230]
mov word [rsp + rdi + 0x230], bp
mov rcx, rbx
call fcn.140027a30
mov word [rsp + 0x20], bp
test rbx, rbx
je 0x140027b20
lea rcx, [rsp + 0x20]
sub rcx, rbx
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x140027b10
lea rcx, [rsp + 0x20]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], bp
lea rcx, [rcx + 2]
jne 0x140027b30
xor edx, edx
nop dword [rax]
movzx eax, word [rsi + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x140027b40
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140027b6e
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rbp, qword [rsp + 0x480]
mov rdi, qword [rsp + 0x450]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1400a23f0
add rsp, 0x458
pop rsi
pop rbx
ret
call fcn.1400a2dbc
int3
Function at 0x1400300c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov edx, dword [rcx + 0x10]
mov rbx, rcx
mov edi, edx
and edi, 7
je 0x14003011d
cmp edx, edi
jge 0x140030113
mov r9, qword [rcx + 8]
mov r10d, dword [rcx + 0x14]
mov rax, qword [rbx]
cmp rax, r9
jb 0x1400300ef
xor cl, cl
jmp 0x1400300f8
movzx ecx, byte [rax]
inc rax
mov qword [rbx], rax
movzx eax, cl
mov ecx, edx
shl eax, cl
add edx, 8
or eax, r10d
mov dword [rbx + 0x10], edx
mov dword [rbx + 0x14], eax
mov r10d, eax
cmp edx, 0x18
jle 0x1400300e3
mov ecx, edi
shr dword [rbx + 0x14], cl
sub edx, edi
mov dword [rbx + 0x10], edx
xor r9d, r9d
mov ecx, edx
test edx, edx
jle 0x14003015e
mov eax, dword [rbx + 0x14]
lea rdx, [rsp + 0x30]
movzx r10d, al
nop dword [rax]
nop word [rax + rax]
shr eax, 8
inc r9d
mov byte [rdx], r10b
lea rdx, [rdx + 1]
sub ecx, 8
mov dword [rbx + 0x14], eax
movzx r10d, al
test ecx, ecx
jg 0x140030140
mov dword [rbx + 0x10], ecx
movsxd rcx, r9d
cmp rcx, 4
jge 0x140030192
mov r8, qword [rbx + 8]
nop dword [rax + rax]
mov rax, qword [rbx]
cmp rax, r8
jb 0x14003017c
xor dl, dl
jmp 0x140030185
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x140030170
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
je 0x1400301e8
mov rax, qword gs:[0x58]
mov edx, 0x18
mov rcx, qword [rax]
lea rax, str.zlib_corrupt
mov qword [rdx + rcx], rax
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rbx]
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x140030220
mov rax, qword gs:[0x58]
mov edx, 0x18
mov rcx, qword [rax]
lea rax, str.read_past_buffer
mov qword [rdx + rcx], rax
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x14003023a
mov rcx, rbx
call fcn.14002f7a0
test eax, eax
je 0x1400301db
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call fcn.1400a4a90
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400438c0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x710], 0
mov rbp, r9
mov rdi, r8
mov esi, edx
mov rbx, rcx
je 0x140043970
cmp edx, 0x100
jne 0x14004394a
cmp di, 0xd
jne 0x14004394a
cmp byte [rcx + 0x71a], 0
je 0x14004391d
mov ecx, reloc.COMCTL32.dll_InitCommonControls
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x14004394a
cmp byte [rbx + 0x71b], 0
jne 0x14004394a
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x140043946
mov byte [rsp + 0x28], 0
lea r8, str.return
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov rdx, rbx
call fcn.140014220
xor eax, eax
jmp 0x140043975
mov rax, qword [rbx + 0x710]
mov r9, rbp
mov r8, rdi
mov edx, esi
mov rcx, qword [rax + 0x18]
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r10, qword [rcx]
call qword [r10 + 0x18]
jmp 0x140043975
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14004ad90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push r14
push r15
sub rsp, 0x20
mov rax, rdx
mov r15, r9
shr rax, 0x10
mov r14, r8
mov rbx, rdx
mov rsi, rcx
test ax, ax
je 0x14004addf
cmp word [rdx], 0x3c
je 0x14004addf
call fcn.14000aef0
mov r8b, 1
mov rdx, rbx
lea rcx, [rax + 0x28]
call fcn.14000d550
test rax, rax
je 0x14004addf
mov rax, qword [rax]
test rax, rax
cmovne rbx, rax
mov rax, rbx
mov qword [rsp + 0x40], rbp
shr rax, 0x10
mov qword [rsp + 0x48], rdi
test ax, ax
je 0x14004ae37
cmp word [rbx], 0x3c
mov rdx, rbx
mov rcx, rsi
jne 0x14004ae29
call fcn.140049cf0
test al, al
jne 0x14004aecf
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rsi
ret
call fcn.140049eb0
test al, al
je 0x14004ae0e
jmp 0x14004aecf
mov rdi, qword [rsi + 0x158]
test rdi, rdi
jne 0x14004ae55
mov rdi, qword [0x14014a538]
test rdi, rdi
cmove rdi, qword [0x14014a528]
mov r8, r14
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x14004ae0e
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
test rax, rax
jne 0x14004ae8b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x14004ae0e
mov rdx, rbx
mov qword [rsi + 0x148], r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r8d, ebx
mov rcx, rsi
mov rdx, rax
call fcn.140049dc0
test al, al
je 0x14004ae0e
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov qword [rsi + 0x150], r14
mov r9, qword [rsp + 0x68]
mov rdx, r15
mov r8, qword [rsp + 0x60]
mov rcx, rsi
call fcn.14004aef0
jmp 0x14004ae10
Function at 0x140058150
Capabilities:
Get graphical window text

Disassembly:
push rbp
sub rsp, 0x40
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rbx
mov qword [rbp + 0x28], rdi
mov rax, qword [0x140144038]
xor rax, rbp
mov qword [rbp], rax
cmp byte [rcx + 0x30], 0
mov rdi, rcx
je 0x140058235
cmp qword [rcx + 0x20], 0
je 0x140058235
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea r8d, [rax + 1]
movsxd rax, r8d
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x1400581b0
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400a3300
sub rsp, rcx
lea rbx, [rsp + 0x30]
test rbx, rbx
je 0x140058235
mov rcx, qword [rdi + 8]
mov rdx, rbx
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rdi + 0x20]
mov rdx, rbx
add rcx, 0x1f8
call fcn.14000cb90
mov rbx, qword [rdi + 0x20]
mov rcx, rbx
mov rax, qword [rbx]
call qword [rax + gethostname]
mov byte [rsp + 0x28], 0
lea r8, str.textchanged
mov rcx, rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov rdx, rbx
call fcn.140014220
mov rcx, qword [rdi + 0x20]
mov rax, qword [rcx]
call qword [rax + gethostname]
cmp byte [rax + 0x1e1], 0
je 0x140058235
mov rcx, qword [rdi + 0x20]
call fcn.140018c30
xor eax, eax
mov rcx, qword [rbp]
xor rcx, rbp
call fcn.1400a23f0
mov rbx, qword [rbp + 0x20]
mov rdi, qword [rbp + 0x28]
lea rsp, [rbp + 0x10]
pop rbp
ret

Function at 0x14005d280
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub rsp, 0x2d8
mov rax, qword [0x140144038]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14005d338
xor edx, edx
lea rcx, [rsp + 0x1c0]
mov r8d, 0xff
call fcn.1400a5140
mov edx, 0xff
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.WS2_32.dll_gethostname]
lea rcx, [rsp + 0x1c0]
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x14005d338
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov r8d, dword [rcx]
mov eax, r8d
shr eax, 8
movzx eax, al
movzx ecx, r8b
shl ecx, 8
add eax, ecx
mov ecx, r8d
shl eax, 8
shr ecx, 0x10
movzx edx, cl
add eax, edx
shr r8d, 0x18
shl eax, 8
add eax, r8d
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.1400a23f0
add rsp, 0x2d8
ret
xor eax, eax
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.1400a23f0
add rsp, 0x2d8
ret