joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010d00
Capabilities:
Enumerate pe sections
Terminate process

Disassembly:
jmp 0x140010d00
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x100
lea rdi, [rsp + 0x20]
mov ecx, 0x38
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x110]
mov dword [rsp + 0xe8], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x20]
call fcn.140001055
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0
xor eax, eax
mov word [rsp + 0x40], ax
jmp 0x140010d84
movzx eax, word [rsp + 0x40]
inc ax
mov word [rsp + 0x40], ax
movzx eax, word [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
movzx ecx, word [rcx + 6]
cmp eax, ecx
jge 0x140010de0
movzx eax, word [rsp + 0x40]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov r8d, 5
lea rdx, str..pck
mov rcx, rax
call fcn.140002ef0
test eax, eax
jne 0x140010dde
movzx eax, word [rsp + 0x40]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
jmp 0x140010de0
jmp 0x140010d77
cmp qword [rsp + 0x38], 0
jne 0x140010df3
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 8]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x48]
add rax, 8
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 8]
sub rax, 8
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0xe4]
call fcn.14000371a
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x110]
call fcn.14000400c
mov qword [rsp + 0xf0], rax
mov eax, dword [rsp + 0xe8]
or eax, 1
mov dword [rsp + 0xe8], eax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0xb4], eax
mov edx, 2
lea rcx, [rsp + 0xd8]
call fcn.140005c77
lea r9, [0x1401955c0]
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0xd8]
call fcn.1400059cf
mov rcx, qword [rsp + 0x110]
call fcn.140006a82
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
lea rdx, [rsp + 0xb4]
mov rcx, rax
call fcn.14000685c
test eax, eax
je 0x140010f2a
lea rdx, str.Error:_couldnt_decompress_image_data.
lea rcx, [0x1401e8ed0]
call fcn.140001910
mov qword [rsp + 0xf8], rax
lea rdx, [0x140001339]
mov rcx, qword [rsp + 0xf8]
call fcn.140003a44
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rax, qword [rsp + 0x110]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140195730]
call fcn.1400054a2
mov rax, rdi
add rsp, 0x100
pop rdi
ret
Function at 0x140010f60
Capabilities:
Allocate or change rwx memory
Enumerate pe sections

Disassembly:
jmp 0x140010f60
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov rcx, qword [rsp + 0x80]
call fcn.140001131
mov rcx, rax
call fcn.140004e53
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x20]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x50]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov r9d, 0x40
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x54]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x80]
call fcn.140001131
mov qword [rsp + 0x50], rax
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call fcn.140003832
xor eax, eax
mov word [rsp + 0x40], ax
jmp 0x140011010
movzx eax, word [rsp + 0x40]
inc ax
mov word [rsp + 0x40], ax
movzx eax, word [rsp + 0x40]
mov rcx, qword [rsp + 0x20]
movzx ecx, word [rcx + 6]
cmp eax, ecx
jge 0x1400110b4
movzx eax, word [rsp + 0x40]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x10], 0
jbe 0x1400110af
movzx eax, word [rsp + 0x40]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax + 0x10]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x80]
call fcn.140001131
movzx ecx, word [rsp + 0x40]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 0x28]
mov ecx, dword [rdx + rcx + 0x14]
add rax, rcx
mov qword [rsp + 0x60], rax
movzx eax, word [rsp + 0x40]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call fcn.140003832
jmp 0x140011003
mov rax, qword [rsp + 0x38]
add rsp, 0x70
pop rdi
ret

Function at 0x140018dc0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
jmp 0x140018dc0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov dword [rsp], 0
jmp 0x140018de0
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 4
jae 0x140018e7e
mov dword [rsp + 4], 0
jmp 0x140018dfe
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
cmp dword [rsp + 4], 4
jae 0x140018e79
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax*4]
mov ecx, dword [rsp + 4]
movzx eax, byte [rax + rcx]
mov byte [rsp + 8], al
movzx eax, byte [rsp + 8]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
cdqe
imul rax, rax, 0x10
lea rcx, str.cw
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
movzx ecx, byte [rsp + 8]
mov eax, ecx
cdq
and edx, 0xf
add eax, edx
and eax, 0xf
sub eax, edx
cdqe
mov ecx, dword [rsp]
mov rdx, qword [rsp + 0x38]
lea rcx, [rdx + rcx*4]
mov edx, dword [rsp + 4]
mov r8, qword [rsp + 0x10]
movzx eax, byte [r8 + rax]
mov byte [rcx + rdx], al
jmp 0x140018df4
jmp 0x140018dd8
add rsp, 0x20
pop rdi
ret
Function at 0x1400192e0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
jmp 0x1400192e0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x10
mov dword [rsp], 0
jmp 0x140019300
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 4
jge 0x140019368
movsxd rax, dword [rsp]
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
cdqe
imul rax, rax, 0x10
lea rcx, str.cw
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
movsxd rcx, dword [rsp]
mov rdx, qword [rsp + 0x28]
movzx ecx, byte [rdx + rcx]
mov eax, ecx
cdq
and edx, 0xf
add eax, edx
and eax, 0xf
sub eax, edx
cdqe
movsxd rcx, dword [rsp]
mov rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 8]
movzx eax, byte [r8 + rax]
mov byte [rdx + rcx], al
jmp 0x1400192f8
add rsp, 0x10
pop rdi
ret

Function at 0x140019560
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
jmp 0x140019560
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
mov dword [rsp], 0
jmp 0x140019580
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 4
jae 0x14001961e
mov dword [rsp + 4], 0
jmp 0x14001959e
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
cmp dword [rsp + 4], 4
jae 0x140019619
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax*4]
mov ecx, dword [rsp + 4]
movzx eax, byte [rax + rcx]
mov byte [rsp + 8], al
movzx eax, byte [rsp + 8]
cdq
and edx, 0xf
add eax, edx
sar eax, 4
cdqe
imul rax, rax, 0x10
lea rcx, [0x140196dd0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
movzx ecx, byte [rsp + 8]
mov eax, ecx
cdq
and edx, 0xf
add eax, edx
and eax, 0xf
sub eax, edx
cdqe
mov ecx, dword [rsp]
mov rdx, qword [rsp + 0x38]
lea rcx, [rdx + rcx*4]
mov edx, dword [rsp + 4]
mov r8, qword [rsp + 0x10]
movzx eax, byte [r8 + rax]
mov byte [rcx + rdx], al
jmp 0x140019594
jmp 0x140019578
add rsp, 0x20
pop rdi
ret
Function at 0x140019630
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140019630
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
lea rdi, [rsp + 0x20]
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x90]
mov rax, qword [0x1401e6440]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x48], 0
jmp 0x140019682
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 4
jae 0x1400196a6
mov rax, qword [rsp + 0x48]
lea rax, [rsp + rax*4 + 0x28]
mov r8d, 4
xor edx, edx
mov rcx, rax
call fcn.140004de5
jmp 0x140019675
mov qword [rsp + 0x50], 0
jmp 0x1400196be
mov rax, qword [rsp + 0x50]
inc rax
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 4
jae 0x140019791
mov qword [rsp + 0x58], 0
jmp 0x1400196e2
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 4
jae 0x14001978c
mov qword [rsp + 0x60], 0
jmp 0x140019706
mov rax, qword [rsp + 0x60]
inc rax
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 4
jae 0x140019787
lea rax, [0x140197de0]
mov rcx, qword [rsp + 0x50]
lea rax, [rax + rcx*4]
mov rcx, qword [rsp + 0x58]
movzx eax, byte [rax + rcx]
imul rax, rax, 0x100
lea rcx, [0x140196ed0]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x98]
mov rdx, qword [rsp + 0x58]
lea rcx, [rcx + rdx*4]
mov rdx, qword [rsp + 0x60]
movzx ecx, byte [rcx + rdx]
movzx eax, byte [rax + rcx]
mov rcx, qword [rsp + 0x50]
lea rcx, [rsp + rcx*4 + 0x28]
mov rdx, qword [rsp + 0x60]
movzx ecx, byte [rcx + rdx]
xor ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x50]
lea rcx, [rsp + rcx*4 + 0x28]
mov rdx, qword [rsp + 0x60]
mov byte [rcx + rdx], al
jmp 0x1400196f9
jmp 0x1400196d5
jmp 0x1400196b1
mov qword [rsp + 0x68], 0
jmp 0x1400197a9
mov rax, qword [rsp + 0x68]
inc rax
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 4
jae 0x1400197dc
mov rax, qword [rsp + 0x68]
lea rax, [rsp + rax*4 + 0x28]
mov rcx, qword [rsp + 0x98]
mov rdx, qword [rsp + 0x68]
lea rcx, [rcx + rdx*4]
mov r8d, 4
mov rdx, rax
call fcn.140003832
jmp 0x14001979c
mov rcx, rsp
lea rdx, [0x140197f10]
call fcn.1400054a2
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000380f
add rsp, 0x80
pop rdi
ret
Function at 0x140023aa0
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x10
mov dword [rsp], 0x80000000
mov dword [rsp + 4], 0
mov eax, dword [rsp]
mov ecx, dword [rsp + 0x20]
and ecx, eax
mov eax, ecx
test eax, eax
je 0x140023aee
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 4], eax
mov eax, dword [rsp]
dec eax
mov ecx, dword [rsp + 0x20]
and ecx, eax
mov eax, ecx
test eax, eax
jne 0x140023aee
jmp 0x140023b26
mov eax, dword [rsp]
shr eax, 1
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
and eax, 1
test eax, eax
je 0x140023b12
mov eax, dword [rsp + 0x28]
shr eax, 1
xor eax, 0xedb88320
mov dword [rsp + 8], eax
jmp 0x140023b1c
mov eax, dword [rsp + 0x28]
shr eax, 1
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
mov dword [rsp + 0x28], eax
jmp 0x140023abc
mov eax, dword [rsp + 4]
add rsp, 0x10
pop rdi
ret

Function at 0x140023bc0
Capabilities:
Encrypt data using rc4 prga
Hash data with crc32

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x10
mov dword [rsp], 0
jmp 0x140023bda
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 4
jge 0x140023c03
mov eax, dword [rsp + 0x20]
shr eax, 8
mov ecx, dword [rsp + 0x20]
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x140199c80]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 0x20], eax
jmp 0x140023bd2
mov eax, dword [rsp + 0x20]
add rsp, 0x10
pop rdi
ret

Function at 0x140023c20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x10
mov dword [rsp], 0
jmp 0x140023c3a
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 4
jge 0x140023c66
mov eax, dword [rsp + 0x20]
shl eax, 8
mov ecx, dword [rsp + 0x20]
shr ecx, 0x18
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x14019a080]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 0x20], eax
jmp 0x140023c32
mov eax, dword [rsp + 0x20]
add rsp, 0x10
pop rdi
ret
Function at 0x14008cab0
Capabilities:
Get geographical location

Disassembly:
jmp 0x14008cab0
push rdi
sub rsp, 0x40
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
lea rcx, [rsp + 0x20]
call fcn.140002eaf
mov dword [rsp + 0x28], eax
call fcn.140004034
mov ecx, 8
imul rcx, rcx, 5
mov rax, qword [rax + rcx]
mov qword [rsp + 0x30], rax
mov r9d, dword [rsp + 0x28]
lea r8, [rsp + 0x20]
mov edx, 0x22
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x20]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0x30
je 0x14008cb2f
cmp dword [rsp + 0x24], 0x31
je 0x14008cb36
cmp dword [rsp + 0x24], 0x32
je 0x14008cb3d
jmp 0x14008cb44
mov eax, 2
jmp 0x14008cb46
mov eax, 1
jmp 0x14008cb46
mov eax, 3
jmp 0x14008cb46
xor eax, eax
add rsp, 0x40
pop rdi
ret

Function at 0x1400b33b0
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400b33b0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400b2d30
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400b33ef
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140201020]
jmp 0x1400b33f9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x140150d80
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140001f32
sub rsp, rax
mov rax, qword [0x1401e6440]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1401eb0f0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140150f72
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x140150ec6
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140150ec6
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x140150eab
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x140150e48
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140150f32
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140150f91
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x140150f6d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140150f91
jmp 0x140150e1e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.14000380f
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140151040
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140001f32
sub rsp, rax
mov rax, qword [0x1401e6440]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1401eb0f0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14015124d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x140151199
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140151199
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x140151179
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x140151108
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14015120d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14015126c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x140151248
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14015126c
jmp 0x1401510de
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.14000380f
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1400017d0
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 fcn.140002640
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rbp - 8]
mov ecx, 2
call fcn.140002640
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140001840
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 [0x1400070a4]
mov rbx, rcx
test esi, esi
jle 0x140001970
mov rax, qword [0x1400070a8]
xor r9d, r9d
add rax, 0x18
nop dword [rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000188b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001913
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001870
mov rcx, rbx
call fcn.1400022f0
mov rdi, rax
test rax, rax
je 0x140001992
mov rax, qword [0x1400070a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002430
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400070a8]
lea rdx, [rbp - 0x30]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001977
mov eax, dword [rbp - 0xc]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000190c
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001920
add dword [0x1400070a4], 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 [0x1400070a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000190c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400017d0
nop word [rax + rax]
xor esi, esi
jmp 0x140001898
mov rax, qword [0x1400070a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400017d0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400017d0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140001f20
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, [0x140007100]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140001f85
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 0x140001f7c
test eax, eax
jne 0x140001f7c
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001f60
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 0x1400022f0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140002370
Capabilities:
Parse pe header

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

Function at 0x140002430
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043e0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000244f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002458
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret