joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47d880
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x47d8db
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x47d8db
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x47d8f6
cmp eax, 0x42
jne 0x47d8db
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x47d9a6
cmp byte [r9 + r11], 0x5f
jne 0x47d9a6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x47da0e
mov rcx, rsi
xor edx, edx
call fcn.00478af0
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.00478af0
test al, al
jne 0x47daa8
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x47d932
lea rdx, [0x005c4b84]
mov r8d, 1
call fcn.0046f3f0
test al, al
jne 0x47daa8
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x47d8ea
xor r14d, r14d
lea rbx, [0x005c4b7e]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x47d964
cmp byte [rax + rcx], 0x45
je 0x47dad1
sub r14, 1
jb 0x47d989
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x47d989
mov r8d, 2
mov rdx, rbx
call fcn.0046f3f0
test al, al
jne 0x47daa8
mov rcx, rsi
call fcn.0047dae0
test al, al
jne 0x47daa8
mov rax, qword [rsi]
test rax, rax
jne 0x47d950
jmp 0x47d8ea
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x47da6f
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x47da02
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x47d9ec
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x47d9db
add dl, 0xa9
jmp 0x47d9ea
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x47da6f
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x47da6f
movzx edx, bl
add rax, rdx
jae 0x47d9b0
jmp 0x47da6f
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x47da6f
cmp rax, rcx
jae 0x47da6c
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x47dab0
cmp qword [rsi + 0x20], 0
je 0x47daca
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.0047d880
mov edi, eax
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
cmp al, 2
jne 0x47d8ea
jmp 0x47daa8
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x47dabf
lea rax, [0x005c4b49]
lea rdx, str.recursion_limit_reachedinvalid_syntax
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.0046f3f0
test al, al
je 0x47dabf
mov dil, 2
jmp 0x47d8ea
mov dil, 1
xor r8d, r8d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x47da7a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x47d8ea
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x47d8ea
Function at 0x48b130
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x48b160
test ecx, ecx
jne 0x48b1b0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x48b16c
test ecx, ecx
jne 0x48b1b0
mov rcx, rdi
call fcn.0048b010
movzx eax, al
test bpl, bpl
jne 0x48b1b7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x48b1a3.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x0048b328]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x48b1a3.2
xor eax, eax
test bpl, bpl
je 0x48b17c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x48b309
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x48b1ea
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x48b269
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x48b230
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x48b24b
inc rax
dec rdi
cmp rax, 1
jne 0x48b210
jmp 0x48b269
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x48b24b
cmp ebx, 0x5c
je 0x48b24b
inc rax
dec rdi
cmp rax, 1
jne 0x48b230
jmp 0x48b269
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x48b317
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x48b293
mov al, 9
cmp rdx, 2
je 0x48b297
cmp rdx, 1
jne 0x48b2a7
cmp byte [r8], 0x2e
jne 0x48b2a7
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x48b2a7
mov al, 0xa
jmp 0x48b2a7
cmp byte [r8], 0x2e
jne 0x48b2a7
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov qword [rsi + 8], r8
mov qword [rsi + 0x10], rdx
mov byte [rsi + 0x18], al
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x48b1a3.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x48b1a3.2
mov ecx, 2
jmp case.0x48b1a3.2
lea r8, [0x005c5460]
call fcn.00474de0
ud2
lea r8, [0x005c5478]
call fcn.00474de0
ud2
Function at 0x49e550
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x49e5ce
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x49e60f
cmp dword [rsp + 0x2c], 0
je 0x49e5f3
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x49e629
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x005d3140]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x005d3140], rsi
jne 0x49e5b0
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x49e605
call sub.kernel32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x49e67f
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x49e5f8
mov edi, dword [rsp + 0x28]
jmp 0x49e605
mov edi, dword [rsi + 0x18]
jmp 0x49e603
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.kernel32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.0049da40
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
mov qword [rsp + 0x30], 0
lea rax, [0x005c7100]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0
lea rdx, str.library_std_src_sys_windows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.00473a70
ud2
mov qword [rsp + 0x30], 0
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 1
lea rax, [0x005c7100]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.0049db10
ud2
Function at 0x4a63c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rcx
mov ecx, dword [0x004ca2f8]
test ecx, ecx
je 0x4a63f3
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x4a640c
mov rbx, rax
cmp qword [rax], 0
je 0x4a640c
add rbx, 8
jmp 0x4a6521
lea rcx, [0x004ca2e0]
call fcn.0049e550
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x4a63e1
mov ecx, dword [0x004ca2f8]
test ecx, ecx
je 0x4a6502
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x4a651f
mov rdi, rax
test rax, rax
jne 0x4a64ae
mov qword [rsp + 0x20], 0
lea rax, [0x004ca2e0]
mov qword [rsp + 0x38], rax
mov rcx, qword [0x005d3178]
test rcx, rcx
jne 0x4a646c
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x4a653f
mov rcx, rax
mov qword [0x005d3178], rax
mov r8d, 0x20
xor edx, edx
call fcn.004a8ef4
test rax, rax
je 0x4a653f
mov rdi, rax
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
mov ecx, dword [0x004ca2f8]
test ecx, ecx
je 0x4a652c
dec ecx
mov rdx, rdi
call fcn.004a8fac
test rsi, rsi
je 0x4a64cf
mov rax, qword [rsi]
mov qword [rsi], 0
mov rdx, rax
test rax, rax
je 0x4a64d3
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
jmp 0x4a64d3
xor eax, eax
xor edx, edx
lea rbx, [rdi + 8]
cmp qword [rdi], 0
mov rcx, qword [rdi + 0x10]
mov qword [rdi], 1
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rdx
je 0x4a6521
test rcx, rcx
je 0x4a6521
lock dec qword [rcx]
jne 0x4a6521
call fcn.004a2440
jmp 0x4a6521
lea rcx, [0x004ca2e0]
call fcn.0049e550
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x4a642b
xor ebx, ebx
mov rax, rbx
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x004ca2e0]
call fcn.0049e550
mov ecx, eax
jmp 0x4a64a6
mov ecx, 0x20
mov edx, 8
call fcn.0044f920
ud2
Function at 0x4a6650
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x4a6680
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x4a6695
cmp byte [rax + 8], 0
je 0x4a6695
add rax, 9
jmp 0x4a6748
mov rcx, rdi
call fcn.0049e550
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x4a6671
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x4a672d
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x4a6746
mov rbx, rax
test rax, rax
jne 0x4a670a
mov rcx, qword [0x005d3178]
test rcx, rcx
jne 0x4a66dd
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x4a675c
mov rcx, rax
mov qword [0x005d3178], rax
mov r8d, 0x10
xor edx, edx
call fcn.004a8ef4
test rax, rax
je 0x4a675c
mov rbx, rax
mov qword [rax], rdi
mov byte [rax + 8], 0
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x4a6750
dec ecx
mov rdx, rbx
call fcn.004a8fac
xor ecx, ecx
test rsi, rsi
je 0x4a6720
cmp byte [rsi], 0
mov byte [rsi], 0
movzx eax, byte [rsi + 1]
cmove eax, ecx
mov ecx, eax
lea rax, [rbx + 9]
mov byte [rbx + 8], 1
mov byte [rbx + 9], cl
jmp 0x4a6748
mov rcx, rdi
call fcn.0049e550
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x4a66b1
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov rcx, rdi
call fcn.0049e550
mov ecx, eax
jmp 0x4a6702
mov ecx, 0x10
mov edx, 8
call fcn.0044f920
ud2

Function at 0x4a6770
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x004ca2b0]
test ecx, ecx
je 0x4a679c
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x4a67b5
cmp qword [rax], 0
je 0x4a67b5
add rax, 8
add rsp, 0x20
pop rsi
ret
lea rcx, [0x004ca298]
call fcn.0049e550
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x4a678c
mov ecx, dword [0x004ca2b0]
test ecx, ecx
je 0x4a6854
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x4a6871
mov rsi, rax
test rax, rax
jne 0x4a683b
mov rcx, qword [0x005d3178]
test rcx, rcx
jne 0x4a6800
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x4a6889
mov rcx, rax
mov qword [0x005d3178], rax
mov r8d, 0x18
xor edx, edx
call fcn.004a8ef4
test rax, rax
je 0x4a6889
mov rsi, rax
mov qword [rax], 0
lea rax, [0x004ca298]
mov qword [rsi + 0x10], rax
mov ecx, dword [0x004ca2b0]
test ecx, ecx
je 0x4a6879
dec ecx
mov rdx, rsi
call fcn.004a8fac
lea rax, [rsi + 8]
mov qword [rsi], 1
mov qword [rsi + 8], 0
add rsp, 0x20
pop rsi
ret
lea rcx, [0x004ca298]
call fcn.0049e550
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x4a67d4
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x004ca298]
call fcn.0049e550
mov ecx, eax
jmp 0x4a6833
mov ecx, 0x18
mov edx, 8
call fcn.0044f920
ud2
Function at 0x4a6f1c
Capabilities:
Encode data using xor

Disassembly:
mov r8, rcx
sub r8, rdx
cmp r8, 0x20
jae 0x4a6f3d
cmp rcx, rdx
je 0x4a6f48
cmp r8, 4
jae 0x4a6f4b
xor eax, eax
mov rcx, rdx
jmp 0x4a6fd8
mov rcx, rdx
mov rdx, r8
jmp fcn.00472ba0
xor eax, eax
ret
mov rcx, r8
and rcx, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x004cb380]
movdqa xmm3, xmmword [0x004cb390]
pxor xmm1, xmm1
movzx r9d, word [rdx + rax]
movd xmm4, r9d
movzx r9d, word [rdx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp rcx, rax
jne 0x4a6f6c
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp rcx, r8
je 0x4a6ff4
add rcx, rdx
add rdx, r8
xor r8d, r8d
cmp byte [rcx], 0xc0
lea r9, [rcx + 1]
setge r8b
add rax, r8
mov rcx, r9
cmp r9, rdx
jne 0x4a6fdb
ret
Function at 0x4a9a30
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.004aa750
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.004aa750
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x4a9aa0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x005d3244]
mov r12, rcx
test ebx, ebx
jle 0x4a9bd0
mov rax, qword [0x005d3248]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x4a9aec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x4a9b73
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x4a9ad0
mov rcx, r12
call fcn.004aa450
mov rsi, rax
test rax, rax
je 0x4a9bf2
mov rax, qword [0x005d3248]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.004aa580
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x005d3248]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4a9bd7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x4a9b6c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x4a9b80
add dword [0x005d3244], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x005d3248]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4a9b6c
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004a9a30
nop dword [rax]
xor ebx, ebx
jmp 0x4a9af7
mov rax, qword [0x005d3248]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.004a9a30
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.004a9a30
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x4aa0c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x005d32a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x005d3280]
test rbx, rbx
je 0x4aa114
mov rdi, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rsi, qword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x4aa10b
test r12, r12
je 0x4aa10b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4aa0f0
lea rcx, [0x005d32a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4aa450
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x005c7fc0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x4aa470
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x4aa478
ret
cmp word [r8 + 0x18], 0x20b
jne 0x4aa470
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x4aa4c5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x4aa4bc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4aa470
add rax, 0x28
cmp rax, r9
jne 0x4aa4a8
xor eax, eax
ret

Function at 0x4aa4d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x005c7fc0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x4aa4f0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4aa4f8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x4aa4f0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x4aa580
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x005c7fc0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x4aa5a0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x4aa5a8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x141bfa058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141bfa1df
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 0x141bfa089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141bfa06f
add dl, dl
jne 0x141bfa096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141bfa0f6
xor eax, eax
add dl, dl
jne 0x141bfa0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141bfa1ad
add dl, dl
jne 0x141bfa0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141bfa0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141bfa0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141bfa0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141bfa0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141bfa07e
mov eax, 1
add dl, dl
jne 0x141bfa106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141bfa113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141bfa0fb
sub eax, ebx
mov ebx, 1
jne 0x141bfa14c
mov ecx, 1
add dl, dl
jne 0x141bfa12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141bfa13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141bfa123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141bfa07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141bfa168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141bfa175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141bfa15d
cmp eax, 0x7d00
jae 0x141bfa19b
cmp eax, 0x500
jb 0x141bfa196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141bfa07e
cmp eax, 0x7f
ja 0x141bfa19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141bfa07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141bfa1d2
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 0x141bfa07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x0044d520]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x0044d530]
mov dword [rax], 1
mov rax, qword [0x0044d540]
mov dword [rax], 1
mov rax, qword [0x0044d510]
mov dword [rax], 1
mov rax, qword [0x0044d400]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x0044d500]
mov dword [0x00450008], 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 [0x0044d4c0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x0044d3b0]
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 0x401550
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
call rax
test eax, eax
je 0x401573
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
nop
add rsp, 0x20
pop rbp
ret

Function at 0x40157a
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], rcx
mov byte [rbp + 0xdf], 0
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0xd0], rax
cmp qword [rbp + 0xd0], 0xffffffffffffffff
jne 0x4015c2
mov eax, 0
jmp 0x40164f
mov dword [rbp - 0x60], 0x130
lea rax, [rbp - 0x60]
mov rcx, qword [rbp + 0xd0]
mov rdx, rax
call sym.Process32First
test eax, eax
jne 0x4015fa
mov rax, qword [rbp + 0xd0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x40164f
lea rax, [rbp - 0x60]
add rax, 0x2c
mov rdx, qword [rbp + 0xf0]
mov rcx, rax
call sym.strcmp
test eax, eax
jne 0x40161e
mov byte [rbp + 0xdf], 1
jmp 0x401635
lea rax, [rbp - 0x60]
mov rcx, qword [rbp + 0xd0]
mov rdx, rax
call sym.Process32Next
test eax, eax
jne 0x4015fa
mov rax, qword [rbp + 0xd0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
movzx eax, byte [rbp + 0xdf]
add rsp, 0x160
pop rbp
ret