joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140172b60
Capabilities:
Timestomp file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rbx, rdx
or edi, 0xffffffff
xor esi, esi
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov edx, 0x100
mov dword [rsp + 0x28], 0x2000080
lea r8d, [rdi + 4]
mov dword [rsp + 0x20], 3
call fcn.140173df0
mov rcx, rax
call fcn.1401710c0
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140172c0b
test rbx, rbx
jne 0x140172bcb
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x78], rax
jmp 0x140172be6
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.140173ec0
lea rcx, [rbx + 8]
lea rdx, [rsp + 0x78]
call fcn.140173ec0
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x78]
lea r8, [rsp + 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileTime]
movsxd rcx, eax
call fcn.140171070
test rax, rax
cmovne edi, esi
lea rcx, [rsp + 0x40]
call fcn.140173db0
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x140173470
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, edx
mov r8d, ecx
xor ebx, ebx
xor edx, edx
lea ecx, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, rax
call fcn.1401710c0
mov rsi, rax
test rax, rax
jne 0x1401734b4
or eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
test edi, edi
je 0x14017350d
cmp edi, 9
je 0x1401734ec
cmp edi, 0x16
je 0x1401734ec
mov rax, qword gs:[0x58]
mov edx, 0x2f80
mov rcx, qword [rax]
mov rax, qword [rdx + rcx]
test rax, rax
jne 0x1401734e1
call fcn.1401760e4
mov dword [rax], reloc.WS2_32.dll_shutdown
or ebx, 0xffffffff
jmp 0x14017350d
or edx, 0xffffffff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
movsxd rcx, eax
call fcn.140171070
mov ecx, ebx
or ebx, 0xffffffff
test rax, rax
cmove ecx, ebx
mov ebx, ecx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1401737e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
mov rax, qword gs:[0x58]
mov rdx, rcx
mov ecx, 0x3380
add rcx, 0x20
add rcx, qword [rax]
call fcn.140173c30
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x140175dfc
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea r9, str.FlsAlloc
xor ecx, ecx
lea r8, [0x1402327c8]
lea rdx, str.FlsAlloc
call fcn.140175c24
mov rbx, rax
test rax, rax
je 0x140175e3c
mov rcx, rax
call fcn.1401746ac
mov rcx, rdi
call rbx
jmp 0x140175e42
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140175ea4
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, str.FlsSetValue
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x140232800]
call fcn.140175c24
mov rsi, rax
test rax, rax
je 0x140175ef0
mov rcx, rax
call fcn.1401746ac
mov rdx, rbx
mov ecx, edi
call rsi
jmp 0x140175efb
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1401763c4
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140176198
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140176198
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140176198
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140176198
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140176198
cmp dword [rcx + 0x84], 0xe
jbe 0x140176198
cmp dword [rcx + 0xf8], esi
je 0x140176198
mov ecx, r14d
call fcn.1401762e0
mov ecx, 2
call fcn.14018dcec
nop
cmp byte [0x14027ca80], 0
jne 0x140176262
mov r15d, 1
mov eax, r15d
xchg dword [0x14027ca70], eax
test ebx, ebx
jne 0x14017620b
mov rdi, qword [0x140274dd0]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14027ca78]
cmp rcx, rax
je 0x140176202
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [0x1401a4890]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14027d138]
jmp 0x140176217
cmp ebx, r15d
jne 0x14017621d
lea rcx, [0x14027d150]
call fcn.14018d07c
nop
test ebx, ebx
jne 0x140176234
lea rdx, [0x1401a4c60]
lea rcx, [0x1401a4c40]
call fcn.14018ca60
lea rdx, [0x1401a4db0]
lea rcx, [0x1401a4c68]
call fcn.14018ca60
movzx eax, byte [0x14027ca80]
test esi, esi
cmove eax, r15d
mov byte [0x14027ca80], al
jmp 0x140176262
mov ecx, 2
call fcn.14018dd40
test esi, esi
jne 0x140176279
mov ecx, r14d
call fcn.140176294
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140176128
Function at 0x14018eba4
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x14018ea44
call fcn.1401760e4
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14018d6bc
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14018ea2c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x14018ea2c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x14018ea76
lock or dword [rax + 0x14], 0x10
jmp 0x14018ea2c
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14018ea93
mov rcx, qword [rbp + 0x10]
call fcn.1401942a0
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140187094
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.14018ad28
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x14018eaea
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x14018ea2c
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14018eb56
mov rcx, qword [rbp + 0x10]
call fcn.140187094
cmp eax, 0xffffffff
je 0x14018eb3d
mov rcx, qword [rbp + 0x10]
call fcn.140187094
cmp eax, 0xfffffffe
je 0x14018eb3d
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.140187094
movsxd rdi, eax
lea rsi, [0x14027cbe0]
mov rcx, rbx
sar rdi, 6
call fcn.140187094
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x14018eb44
lea rax, [0x1402750c0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14018eb56
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x14018eb8c
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14018eb88
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14018eb88
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x14018ea2f
jmp 0x14018e9fc

Function at 0x14019044c
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x140190429
call fcn.1401760e4
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14018d6bc
or eax, 0xffffffff
jmp 0x140190446
sub dword [rcx + 0x10], 1
jns 0x140190438
add rsp, 0x28
jmp fcn.14018eba4
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x140190408
Function at 0x1401912f4
Capabilities:
Create thread
Print debug messages

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, 0x50
mov esi, r8d
mov r14, rdx
mov rbx, rcx
call fcn.14018e6dc
mov bpl, al
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor edi, edi
test eax, eax
je 0x140191347
test rbx, rbx
je 0x140191338
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test bpl, bpl
je 0x140191347
mov edi, 4
jmp 0x1401913f0
call fcn.14018e4e4
test al, al
jne 0x140191364
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
neg eax
sbb edi, edi
neg edi
add edi, 3
jmp 0x1401913f0
test bpl, bpl
je 0x1401913c7
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x30]
lea r8, [0x1401912cc]
mov dword [rsp + 0x20], edi
xor edx, edx
mov qword [rsp + 0x30], r14
xor ecx, ecx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x44], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401913f0
xor r8d, r8d
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, rbx
test eax, eax
je 0x1401913c1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1401913f0
mov edi, dword [rsp + 0x44]
jmp 0x1401913b9
call fcn.14018e608
test al, al
jne 0x1401913d8
bts esi, 0x15
xor ecx, ecx
jmp 0x1401913e0
call fcn.14018e540
mov rcx, rax
mov r9d, esi
mov r8, r14
mov rdx, rbx
call fcn.14018e3d0
mov edi, eax
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x140198f90
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
cmp qword [0x14027d5f8], 0
je 0x14019904b
cmp dword [0x14027d614], 0
je 0x14019904b
call fcn.14019d0e0
test eax, eax
je 0x140199013
mov r9d, dword [0x14027d614]
lea rdx, [rsp + 0x30]
mov r8, qword [0x14027d608]
xor ecx, ecx
call fcn.14019c6e0
test rax, rax
je 0x140199013
movsxd rdx, dword [rsp + 0x30]
mov r8d, 1
mov r9, qword [0x14027d5f8]
mov rcx, rax
call fcn.14017e464
movsxd rax, dword [0x14027d614]
add qword [0x14027d600], rax
mov dword [0x14027d614], 0
call fcn.140199220
add rsp, 0x28
ret
movsxd rdx, dword [0x14027d614]
mov r8d, 1
mov r9, qword [0x14027d5f8]
mov rcx, qword [0x14027d608]
call fcn.14017e464
movsxd rax, dword [0x14027d614]
add qword [0x14027d600], rax
mov dword [0x14027d614], 0
add rsp, 0x28
ret

Function at 0x1401994a0
Capabilities:
Write file on windows

Disassembly:
cmp qword [0x14027d700], 0
jne fcn.14019b3d0
jmp fcn.140198f90

Function at 0x1401995d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
cmp dword [0x14027d638], 0
mov rbp, rcx
movsxd rsi, edx
jne 0x140199612
call fcn.14019d0e0
test eax, eax
jne 0x140199612
mov r9, qword [0x14027d5f8]
lea r8d, [rax + 1]
mov rdx, rsi
mov rcx, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
jmp fcn.14017e464
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
nop dword [rax]
movsxd rcx, dword [0x14027d614]
mov edi, esi
mov eax, dword [0x14027d618]
mov rdx, rbp
sub eax, ecx
cmp esi, eax
cmovge edi, eax
add rcx, qword [0x14027d608]
movsxd rbx, edi
mov r8, rbx
call fcn.140174ce0
add dword [0x14027d614], edi
add rbp, rbx
sub esi, edi
je 0x140199670
cmp qword [0x14027d700], 0
je 0x140199669
call fcn.14019b3d0
jmp 0x140199620
call fcn.140198f90
jmp 0x140199620
cmp dword [0x14027d638], 0
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
jne 0x1401996a1
cmp qword [0x14027d700], 0
je 0x14019969c
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
jmp fcn.14019b3d0
call fcn.140198f90
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
Function at 0x14019b060
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
lea r8, [0x14019b7e0]
mov rbx, rdx
lea rcx, [rsp + 0x28]
sub rcx, 8
lea rdx, [rsp + 0x48]
call fcn.140028f10
mov r8d, 0x80
mov qword [rsp + 0x48], rax
lea rdx, str.last__dKB_of_log_file:_n
mov dword [rsp + 0x40], 0x30400
mov rcx, rsi
xor edi, edi
call fcn.140021930
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call fcn.14002a2b0
mov rdx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x40]
mov rcx, rbx
mov rdx, qword [rdx]
call fcn.14002cb10
test eax, eax
jne 0x14019b181
mov r9, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
mov rbx, qword [r9]
cmp ecx, 0x20000
jle 0x14019b168
mov edx, ebx
sub edx, ebx
add edx, ecx
mov rcx, rbx
call fcn.14019cf00
test rax, rax
je 0x14019b153
nop word [rax + rax]
mov r9, qword [rsp + 0x48]
mov rcx, rax
sub rcx, qword [r9]
cmp rcx, 0x10400
jge 0x14019b145
mov edx, dword [r9]
mov rdi, rax
inc rax
sub edx, eax
mov rcx, rax
add edx, dword [rsp + 0x40]
call fcn.14019cf00
test rax, rax
jne 0x14019b110
mov r9, qword [rsp + 0x48]
test rdi, rdi
je 0x14019b158
mov ecx, dword [rsp + 0x40]
mov rbx, rdi
jmp 0x14019b168
mov r9, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
lea eax, [rcx - 0x20000]
movsxd rdx, eax
add rbx, rdx
movsxd r8, ecx
mov edx, 1
sub r8, rbx
mov rcx, rbx
add r8, qword [r9]
mov r9, rsi
call fcn.14017e464
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14019c1c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call fcn.14019b960
lea rdi, [rsp + 0x28]
mov r8, rax
lea rcx, [rdi - 8]
mov rbx, rax
lea rdx, str._s.sending
call fcn.1400292a0
mov rcx, qword [rax]
call fcn.140171cd0
mov r8, rbx
lea rdx, str._s.sent
lea rcx, [rdi - 8]
call fcn.1400292a0
lea rdx, [0x1401a4de0]
mov rcx, qword [rax]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14002cc30

Function at 0x14019c9b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov eax, r9d
mov rbx, rdx
cmp r9d, 0xffffffff
jne 0x14019c9d0
or rax, 0xffffffffffffffff
inc rax
cmp byte [r8 + rax], 0
jne 0x14019c9c6
mov r9d, eax
lea rdx, [rsp + 0x48]
call fcn.14019c6e0
test rax, rax
je 0x14019c9fc
movsxd r8, dword [rsp + 0x48]
mov r9, rbx
mov edx, 1
mov rcx, rax
add rsp, 0x20
pop rbx
jmp fcn.14017e464
add rsp, 0x20
pop rbx
ret

Function at 0x14019ce70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov ebx, r8d
lea rdx, str.wbEe
call fcn.14002c4c0
mov qword [rsp + 0x20], rax
mov rsi, rax
test rax, rax
je 0x14019cee6
cmp ebx, 0xffffffff
jne 0x14019ceb0
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdi + rbx], 0
jne 0x14019cea7
mov r9d, ebx
lea rdx, [rsp + 0x58]
mov r8, rdi
xor ecx, ecx
call fcn.14019c6e0
test rax, rax
je 0x14019cedc
movsxd r8, dword [rsp + 0x58]
mov r9, rsi
mov edx, 1
mov rcx, rax
call fcn.14017e464
lea rcx, [rsp + 0x20]
call fcn.14002c490
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140001ac0
Capabilities:
Check os version
Parse pe header
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x88
mov rax, qword gs:[0x60]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x140001aeb
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x118], 0xa
je 0x140001af2
xor eax, eax
jmp 0x140001ca9
mov dword [rsp + 0x38], 7
mov dword [rsp + 0x58], 0x15
mov dword [rsp + 0x28], 0
mov ecx, 5
call fcn.140001dd0
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x5c], eax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
sub rax, 0x10
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140001b56
xor eax, eax
jmp 0x140001ca9
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140001b76
xor eax, eax
jmp 0x140001ca9
mov rax, qword [rsp + 0x48]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
cmp dword [rax], 0x4550
je 0x140001ba3
xor eax, eax
jmp 0x140001ca9
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140001bd7
xor eax, eax
jmp 0x140001ca9
mov dword [rsp + 0x3c], 7
mov dword [rsp + 0x60], 0x15
mov dword [rsp + 0x64], 0
mov ecx, 5
call fcn.140001dd0
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x68], eax
mov rax, qword [rsp + 0x20]
mov qword [0x1400030f0], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x18]
mov dword [0x1400030e8], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [0x1400030d8], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [0x1400030d0], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [0x1400030e0], rax
cmp qword [0x1400030f0], 0
je 0x140001c9e
cmp dword [0x1400030e8], 0
je 0x140001c9e
cmp qword [0x1400030d8], 0
je 0x140001c9e
cmp qword [0x1400030d0], 0
je 0x140001c9e
cmp qword [0x1400030e0], 0
jne 0x140001ca4
xor eax, eax
jmp 0x140001ca9
mov eax, 1
add rsp, 0x88
ret
Function at 0x140001cc0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x20], 0xffffffff
mov dword [rsp + 0x2c], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x38], 7
mov dword [rsp + 0x44], 0x15
mov dword [rsp + 0x34], 0
mov ecx, 5
call fcn.140001dd0
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x48], eax
movsxd rax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x60]
movsx eax, byte [rcx + rax]
test eax, eax
je 0x140001dba
movsxd rax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x60]
movsx eax, byte [rcx + rax]
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x24], 1
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 7
jmp 0x140001d6b
mov eax, dword [rsp + 0x28]
dec eax
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jl 0x140001da0
mov eax, dword [rsp + 0x20]
and eax, 1
imul eax, eax, 0xffffffff
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x20]
shr eax, 1
mov ecx, dword [rsp + 0x40]
and ecx, 0xedb88320
xor eax, ecx
mov dword [rsp + 0x20], eax
jmp 0x140001d61
mov eax, dword [rsp + 0x24]
add eax, 4
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
jmp 0x140001d0f
mov eax, dword [rsp + 0x20]
not eax
add rsp, 0x58
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400088f0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140008900]
mov dword [rax], 1
mov rax, qword [0x140008910]
mov dword [rax], 1
mov rax, qword [0x1400088a0]
cmp word [rax], 0x5a4d
jne 0x14000105e
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c8
mov rax, qword [0x1400088e0]
mov dword [0x14000b00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b8
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400089b0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140008990]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140008830]
cmp dword [rax], 1
je 0x140001100
xor eax, eax
add rsp, 0x20
pop rbp
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x14000107b
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001118
cmp dx, 0x20b
jne 0x14000105e
cmp dword [rax + 0x84], 0xe
jbe 0x14000105e
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105e
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x20
pop rbp
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105e
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105e

Function at 0x1400018a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rbx, rcx
lea rax, [rbp + 0x28]
mov ecx, 2
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
mov qword [rbp - 8], 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 rsi, qword [rbp - 8]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001910
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
movsxd rsi, dword [0x14000b0a4]
mov rbx, rcx
test esi, esi
jle 0x140001a40
mov rax, qword [0x14000b0a8]
xor r9d, r9d
add rax, 0x18
nop dword [rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000195b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400019e3
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001940
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001a62
mov rax, qword [0x14000b0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000b0a8]
lea rdx, [rbp - 0x30]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a47
mov eax, dword [rbp - 0xc]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400019dc
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400019f0
add dword [0x14000b0a4], 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 2
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000b0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400019dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop word [rax + rax]
xor esi, esi
jmp 0x140001968
mov rax, qword [0x14000b0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001ff0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
lea r13, [0x14000b100]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000b0e0]
test rbx, rbx
je 0x140002055
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [rbx]
call r12
mov rsi, rax
call rdi
test rsi, rsi
je 0x14000204c
test eax, eax
jne 0x14000204c
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002030
mov rcx, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002290
Capabilities:
Parse pe header

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