joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140033cc0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140180ac0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140033ce0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140033ce8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140033ce0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140033d3d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140033d34
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140033ce0
add rax, 0x28
cmp rax, r9
jne 0x140033d20
xor eax, eax
ret

Function at 0x140033d40
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140180ac0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140033d5f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140033d68
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140033d5f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140033e00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140180ac0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140033e1f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140033e28
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001000
Capabilities:
Enumerate gui resources

Disassembly:
push rbp
sub rsp, 0x40
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x30], rbx
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x10], rax
mov eax, dword [rsp]
mov qword [rbp + 8], 0x13
sub rsp, 0x40
lea rcx, [rsp + 0x20]
mov eax, dword [rcx]
test rcx, rcx
je 0x140001042
mov dword [rcx], 0xcccc
add rcx, 0x10
mov qword [rbp], rcx
test rcx, rcx
je 0x14000107c
lea rdx, [rbp]
lea rcx, [0x1400010a0]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [rbp]
mov ebx, eax
test rcx, rcx
je 0x140001078
add rcx, 0xfffffffffffffff0
cmp dword [rcx], 0xdddd
jne 0x140001078
call fcn.140005990
mov eax, ebx
jmp 0x14000107e
xor eax, eax
mov rcx, qword [rbp + 0x10]
xor rcx, rbp
call fcn.140001420
mov rbx, qword [rbp + 0x30]
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x140001d1c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001d66
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001d66
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001d66
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001d66
cmp dword [rcx + 0x84], 0xe
jbe 0x140001d66
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001d68
xor al, al
add rsp, 0x28
ret

Function at 0x140006590
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000638c
Function at 0x140009030
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400090b7
mov rsi, rbx
cmp word [rax], bp
je 0x140009076
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140009060
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14000905c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140006f88
mov rdi, rax
test rax, rax
je 0x1400090a4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000e7f0
mov rbp, rdi
xor ecx, ecx
call fcn.140006f4c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000e1a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000e1c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000e1c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400376c0]
mov dword [rax], 1
mov rax, qword [0x1400376d0]
mov dword [rax], 1
mov rax, qword [0x1400376e0]
mov dword [rax], 1
mov rax, qword [0x1400376b0]
mov dword [rax], 1
mov rax, qword [0x140037560]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
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 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400053d0
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
mov r13, rcx
mov rcx, rdx
mov edx, 1
mov rbx, r8
mov r9, r13
call sym.fread
mov r12, rax
cmp rbx, rax
je 0x140005403
mov rcx, r13
call sym.ferror
test eax, eax
jne 0x140005410
mov rax, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
mov rcx, r13
call sym.checkErr__stdZsyncio_u165.part.0
mov rax, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
ret
Function at 0x140005460
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rax, [0x140035310]
mov r14, rcx
mov r13, rdx
lea rcx, [rsp + 0x20]
mov edx, 0xfa0
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
call sym.mnewString
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x40], rax
mov rbx, rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
test rbx, rbx
jle 0x1400055f0
mov rcx, qword [0x140037540]
lea rdi, [rsp + 0x30]
movabs r15, 0x7fffffffffffffff
movabs rbp, 0x8000000000000000
call sym.__emutls_get_address
mov rsi, rax
nop dword [rax]
mov rax, qword [rsp + 0x48]
mov r9, r13
mov r8d, 0xfa0
mov edx, 1
lea rcx, [rax + 8]
call sym.fread
mov r12, rax
cmp rax, 0xfa0
je 0x140005570
mov rcx, r13
call sym.ferror
test eax, eax
je 0x140005533
mov rcx, r13
call sym.checkErr__stdZsyncio_u165.part.0
cmp byte [rsi], 0
je 0x140005630
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140005550
test byte [rcx + 7], 0x40
je 0x140005610
movdqa xmm0, xmmword [rsp + 0x30]
mov rax, r14
movups xmmword [r14], xmm0
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [rsi], 0
jne 0x14000553c
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
call sym.prepareAdd
mov rbx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
test rbx, rbx
jle 0x1400055f0
lea r8, [rbx + 1]
mov rax, r8
xor rax, rbx
test r8, rax
js 0x140005608
test r8, r8
js 0x140005620
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
add rdx, 8
lea rcx, [rcx + rax + 8]
call sym.memcpy
mov rax, qword [rsp + 0x30]
lea rdx, [rax + rbx]
xor rax, rdx
xor rbx, rdx
test rax, rbx
js 0x140005608
mov qword [rsp + 0x30], rdx
nop word cs:[rax + rax]
mov rbx, qword [rsp + 0x40]
test rbx, rbx
jg 0x1400054f8
nop
xor ecx, ecx
lea rdx, [rbx - 1]
call sym.raiseIndexError2
mov rcx, qword [rsp + 0x48]
jmp 0x140005541
call sym.raiseOverflow
jmp 0x1400055e0
call sym.deallocShared
jmp 0x140005550
mov r8, r15
xor edx, edx
mov rcx, rbp
call sym.raiseRangeErrorI
jmp 0x1400055e0
test r12, r12
js 0x1400056c8
lea rcx, [rsp + 0x40]
mov rdx, r12
call sym.setLengthStrV2
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x30]
call sym.prepareAdd
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
test rbx, rbx
jle 0x140005541
lea r8, [rbx + 1]
mov rax, rbx
xor rax, r8
test r8, rax
js 0x1400056b5
test r8, r8
js 0x1400056e6
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
lea r9, [rdx + rax + 8]
lea rdx, [rcx + 8]
mov rcx, r9
call sym.memcpy
mov rax, qword [rsp + 0x30]
lea rdx, [rax + rbx]
xor rax, rdx
xor rbx, rdx
test rax, rbx
js 0x1400056b5
mov qword [rsp + 0x30], rdx
jmp 0x14000553c
call sym.raiseOverflow
mov rcx, qword [rsp + 0x48]
jmp 0x140005541
movabs r8, 0x7fffffffffffffff
mov rcx, r12
xor edx, edx
call sym.raiseRangeErrorI
mov rcx, qword [rsp + 0x48]
jmp 0x140005541
movabs rcx, 0x8000000000000000
xor edx, edx
movabs r8, 0x7fffffffffffffff
call sym.raiseRangeErrorI
mov rcx, qword [rsp + 0x48]
jmp 0x140005541
Function at 0x140005710
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x40
mov r14, rcx
mov r13, rdx
mov r12, r8
test r8, r8
js 0x140005800
lea rdi, [rsp + 0x20]
mov rdx, r8
mov rcx, rdi
call sym.mnewString
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov rdx, rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
test rdx, rdx
jle 0x140005850
mov rax, qword [rsp + 0x38]
mov r9, r13
mov r8, r12
mov edx, 1
lea rcx, [rax + 8]
call sym.fread
mov r15, rax
cmp r12, rax
je 0x140005792
mov rcx, r13
call sym.ferror
test eax, eax
jne 0x140005820
mov rcx, qword [0x140037540]
call sym.__emutls_get_address
cmp byte [rax], 0
mov rbx, rax
jne 0x1400057de
mov rcx, r13
call sym.fgetc
mov rdx, r13
mov ecx, eax
mov esi, eax
call sym.ungetc
cmp byte [rbx], 0
jne 0x1400057de
test esi, esi
jns 0x140005860
cmp r12, r15
jle 0x1400057de
test r15, r15
js 0x140005830
lea rcx, [rsp + 0x30]
mov rdx, r15
call sym.setLengthStrV2
movdqa xmm0, xmmword [rsp + 0x30]
mov rax, r14
movups xmmword [r14], xmm0
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, r12
call sym.raiseRangeErrorI
jmp 0x1400057de
mov rcx, r13
call sym.checkErr__stdZsyncio_u165.part.0
jmp 0x140005792
movabs r8, 0x7fffffffffffffff
xor edx, edx
mov rcx, r15
call sym.raiseRangeErrorI
jmp 0x1400057de
sub rdx, 1
xor ecx, ecx
call sym.raiseIndexError2
jmp 0x1400057de
mov rdx, r13
mov rcx, rdi
call sym.readAllBuffer__stdZsyncio_u519
cmp byte [rbx], 0
mov rsi, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
jne 0x1400058a0
lea rcx, [rsp + 0x30]
mov rdx, rsi
call sym.prepareAdd
test rsi, rsi
jle 0x1400058a0
lea r8, [rsi + 1]
mov rax, rsi
xor rax, r8
test r8, rax
jns 0x1400058c8
call sym.raiseOverflow
test r12, r12
je 0x1400057de
test byte [r12 + 7], 0x40
jne 0x1400057de
mov rcx, r12
call sym.deallocShared
jmp 0x1400057de
test r8, r8
js 0x140005908
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
lea rcx, [rdx + rax + 8]
lea rdx, [r12 + 8]
call sym.memcpy
mov rax, qword [rsp + 0x30]
lea rdx, [rax + rsi]
xor rax, rdx
xor rsi, rdx
test rax, rsi
js 0x14000589b
mov qword [rsp + 0x30], rdx
jmp 0x1400058a0
movabs r8, 0x7fffffffffffffff
xor edx, edx
movabs rcx, 0x8000000000000000
call sym.raiseRangeErrorI
jmp 0x1400058a0

Function at 0x140005e00
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x140005e21
mov rcx, rdx
call sym.strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sym.fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp sym.fflush

Function at 0x14000d4f0
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
mov rbx, rdx
mov r13, rcx
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov rcx, r13
mov r8, rbx
mov edx, 1
mov r12, rax
mov r9, rax
call sym.fwrite
mov rcx, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
jmp sym.fflush
Function at 0x14000d540
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x40
mov rax, qword [0x140040150]
mov r12, rcx
mov rbx, rdx
test rax, rax
je 0x14000d5f0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
test rcx, rcx
je 0x14000d5d0
call sym.strlen
lea r13, [rsp + 0x20]
mov rdx, r12
mov rcx, r13
mov r8, rax
call sym.toNimStr
mov r12, qword [rsp + 0x28]
mov rcx, r13
call qword [0x140040150]
test r12, r12
je 0x14000d5a9
test byte [r12 + 7], 0x40
je 0x14000d628
lea rcx, [0x140034340]
call sym.__emutls_get_address
cmp byte [rax], 0
jne 0x14000d648
add rsp, 0x40
pop rbx
pop r12
pop r13
ret
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], 0
call rax
jmp 0x14000d5a9
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov rcx, r12
mov r8, rbx
mov edx, 1
mov r13, rax
mov r9, rax
call sym.fwrite
mov rcx, r13
add rsp, 0x40
pop rbx
pop r12
pop r13
jmp sym.fflush
lea rcx, [0x140034360]
call sym.__emutls_get_address
mov rdx, r12
mov rcx, rax
call sym.rawDealloc__system_u7012
jmp 0x14000d5a9
mov byte [rax], 0
lea rcx, [0x140034240]
call sym.__emutls_get_address
xor r8d, r8d
mov rcx, rax
mov rax, qword [rax]
mov rdx, qword [rax + 0x38]
add rsp, 0x40
pop rbx
pop r12
pop r13
jmp sym.eqcopy___stdZtypedthreads_u171

Function at 0x14000e620
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
lea r13, [0x140040120]
mov rsi, rdx
mov rbx, rcx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rsi, rsi
jle 0x14000e6af
lea rcx, [0x140034340]
xor r14d, r14d
lea r12, [rsp + 0x20]
call sym.__emutls_get_address
mov rbp, qword [sym.__acrt_iob_func]
mov rdi, rax
jmp 0x14000e67d
add r14, 1
add rbx, 0x10
cmp rsi, r14
je 0x14000e6b6
mov ecx, 1
call rbp
movdqu xmm0, xmmword [rbx]
xor r8d, r8d
mov rdx, r12
mov rcx, rax
movaps xmmword [rsp + 0x20], xmm0
call sym.writeWindows__system_u8998
cmp byte [rdi], 0
je 0x14000e670
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rbp, qword [sym.__acrt_iob_func]
mov ecx, 1
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x1400353e1]
mov r9, rax
call sym.fwrite
mov ecx, 1
call rbp
mov rcx, rax
call sym.fflush
mov rcx, r13
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140012c70
Capabilities:
Hash data using sha256

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
movaps xmmword [rsp + 0x90], xmm6
xor eax, eax
movdqa xmm0, xmmword [0x140035b00]
lea r12, [rsp + 0x20]
mov rbx, rcx
mov ecx, 0xd
mov rsi, rdx
mov rdi, r12
mov r13, r8
rep stosq qword [rdi], rax
movups xmmword [rsp + 0x28], xmm0
mov rcx, qword [0x140037540]
movdqa xmm0, xmmword [0x140035b10]
movups xmmword [rsp + 0x38], xmm0
call sym.__emutls_get_address
cmp byte [rax], 0
mov rdi, rax
jne 0x140012d4e
test rsi, rsi
jle 0x140012d30
mov eax, 0x40
movq xmm6, qword [0x140035b20]
mov r8, rsi
lea rbp, [rsp + 0x48]
cmp rsi, rax
cmovle rax, rsi
xor ecx, ecx
xor edx, edx
pxor xmm0, xmm0
cvtsi2sd xmm0, rax
ucomisd xmm0, xmm0
jnp 0x140012d70
movapd xmm1, xmm0
subsd xmm0, xmm0
andpd xmm1, xmm6
andpd xmm0, xmm6
mulsd xmm0, qword [0x140035b30]
comisd xmm1, xmm0
jae 0x140012d70
call sym.raiseOverflow
cmp byte [rdi], 0
jne 0x140012d4e
mov rdx, r13
mov rcx, r12
call sym.finish__neronight_u1404
cmp byte [rdi], 0
jne 0x140012d4e
mov edx, 0x68
mov rcx, r12
call sym.burnMem__OOZOOZOnimbleZpkgs50Znimcrypto4548O54O48454856bf5554f54be5155565051d5552cc52e5749e50df48d56ee51ed56b51dZnimcryptoZuti
nop
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, [r12 + rdx + 0x28]
lea r11, [rbx + rcx]
cmp eax, 8
jb 0x140012e60
mov r9, qword [r11]
mov qword [rdx], r9
mov r9d, eax
mov r10, qword [r11 + r9 - 8]
mov qword [rdx + r9 - 8], r10
lea r10, [rdx + 8]
and r10, 0xfffffffffffffff8
sub rdx, r10
sub r11, rdx
add edx, eax
and edx, 0xfffffff8
cmp edx, 8
jb 0x140012dc7
and edx, 0xfffffff8
xor r9d, r9d
mov r14d, r9d
add r9d, 8
mov r15, qword [r11 + r14]
mov qword [r10 + r14], r15
cmp r9d, edx
jb 0x140012db3
lea r14, [rax + rcx]
mov rdx, rax
xor rcx, r14
xor rdx, r14
test rcx, rdx
js 0x140012d26
mov r15, r8
mov rdx, rax
sub r15, rax
xor r8, r15
xor rdx, r15
not r8
or r8, rdx
jns 0x140012d26
add eax, dword [rsp + 0x20]
mov dword [rsp + 0x20], eax
jae 0x140012e07
add dword [rsp + 0x24], 1
test al, 0x3f
jne 0x140012e27
lea rcx, [rsp + 0x28]
mov r8d, 0x40
mov rdx, rbp
call sym.sha256Transform__OOZOOZOnimbleZpkgs50Znimcrypto4548O54O48454856bf5554f54be5155565051d5552cc52e5749e50df48d56ee51ed56b51dZnimcr
cmp byte [rdi], 0
jne 0x140012d4e
test r15, r15
jle 0x140012d2b
mov edx, dword [rsp + 0x20]
mov eax, 0x40
and edx, 0x3f
sub rax, rdx
cmp rax, r15
cmovg rax, r15
test r14, r14
js 0x140012ea8
cmp rsi, r14
jle 0x140012ea8
mov rcx, r14
mov r8, r15
jmp 0x140012cf9
test al, 4
jne 0x140012e90
test eax, eax
je 0x140012dc7
movzx r9d, byte [r11]
mov byte [rdx], r9b
test al, 2
je 0x140012dc7
mov r9d, eax
movzx r10d, word [r11 + r9 - 2]
mov word [rdx + r9 - 2], r10w
jmp 0x140012dc7
mov r9d, dword [r11]
mov dword [rdx], r9d
mov r9d, eax
mov r10d, dword [r11 + r9 - 4]
mov dword [rdx + r9 - 4], r10d
jmp 0x140012dc7
lea rdx, [rsi - 1]
mov rcx, r14
call sym.raiseIndexError2
jmp 0x140012d2b
Function at 0x1400209a0
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 r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x1400215d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400404a8]
test eax, eax
je 0x14002166a
lea rax, [0x140040480]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400404b0]
mov qword [rbp - 8], rax
jmp 0x14002164e
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 0x140021642
cmp qword [rbp - 0x10], 0
je 0x140021642
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 0x140021608
lea rax, [0x140040480]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14002166b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140021770
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 0x140021798
mov eax, 0
jmp 0x1400217e6
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 0x1400217c1
mov eax, 0
jmp 0x1400217e6
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 0x1400217e1
mov eax, 0
jmp 0x1400217e6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400217ec
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14002186a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140021861
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140021861
mov rax, qword [rbp - 8]
jmp 0x14002187f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140021834
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400292e4
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x14002942e
mov rcx, qword [rbp + 0x10]
call sym.pthread_spin_destroy
cmp eax, 1
jne 0x140029421
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov word [rbp - 8], 0
mov byte [rbp - 6], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.msvcrt.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x1400293d7
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x1400293ed
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x1400293d3
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x14002940c
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sym.abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x14002942f
nop
add rsp, 0x90
pop rbp
ret