joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b180
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400306f8]
test rax, rax
jne 0x14000b1a4
jmp 0x14000b3a9
mov ecx, dword [rsp + 0x88]
call fcn.14000b120
mov rdx, rax
lea rcx, str._info__TLS_callback_enter___s__n
call fcn.1400015f5
cmp dword [rsp + 0x88], 1
jne 0x14000b1f4
mov rax, qword [0x1400306f8]
test rax, rax
je 0x14000b1f4
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140030700], eax
mov rax, qword [0x1400306f8]
mov rax, qword [rax + 0x10]
mov ecx, dword [0x140030700]
mov dword [rax], ecx
cmp dword [rsp + 0x88], 2
je 0x14000b20c
cmp dword [rsp + 0x88], 1
jne 0x14000b2bf
mov rax, qword [0x1400306f8]
mov rcx, qword [0x1400306f8]
mov rcx, qword [rcx]
mov rax, qword [rax + 8]
sub rax, rcx
inc rax
mov qword [rsp + 0x20], rax
mov rax, qword [0x1400306f8]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov r9d, 4
mov r8d, 0x3000
mov rdx, qword [rsp + 0x28]
xor ecx, ecx
call fcn.140001bd6
mov qword [rsp + 0x30], rax
mov rax, qword [0x1400306f8]
mov r8, qword [0x140030708]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x30]
call sub.VCRUNTIME140D.dll_memcpy
mov rax, qword [0x1400306f8]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
add rdx, rcx
mov rcx, rdx
mov r8d, eax
xor edx, edx
call sub.VCRUNTIME140D.dll_memset
mov rdx, qword [rsp + 0x30]
mov ecx, dword [0x140030700]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rcx, str.___info__Copied_TLS_data_n
call fcn.1400015f5
mov dword [rsp + 0x38], 0
jmp 0x14000b2d3
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
movsxd rax, dword [rsp + 0x38]
mov qword [rsp + 0x48], rax
lea rcx, [0x1400306d0]
call fcn.140001c03
mov rcx, qword [rsp + 0x48]
cmp rcx, rax
jae 0x14000b382
movsxd rax, dword [rsp + 0x38]
mov rdx, rax
lea rcx, [0x1400306d0]
call fcn.14000176c
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
lea rcx, [0x1400306d0]
call fcn.140001c03
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x38]
inc eax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov edx, eax
lea rcx, str.___info__Calling_TLS_callback__i__lli__0x_llx__n
call fcn.1400015f5
movsxd rax, dword [rsp + 0x38]
mov rdx, rax
lea rcx, [0x1400306d0]
call fcn.14000176c
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x60], rax
xor r8d, r8d
mov edx, dword [rsp + 0x88]
mov rcx, qword [0x1400306f0]
call qword [rsp + 0x60]
jmp 0x14000b2c9
lea rcx, str.___info__Called_TLS_callbacks_n
call fcn.1400015f5
mov ecx, dword [rsp + 0x88]
call fcn.14000b120
mov rdx, rax
lea rcx, str._info__TLS_callback_exit___s__n
call fcn.1400015f5
add rsp, 0x70
pop rdi
ret
Function at 0x14000b3b0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x14000b3b0
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
mov qword [rsp], 0x26f
mov qword [rsp + 8], 0xe3
mov qword [rsp + 0x10], 0
jmp 0x14000b3e3
mov rax, qword [rsp + 0x10]
inc rax
mov qword [rsp + 0x10], rax
cmp qword [rsp + 0x10], 0xe3
jae 0x14000b46a
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x10]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x10]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x18]
and eax, 1
test eax, eax
je 0x14000b434
mov dword [rsp + 0x3c], 0x9908b0df
jmp 0x14000b43c
mov dword [rsp + 0x3c], 0
mov eax, dword [rsp + 0x18]
shr eax, 1
xor eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x10]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x10]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14000b3d6
mov qword [rsp + 0x20], 0xe3
jmp 0x14000b482
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0x26f
jae 0x14000b509
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x20]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x20]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
and eax, 1
test eax, eax
je 0x14000b4d3
mov dword [rsp + 0x40], 0x9908b0df
jmp 0x14000b4db
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x28]
shr eax, 1
xor eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x20]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x20]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14000b475
mov qword [rsp + 0x30], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x60]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
and eax, 1
test eax, eax
je 0x14000b55d
mov dword [rsp + 0x44], 0x9908b0df
jmp 0x14000b565
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x38]
shr eax, 1
xor eax, dword [rsp + 0x44]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rsp + 0x60]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rsp + 0x60]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rsp + 0x60]
mov dword [rax], 0
add rsp, 0x50
pop rdi
ret
Function at 0x1400131f0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x1400131f0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov r9d, 0x6c078965
mov r8d, 0xffffffff
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.14000134d
mov rax, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140013630
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x140013630
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x270
jne 0x140013653
mov rcx, qword [rsp + 0x40]
call fcn.140001235
jmp 0x14001366a
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4e0
jb 0x14001366a
mov rcx, qword [rsp + 0x40]
call fcn.14000163b
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0xb
mov rcx, qword [rsp + 0x40]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x12
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret
Function at 0x140014d10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x140014d10
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov qword [rsp + 0x20], 0
cmp qword [rsp + 0x80], 0
jne 0x140014d3a
xor eax, eax
jmp 0x140014e67
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], 0
jmp 0x140014dbb
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x50], eax
jae 0x140014e62
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x88]
call fcn.1400014fb
movzx eax, al
test eax, eax
je 0x140014e5d
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x50]
movzx eax, word [rax + rcx*2]
mov word [rsp + 0x60], ax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx ecx, word [rsp + 0x60]
mov eax, dword [rax + rcx*4]
mov dword [rsp + 0x64], eax
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x64]
call fcn.14000149c
mov qword [rsp + 0x20], rax
jmp 0x140014e62
jmp 0x140014db1
mov rax, qword [rsp + 0x20]
add rsp, 0x70
pop rdi
ret
Function at 0x140017e50
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
jmp 0x140017e50
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x90
lea rdi, [rsp + 0x40]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0xa0]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x64], 0
mov qword [rsp + 0x78], 0
movzx eax, word [rsp + 0xa0]
mov r8d, 0xa
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140017eea
lea rcx, str._error__FindResource_n
call fcn.1400015f5
call fcn.1400011a4
xor eax, eax
jmp 0x140018037
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140017f1c
lea rcx, str._error__LoadResource_n
call fcn.1400015f5
call fcn.1400011a4
xor eax, eax
jmp 0x140018037
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x140017f4c
lea rcx, str._error__LockResource_n
call fcn.1400015f5
call fcn.1400011a4
xor eax, eax
jmp 0x140018037
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jne 0x140017f7c
lea rcx, str._error__SizeOfResource_n
call fcn.1400015f5
call fcn.1400011a4
xor eax, eax
jmp 0x140018037
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0xffffffffffffffff
jne 0x140017fd3
lea rcx, str._error__WriteResourceToDisk.CreateFile_n
call fcn.1400015f5
call fcn.1400011a4
mov eax, 0xffffffff
jmp 0x140018037
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x64]
mov r8d, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x80], eax
cmp dword [rsp + 0x80], 0
jne 0x14001801c
lea rcx, str._error__WriteResourceToDisk.WriteFile_n
call fcn.1400015f5
call fcn.1400011a4
xor eax, eax
jmp 0x140018037
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, 1
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14002a460]
call fcn.140001a3c
mov rax, rdi
add rsp, 0x90
pop rdi
ret
Function at 0x1400181d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400181d0
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x28], 0
jmp 0x140018208
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x28], eax
jae 0x1400182ce
mov eax, dword [rsp + 0x20]
inc eax
xor edx, edx
mov ecx, 0x100
div ecx
mov eax, edx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
xor edx, edx
mov ecx, 0x100
div ecx
mov eax, edx
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x40]
add rdx, rcx
mov rcx, rdx
mov rdx, rax
call fcn.140001c76
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x40]
movzx ecx, byte [rdx + rcx]
add eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
cdqe
mov rcx, qword [rsp + 0x40]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x28]
mov rdx, qword [rsp + 0x48]
movzx ecx, byte [rdx + rcx]
xor ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x28]
mov rdx, qword [rsp + 0x48]
mov byte [rdx + rcx], al
jmp 0x1400181fe
add rsp, 0x30
pop rdi
ret
Function at 0x14264c070
Capabilities:
Terminate process

Disassembly:
out 0xb6, eax
jnp 0x12dfbe524
test dword [rdi + 0xc95d62a], edi
add eax, 0x43d9e204
invalid
cld
pop r11
jmp 0x14264c07d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14264c08d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14264c075
lea eax, [rcx + 1]
jmp 0x14264c09b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14264c0ae
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14264c094
sub eax, 3
jb 0x14264c0ce
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14264c11d
sar eax, 1
movsxd rbp, eax
jb 0x14264c104
jmp 0x14264c0dc
add ebx, ebx
jne 0x14264c0da
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14264c104
inc ecx
add ebx, ebx
jne 0x14264c0ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14264c104
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14264c0fd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14264c0ec
add ecx, 2
jmp 0x14264c109
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14264c032
jmp 0x14264c07d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0x2649000]
mov eax, dword [rdi]
or eax, eax
je 0x14264c189
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x266ecf4]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14264c12d
jns 0x14264c162
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14264c16c
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14264c183
mov qword [rbx], rax
add rbx, 8
jmp 0x14264c14d
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14264c1cd
cmp al, 0xef
ja 0x14264c1b5
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14264c195
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x14264c1a4
mov eax, dword [rdi]
add rdi, 4
jmp 0x14264c1a4
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x257]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14264c221
sub rsp, 0xffffffffffffff80
jmp 0x142034410
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x1400069e0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1400069f0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.140002ff0
jmp 0x14000123c
mov rax, qword [0x1400069f0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400069f0]
mov dword [rax], 1
mov rax, qword [0x140006a30]
mov rdx, rax
mov rax, qword [0x140006a20]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x14000a024], 1
mov rax, qword [0x1400069f0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x140006a10]
mov rdx, rax
mov rax, qword [0x140006a00]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1400069f0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x1400069e0]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x140006940]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x140006940]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.140002268
mov rax, qword [0x140006a70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x1400069d0]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.140001a60
mov eax, dword [0x14000a004]
lea rdx, [0x14000a008]
mov ecx, eax
call fcn.14000147c
call fcn.1400017f7
mov rax, qword [0x140006960]
mov rax, qword [rax]
mov rdx, qword [0x14000a010]
mov qword [rax], rdx
mov rcx, qword [0x14000a010]
mov rdx, qword [0x14000a008]
mov eax, dword [0x14000a004]
mov r8, rcx
mov ecx, eax
call fcn.140004d40
mov dword [0x14000a01c], eax
mov eax, dword [0x14000a020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14000a01c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x14000a024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14000a01c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140006990]
mov dword [rax], 1
mov rax, qword [0x1400069a0]
mov dword [rax], 1
mov rax, qword [0x1400069b0]
mov dword [rax], 1
mov rax, qword [0x140006950]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
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 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001a70
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.140002de0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x140002742
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000a168]
test eax, eax
je 0x1400027da
lea rax, [0x14000a140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000a170]
mov qword [rbp - 8], rax
jmp 0x1400027be
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 0x1400027b2
cmp qword [rbp - 0x10], 0
je 0x1400027b2
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 0x140002778
lea rax, [0x14000a140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400027db
nop
add rsp, 0x30
pop rbp
ret