joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017224
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1400373b0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140017282
cmp word [rdx], r12w
jne 0x140017282
or byte [rax + r8*8 + 0x38], cl
jmp 0x140017288
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x1400173e3
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400173be
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400172c1
mov rcx, r9
jmp 0x1400172e4
cmp r9, rdx
jae 0x1400172fb
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x1400172a5
jmp 0x1400173e3
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400173b8
cmp dword [rsp + 0x80], edi
je 0x1400173b8
mov rdx, r14
lea r11, [0x1400373b0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140017391
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140017364
mov word [rbx], r12w
jmp 0x1400173df
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14001736d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x1400173df
cmp word [rsp + 0x70], r12w
jne 0x14001739e
cmp rbx, rsi
je 0x14001735e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140017eb0
cmp word [rsp + 0x70], r12w
je 0x1400173e3
mov word [rbx], r13w
jmp 0x1400173df
lea r11, [0x1400373b0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400173db
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400173e3
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001bc30
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14001bc60
xor eax, eax
jmp 0x14001bd23
mov rbp, rbx
cmp word [rax], si
je 0x14001bc85
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001bc6c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001bc68
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14001a25c
movsxd r14, eax
test eax, eax
jne 0x14001bcc3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001bc59
mov rcx, r14
call fcn.14001810c
mov rdi, rax
test rax, rax
jne 0x14001bcdc
xor ecx, ecx
call fcn.140014ac4
jmp 0x14001bcb8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14001a25c
test eax, eax
jne 0x14001bd0d
mov rcx, rdi
call fcn.140014ac4
jmp 0x14001bd17
xor ecx, ecx
call fcn.140014ac4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140020584
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000e278
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002060e
cmp byte [rbp - 0x21], r15b
je 0x140020609
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140020644
call fcn.140014e40
test eax, eax
jne 0x140020630
cmp byte [rbp - 0x21], r15b
je 0x140020628
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140020644
cmp byte [rbp - 0x21], r15b
je 0x140020641
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140010920
test eax, eax
jne 0x1400206e4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000e278
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140020683
cmp byte [rbp - 0x21], r15b
je 0x1400206b8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400206b8
call fcn.140014e40
test eax, eax
jne 0x1400206a4
cmp byte [rbp - 0x21], r15b
je 0x14002069d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400206b8
cmp byte [rbp - 0x21], r15b
je 0x1400206b5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140010920
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400206e4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400206e7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400206f5
mov rcx, rdi
call fcn.140014ac4
cmp byte [rbp + 0x3f], r15b
je 0x140020704
mov rcx, qword [rbp + 0x27]
call fcn.140014ac4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x401dc8
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, qword [fcn.004352f0]
xor ebx, ebx
mov rdi, rcx
mov rbp, rdx
cmp rbx, rbp
jl 0x401e20
mov ecx, 1
call rsi
mov r8d, 1
mov edx, 1
lea rcx, [0x0043715c]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rsi
mov rcx, rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp 0x435230
mov r12, qword [rdi + rbx*8]
mov ecx, 1
inc rbx
call rsi
xor r8d, r8d
mov rcx, rax
mov rdx, r12
call fcn.00401d26
jmp 0x401de1

Function at 0x402015
Capabilities:
Read file on windows

Disassembly:
push r13
push rbx
sub rsp, 0x38
mov r13, rcx
mov rcx, rdx
mov edx, 1
mov rbx, r8
mov r9, r13
call sub.msvcrt.dll_fread
cmp rbx, rax
je 0x402049
mov rcx, r13
mov qword [rsp + 0x28], rax
call fcn.00401f4c
mov rax, qword [rsp + 0x28]
add rsp, 0x38
pop rbx
pop r13
ret

Function at 0x40270b
Capabilities:
Write file on windows

Disassembly:
push r12
sub rsp, 0x30
mov r12, rcx
mov rcx, rdx
mov edx, 1
mov r9, r12
call sub.msvcrt.dll_fwrite
mov rcx, r12
mov qword [rsp + 0x28], rax
call fcn.00401f4c
mov rax, qword [rsp + 0x28]
add rsp, 0x30
pop r12
ret

Function at 0x402a27
Capabilities:
Write file on windows

Disassembly:
push r12
push rdi
sub rsp, 0x28
xor r8d, r8d
mov r12, rcx
mov r10, rdx
test rdx, rdx
je 0x402a4e
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r10
mov r9, r12
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r12
add rsp, 0x28
pop rdi
pop r12
jmp 0x435230
jmp qword [sym.imp.msvcrt.dll_fflush]
Function at 0x40a740
Capabilities:
Hash data using murmur3

Disassembly:
push rsi
push rbx
mov r8d, 4
xor esi, esi
mov rax, rdx
mov rbx, rdx
cqo
idiv r8
lea r11, [rax*4]
xor eax, eax
cmp r11, rax
jg 0x40a787
cmp r11, 0xfffffffffffffffd
mov eax, 0
mov r8d, 4
cmovl r11, rax
mov rax, rbx
cqo
idiv r8
add r11, rcx
xor r8d, r8d
jmp 0x40a7c4
mov r10d, dword [rcx + rax]
add rax, 4
imul r10d, r10d, 0xcc9e2d51
rol r10d, 0xf
imul r9d, r10d, 0x1b873593
xor r9d, esi
rol r9d, 0xd
lea r9d, [r9 + r9*4]
lea esi, [r9 - 0x19ab949c]
jmp 0x40a75f
dec rdx
shl r8d, 8
movzx eax, byte [r11 + rdx]
or r8d, eax
test rdx, rdx
jg 0x40a7b5
imul eax, r8d, 0xcc9e2d51
xor esi, ebx
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, esi
mov edx, eax
shr edx, 0x10
xor eax, edx
imul edx, eax, 0x85ebca6b
mov eax, edx
shr eax, 0xd
xor eax, edx
imul eax, eax, 0xc2b2ae35
mov edx, eax
shr edx, 0x10
xor eax, edx
pop rbx
pop rsi
ret
xor edx, edx
test rcx, rcx
je 0x40a80f
mov rdx, qword [rcx]
add rcx, 0x10
jmp 0x40a740

Function at 0x40a801
Capabilities:
Hash data using murmur3

Disassembly:
push rsi
push rbx
mov r8d, 4
xor esi, esi
mov rax, rdx
mov rbx, rdx
cqo
idiv r8
lea r11, [rax*4]
xor eax, eax
cmp r11, rax
jg 0x40a787
cmp r11, 0xfffffffffffffffd
mov eax, 0
mov r8d, 4
cmovl r11, rax
mov rax, rbx
cqo
idiv r8
add r11, rcx
xor r8d, r8d
jmp 0x40a7c4
mov r10d, dword [rcx + rax]
add rax, 4
imul r10d, r10d, 0xcc9e2d51
rol r10d, 0xf
imul r9d, r10d, 0x1b873593
xor r9d, esi
rol r9d, 0xd
lea r9d, [r9 + r9*4]
lea esi, [r9 - 0x19ab949c]
jmp 0x40a75f
dec rdx
shl r8d, 8
movzx eax, byte [r11 + rdx]
or r8d, eax
test rdx, rdx
jg 0x40a7b5
imul eax, r8d, 0xcc9e2d51
xor esi, ebx
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, esi
mov edx, eax
shr edx, 0x10
xor eax, edx
imul edx, eax, 0x85ebca6b
mov eax, edx
shr eax, 0xd
xor eax, edx
imul eax, eax, 0xc2b2ae35
mov edx, eax
shr edx, 0x10
xor eax, edx
pop rbx
pop rsi
ret
xor edx, edx
test rcx, rcx
je 0x40a80f
mov rdx, qword [rcx]
add rcx, 0x10
jmp 0x40a740
Function at 0x41036a
Capabilities:
Encode data using base64

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rsi, [0x0043bea0]
lea rax, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
test dl, dl
mov rbx, rcx
mov edx, 6
cmovne rsi, rax
test rcx, rcx
je 0x4103a7
mov rax, qword [rcx]
mov ecx, 3
shl rax, 2
cqo
idiv rcx
lea rdx, [rax + 6]
xor ecx, ecx
call fcn.0040511f
mov rcx, rax
test rbx, rbx
je 0x4103cb
mov r9, qword [rbx]
mov edi, 3
mov rax, r9
cqo
idiv rdi
mov r11, rdx
jmp 0x4103d1
xor r9d, r9d
xor r11d, r11d
sub r9, r11
lea rax, [rcx + 0x10]
xor r10d, r10d
cmp r10, r9
jne 0x4103f5
movabs r8, 0xaaaaaaaaaaaaaaac
imul r8, r10
test rbx, rbx
jne 0x410451
jmp 0x410463
movzx edx, byte [rbx + r10 + 0x11]
movzx r8d, byte [rbx + r10 + 0x10]
add rax, 4
shl r8d, 0x10
shl edx, 8
or edx, r8d
movzx r8d, byte [rbx + r10 + 0x12]
add r10, 3
mov edi, edx
shr edi, 0x12
or r8d, edx
shr edx, 0xc
mov dil, byte [rsi + rdi]
and edx, 0x3f
mov byte [rax - 4], dil
mov dl, byte [rsi + rdx]
mov byte [rax - 3], dl
mov edx, r8d
and r8d, 0x3f
shr edx, 6
and edx, 0x3f
mov dl, byte [rsi + rdx]
mov byte [rax - 2], dl
mov dl, byte [rsi + r8]
mov byte [rax - 1], dl
jmp 0x4103db
mov rax, qword [rbx]
mov edi, 3
cqo
idiv rdi
dec rdx
je 0x4104a8
cmp r11, 2
jne 0x4104d9
movzx edx, byte [rbx + r9 + 0x10]
movzx eax, byte [rbx + r9 + 0x11]
shl edx, 0x10
shl eax, 8
or eax, edx
shr edx, 0x12
mov dl, byte [rsi + rdx]
mov byte [rcx + r8 + 0x10], dl
mov edx, eax
shr eax, 6
shr edx, 0xc
and eax, 0x3c
and edx, 0x3f
mov dl, byte [rsi + rdx]
mov byte [rcx + r8 + 0x11], dl
mov al, byte [rsi + rax]
mov byte [rcx + r8 + 0x12], al
jmp 0x4104cf
movzx eax, byte [rbx + r10 + 0x10]
mov edx, eax
shl eax, 4
shr edx, 2
and eax, 0x30
mov dl, byte [rsi + rdx]
mov byte [rcx + r8 + 0x10], dl
mov al, byte [rsi + rax]
mov byte [rcx + r8 + 0x12], 0x3d
mov byte [rcx + r8 + 0x11], al
mov byte [rcx + r8 + 0x13], 0x3d
add r8, 4
mov rdx, r8
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp fcn.0040511f
Function at 0x41cdda
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x478
lea rdi, [0x00442780]
lea r14, [rsp + 0x68]
mov r12, rcx
mov r13, rdx
mov edx, 0x408
mov rcx, r14
mov rsi, r8
call fcn.0041cbe1
mov ecx, 0x20
call fcn.00405109
mov rcx, r12
mov rbx, rax
call fcn.00405dc8
mov r12, rax
test r12, r12
je 0x41ce35
mov rcx, qword [r12]
test cl, 0x1f
jne 0x41ce45
xor eax, eax
test rsi, rsi
je 0x41ce6b
mov rax, qword [rsi]
add rsi, 0x10
jmp 0x41ce6b
inc rcx
call fcn.00404f24
mov rdx, r12
mov rcx, rax
mov r9, rax
call fcn.0041cd63
mov rdx, rdi
mov rcx, r9
call fcn.0041cd3d
mov r12, r9
jmp 0x41ce27
xor r8d, r8d
test r13, r13
je 0x41ce7b
mov r8, qword [r13]
add r13, 0x10
mov qword [rsp + 0x20], rax
mov r9, rsi
mov rdx, r13
mov rcx, r14
lea rdi, [rbx + 0x10]
mov esi, 0x1f
lea r15, [rsp + 0x50]
lea rbp, [rsp + 0x430]
call fcn.0041b5b5
test rbx, rbx
mov eax, 0
cmove rdi, rax
xor r13d, r13d
lea rdx, [rsi - 0x1f]
test r12, r12
je 0x41cec2
cmp rsi, qword [r12]
jl 0x41ceeb
mov edx, 0x408
mov rcx, r14
call fcn.00419ff0
mov rcx, r13
call fcn.00405dc8
add rsp, 0x478
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r8, rsi
mov rcx, r12
call fcn.00405ce7
test rax, rax
jne 0x41cf0e
xor edx, edx
test rbx, rbx
je 0x41cfa5
mov rdx, qword [rbx]
jmp 0x41cfa5
mov rdx, qword [rax]
xor r10d, r10d
mov qword [rsp + 0x30], rdx
cmp qword [rsp + 0x30], r10
jle 0x41cefb
xor edx, edx
lea r11, [rdi + r10]
lea r8, [rax + r10]
mov cl, byte [r8 + rdx + 0x10]
xor cl, byte [rbp + rdx]
mov byte [r11 + rdx], cl
inc rdx
cmp rdx, 0x10
jne 0x41cf2a
mov r9, r11
mov rdx, r11
mov r8d, 0x10
mov rcx, r14
mov qword [rsp + 0x20], 0x10
mov qword [rsp + 0x48], r10
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r11
call fcn.0041aa3a
mov edx, 0xf
mov rcx, r15
call fcn.0041cd6b
mov r11, qword [rsp + 0x38]
mov rdx, r15
mov rcx, rbp
mov r9d, 0x10
mov r8, r11
call fcn.0040668d
mov r10, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
add r10, 0x10
jmp 0x41cf19
mov rcx, r13
add rsi, 0x20
call fcn.00404f57
mov rdx, rbx
mov rcx, rax
mov r13, rax
call fcn.0041cd63
jmp 0x41ceb3
Function at 0x41d417
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x468
lea r12, [rsp + 0x58]
mov rbp, rcx
mov r13, rdx
mov edx, 0x408
mov rcx, r12
mov qword [rsp + 0x4c0], r8
call fcn.0041cbe1
mov ecx, 0x20
call fcn.00405109
mov r9, qword [rsp + 0x4c0]
mov qword [rsp + 0x50], 0
mov rbx, rax
xor eax, eax
test r9, r9
je 0x41d476
mov rax, qword [r9]
add r9, 0x10
xor r8d, r8d
test r13, r13
je 0x41d486
mov r8, qword [r13]
add r13, 0x10
mov qword [rsp + 0x20], rax
mov rdx, r13
mov rcx, r12
lea r13, [rbx + 0x10]
mov edi, 0x1f
lea r14, [rsp + 0x440]
call fcn.0041b5b5
mov eax, 0
test rbx, rbx
cmove r13, rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea rdx, [rdi - 0x1f]
test rbp, rbp
je 0x41d4cc
cmp rdi, qword [rbp]
jl 0x41d4ea
mov edx, 0x408
mov rcx, r12
lea rsi, [rsp + 0x50]
call fcn.00419ff0
lea rbx, [0x00442780]
jmp 0x41d5b6
mov r8, rdi
mov rcx, rbp
call fcn.00405ce7
mov rsi, rax
test rax, rax
jne 0x41d50d
xor edx, edx
test rbx, rbx
je 0x41d588
mov rdx, qword [rbx]
jmp 0x41d588
mov rax, qword [rax]
xor r15d, r15d
lea r11, [rsi + 0x10]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], r15
jle 0x41d4fd
lea rdx, [r11 + r15]
mov r9, r14
mov r8d, 0x10
mov rcx, r12
mov qword [rsp + 0x20], 0x20
mov qword [rsp + 0x40], r11
mov qword [rsp + 0x48], r15
call fcn.0041aeb0
mov r11, qword [rsp + 0x40]
mov r10, qword [rsp + 0x48]
mov rdx, r12
mov r8b, byte [rsi + r10 + 0x10]
mov cl, byte [rdx + 0x3e8]
inc rdx
xor cl, byte [rdx + 0x3c7]
mov byte [r13 + r10], cl
inc r10
mov byte [rdx + 0x3c7], r8b
cmp qword [rsp + 0x38], rdx
jne 0x41d558
add r15, 0x10
jmp 0x41d51c
mov rcx, qword [rsp + 0x50]
add rdi, 0x20
call fcn.00404f57
mov rdx, rbx
mov rcx, rax
mov qword [rsp + 0x50], rax
call fcn.0041cd63
jmp 0x41d4bd
mov rdx, rbx
mov rcx, rsi
call fcn.00409ba4
mov rcx, qword [rsp + 0x50]
mov rdx, rbx
call fcn.00408c3e
test al, al
jne 0x41d5ab
mov rcx, qword [rsp + 0x50]
call fcn.00405dc8
add rsp, 0x468
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x42c3e0
Capabilities:
Hash data with crc32

Disassembly:
push rsi
push rbx
sub rsp, 0x28
or eax, 0xffffffff
mov rsi, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x42c409
mov r10, qword [rcx]
xor edx, edx
lea r8, [0x00458b00]
cmp rdx, r10
jl 0x42c4ba
not eax
mov edx, 8
mov ebx, eax
call fcn.0040511f
mov rcx, rsi
mov rdx, rax
call fcn.00405094
mov eax, ebx
lea r8, [0x00458ac0]
mov edx, ebx
and eax, 0xf
mov rcx, qword [rsi]
mov al, byte [r8 + rax + 0x10]
mov byte [rcx + 0x17], al
mov rax, rdx
sar rax, 4
and eax, 0xf
mov al, byte [r8 + rax + 0x10]
mov byte [rcx + 0x16], al
mov rax, rdx
sar rax, 8
and eax, 0xf
mov al, byte [r8 + rax + 0x10]
mov byte [rcx + 0x15], al
mov rax, rdx
sar rax, 0xc
and eax, 0xf
mov al, byte [r8 + rax + 0x10]
mov byte [rcx + 0x14], al
mov rax, rdx
sar rax, 0x10
and eax, 0xf
mov al, byte [r8 + rax + 0x10]
mov byte [rcx + 0x13], al
mov rax, rdx
sar rax, 0x14
and eax, 0xf
mov al, byte [r8 + rax + 0x10]
mov byte [rcx + 0x12], al
mov rax, rdx
sar rdx, 0x1c
sar rax, 0x18
and eax, 0xf
mov al, byte [r8 + rax + 0x10]
mov byte [rcx + 0x11], al
mov al, byte [r8 + rdx + 0x10]
mov byte [rcx + 0x10], al
add rsp, 0x28
pop rbx
pop rsi
ret
mov r9d, eax
xor al, byte [rcx + rdx + 0x10]
inc rdx
movzx eax, al
shr r9d, 8
xor r9d, dword [r8 + rax*4]
mov eax, r9d
jmp 0x42c400

Function at 0x42fe00
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.004352f0
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.004352f0
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 0x42fe70
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x0046aaf4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x430018
mov rax, qword [0x0046aaf8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x42febc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x42ff47
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x42fea0
mov rcx, r12
call fcn.00430bd0
mov rbp, rax
test rax, rax
je 0x430052
mov rax, qword [0x0046aaf8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.00430d00
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0046aaf8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x430061
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x42ff40
sub eax, 4
and eax, 0xfffffffb
jne 0x42ffd0
add dword [0x0046aaf4], 1
cmp ebx, 8
jae 0x42ff78
test bl, 4
jne 0x430020
test ebx, ebx
je 0x42ff69
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x430040
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x42ff69
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x42ffaa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x0046aaf8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x42ff40
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0042fe00
nop dword [rax]
xor edi, edi
jmp 0x42fec7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x42ff69
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x42ff69
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.0042fe00
mov rax, qword [0x0046aaf8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.0042fe00
nop
nop dword [rax]
Function at 0x430840
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0046ade0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0046adc0]
test rbx, rbx
je 0x430894
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 0x43088b
test r12, r12
je 0x43088b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x430870
lea rcx, [0x0046ade0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x430bd0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x0045d2e0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x430c49
mov rcx, r10
call fcn.00430aa0
test eax, eax
je 0x430c49
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x430c46
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x430c3d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x430c49
add r8, 0x28
cmp r8, r9
jne 0x430c28
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x2fc4d99d0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4da3d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fe108]
test eax, eax
je 0x2fc4da46a
lea rax, [0x2fc4fe0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fe110]
mov qword [rbp - 8], rax
jmp 0x2fc4da44e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4da442
cmp qword [rbp - 0x10], 0
je 0x2fc4da442
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4da408
lea rax, [0x2fc4fe0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4da46b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4da570
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4da598
mov eax, 0
jmp 0x2fc4da5e6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4da5c1
mov eax, 0
jmp 0x2fc4da5e6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4da5e1
mov eax, 0
jmp 0x2fc4da5e6
mov eax, 1
add rsp, 0x20
pop rbp
ret