joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10000b624
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x80
xor esi, esi
mov rdi, rcx
lea rcx, [rsp + 0x50]
lea r8d, [rsi + 0x28]
xor edx, edx
mov ebx, esi
call sub.msvcrt.dll_memset
lea rax, [0x1000059f0]
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x70], 0x400
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x800
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x68], rax
cmp rax, rsi
jne 0x10000b692
mov ebx, 0x8007000e
jmp 0x10000b739
lea rdx, [rsp + 0x50]
lea rcx, [0x10000b5b4]
mov word [rax], si
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [rsp + 0x58]
cmp rcx, rsi
jne 0x10000b6b8
mov ebx, 1
jmp 0x10000b71c
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov r11d, dword [rsp + 0x4c]
mov r9d, dword [rsp + 0x44]
mov eax, dword [rsp + 0x48]
mov r8d, dword [rsp + 0x40]
sub r11d, r9d
sub eax, r8d
mov dword [rsp + 0x30], 0x44
mov dword [rsp + 0x28], r11d
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x30], 0x13
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.USER32.dll_SetWindowPos]
cmp qword [rsp + 0x68], rsi
je 0x10000b739
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x68]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x80]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x10000c260
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x100012110]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbp, qword [rdx]
lea rax, [rsp + 0x34]
mov rdi, rcx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x30]
mov esi, 0x104
xor r8d, r8d
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x20], rax
xor ebx, ebx
mov dword [rsp + 0x34], esi
mov dword [rsp + 0x30], 1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x10000c327
cmp dword [rsp + 0x30], 2
mov byte [rsp + 0x143], bl
lea rcx, [rsp + 0x40]
jne 0x10000c2f0
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
cmp eax, 0x103
setbe bl
jmp 0x10000c327
mov edx, ebx
sub rcx, rdi
lea rax, [rsi + 0x7ffffefa]
cmp rax, rbx
je 0x10000c313
mov al, byte [rcx + rdi]
cmp al, bl
je 0x10000c313
mov byte [rdi], al
inc rdi
sub rsi, 1
jne 0x10000c2f5
cmp rsi, rbx
jne 0x10000c320
dec rdi
mov edx, 0x8007007a
cmp edx, ebx
mov byte [rdi], bl
setge bl
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.10000f610
mov rbx, qword [rsp + 0x190]
add rsp, 0x160
pop rdi
pop rsi
pop rbp
ret
Function at 0x10000d660
Capabilities:
Get geographical location
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x100012110]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
mov rsi, rdx
mov r13, rcx
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x30], 0x3a
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov rcx, rax
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r14d, r14d
mov r12, rax
cmp rax, r14
jne 0x10000d6cd
mov edi, 0x8007000e
jmp 0x10000d835
mov ebx, 8
mov ebp, 0x400
mov r8, rax
lea edx, [rbx + 0x16]
mov r9d, ebx
mov ecx, ebp
mov word [rax], r14w
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov r8d, 0x8007007a
cmp eax, 1
jle 0x10000d746
lea rax, [rsp + 0x30]
mov rdx, r12
lea rcx, [rsp + 0x30]
sub rdx, rax
mov edi, r14d
lea rax, [rbx + 0x7ffffff6]
cmp rax, r14
je 0x10000d72d
movzx eax, word [rdx + rcx]
cmp ax, r14w
je 0x10000d72d
mov word [rcx], ax
add rcx, 2
sub rbx, 1
jne 0x10000d70a
cmp rbx, r14
jne 0x10000d739
sub rcx, 2
mov edi, r8d
cmp edi, r14d
mov word [rcx], r14w
jl 0x10000d821
mov rcx, r12
mov edi, r14d
sub r13, r12
lea rax, [rbp + 0x7ffffbfe]
cmp rax, r14
je 0x10000d774
movzx eax, word [r13 + rcx]
cmp ax, r14w
je 0x10000d774
mov word [rcx], ax
add rcx, 2
sub rbp, 1
jne 0x10000d74f
cmp rbp, r14
jne 0x10000d780
sub rcx, 2
mov edi, r8d
cmp edi, r14d
mov word [rcx], r14w
jl 0x10000d821
lea rdx, [rsp + 0x30]
mov rcx, r12
call qword [sym.imp.msvcrt.dll_wcstok]
mov ebx, r14d
cmp rax, r14
je 0x10000d7cd
mov ecx, ebx
lea rdx, [rsp + rcx*4 + 0x20]
mov rcx, rax
call fcn.10000d5c8
inc ebx
cmp eax, r14d
mov edi, eax
jl 0x10000d821
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.msvcrt.dll_wcstok]
cmp ebx, 3
jb 0x10000d79e
sub ebx, 1
je 0x10000d815
sub ebx, 1
je 0x10000d802
cmp ebx, 1
je 0x10000d7e3
mov edi, 0x80070057
jmp 0x10000d821
movzx eax, word [rsp + 0x20]
mov word [rsi + 0x88], ax
movzx eax, word [rsp + 0x24]
mov word [rsi + 0x8a], ax
movzx eax, word [rsp + 0x28]
jmp 0x10000d81a
movzx eax, word [rsp + 0x20]
mov word [rsi + 0x8a], ax
movzx eax, word [rsp + 0x24]
jmp 0x10000d81a
movzx eax, word [rsp + 0x20]
mov word [rsi + 0x8c], ax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r12
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.10000f610
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x10000e4e8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
je 0x10000e5ae
test rdx, rdx
je 0x10000e5ae
xor r9d, r9d
lea rdx, [0x100005e58]
lea esi, [r9 + 1]
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
jne 0x10000e52f
xor ebx, ebx
jmp 0x10000e53e
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
lea rdx, [0x100005e58]
xor r9d, r9d
mov r8, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x10000e565
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rbx, rbx
je 0x10000e5a3
test rax, rax
je 0x10000e5a3
mov ecx, 0xfecdfecd
cmp dword [rbx], ecx
jne 0x10000e59d
cmp dword [rax], ecx
jne 0x10000e59d
mov rdx, qword [rbx + 0x1c]
cmp rdx, qword [rax + 0x1c]
jne 0x10000e594
mov rdx, qword [rbx + 0x24]
cmp rdx, qword [rax + 0x24]
jne 0x10000e594
xor eax, eax
jmp 0x10000e599
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10000e59f
xor esi, esi
mov eax, esi
jmp 0x10000e5b0
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x10000e694
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x100012110]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov eax, dword [0x100012bd0]
test eax, eax
jne 0x10000e799
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x11c
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x10000e6f7
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [rsp + 0x30]
mov edx, dword [rsp + 0x24]
xor eax, eax
lea r8d, [rax + 1]
mov dword [0x100012bd0], eax
sub ecx, r8d
je 0x10000e779
cmp ecx, r8d
jne 0x10000e799
cmp edx, 5
jne 0x10000e767
mov ecx, dword [rsp + 0x28]
test ecx, ecx
je 0x10000e760
sub ecx, r8d
je 0x10000e74b
cmp ecx, r8d
je 0x10000e735
lea eax, [rdx + 0xf]
jmp 0x10000e793
cmp word [rsp + 0x134], r8w
mov ecx, 0x10
cmovae eax, ecx
or eax, 4
jmp 0x10000e793
mov edx, 8
lea ecx, [rdx - 6]
cmp word [rsp + 0x134], cx
cmovae eax, edx
jmp 0x10000e746
mov eax, 4
jmp 0x10000e793
cmp edx, 4
ja 0x10000e7b1
mov ecx, 2
mov eax, ecx
mov dword [0x100012bd0], ecx
cmp edx, 4
jne 0x10000e799
mov ecx, dword [rsp + 0x28]
test ecx, ecx
je 0x10000e790
cmp ecx, 0xa
je 0x10000e790
cmp ecx, 0x5a
jne 0x10000e799
mov eax, r8d
mov dword [0x100012bd0], eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.10000f610
add rsp, 0x158
ret
mov eax, 0x20
jmp 0x10000e793
Function at 0x10000f2d0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x100012c38], rdi
je 0x10000f330
cmp rax, rdi
jne 0x10000f323
mov r12d, 1
jmp 0x10000f330
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10000f309
mov eax, dword [0x100012c30]
cmp eax, 1
jne 0x10000f345
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x10000f3ac
mov eax, dword [0x100012c30]
cmp eax, ebx
jne 0x10000f3a2
mov dword [0x100012c30], 1
lea r13, [0x100001688]
lea rdi, [0x100001670]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x10000f394
cmp eax, ebx
jne 0x10000f394
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x10000f389
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x10000f372
cmp eax, ebx
je 0x10000f3ac
mov eax, 0xff
jmp 0x10000f4f4
mov dword [0x1000125a4], 1
mov eax, dword [0x100012c30]
cmp eax, 1
jne 0x10000f3d4
lea rdx, [0x100001668]
lea rcx, [0x100001618]
call sub.msvcrt.dll__initterm
mov dword [0x100012c30], 2
cmp r12d, ebx
jne 0x10000f3e3
mov rax, rbx
xchg qword [0x100012c38], rax
cmp qword [0x100012c40], rbx
je 0x10000f40b
lea rcx, [0x100012c40]
call fcn.10000f75c
cmp eax, ebx
je 0x10000f40b
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100012c40]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x10000f421
mov eax, 0xff
jmp 0x10000f4f4
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x10000f4a6
cmp word [rcx], bx
je 0x10000f43c
cmp edx, ebx
jne 0x10000f4a6
cmp word [rcx], bx
je 0x10000f452
cmp word [rcx], 0x20
ja 0x10000f452
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000f43c
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.100008258
mov dword [0x1000125a0], eax
cmp dword [0x100012584], ebx
jne 0x10000f490
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1000125a4], ebx
jne 0x10000f4a4
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1000125a0]
jmp 0x10000f4f4
cmp word [rcx], 0x22
jne 0x10000f4b9
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000f42d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.10000f870
add rsp, 0x28
jmp 0x10000f2d0
Function at 0x10000f610
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x100012110]
jne 0x10000f62b
rol rcx, 0x10
test cx, 0xffff
jne 0x10000f627
ret 0
ror rcx, 0x10
jmp 0x10000f92c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x100012660]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x100012758]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x10000f9b1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x100012660]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.ntdll.dll_RtlVirtualUnwind
jmp 0x10000f9d3
mov rax, qword [rsp + 0x88]
mov qword [0x100012758], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1000126f8], rax
mov rax, qword [0x100012758]
mov qword [0x1000125d0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1000126e0], rax
mov dword [0x1000125c0], 0xc0000409
mov dword [0x1000125c4], 1
mov rax, qword [0x100012110]
mov qword [rsp + 0x68], rax
mov rax, qword [0x100012118]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1000016b0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x10000f7c8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x10000f815
cmp rcx, 0xffffffffffffffff
je 0x10000f815
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10000f80d
cmp dword [rcx + 0x3c], edx
jl 0x10000f80d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10000f80d
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x10000f815
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14039cd8b
Capabilities:
Encode data using xor

Disassembly:
mov r12, qword [rsp + 0x10]
add qword [rsp + 8], 0xffffffffbfc702fa
push qword [rsp]
popfq
lea rsp, [rsp + 0x28]
call fcn.1404e864b
pushfq
test r12, r12
movsx r12w, r12w
jns 0x14038fcc0
cmp dword [rax - 0x74e63704], 0xdfe1fcd7
xchg esi, eax
invalid

Function at 0x14046afb7
Capabilities:
Execute anti-debugging instructions

Disassembly:
push rbp
cmovl rbp, rcx
movsxd rbp, ebp
xchg bpl, bpl
push rcx
movzx ebp, r9w
push rax
cbw
cdqe
push rsi
movsxd rsi, ecx
movsx rax, cx
cdqe
push rdx
cdq
cdqe
push r12
movsx bp, r14b
push r9
movzx r9w, cl
movsx si, sil
push r11
cqo
movsx r9, dx
rdtsc
push rdi
movsx rax, si
mov edx, 0x52de267b
cwd
push r14
cqo
movzx eax, r13w
push r10
movzx edx, sp
push r13
push r8
mov bp, 0x54e9
push r15
pushfq
cmp r14w, 0x6563
shrd rbp, rcx, 0x53
add r10b, bpl
push rbx
or r9b, 0x9a
rol r9w, 0x2d
sar ebp, cl
movabs r8, 0
adc r9d, 0x300d35bb
shr rbx, cl
test r11, 0x24f4fd7
push r8
test dx, dx
rol r10d, cl
bsr r9w, sp
mov rsi, qword [rsp + 0x90]
sar bp, cl
sal eax, 0xb6
xor esi, 0x14e65713
rcr rdx, cl
neg esi
movsx r9, dx
cmp cx, 0x1718
sub esi, 0x60d14436
xor r9b, 0x6d
xor r10b, dil
rdtsc
bswap esi
rol r9d, cl
not bx
not esi
stc
and r9w, r12w
cmovnp r10w, cx
add rsi, r8
jmp 0x1404c6f96
movabs rdx, 0x100000000
btc rax, r14
cwde
bt bp, 0x37
add rsi, rdx
movzx bp, spl
neg r10w
mov rbp, rsp
xor r9w, 0x5edd
xchg r10w, r10w
sub rsp, 0x180
rol r10d, 0xab
sar bh, 0x50
and rsp, 0xfffffffffffffff0
mov r9w, r13w
btc rax, r11
Function at 0x1409393f2
Capabilities:
Execute anti-debugging instructions

Disassembly:
add r9, rax
jmp 0x1409d3e69
push rbp
cmovl rbp, rcx
movsxd rbp, ebp
xchg bpl, bpl
push rcx
movzx ebp, r9w
push rax
cbw
cdqe
push rsi
movsxd rsi, ecx
movsx rax, cx
cdqe
push rdx
cdq
cdqe
push r12
movsx bp, r14b
push r9
movzx r9w, cl
movsx si, sil
push r11
cqo
movsx r9, dx
rdtsc
push rdi
movsx rax, si
mov edx, 0x52de267b
cwd
push r14
cqo
movzx eax, r13w
push r10
movzx edx, sp
push r13
push r8
mov bp, 0x54e9
push r15
pushfq
cmp r14w, 0x6563
shrd rbp, rcx, 0x53
add r10b, bpl
push rbx
or r9b, 0x9a
rol r9w, 0x2d
sar ebp, cl
movabs r8, 0
adc r9d, 0x300d35bb
shr rbx, cl
test r11, 0x24f4fd7
push r8
test dx, dx
rol r10d, cl
bsr r9w, sp
mov rsi, qword [rsp + 0x90]
sar bp, cl
sal eax, 0xb6
xor esi, 0x14e65713
rcr rdx, cl
neg esi
movsx r9, dx
cmp cx, 0x1718
sub esi, 0x60d14436
xor r9b, 0x6d
xor r10b, dil
rdtsc
bswap esi
rol r9d, cl
not bx
not esi
stc
and r9w, r12w
cmovnp r10w, cx
add rsi, r8
jmp 0x1409f0dbd
push r9
ret
movabs rdx, 0x100000000
btc rax, r14
cwde
bt bp, 0x37
add rsi, rdx
movzx bp, spl
neg r10w
mov rbp, rsp
xor r9w, 0x5edd
xchg r10w, r10w
sub rsp, 0x180
rol r10d, 0xab
sar bh, 0x50
and rsp, 0xfffffffffffffff0
mov r9w, r13w
btc rax, r11
mov r10, rsi
and r9b, 0x94
xor rbx, 0x5a48347f
movabs rbx, 0
sar r9b, 0xcb
movzx r9w, r15b
bts r9w, r14w
sub r10, rbx
and r9w, si
bts r9, r10
lea r9, [0x1409f0e38]
mov ax, 0xb84
sub rsi, 4
stc
mov eax, dword [rsi]
xor eax, r10d
xor eax, 0x1d32123f
rol eax, 1
jmp 0x140a21cae
not eax
add eax, 0x562662b3
stc
push r10
xor dword [rsp], eax
xadd r10, r10
shrd r10w, r11w, 1
pop r10
cmp sil, dl
movsxd rax, eax
cmp r12w, 0x65a1
jmp 0x14091ceb8
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004115b0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x004115c0]
mov dword [rax], 1
mov rax, qword [0x004115d0]
mov dword [rax], 1
mov rax, qword [0x004115a0]
mov dword [rax], 1
mov rax, qword [0x00411460]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x00411590]
mov dword [0x00414008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x00411550]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x00411410]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x401cfa
Capabilities:
Hash data with crc32

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x40], 0
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x64], 0
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x28], 0
mov rcx, qword [rbp + 0x10]
call dbg.MatchFinder_SetDefaultSettings
mov dword [rbp - 4], 0
jmp 0x401d83
mov eax, dword [rbp - 4]
mov dword [rbp - 8], eax
mov dword [rbp - 0xc], 0
jmp 0x401d67
mov eax, dword [rbp - 8]
shr eax, 1
mov edx, eax
mov eax, dword [rbp - 8]
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, edx
mov dword [rbp - 8], eax
add dword [rbp - 0xc], 1
cmp dword [rbp - 0xc], 7
jle 0x401d4a
mov rax, qword [rbp + 0x10]
mov edx, dword [rbp - 4]
lea rcx, [rdx + 0x20]
mov edx, dword [rbp - 8]
mov dword [rax + rcx*4 + 0xc], edx
add dword [rbp - 4], 1
cmp dword [rbp - 4], 0xff
jbe 0x401d3b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x403b9f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x80]
mov qword [rbp], rcx
mov dword [rbp + 8], edx
mov rax, qword [rbp]
mov eax, dword [rax + 0x14]
mov dword [rbp - 0x24], eax
cmp dword [rbp - 0x24], 2
ja 0x403bd2
mov rcx, qword [rbp]
call dbg.MatchFinder_MovePos
jmp 0x403cfa
mov rax, qword [rbp]
mov rax, qword [rax]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x30]
add rax, 2
movzx eax, byte [rax]
movzx edx, al
mov rax, qword [rbp - 0x30]
movzx eax, byte [rax]
movzx eax, al
shl eax, 8
mov ecx, edx
or ecx, eax
mov rax, qword [rbp - 0x30]
add rax, 1
movzx eax, byte [rax]
movzx edx, al
mov rax, qword [rbp]
movsxd rdx, edx
add rdx, 0x20
mov eax, dword [rax + rdx*4 + 0xc]
xor eax, ecx
and eax, 0xffff
mov dword [rbp - 0x34], eax
mov rax, qword [rbp]
mov rax, qword [rax + 0x28]
mov edx, dword [rbp - 0x34]
shl rdx, 2
add rax, rdx
mov eax, dword [rax]
mov dword [rbp - 0x38], eax
mov rax, qword [rbp]
mov rax, qword [rax + 0x28]
mov edx, dword [rbp - 0x34]
shl rdx, 2
add rdx, rax
mov rax, qword [rbp]
mov eax, dword [rax + 8]
mov dword [rdx], eax
mov rax, qword [rbp]
mov r10d, dword [rax + 0x3c]
mov rax, qword [rbp]
mov r9d, dword [rax + 0x1c]
mov rax, qword [rbp]
mov r8d, dword [rax + 0x18]
mov rax, qword [rbp]
mov rcx, qword [rax + 0x30]
mov rax, qword [rbp]
mov rbx, qword [rax]
mov rax, qword [rbp]
mov r11d, dword [rax + 8]
mov edx, dword [rbp - 0x38]
mov eax, dword [rbp - 0x24]
mov dword [rsp + 0x38], r10d
mov dword [rsp + 0x30], r9d
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], rcx
mov r9, rbx
mov r8d, r11d
mov ecx, eax
call dbg.SkipMatchesSpec
mov rax, qword [rbp]
mov eax, dword [rax + 0x18]
lea edx, [rax + 1]
mov rax, qword [rbp]
mov dword [rax + 0x18], edx
mov rax, qword [rbp]
mov rax, qword [rax]
lea rdx, [rax + 1]
mov rax, qword [rbp]
mov qword [rax], rdx
mov rax, qword [rbp]
mov eax, dword [rax + 8]
lea edx, [rax + 1]
mov rax, qword [rbp]
mov dword [rax + 8], edx
mov rax, qword [rbp]
mov edx, dword [rax + 8]
mov rax, qword [rbp]
mov eax, dword [rax + 0xc]
cmp edx, eax
jne 0x403cfa
mov rcx, qword [rbp]
call dbg.MatchFinder_CheckLimits
sub dword [rbp + 8], 1
cmp dword [rbp + 8], 0
jne 0x403bb4
nop
add rsp, 0x68
pop rbx
pop rbp
ret
Function at 0x40428b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x14]
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 2
ja 0x4042b8
mov rcx, qword [rbp + 0x10]
call dbg.MatchFinder_MovePos
jmp 0x4043a7
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
add rax, 2
movzx eax, byte [rax]
movzx edx, al
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax]
movzx eax, al
shl eax, 8
mov ecx, edx
or ecx, eax
mov rax, qword [rbp - 0x10]
add rax, 1
movzx eax, byte [rax]
movzx edx, al
mov rax, qword [rbp + 0x10]
movsxd rdx, edx
add rdx, 0x20
mov eax, dword [rax + rdx*4 + 0xc]
xor eax, ecx
and eax, 0xffff
mov dword [rbp - 0x14], eax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x28]
mov edx, dword [rbp - 0x14]
shl rdx, 2
add rax, rdx
mov eax, dword [rax]
mov dword [rbp - 0x18], eax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x28]
mov edx, dword [rbp - 0x14]
shl rdx, 2
add rdx, rax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 8]
mov dword [rdx], eax
mov rax, qword [rbp + 0x10]
mov rdx, qword [rax + 0x30]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x18]
mov eax, eax
shl rax, 2
add rdx, rax
mov eax, dword [rbp - 0x18]
mov dword [rdx], eax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x18]
lea edx, [rax + 1]
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x18], edx
mov rax, qword [rbp + 0x10]
mov rax, qword [rax]
lea rdx, [rax + 1]
mov rax, qword [rbp + 0x10]
mov qword [rax], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 8]
lea edx, [rax + 1]
mov rax, qword [rbp + 0x10]
mov dword [rax + 8], edx
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 8]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0xc]
cmp edx, eax
jne 0x4043a7
mov rcx, qword [rbp + 0x10]
call dbg.MatchFinder_CheckLimits
sub dword [rbp + 0x18], 1
cmp dword [rbp + 0x18], 0
jne 0x40429a
nop
add rsp, 0x40
pop rbp
ret

Function at 0x408503
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov dword [rbp + 0x28], r9d
mov dword [rbp - 4], 0x100
or dword [rbp + 0x20], 0x100
shl dword [rbp + 0x28], 1
mov eax, dword [rbp + 0x20]
shr eax, 7
and eax, 1
mov ecx, eax
mov eax, dword [rbp + 0x28]
and eax, dword [rbp - 4]
mov edx, eax
mov eax, dword [rbp - 4]
add edx, eax
mov eax, dword [rbp + 0x20]
shr eax, 8
add eax, edx
mov eax, eax
lea rdx, [rax + rax]
mov rax, qword [rbp + 0x18]
add rax, rdx
mov r8d, ecx
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call dbg.RangeEnc_EncodeBit
shl dword [rbp + 0x20], 1
mov eax, dword [rbp + 0x28]
xor eax, dword [rbp + 0x20]
not eax
and dword [rbp - 4], eax
cmp dword [rbp + 0x20], 0xffff
jbe 0x408529
nop
add rsp, 0x30
pop rbp
ret