joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4383f0
Capabilities:
Access peb ldr_data

Disassembly:
sub rsp, 0x70
mov rbx, qword gs:[0x28]
mov rax, qword [rbx]
mov rcx, qword [rax + 0x30]
mov ebp, dword [rcx + 0xd0]
inc ebp
mov dword [rcx + 0xd0], ebp
mov rbp, 1
mov byte [rax + 0xed], bpl
mov rbp, 0xfffffffffffffade
mov qword [rax + 0x10], rbp
mov rbx, qword [rax + 0x30]
mov rbp, qword [rbx + 0xa0]
mov rbx, qword [rax + 0x30]
cmp rbx, 0
je 0x438659
mov ebp, dword [rbp + 0x1c]
mov dword [rbx + 0x314], ebp
mov rbp, 1
mov byte [rax + 0xef], bpl
mov qword [rsp + 0x28], rax
mov rbx, qword [rax + 0x30]
mov rax, qword [rbx + 0xa0]
mov ebp, dword [rax + 0x1c]
inc ebp
mov dword [rax + 0x1c], ebp
lea rbx, [rsp + 0x78]
mov qword [rsp], rbx
call fcn.0045b180
mov rbx, qword [rsp + 8]
mov qword [rsp + 0x18], rbx
lea rbx, [rsp + 0x78]
mov qword [rsp], rbx
call fcn.0045b1b0
mov rax, qword [rsp + 0x28]
mov rdi, qword [rsp + 8]
mov rsi, qword [rsp + 0x18]
mov qword [rsp + 0x10], rdi
mov rbx, qword gs:[0x28]
mov rcx, qword [rbx]
mov qword [rcx + 0x48], rsi
mov qword [rcx + 0x40], rdi
mov qword [rcx + 0x68], 0
mov qword [rcx + 0x60], 0
xor ebp, ebp
mov qword [rcx + 0x58], rbp
mov qword [rcx + 0x50], rcx
cmp rax, 0
je 0x438652
mov rbp, qword [rax + 0x40]
mov qword [rax + 0x78], rbp
mov rbp, qword [rax + 0x48]
mov qword [rax + 0x80], rbp
mov rbx, qword [rax + 0x78]
mov rbp, qword [rax]
cmp rbx, rbp
jb 0x438618
mov rbx, qword [rax + 8]
mov rbp, qword [rax + 0x78]
cmp rbx, rbp
jb 0x438618
mov qword [rsp], rax
mov dword [rsp + 8], 2
mov dword [rsp + 0xc], 3
call fcn.00433d80
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rcx + 0x78]
mov rbp, qword [rcx]
cmp rbx, rbp
jb 0x4385ee
mov rbx, qword [rcx + 8]
mov rbp, qword [rcx + 0x78]
cmp rbx, rbp
jb 0x4385ee
lea rbx, [0x00581398]
mov qword [rsp], rbx
call fcn.004593c0
lea rbx, [rsp + 0x78]
mov qword [rsp], rbx
call fcn.0045b180
mov rbx, qword [rsp + 8]
mov qword [rsp + 0x20], rbx
lea rbx, [rsp + 0x78]
mov qword [rsp], rbx
call fcn.0045b1b0
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x20]
mov rbx, qword gs:[0x28]
mov rax, qword [rbx]
mov qword [rax + 0x48], rdx
mov qword [rax + 0x40], rcx
mov qword [rax + 0x68], 0
mov qword [rax + 0x60], 0
xor ebp, ebp
mov qword [rax + 0x58], rbp
mov qword [rax + 0x50], rax
mov rbx, qword [rsp + 0x28]
mov rax, qword [rbx + 0x30]
mov ebp, dword [rax + 0xd0]
dec ebp
mov dword [rax + 0xd0], ebp
add rsp, 0x70
ret
lea rbx, [rsp + 0x30]
lea rbp, [0x004513a0]
mov qword [rbx], rbp
mov rbp, qword [rsp + 0x10]
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], rcx
mov qword [rsp], rbx
call fcn.004593c0
jmp 0x438560
mov rsi, qword [rax + 0x40]
mov rdx, qword [rax + 0x78]
lea rbx, [rsp + 0x48]
lea rbp, [0x00451240]
mov qword [rbx], rbp
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], rdx
mov qword [rbx + 0x20], rax
mov qword [rsp], rbx
call fcn.004593c0
mov rax, qword [rsp + 0x28]
jmp 0x438521
mov dword [rax], eax
jmp 0x4384ed
mov dword [rbx], eax
jmp 0x438448
Function at 0x4490e0
Capabilities:
Check for software breakpoints

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x4492bd
sub rsp, 0x40
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx + 8]
movzx ebx, byte [rax]
cmp bl, 0xe9
jne 0x44912d
mov rbx, qword [rcx + 8]
add rbx, 5
mov rbp, rax
inc rbp
movsxd rbp, dword [rbp]
add rbx, rbp
mov qword [rcx + 8], rbx
add rsp, 0x40
ret
movzx ebx, byte [rax]
cmp bl, 0xeb
jne 0x449154
mov rbx, qword [rcx + 8]
add rbx, 2
mov rbp, rax
inc rbp
movsx rbp, byte [rbp]
add rbx, rbp
mov qword [rcx + 8], rbx
add rsp, 0x40
ret
movzx ebx, byte [rax]
cmp bl, 0xcc
jne 0x449161
add rsp, 0x40
ret
movzx ebp, byte [rax]
mov qword [rsp + 0x30], rbp
movzx ebp, byte [rax + 1]
mov qword [rsp + 0x28], rbp
movzx ebp, byte [rax + 2]
mov qword [rsp + 0x20], rbp
movzx ebp, byte [rax + 3]
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x38], rax
movzx ebp, byte [rax + 4]
mov qword [rsp + 0x10], rbp
call fcn.00430c00
lea rbx, [0x0054f4f0]
mov qword [rsp], rbx
mov qword [rsp + 8], 0xc
call fcn.00431670
mov rbx, qword [rsp + 0x38]
mov qword [rsp], rbx
call fcn.00431630
lea rbx, [0x00547150]
mov qword [rsp], rbx
mov qword [rsp + 8], 1
call fcn.00431670
mov rbx, qword [rsp + 0x30]
mov qword [rsp], rbx
call fcn.004314e0
lea rbx, [0x00547150]
mov qword [rsp], rbx
mov qword [rsp + 8], 1
call fcn.00431670
mov rbx, qword [rsp + 0x28]
mov qword [rsp], rbx
call fcn.004314e0
lea rbx, [0x00547150]
mov qword [rsp], rbx
mov qword [rsp + 8], 1
call fcn.00431670
mov rbx, qword [rsp + 0x20]
mov qword [rsp], rbx
call fcn.004314e0
lea rbx, [0x00547150]
mov qword [rsp], rbx
mov qword [rsp + 8], 1
call fcn.00431670
mov rbx, qword [rsp + 0x18]
mov qword [rsp], rbx
call fcn.004314e0
lea rbx, [0x00547150]
mov qword [rsp], rbx
mov qword [rsp + 8], 1
call fcn.00431670
mov rbx, qword [rsp + 0x10]
mov qword [rsp], rbx
call fcn.004314e0
lea rbx, [0x00548468]
mov qword [rsp], rbx
mov qword [rsp + 8], 1
call fcn.00431670
call fcn.00430c90
lea rbx, [0x00570c60]
mov qword [rsp], rbx
mov qword [rsp + 8], 0x22
call fcn.004303c0
add rsp, 0x40
ret
call fcn.00459520
jmp fcn.004490e0
Function at 0x482fc0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov rdx, qword [rsp + 0x20]
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
add rbx, 0x10
pxor xmm4, xmm4
cmp ecx, 0xc
je 0x48312e
jb 0x4830bb
movups xmm2, xmmword [rax + 0x10]
movups xmmword [rbx], xmm2
add rbx, 0x10
aeskeygenassist xmm1, xmm2, 1
call fcn.00483250
aeskeygenassist xmm1, xmm0, 1
call fcn.00483260
aeskeygenassist xmm1, xmm2, 2
call fcn.00483250
aeskeygenassist xmm1, xmm0, 2
call fcn.00483260
aeskeygenassist xmm1, xmm2, 4
call fcn.00483250
aeskeygenassist xmm1, xmm0, 4
call fcn.00483260
aeskeygenassist xmm1, xmm2, 8
call fcn.00483250
aeskeygenassist xmm1, xmm0, 8
call fcn.00483260
aeskeygenassist xmm1, xmm2, 0x10
call fcn.00483250
aeskeygenassist xmm1, xmm0, 0x10
call fcn.00483260
aeskeygenassist xmm1, xmm2, 0x20
call fcn.00483250
aeskeygenassist xmm1, xmm0, 0x20
call fcn.00483260
aeskeygenassist xmm1, xmm2, 0x40
call fcn.00483250
sub rbx, 0x10
movups xmm1, xmmword [rbx]
movups xmmword [rdx], xmm1
dec rcx
movups xmm1, xmmword [rbx - 0x10]
aesimc xmm0, xmm1
movups xmmword [rdx + 0x10], xmm0
sub rbx, 0x10
add rdx, 0x10
dec rcx
jne 0x483098
movups xmm0, xmmword [rbx - 0x10]
movups xmmword [rdx + 0x10], xmm0
ret
aeskeygenassist xmm1, xmm0, 1
call fcn.00483190
aeskeygenassist xmm1, xmm0, 2
call fcn.00483190
aeskeygenassist xmm1, xmm0, 4
call fcn.00483190
aeskeygenassist xmm1, xmm0, 8
call fcn.00483190
aeskeygenassist xmm1, xmm0, 0x10
call fcn.00483190
aeskeygenassist xmm1, xmm0, 0x20
call fcn.00483190
aeskeygenassist xmm1, xmm0, 0x40
call fcn.00483190
aeskeygenassist xmm1, xmm0, 0x80
call fcn.00483190
aeskeygenassist xmm1, xmm0, 0x1b
call fcn.00483190
aeskeygenassist xmm1, xmm0, 0x36
call fcn.00483190
jmp 0x48308b
movq xmm2, qword [rax + 0x10]
aeskeygenassist xmm1, xmm2, 1
call fcn.004831c0
aeskeygenassist xmm1, xmm2, 2
call fcn.00483210
aeskeygenassist xmm1, xmm2, 4
call fcn.004831c0
aeskeygenassist xmm1, xmm2, 8
call fcn.00483210
aeskeygenassist xmm1, xmm2, 0x10
call fcn.004831c0
aeskeygenassist xmm1, xmm2, 0x20
call fcn.00483210
aeskeygenassist xmm1, xmm2, 0x40
call fcn.004831c0
aeskeygenassist xmm1, xmm2, 0x80
call fcn.00483210
jmp 0x48308b
Function at 0x48e420
Capabilities:
Hash data using sha384
Hash data using sha512

Disassembly:
mov rax, qword [rsp + 8]
mov rbp, qword [rax + 0xd0]
cmp rbp, 6
jne 0x48e4bc
movabs rbp, 0xcbbb9d5dc1059ed8
mov qword [rax], rbp
movabs rbp, 0x629a292a367cd507
mov qword [rax + 8], rbp
movabs rbp, 0x9159015a3070dd17
mov qword [rax + 0x10], rbp
movabs rbp, 0x152fecd8f70e5939
mov qword [rax + 0x18], rbp
movabs rbp, 0x67332667ffc00b31
mov qword [rax + 0x20], rbp
movabs rbp, 0x8eb44a8768581511
mov qword [rax + 0x28], rbp
movabs rbp, 0xdb0c2e0d64f98fa7
mov qword [rax + 0x30], rbp
movabs rbp, 0x47b5481dbefa4fa4
mov qword [rax + 0x38], rbp
mov qword [rax + 0xc0], 0
mov qword [rax + 0xc8], 0
ret
cmp rbp, 0xe
jne 0x48e536
movabs rbp, 0x8c3d37c819544da2
mov qword [rax], rbp
movabs rbp, 0x73e1996689dcd4d6
mov qword [rax + 8], rbp
movabs rbp, 0x1dfab7ae32ff9c82
mov qword [rax + 0x10], rbp
movabs rbp, 0x679dd514582f9fcf
mov qword [rax + 0x18], rbp
movabs rbp, 0xf6d2b697bd44da8
mov qword [rax + 0x20], rbp
movabs rbp, 0x77e36f7304c48942
mov qword [rax + 0x28], rbp
movabs rbp, 0x3f9d85a86a1d36c8
mov qword [rax + 0x30], rbp
movabs rbp, 0x1112e6ad91d692a1
mov qword [rax + 0x38], rbp
jmp 0x48e4a5
cmp rbp, 0xf
jne 0x48e5b0
movabs rbp, 0x22312194fc2bf72c
mov qword [rax], rbp
movabs rbp, 0x9f555fa3c84c64c2
mov qword [rax + 8], rbp
movabs rbp, 0x2393b86b6f53b151
mov qword [rax + 0x10], rbp
movabs rbp, 0x963877195940eabd
mov qword [rax + 0x18], rbp
movabs rbp, 0x96283ee2a88effe3
mov qword [rax + 0x20], rbp
movabs rbp, 0xbe5e1e2553863992
mov qword [rax + 0x28], rbp
movabs rbp, 0x2b0199fc2c85b8aa
mov qword [rax + 0x30], rbp
movabs rbp, 0xeb72ddc81c52ca2
mov qword [rax + 0x38], rbp
jmp 0x48e4a5
movabs rbp, 0x6a09e667f3bcc908
mov qword [rax], rbp
movabs rbp, 0xbb67ae8584caa73b
mov qword [rax + 8], rbp
movabs rbp, 0x3c6ef372fe94f82b
mov qword [rax + 0x10], rbp
movabs rbp, 0xa54ff53a5f1d36f1
mov qword [rax + 0x18], rbp
movabs rbp, 0x510e527fade682d1
mov qword [rax + 0x20], rbp
movabs rbp, 0x9b05688c2b3e6c1f
mov qword [rax + 0x28], rbp
movabs rbp, 0x1f83d9abfb41bd6b
mov qword [rax + 0x30], rbp
movabs rbp, 0x5be0cd19137e2179
mov qword [rax + 0x38], rbp
jmp 0x48e4a5
Function at 0x49dbb0
Capabilities:
Encode data using base64

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x49dce7
sub rsp, 0x28
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsi + 8]
mov rbp, 0xffffffffffffffd2
sub rbp, rbx
mov rbx, rbp
imul rbx, rbx, 0x1c
mov rbx, qword [rsi + 8]
mov rax, 0xffffffffffffffd2
sub rax, rbx
imul rax, rax, 0x1c
movabs r9, 0x2c0b02c0b02c0b03
mov rbp, rax
imul r9
mov rbx, rdx
sar rbx, 4
sar rbp, 0x3f
sub rbx, rbp
sub rbx, 0xfffffffffffffea4
mov rax, rbx
sar rbx, 0x3f
shr rbx, 0x3d
add rbx, rax
sar rbx, 3
mov rax, rbx
mov rbx, qword [rsi + 8]
lea r8, [0x005fac60]
mov r9, rax
cmp rax, 0x57
jae 0x49dce0
imul r9, r9, 0x18
add r8, r9
mov rbp, qword [r8 + 8]
add rbx, rbp
add rbx, 0x40
cmp rbx, 0xffffffffffffffc4
jge 0x49dc69
inc rax
jmp 0x49dc34
cmp rbx, 0xffffffffffffffe0
jle 0x49dc74
dec rax
jmp 0x49dc34
mov qword [rsp], rsi
lea rsi, [0x005fac60]
mov rbx, rax
mov qword [rsp + 0x20], rax
cmp rax, 0x57
jae 0x49dcd9
imul rbx, rbx, 0x18
add rsi, rbx
lea rdi, [rsp + 8]
mov rcx, qword [rsi]
mov qword [rdi], rcx
mov rcx, qword [rsi + 8]
mov qword [rdi + 8], rcx
mov rcx, qword [rsi + 0x10]
mov qword [rdi + 0x10], rcx
call fcn.0049d820
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
shl rbx, 3
add rbx, 0xfffffffffffffea4
neg rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rcx
add rsp, 0x28
ret
call fcn.0042e3e0
ud2
call fcn.0042e3e0
ud2
call fcn.00459520
jmp fcn.0049dbb0
Function at 0x5ea44a
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov rax, qword [rbp + 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp + 0x28]
mov rax, qword [rax]
mov rdx, rax
mov rax, qword [rbp + 0x28]
mov rax, qword [rax]
movzx eax, word [rax + 0x14]
movzx eax, ax
add rax, rdx
add rax, 0x18
mov qword [rbp - 0x10], rax
mov dword [rbp - 4], 0
jmp 0x5ea608
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x10]
test eax, eax
jne 0x5ea547
mov rax, qword [rbp + 0x20]
mov eax, dword [rax + 0x38]
mov dword [rbp - 0x24], eax
cmp dword [rbp - 0x24], 0
jle 0x5ea542
mov eax, dword [rbp - 0x24]
cdqe
mov rdx, qword [rbp - 0x10]
mov edx, dword [rdx + 0xc]
mov ecx, edx
mov rdx, qword [rbp - 0x18]
add rcx, rdx
mov r9d, 4
mov r8d, 0x1000
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0x5ea502
mov eax, 0
jmp 0x5ea624
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp - 0x18]
add rax, rdx
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov edx, eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 8], edx
mov eax, dword [rbp - 0x24]
movsxd rdx, eax
mov rax, qword [rbp - 0x20]
mov r8, rdx
mov edx, 0
mov rcx, rax
call sym.memset
jmp 0x5ea5ff
jmp 0x5ea5ff
mov rax, qword [rbp - 0x10]
mov edx, dword [rax + 0x14]
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x10]
add eax, edx
mov edx, eax
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.CheckSize
test eax, eax
jne 0x5ea573
mov eax, 0
jmp 0x5ea624
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x10]
mov edx, eax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp - 0x18]
add rax, rcx
mov r9d, 4
mov r8d, 0x1000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0x5ea5b6
mov eax, 0
jmp 0x5ea624
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp - 0x18]
add rax, rdx
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x10]
mov ecx, eax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x14]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rdx, rax
mov rax, qword [rbp - 0x20]
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov rax, qword [rbp - 0x20]
mov edx, eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 8], edx
add dword [rbp - 4], 1
add qword [rbp - 0x10], 0x28
mov rax, qword [rbp + 0x28]
mov rax, qword [rax]
movzx eax, word [rax + 6]
movzx eax, ax
cmp eax, dword [rbp - 4]
jg 0x5ea49d
mov eax, 1
add rsp, 0x50
pop rbp
ret
Function at 0x5ec0d0
Capabilities:
Create thread
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, 0x18
call sym.malloc
test rax, rax
je 0x5ec10a
mov r9, qword [rbx]
mov r10, qword [rbx + 8]
mov rcx, rax
mov rdx, qword [rbx + 0x10]
mov qword [rax], r9
mov qword [rax + 8], r10
mov qword [rax + 0x10], rdx
add rsp, 0x20
pop rbx
jmp dbg._cgo_sys_thread_start
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, str.runtime_cgo:_out_of_memory_in_thread_start_n
lea r9, [rax + 0x60]
mov r8d, 0x2b
mov edx, 1
call sym.fwrite
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x5ecab0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00627164]
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
test esi, esi
jle 0x5ecc64
mov rax, qword [0x00627168]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x5ecafc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x5ecb89
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x5ecae0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x5ecc99
mov rax, qword [0x00627168]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00627168]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x5ecc7c
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x5ecb82
sub eax, 0x40
and eax, 0xffffffbf
jne 0x5ecc04
add dword [0x00627164], 1
cmp edi, 8
jae 0x5ecbc0
test dil, 4
jne 0x5ecc50
test edi, edi
je 0x5ecbac
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x5ecc6b
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rbp]
mov qword [rbx], rax
mov eax, edi
mov rdx, qword [rbp + rax - 8]
mov qword [rbx + rax - 8], rdx
lea rax, [rbx + 8]
and rax, 0xfffffffffffffff8
sub rbx, rax
sub rbp, rbx
add ebx, edi
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x5ecbac
and ebx, 0xfffffff8
xor edx, edx
mov ecx, edx
add edx, 8
mov r8, qword [rbp + rcx]
cmp edx, ebx
mov qword [rax + rcx], r8
jb 0x5ecbf0
jmp 0x5ecbac
add rsi, qword [0x00627168]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
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 0x5ecb82
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax + rax]
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x5ecbac
xor esi, esi
jmp 0x5ecb07
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x5ecbac
mov rax, qword [0x00627168]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rsi + 0x18]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop dword [rax]
Function at 0x5ed3f0
Capabilities:
Get thread local storage value

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

Function at 0x5ed780
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00603370]
mov rdx, rcx
cmp word [r8], 0x5a4d
jne 0x5ed7ed
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x5ed7ed
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 0x5ed7ed
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 0x5ed7e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x5ed7ef
add rax, 0x28
cmp rax, r9
jne 0x5ed7d0
xor eax, eax
add rsp, 0x28
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00417850]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x00417860]
mov dword [rax], 1
mov rax, qword [0x00417870]
mov dword [rax], 1
mov rax, qword [0x00417840]
mov dword [rax], 1
mov rax, qword [0x00417700]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010d0
mov rax, qword [0x00417830]
mov dword [0x0041a020], ecx
mov eax, dword [rax]
test eax, eax
je 0x4010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x004177f0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x004177d0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x004176b0]
cmp dword [rax], 1
je 0x401108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401120
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067

Function at 0x401692
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov dword [rbp - 4], 0
mov dword [rbp - 8], 0
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.strlen
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jae 0x401799
mov eax, dword [rbp - 4]
add eax, 1
cdq
shr edx, 0x18
add eax, edx
movzx eax, al
sub eax, edx
mov dword [rbp - 4], eax
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx eax, byte [rax]
movzx edx, al
mov eax, dword [rbp - 8]
add eax, edx
cdq
shr edx, 0x18
add eax, edx
movzx eax, al
sub eax, edx
mov dword [rbp - 8], eax
mov eax, dword [rbp - 8]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rdx, rax
mov eax, dword [rbp - 4]
movsxd rcx, eax
mov rax, qword [rbp + 0x10]
add rax, rcx
mov rcx, rax
call sym.swap_unsigned_char__unsigned_char_
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx edx, byte [rax]
mov eax, dword [rbp - 8]
movsxd rcx, eax
mov rax, qword [rbp + 0x10]
add rax, rcx
movzx eax, byte [rax]
add eax, edx
movzx edx, al
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
mov dword [rbp - 0x1c], eax
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 0x10]
add rax, rdx
movzx eax, byte [rax]
mov edx, dword [rbp - 0x1c]
xor eax, edx
mov ecx, eax
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp - 0x10]
add rax, rdx
mov edx, ecx
mov byte [rax], dl
add qword [rbp - 0x10], 1
jmp 0x4016cc
mov eax, 0
add rsp, 0x40
pop rbp
ret
Function at 0x401a73
Capabilities:
Check mutex on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
lea r8, str.0e77c5f5_decd_45d0_8a7d_a7a540385822
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateMutexA]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x401abc
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 0xb7
sete al
test al, al
je 0x401ac3
mov eax, 1
jmp 0x401ac8
mov eax, 1
jmp 0x401ac8
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x401de0
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]

Function at 0x401e50
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x0041a0c4]
mov r12, rcx
test ebx, ebx
jle 0x401f80
mov rax, qword [0x0041a0c8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x401e9c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x401f23
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x401e80
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x401fa2
mov rax, qword [0x0041a0c8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0041a0c8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401f87
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x401f1c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x401f30
add dword [0x0041a0c4], 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 [0x0041a0c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401f1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x401ea7
mov rax, qword [0x0041a0c8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]