joyce8/EMBER2024-capa huggingface dataset:
Function at 0x8aff70
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x8aff7d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x8aff8d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x8aff75
lea eax, [rcx + 1]
jmp 0x8aff9b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x8affae
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x8aff94
sub eax, 3
jb 0x8affce
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x8b001d
sar eax, 1
movsxd rbp, eax
jb 0x8b0004
jmp 0x8affdc
add ebx, ebx
jne 0x8affda
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x8b0004
inc ecx
add ebx, ebx
jne 0x8affea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x8b0004
call r11
adc ecx, ecx
add ebx, ebx
jne 0x8afffd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x8affec
add ecx, 2
jmp 0x8b0009
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.008aff32
jmp 0x8aff7d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x336200
mov dl, 0x23
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x8b0069
cmp rsi, rcx
jae 0x8b0071
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x8b0050
cmp al, 0x8f
ja 0x8b0050
cmp byte [rsi - 2], 0xf
je 0x8b0056
sub al, 0xe8
cmp al, 1
ja 0x8b003a
cmp rsi, rcx
jae 0x8b0071
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x8b0040
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x8b0071
lodsb al, byte [rsi]
jmp 0x8b0050
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x497000]
mov eax, dword [rdi]
or eax, eax
je 0x8b00ce
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x4cbde8]
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 0x8b007e
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 0x8b00c8
mov qword [rbx], rax
add rbx, 8
jmp 0x8b009e
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 0x8b0108
cmp al, 0xef
ja 0x8b00fa
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x8b00da
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x8b00e9
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 + 0x22f]
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 0x8b015c
sub rsp, 0xffffffffffffff80
jmp 0x728780
Function at 0x401065
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
xor esi, esi
mov edx, 0xa
mov r8d, 0xa
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
xor ecx, ecx
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov qword [0x00409008], rbx
inc rbx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [section..bss], rax
test rax, rax
je 0x40110a
mov r8, qword [0x00409008]
mov rcx, rax
mov rdx, rdi
call sym.memcpy
mov rax, qword [section..bss]
mov rcx, qword [0x00409008]
mov byte [rax + rcx], 0
mov rdi, qword [section..bss]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40110f
mov esi, 1
mov eax, esi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x1400040b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
mov r9d, r8d
not r9d
mov esi, r8d
xor esi, 0x108427b0
and esi, r8d
mov eax, r8d
and eax, 0x108427b0
mov r10d, r8d
and r10d, 0x4108c001
and r9d, 0x28531806
xor eax, 0x518ce7b1
and esi, 0x96a427f8
or esi, eax
lea eax, [r10 + r9]
add eax, 0x108427b0
xor eax, esi
mov esi, r8d
xor esi, 0x96a427f8
xor r8d, 0x695bd807
or r8d, esi
mov esi, r8d
xor esi, eax
not esi
not r8d
and r8d, eax
or r8d, esi
mov eax, r8d
and eax, 0xe28b1660
or eax, 0x18344805
and r8d, 0x1d74e99f
xor r8d, eax
xor r8d, 0x8e906ffd
test rdx, rdx
je 0x14000420e
xor r9d, r9d
lea r10, section..rdata
mov eax, r8d
shr eax, 8
movzx esi, r8b
movzx r11d, byte [rcx + r9]
mov edi, r8d
xor edi, 0xec
and edi, esi
mov ebx, r8d
and ebx, 0xa8
mov ebp, edi
and ebp, 0xffffffa9
xor ebp, ebx
xor ebp, 0x82a8
and edi, 0xffffffa8
or edi, ebp
xor r8d, 0xa9
and r8d, esi
mov r14d, r11d
and r14d, 0x56
mov esi, r11d
xor esi, 0x5d1a2c56
mov ebp, r14d
or ebp, esi
mov ebx, edi
xor ebx, 1
and ebx, r8d
xor r8d, edi
xor r8d, 0xa2e55101
or r8d, ebx
or r11d, 0x8210087e
mov edi, ebp
and edi, 0x7e
xor edi, r11d
or edi, 0x10020400
lea ebx, [r14 + 0x30f7df81]
xor ebx, edi
xor ebp, r14d
not ebp
and esi, 0x180028ff
or esi, ebp
xor esi, 0xbae5fbff
or esi, ebx
xor esi, r8d
mov ebx, dword [r10 + rsi*4]
not eax
mov ebp, ebx
and ebp, eax
or eax, ebx
not eax
or eax, ebp
add r9, 1
mov r8d, eax
cmp rdx, r9
jne 0x140004150
jmp 0x140004211
mov eax, r8d
mov ecx, eax
and ecx, 0xaa4fa80d
or ecx, 0x45900670
and eax, 0x55b057f2
xor eax, ecx
xor eax, 0xba6ff98f
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x140004960
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, r9
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp dword [0x1406c4d88], 0xa
jl 0x1400049d8
mov ecx, dword [0x1406c4d8c]
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
je 0x1400049d8
mov r15, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
nop
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
mov r9, r14
call r15
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
mov r9, r14
call r15
cmp dword [0x1406c4d88], 0xa
jl 0x1400049d8
mov ecx, dword [0x1406c4d8c]
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
jne 0x1400049a0
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14001d9d0
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, rcx
mov rax, qword [0x1406c4a98]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rcx, qword [0x1406c4b40]
mov edx, dword [0x1406c5618]
mov esi, dword [0x1406c561c]
mov dword [rcx + 0x537c], 0
test rdi, rdi
je 0x14001daf5
lea ecx, [rdx - 1]
imul ecx, edx
and ecx, 1
cmp esi, 0xa
jl 0x14001da30
test ecx, ecx
nop word cs:[rax + rax]
nop dword [rax + rax]
cmp esi, 0xa
setl dl
test ecx, ecx
sete bl
mov eax, ecx
xor al, dl
and bl, dl
cmp al, bl
jne 0x14001da30
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x28]
call fcn.140035560
mov rsi, rax
lea rdx, [0x140269cd5]
mov rcx, rdi
call fcn.1400045e0
test rax, rax
je 0x14001daf5
mov rdi, rax
mov rbx, qword [rsp + 0x28]
mov edx, 1
mov rcx, rsi
mov r8, rbx
mov r9, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp dword [0x1406c561c], 0xa
jl 0x14001daec
mov eax, dword [0x1406c5618]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
je 0x14001daec
mov r14, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov edx, 1
mov rcx, rsi
mov r8, rbx
mov r9, rdi
call r14
mov edx, 1
mov rcx, rsi
mov r8, rbx
mov r9, rdi
call r14
cmp dword [0x1406c561c], 0xa
jl 0x14001daec
mov eax, dword [0x1406c5618]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
jne 0x14001dab0
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401f88b0
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400346a0
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov rdi, rdx
mov r14, rcx
mov eax, dword [0x1406c5d70]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
sete cl
cmp dword [0x1406c5d74], 0xa
setl al
or al, cl
test al, al
je 0x1400346d0
lea rbx, [r14 + 0x53e8]
cmp qword [r14 + 0x53e0], 0
je 0x1400347df
mov r11d, dword [r14 + 0x53ec]
test r11d, r11d
jns 0x14003475f
mov edx, dword [0x1406c4c30]
mov r8d, dword [0x1406c4c34]
lea r9d, [rdx - 1]
imul r9d, edx
test r9b, 1
sete r10b
cmp r8d, 0xa
setl dl
mov ecx, edx
and cl, r10b
xor cl, 1
xor dl, r10b
mov eax, edx
xor al, cl
not dl
or dl, cl
and dl, al
nop
test dl, dl
jne 0x140034730
cmp r8d, 0xa
setge dl
and dl, r9b
nop
test dl, dl
jne 0x140034740
mov edx, r11d
shr edx, 0x1f
add edx, r11d
sar edx, 1
xor eax, eax
add edx, r11d
cmovs edx, eax
mov rcx, rbx
call fcn.140006590
mov dword [r14 + 0x53e8], 0
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call fcn.1400067b0
mov eax, dword [r14 + 0x53e8]
xor ecx, ecx
sub eax, 1
cmovb eax, ecx
mov r9, qword [r14 + 0x53e0]
movsxd r8, eax
mov rax, qword [r14 + 0x53f0]
test rax, rax
lea rcx, [0x1406c4b48]
cmovne rcx, rax
mov edx, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov eax, dword [0x1406c5d70]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
je 0x1400347f6
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call fcn.1400067b0
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call fcn.1400067b0
cmp dword [0x1406c5d74], 0xa
jge 0x1400347c0
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400bb2a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
push rax
mov rbp, rsp
mov r14, rcx
mov rax, qword [0x1406c4a98]
xor rax, rbp
mov qword [rbp], rax
mov edx, dword [0x1406ce4d0]
mov ecx, dword [0x1406ce4d4]
lea eax, [rdx - 1]
imul eax, edx
test al, 1
sete bl
cmp ecx, 0xa
setl dl
or dl, bl
jne 0x1400bb2e7
xor ebx, ebx
test bl, 1
mov ebx, edx
je 0x1400bb2e0
cmp ecx, 0xa
setge cl
and cl, al
nop
mov eax, reloc.WLDAP32.dll_Ordinal_32
call fcn.1401f8850
sub rsp, rax
mov rdi, rsp
mov eax, reloc.WS2_32.dll_recv
call fcn.1401f8850
sub rsp, rax
mov rbx, rsp
test cl, cl
jne 0x1400bb2f0
mov sil, 1
cmp qword [r14 + 0x68], 0
je 0x1400bb41e
cmp byte [r14 + 0x71], 0
je 0x1400bb41e
mov rax, qword [r14]
sub rsp, 0x20
mov rcx, r14
mov edx, 0xffffffff
call qword [rax + Ordinal_26]
add rsp, 0x20
cmp eax, 0xffffffff
je 0x1400bb41c
lea r15, [rdi + 0x20]
lea rsi, [r14 + 0x74]
nop word cs:[rax + rax]
nop
mov rcx, qword [r14 + 0x68]
mov rax, qword [rcx]
sub rsp, 0x30
mov qword [rsp + 0x20], rbx
mov rdx, rsi
mov r8, rdi
mov r9, r15
call qword [rax + 0x40]
add rsp, 0x30
cmp dword [0x1406ce4d4], 0xa
jl 0x1400bb3bc
mov ecx, dword [0x1406ce4d0]
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
je 0x1400bb3bc
mov rcx, qword [r14 + 0x68]
mov rax, qword [rcx]
sub rsp, 0x30
mov qword [rsp + 0x20], rbx
mov rdx, rsi
mov r8, rdi
mov r9, r15
call qword [rax + 0x40]
add rsp, 0x30
jmp 0x1400bb360
test eax, eax
jle 0x1400bb3cc
cmp eax, 3
jge 0x1400bb40d
cmp eax, 1
jne 0x1400bb41c
jmp 0x1400bb3d5
test eax, eax
jne 0x1400bb41c
mov byte [r14 + 0x71], 0
mov rsi, qword [rbx]
sub rsi, rdi
je 0x1400bb402
mov r9, qword [r14 + 0x80]
sub rsp, 0x20
mov edx, 1
mov rcx, rdi
mov r8, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add rsp, 0x20
cmp rsi, rax
jne 0x1400bb41c
cmp byte [r14 + 0x71], 0
sete sil
jmp 0x1400bb41e
cmp eax, 3
jne 0x1400bb41c
mov byte [r14 + 0x71], 0
mov sil, 1
jmp 0x1400bb41e
xor esi, esi
mov rcx, qword [rbp]
xor rcx, rbp
sub rsp, 0x20
call fcn.1401f88b0
add rsp, 0x20
mov eax, esi
lea rsp, [rbp + 8]
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
Function at 0x1400c54d0
Capabilities:
Parse pe header

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov r14, rcx
movzx eax, word [rdx]
cmp eax, 0x5a4d
jne 0x1400c55e2
mov rdi, rdx
movsxd rsi, dword [rdx + 0x3c]
cmp dword [rsi + rdx], 0x4550
jne 0x1400c55e2
lea rcx, [rbp - 0x20]
call fcn.1400c57e0
mov ebx, dword [rdi + rsi + 0xb0]
test rbx, rbx
je 0x1400c5662
add rbx, rdi
mov r12d, dword [rdi + rsi + 0xb4]
add r12, rbx
cmp rbx, r12
jae 0x1400c55fe
movabs r13, 0x1fffffff8
lea r15, [rbp - 0x20]
lea rsi, [rbp - 0x38]
jmp 0x1400c556f
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, r12
jae 0x1400c55fe
cmp dword [rbx + 4], 0
je 0x1400c55fe
mov eax, dword [rbx]
add rax, rdi
mov qword [rbp - 0x38], rax
lea rax, [rbx + 8]
mov qword [rbp - 0x30], rax
mov eax, dword [rbx + 4]
add rax, r13
shr rax, 1
mov dword [rbp - 0x28], eax
cmp dword [0x1406cda8c], 0xa
jl 0x1400c55b0
mov eax, dword [0x1406cda88]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
jne 0x1400c55d5
mov rcx, r15
mov rdx, rsi
call fcn.1400c6e60
cmp dword [0x1406cda8c], 0xa
jl 0x1400c5560
mov eax, dword [0x1406cda88]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
je 0x1400c5560
mov rcx, r15
mov rdx, rsi
call fcn.1400c6e60
jmp 0x1400c55b0
mov rcx, r14
call fcn.1400c57e0
mov rax, r14
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov eax, dword [0x1406cda90]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
sete cl
cmp dword [0x1406cda94], 0xa
setl al
or al, cl
nop dword [rax]
test al, al
je 0x1400c5620
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x10], 0
movaps xmm0, xmmword [rbp - 0x20]
xorps xmm1, xmm1
movaps xmmword [rbp - 0x20], xmm1
cmp dword [0x1406cdd34], 0xa
jl 0x1400c5675
mov ecx, dword [0x1406cdd30]
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
je 0x1400c5675
nop word cs:[rax + rax]
nop
jmp 0x1400c5660
mov rcx, r14
call fcn.1400c57e0
cmp dword [0x1406cda9c], 0xa
jge 0x1400c56af
jmp 0x1400c56c2
mov ecx, dword [0x1406cdd54]
cmp dword [0x1406cdd50], 0xa
movups xmmword [r14], xmm0
jl 0x1400c56a2
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
je 0x1400c56a2
nop word cs:[rax + rax]
nop dword [rax]
jmp 0x1400c56a0
mov qword [r14 + 0x10], rax
cmp dword [0x1406cda9c], 0xa
jl 0x1400c56c2
mov eax, dword [0x1406cda98]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
je 0x1400c56c2
jmp 0x1400c56c0
lea rcx, [rbp - 0x20]
call fcn.1400c4340
cmp dword [0x1406cda9c], 0xa
jl 0x1400c55ea
mov eax, dword [0x1406cda98]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
je 0x1400c55ea
lea rsi, [rbp - 0x20]
nop word cs:[rax + rax]
nop dword [rax + rax]
mov rcx, rsi
call fcn.1400c4340
mov rcx, rsi
call fcn.1400c4340
cmp dword [0x1406cda9c], 0xa
jl 0x1400c55ea
mov eax, dword [0x1406cda98]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
jne 0x1400c5700
jmp 0x1400c55ea
Function at 0x1400ced30
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x240
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1b8], 0xfffffffffffffffe
mov rsi, rcx
lea rdi, [rbp - 0x60]
mov r8d, 0x20a
mov rcx, rdi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov ecx, 0x105
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp dword [0x1406c4bdc], 0xa
jl 0x1400ced92
mov ecx, dword [0x1406c4bd8]
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
je 0x1400ced92
nop dword [rax]
jmp 0x1400ced90
add eax, 0xffffffff
cmp eax, 0x105
jb 0x1400cee04
lea rdi, [0x14026bbe8]
nop word cs:[rax + rax]
nop dword [rax]
mov rcx, rsi
call fcn.1400d1ec0
mov rcx, rsi
mov rdx, rdi
xor r8d, r8d
call fcn.1400bde50
mov edx, dword [0x1406c4bd8]
mov ecx, dword [0x1406c4bdc]
lea eax, [rdx - 1]
imul eax, edx
and eax, 1
cmp ecx, 0xa
jl 0x1400cee7c
test eax, eax
je 0x1400cee7c
mov rcx, rsi
call fcn.1400d1ec0
mov rcx, rsi
mov rdx, rdi
xor r8d, r8d
call fcn.1400bde50
jmp 0x1400cedb0
lea rcx, [rbp - 0x60]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
cmp word [rbp + rax*2 - 0x62], 0x5c
jne 0x1400cee1c
mov word [rbp + rax*2 - 0x62], 0
lea rdi, [rbp - 0x60]
mov rcx, rsi
call fcn.1400d1ec0
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rcx, rsi
mov rdx, rdi
mov r8, rax
call fcn.1400bde50
mov edx, dword [0x1406c4bd8]
mov ecx, dword [0x1406c4bdc]
lea eax, [rdx - 1]
imul eax, edx
and eax, 1
cmp ecx, 0xa
jl 0x1400cee7c
test eax, eax
je 0x1400cee7c
mov rcx, rsi
call fcn.1400d1ec0
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rcx, rsi
mov rdx, rdi
mov r8, rax
call fcn.1400bde50
jmp 0x1400cee20
cmp ecx, 0xa
jl 0x1400cee92
test eax, eax
je 0x1400cee92
nop word cs:[rax + rax]
nop
jmp 0x1400cee90
mov rax, rsi
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400e2f20
Capabilities:
Enumerate gui resources

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x1406c4a98]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], 0
mov eax, dword [0x1406ce068]
cmp dword [0x1406ce06c], 0xa
mov dword [rsp + 0x30], ecx
jl 0x1400e2f62
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
je 0x1400e2f62
nop dword [rax + rax]
jmp 0x1400e2f60
lea rcx, [0x1401d3390]
lea rdx, [rsp + 0x28]
call qword [sym.imp.USER32.dll_EnumWindows]
mov edx, dword [0x1406ce060]
lea ecx, [rdx - 1]
imul ecx, edx
and ecx, 1
mov edx, dword [0x1406ce064]
test eax, eax
je 0x1400e2fa2
xor esi, esi
cmp edx, 0xa
jl 0x1400e2fe6
test ecx, ecx
je 0x1400e2fe6
nop dword [rax + rax]
jmp 0x1400e2fa0
cmp edx, 0xa
jl 0x1400e2fab
test ecx, ecx
jne 0x1400e2fcf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x1406ce060]
mov edx, dword [0x1406ce064]
lea ecx, [rsi - 1]
imul ecx, esi
and ecx, 1
cmp edx, 0xa
jl 0x1400e2fd7
test ecx, ecx
je 0x1400e2fd7
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400e2fab
cmp eax, 0xffffffff
jne 0x1400e2f8d
mov rsi, qword [rsp + 0x28]
test rsi, rsi
je 0x1400e2f8d
cmp edx, 0xa
jl 0x1400e2ff2
test ecx, ecx
je 0x1400e2ff2
nop
jmp 0x1400e2ff0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401f88b0
mov rax, rsi
add rsp, 0x40
pop rsi
ret
Function at 0x1401ddf20
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov r14, r9
mov r15, r8
mov r12, rdx
mov rdi, rcx
mov eax, dword [0x1406d3ef8]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
sete cl
cmp dword [0x1406d3efc], 0xa
setl al
or al, cl
nop word [rax + rax]
test al, al
je 0x1401ddf60
mov rsi, qword [rdi]
test rsi, rsi
je 0x1401ddfe0
mov eax, dword [0x1406d4980]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
sete cl
cmp dword [0x1406d4984], 0xa
setl al
or al, cl
nop word [rax + rax]
test al, al
je 0x1401ddf90
mov rbx, qword [rdi + 0x10]
sub rbx, rsi
nop dword [rax + rax]
mov rcx, rsi
mov rdx, rbx
call fcn.1400c4470
cmp dword [0x1406d57e8], 0xa
jl 0x1401ddfe0
mov eax, dword [0x1406d57ec]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
je 0x1401ddfe0
mov rcx, rsi
mov rdx, rbx
call fcn.1400c4470
jmp 0x1401ddfa0
mov qword [rdi], r12
mov eax, dword [0x1406d57ec]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
sete al
cmp dword [0x1406d57e8], 0xa
setl dl
xor cl, dl
and al, dl
cmp al, cl
jne 0x1401ddfe0
shl r15, 5
add r15, r12
mov qword [rdi + 8], r15
shl r14, 5
add r14, r12
mov qword [rdi + 0x10], r14
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x1401f4b90
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, rdx
mov r15, rcx
mov edx, dword [0x1406d4754]
mov edi, dword [0x1406d4750]
lea ecx, [rdx - 1]
imul ecx, edx
nop word cs:[rax + rax]
nop dword [rax]
test cl, 1
sete dl
cmp edi, 0xa
setl bl
setge al
xor al, dl
and bl, dl
cmp al, bl
jne 0x1401f4bc0
mov edx, dword [0x1406d46b8]
mov eax, dword [0x1406d46bc]
lea ecx, [rdx - 1]
imul ecx, edx
and ecx, 1
sete bl
cmp eax, 0xa
setl dl
or dl, bl
nop word [rax + rax]
test dl, dl
je 0x1401f4c00
mov rdx, qword [r15 + 0x20]
add rdx, 1
cmp qword [r15 + 0x10], rdx
ja 0x1401f4c40
mov edx, 1
mov rcx, r15
call fcn.1401f4d40
mov edx, dword [0x1406d46b8]
mov eax, dword [0x1406d46bc]
lea ecx, [rdx - 1]
imul ecx, edx
and ecx, 1
nop word cs:[rax + rax]
nop
cmp eax, 0xa
jl 0x1401f4c49
test ecx, ecx
jne 0x1401f4c40
mov r8, qword [r15 + 8]
mov rcx, qword [r15 + 0x10]
mov rdx, qword [r15 + 0x18]
mov rbx, rcx
neg rbx
add rcx, 0xffffffffffffffff
movabs rdi, 0x3206840900a0308
and rdi, rcx
movabs rax, 0xb3606c65d35a1708
and rax, rdx
movabs rsi, 0xc0781822c8500d4
or rsi, rax
movabs rax, 0x4c9f939a2ca5e8f7
and rax, rdx
xor rax, rsi
movabs rsi, 0xfcdf97bf6ff5fcf7
and rsi, rbx
or rsi, rdi
xor rsi, rax
movabs rax, 0xf27e9c2bc8f03dc
xor rax, rsi
or rax, rdx
movabs rdi, 0xf0d8163d4370fc23
xor rdi, rdx
xor rdi, rsi
and rdi, rax
mov qword [r15 + 0x18], rdi
add rdi, qword [r15 + 0x20]
movabs rax, 0xc567ab3fe1714604
and rax, rcx
movabs rcx, 0x3a9854c01e8eb9fb
and rbx, rcx
or rbx, rax
xor rbx, rcx
and rbx, rdi
mov rdx, qword [r8 + rbx*8]
test rdx, rdx
jne 0x1401f4d1a
mov ecx, 0x40
call fcn.1400c4e10
mov rcx, qword [r15 + 8]
mov qword [rcx + rbx*8], rax
mov rax, qword [r15 + 8]
mov rdx, qword [rax + rbx*8]
mov rcx, r15
mov r8, r14
call fcn.1401f5520
add qword [r15 + 0x20], 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1401fbd50
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401fbd9a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401fbd9a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401fbd9a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401fbd9a
cmp dword [rcx + 0x84], 0xe
jbe 0x1401fbd9a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401fbd9c
xor al, al
add rsp, 0x28
ret
Function at 0x14020e180
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x158
mov rax, qword [0x1406c4a98]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [rcx + 0xae5], 0
mov rbx, rcx
jne 0x14020e1c4
cmp qword [rcx + 0x1e0], 0
je 0x14020e27d
mov r8, rdx
lea r9, [rsp + 0x180]
mov edx, 0x100
lea rcx, [rsp + 0x30]
call fcn.140220da0
mov rdx, qword [rbx + 0x1e0]
movsxd r8, eax
test rdx, rdx
je 0x14020e218
cmp byte [rbx + 0x1313], 0
jne 0x14020e218
lea rcx, [rsp + 0x30]
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14020e200
mov byte [rbx + 0x1313], 1
lea eax, [r8 + 1]
mov byte [rsp + r8 + 0x30], 0xa
movsxd rdi, eax
cmp rdi, 0x102
jae 0x14020e2cf
cmp byte [rbx + 0xae5], 0
mov byte [rsp + rdi + 0x30], 0
je 0x14020e27d
cmp qword [rbx + 0x270], 0
je 0x14020e297
mov dl, 1
mov rcx, rbx
call fcn.1401fd4d0
mov rax, qword [rbx + 0x1d8]
lea r8, [rsp + 0x30]
mov r9, rdi
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [rbx + 0x270]
xor edx, edx
mov rcx, rbx
call fcn.1401fd4d0
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1401f88b0
add rsp, 0x158
pop rdi
pop rbx
ret
mov r9, qword [rbx + 0x1d0]
lea rcx, [0x140267a68]
mov edx, 2
lea r8d, [rdx - 1]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov r9, qword [rbx + 0x1d0]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
jmp 0x14020e27d
call fcn.1401fc010
int3

Function at 0x14020e330
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x14020e372
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov qword [rbx], 0
cmp eax, 0x2733
mov edx, 0x51
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret