joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d7d7bb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d7f85e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7d7d38
mov rax, qword [0x6d7f85e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7d7bfc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7d7c85
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7d7be0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7d7d6d
mov rax, qword [0x6d7f85e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d7f85e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7d7d50
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7d7c7e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7d7ce0
add dword [0x6d7f85e4], 1
cmp edi, 8
jae 0x6d7d7cb3
test dil, 4
jne 0x6d7d7d24
test edi, edi
je 0x6d7d7ca8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7d7d3f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d7d7ca8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d7d7ccc
jmp 0x6d7d7ca8
add rsi, qword [0x6d7f85e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d7d7c7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d7d7ca8
xor esi, esi
jmp 0x6d7d7c07
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7d7ca8
mov rax, qword [0x6d7f85e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d7d84c0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d7f88c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d7f88a0]
test rbx, rbx
je 0x6d7d8514
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d7d850b
test rsi, rsi
je 0x6d7d850b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d7d84f0
lea rcx, [0x6d7f88c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d7d8750
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d7d8760
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d7d8770
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d7d87b1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d7d87a8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7d87b3
add rax, 0x28
cmp rax, r9
jne 0x6d7d8794
xor eax, eax
ret

Function at 0x6d7d8850
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f51f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d7d88bd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d88bd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7d88bd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d88b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d88bf
add rax, 0x28
cmp rax, r9
jne 0x6d7d88a0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d7d89c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f51f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7d89e0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d89d8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7d8a3d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d8a34
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d8a44
add rax, 0x28
cmp rax, r9
jne 0x6d7d8a20
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7d8a60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7f51f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7d8ace
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d8ace
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7d8ace
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7d8ace
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d7d8ac5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7d8ad5
add rcx, 0x28
cmp rcx, rax
jne 0x6d7d8ab0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7d8ae8
jmp 0x6d7d8ace
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7d8af6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7d8ace
test r9d, r9d
jg 0x6d7d8ae0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7d8e30
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x141ddb058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x141ddb1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141ddb089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141ddb06f
add dl, dl
jne 0x141ddb096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141ddb0f6
xor eax, eax
add dl, dl
jne 0x141ddb0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141ddb1ad
add dl, dl
jne 0x141ddb0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141ddb0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141ddb0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141ddb0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141ddb0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141ddb07e
mov eax, 1
add dl, dl
jne 0x141ddb106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141ddb113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141ddb0fb
sub eax, ebx
mov ebx, 1
jne 0x141ddb14c
mov ecx, 1
add dl, dl
jne 0x141ddb12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141ddb13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141ddb123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141ddb07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141ddb168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141ddb175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141ddb15d
cmp eax, 0x7d00
jae 0x141ddb19b
cmp eax, 0x500
jb 0x141ddb196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141ddb07e
cmp eax, 0x7f
ja 0x141ddb19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141ddb07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141ddb1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x141ddb07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002260
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
jle 0x1400022fd
mov eax, ecx
lea r10, [0x140023520]
cdq
sub eax, edx
xor edx, edx
sar eax, 1
movsxd r8, eax
test eax, eax
jle 0x1400022e1
cmp r8d, 0x10
jb 0x1400022e1
mov ecx, r8d
and ecx, 0x8000000f
jge 0x140002297
dec ecx
or ecx, 0xfffffff0
inc ecx
movdqa xmm1, xmmword [0x14001eff0]
mov r9d, r8d
sub r9d, ecx
nop word [rax + rax]
movsxd rax, edx
movdqu xmm0, xmmword [r10 + rax*2]
pxor xmm0, xmm1
movdqu xmmword [r10 + rax*2], xmm0
lea eax, [rdx + 8]
add edx, 0x10
movsxd rcx, eax
movdqu xmm0, xmmword [r10 + rcx*2]
pxor xmm0, xmm1
movdqu xmmword [r10 + rcx*2], xmm0
cmp edx, r9d
jl 0x1400022b0
movsxd rax, edx
cmp rax, r8
jge 0x1400022fd
mov edx, 0xe385
nop
xor word [r10 + rax*2], dx
inc rax
cmp rax, r8
jl 0x1400022f0
ret

Function at 0x140003b54
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140003be5
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140003be5
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003be5
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140003bc9
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140003bc3
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140003bcb
add rdx, 0x28
jmp 0x140003ba8
xor edx, edx
test rdx, rdx
jne 0x140003bd4
xor al, al
jmp 0x140003beb
test dword [rdx + 0x24], 0x80000000
je 0x140003be1
xor al, al
jmp 0x140003beb
mov al, 1
jmp 0x140003beb
xor al, al
jmp 0x140003beb
add rsp, 0x18
ret
Function at 0x140008828
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1400085fc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400085fc
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400085fc
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400085fc
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400085fc
cmp dword [rcx + 0x84], 0xe
jbe 0x1400085fc
cmp dword [rcx + 0xf8], esi
je 0x1400085fc
mov ecx, r14d
call fcn.140008744
mov ecx, 2
call fcn.14000e5e4
nop
cmp byte [0x140022be0], 0
jne 0x1400086c6
mov r15d, 1
mov eax, r15d
xchg dword [0x140022bd4], eax
test ebx, ebx
jne 0x14000866f
mov rdi, qword [section..data]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140022bd8]
cmp rcx, rax
je 0x140008666
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140003d74]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140022bf0]
jmp 0x14000867b
cmp ebx, r15d
jne 0x140008681
lea rcx, [0x140022c08]
call fcn.140008e48
nop
test ebx, ebx
jne 0x140008698
lea rdx, [0x1400172e8]
lea rcx, [0x1400172c8]
call fcn.1400084bc
lea rdx, [0x1400172f8]
lea rcx, [0x1400172f0]
call fcn.1400084bc
movzx eax, byte [0x140022be0]
test esi, esi
cmove eax, r15d
mov byte [0x140022be0], al
jmp 0x1400086c6
mov ecx, 2
call fcn.14000e638
test esi, esi
jne 0x1400086dd
mov ecx, r14d
call fcn.1400086f8
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14000858c
Function at 0x401170
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
lea rdi, [0x00506050]
xor ebx, ebx
mov ecx, dword [rdi]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x4011b1
add ebx, 1
add rdi, 4
cmp ebx, 7
jb 0x401187
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
ret
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x28
ret

Function at 0x401910
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x40], rbx
mov rbx, rcx
lea rcx, str.SynECR.dll
mov qword [rsp + 0x48], rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov qword [rbx], rax
jne 0x401940
xor edi, edi
mov dword [rbx + 8], edi
jmp 0x401a17
lea rdx, str.SynCR_Init
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.SynCR_SetParam
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.SynCR_GetParam
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.SynCR_Recog
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx]
lea rdx, str.SynCR_CleanUp
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x30], rax
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x4019b2
call rax
mov dword [rbx + 8], eax
cmp qword [rbx + 0x10], 0
je 0x4019ef
cmp qword [rbx + 0x18], 0
je 0x4019ef
cmp qword [rbx + 0x20], 0
je 0x4019ef
cmp qword [rbx + 0x28], 0
je 0x4019ef
cmp qword [rbx + 0x30], 0
je 0x4019ef
cmp dword [rbx + 8], 0
je 0x4019ef
mov eax, 1
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
ret
mov ecx, dword [rbx + 8]
xor edi, edi
test ecx, ecx
je 0x401a06
mov rax, qword [rbx + 0x30]
test rax, rax
je 0x401a03
call rax
mov dword [rbx + 8], edi
mov rcx, qword [rbx]
test rcx, rcx
je 0x401a17
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rbx], rdi
mov qword [rbx + 0x30], rdi
mov qword [rbx + 0x28], rdi
mov qword [rbx + 0x20], rdi
mov qword [rbx + 0x18], rdi
mov qword [rbx + 0x10], rdi
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x28
ret
Function at 0x404fd0
Capabilities:
Hide graphical window

Disassembly:
sub rsp, 0x48
cmp dword [rcx + 0x60], r8d
mov qword [rsp + 0x60], rbx
mov rbx, rcx
je 0x4050c1
cmp r8d, 0xb
jne 0x405040
test rdx, rdx
je 0x404ffb
cmp rdx, qword [rcx + 8]
jne 0x4050c1
cmp qword [rcx + 8], 0
je 0x4050c1
mov dword [rcx + 0x60], 0xb
mov rcx, qword [rcx]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_MoveWindow]
mov qword [rbx + 8], 0
mov rbx, qword [rsp + 0x60]
add rsp, 0x48
ret
cmp r8d, 9
ja 0x4050c1
mov qword [rsp + 0x68], rdi
movsxd rdi, r8d
cmp qword [rcx + rdi*8 + 0x10], 0
je 0x4050bc
mov dword [rcx + 0x60], r8d
mov qword [rcx + 8], rdx
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetCursorPos]
cmp qword [rbx + 8], 0
je 0x4050a3
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov r8d, dword [rsp + 0x34]
mov edx, dword [rsp + 0x30]
mov rcx, qword [rbx]
mov r9d, 1
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
call qword [sym.imp.USER32.dll_MoveWindow]
mov rcx, qword [rbx]
mov edx, 8
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx + rdi*8 + 0x10]
call qword [sym.imp.USER32.dll_SetCursor]
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
add rsp, 0x48
ret

Function at 0x405870
Capabilities:
Hide graphical window

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x50], rbx
mov rbx, rcx
mov qword [rsp + 0x58], rdi
mov rdi, rdx
mov edx, dword [rdx + 4]
mov ecx, dword [rdi]
call qword [sym.imp.USER32.dll_SetCursorPos]
test eax, eax
je 0x4058de
cmp qword [rbx + 8], 0
je 0x4058ca
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov r8d, dword [rdi + 4]
mov edx, dword [rdi]
mov rcx, qword [rbx]
mov r9d, 1
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
call qword [sym.imp.USER32.dll_MoveWindow]
mov eax, 1
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
add rsp, 0x38
ret
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x38
ret
Function at 0x407f30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
sub rsp, 0x38
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
mov r12d, ecx
mov qword [rax - 0x18], r14
movzx r13d, dx
lea rcx, [0x0050cdc0]
xor r14d, r14d
xor edx, edx
mov rbx, r14
call fcn.0048e98c
lea ebp, [r14 + 1]
test rax, rax
mov rsi, rax
je 0x408046
nop
test rbx, rbx
jne 0x408046
mov eax, r12d
lea edx, [rbx + 6]
movzx r9d, r13w
shr eax, 4
mov rcx, rsi
add ax, 1
movzx r8d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
mov rdi, rax
jne 0x407fb4
mov rbx, r14
jmp 0x408029
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x407fca
mov rbx, r14
jmp 0x408024
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbx, rax
jne 0x407fe0
mov rbx, r14
jmp 0x408024
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, r12d
mov r11d, eax
add r11, rbx
and ecx, 0xf
jbe 0x408012
nop
nop
cmp rbx, r11
jae 0x408017
add ecx, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x408000
cmp rbx, r11
jb 0x40801c
mov rbx, r14
jmp 0x408024
cmp word [rbx], r14w
cmove rbx, r14
test rbx, rbx
jne 0x408070
lea rcx, [0x0050cdc0]
mov edx, ebp
call fcn.0048e98c
add ebp, 1
test rax, rax
mov rsi, rax
jne 0x407f80
xor eax, eax
mov r14, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret
mov rax, rsi
jmp 0x408048
Function at 0x408ab0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
sub rsp, 0x48
xor r9d, r9d
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x28], r12
mov dword [rdx], r9d
mov dword [r8], r9d
mov eax, dword [rcx + 0x84c]
test eax, eax
mov rbp, r8
mov r12, rdx
mov r10, rcx
jle 0x408c85
cmp eax, 3
jge 0x408b38
cmp dword [rcx + 0x850], 1
jne 0x408b38
mov eax, dword [rcx + 0x7b0]
sub eax, dword [rcx + 0x7a8]
cdq
xor eax, edx
sub eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [r12], eax
mov eax, dword [rcx + 0x7b4]
sub eax, dword [rcx + 0x7ac]
cdq
xor eax, edx
sub eax, edx
cdq
sub eax, edx
sar eax, 1
mov dword [r8], eax
mov r12, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x40]
add rsp, 0x48
ret
cmp dword [rcx + 0x850], 1
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rdi
mov esi, r9d
jne 0x408b53
lea edi, [rax - 2]
jmp 0x408b56
lea edi, [rax - 1]
mov qword [rsp + 0x18], r14
movsxd r11, edi
mov qword [rsp + 0x10], r15
cmp r11, 2
mov r14d, r9d
mov r15d, r9d
mov ecx, r9d
mov r8d, r9d
jl 0x408c1f
mov qword [rsp + 0x68], rbx
lea rbx, [r11 - 2]
mov qword [rsp + 0x20], r13
shr rbx, 1
lea r13, [r10 + r11*8 + 0x7a0]
mov ebp, r9d
add rbx, 1
mov r12d, r9d
mov rax, rbx
neg rax
lea r11, [r11 + rax*2]
nop
nop
nop
mov r8d, dword [r13]
mov ecx, dword [r13 + 4]
mov eax, dword [r13 + 8]
sub eax, r8d
sub r8d, dword [r13 - 8]
sub r13, 0x10
cdq
xor eax, edx
sub eax, edx
add ebp, eax
mov eax, dword [r13 + 0x1c]
sub eax, ecx
sub ecx, dword [r13 + 0xc]
cdq
xor eax, edx
sub eax, edx
add r14d, eax
mov eax, r8d
cdq
xor eax, edx
sub eax, edx
add r12d, eax
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
add r15d, eax
sub rbx, 1
jne 0x408bb0
mov r13, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x68]
mov dword [rsp], r12d
mov r8d, dword [rsp]
mov r12, qword [rsp + 0x58]
mov dword [rsp + 0x50], ebp
mov ecx, dword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
test r11, r11
jle 0x408c55
mov eax, dword [r10 + r11*8 + 0x7a8]
sub eax, dword [r10 + r11*8 + 0x7a0]
cdq
mov r9d, eax
mov eax, dword [r10 + r11*8 + 0x7ac]
sub eax, dword [r10 + r11*8 + 0x7a4]
xor r9d, edx
sub r9d, edx
cdq
mov esi, eax
xor esi, edx
sub esi, edx
xor edx, edx
lea eax, [r8 + rcx]
add eax, r9d
div edi
xor edx, edx
mov dword [r12], eax
lea eax, [r15 + r14]
mov r15, qword [rsp + 0x10]
mov r14, qword [rsp + 0x18]
add eax, esi
mov rsi, qword [rsp + 0x38]
div edi
mov rdi, qword [rsp + 0x30]
mov dword [rbp], eax
mov r12, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x40]
add rsp, 0x48
ret
Function at 0x410060
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov r11, rsp
sub rsp, 0x68
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rdi
mov rax, qword [0x00507af8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov edi, edx
mov rbx, rcx
mov qword [r11 - 0x38], 0
mov eax, dword [0x0050afc4]
test al, 1
jne 0x4100b5
or eax, 1
mov dword [0x0050afc4], eax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x0050afc0], eax
jmp 0x4100bb
mov eax, dword [0x0050afc0]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x4100e1
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov edx, 1
mov ecx, dword [0x0050afc0]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rdx, [rsp + 0x40]
lea rcx, str.SynCom.SynPacket
call qword [sym.imp.ole32.dll_CLSIDFromProgID]
lea r11, [rsp + 0x30]
mov qword [rsp + 0x20], r11
lea r9, [0x004d0f38]
xor edx, edx
lea r8d, [rdx + 0x15]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoCreateInstance]
nop
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x30]
call qword [rax + 0x30]
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov r8d, edi
mov edx, 0x10000317
call qword [rax + 0x20]
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x410146
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.004902e0
mov rbx, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x88]
add rsp, 0x68
ret

Function at 0x411ac0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov rbx, rcx
mov rcx, qword [rcx + 0x58]
mov qword [rsp + 0x68], rdi
xor edi, edi
test rcx, rcx
mov dword [rsp + 0x50], edi
je 0x411bb3
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
mov edx, 0x10000102
call qword [rax + 0x18]
cmp dword [rsp + 0x50], 2
jne 0x411bb3
mov rcx, qword [rbx + 0x58]
mov dword [rsp + 0x58], edi
test rcx, rcx
je 0x411bb3
mov rax, qword [rcx]
lea r8, [rsp + 0x58]
mov edx, 0x10000103
call qword [rax + 0x18]
cmp dword [rsp + 0x58], 3
jne 0x411bb3
mov rcx, qword [rbx + 0x58]
mov dword [rsp + 0x30], edi
test rcx, rcx
je 0x411bb3
mov rax, qword [rcx]
lea r8, [rsp + 0x30]
mov edx, 0x1000296
call qword [rax + 0x18]
cmp dword [rsp + 0x30], edi
je 0x411bb3
mov rcx, qword [rbx + 0x58]
mov dword [rsp + 0x34], edi
test rcx, rcx
je 0x411bb3
mov rax, qword [rcx]
lea r8, [rsp + 0x34]
mov edx, 0x1000297
call qword [rax + 0x18]
cmp dword [rsp + 0x34], 0xe
jne 0x411bb3
cmp qword [rbx + 0x740], rdi
jne 0x411ba4
lea rax, [rsp + 0x50]
lea r8, [0x0040f480]
mov r9, rbx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x740], rax
mov rdx, qword [0x0050b468]
mov rcx, rbx
call fcn.004119d0
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
add rsp, 0x48
ret