joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14012c390
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14012c3b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14012c3b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140134523
Capabilities:
Create http request
Read data from internet
Receive data
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rcx, qword [str.kernel32.dll]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, dword [0x1401734f4]
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
xor ecx, ecx
mov r8d, 0x104
mov rsi, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
xor ecx, ecx
jmp 0x14013456c
test dx, dx
je 0x140134583
add rax, 1
movzx edx, word [rsi + rax*2]
cmp dx, 0x5c
jne 0x140134563
movsxd rcx, eax
jmp 0x140134568
mov r8, qword [0x14017352c]
lea rdi, [rsi + rcx*2 + 2]
mov eax, dword [r8]
test eax, eax
je 0x1401345c4
movzx eax, word [rdi]
xor ecx, ecx
test ax, ax
je 0x1401345b4
xor edx, edx
nop
add ecx, eax
lea eax, [rdx + 1]
mov rdx, rax
movzx eax, word [rdi + rax*2]
test ax, ax
jne 0x1401345a3
cmp dword [r8 + 4], ecx
je 0x1401345c4
cmp dword [r8 + 8], ecx
jne 0x1401346b3
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x34], 0
mov rcx, qword [str.brushoff8]
mov dword [rsp + 0x20], 0
mov edx, 1
call qword [sym.imp.WININET.dll_InternetOpenW]
test rax, rax
je 0x1401346b3
mov ecx, dword [0x14017345c]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], 0
mov rdx, qword [str.https:__www.math.utah.edu_docs_info_dejagnu_1.html]
mov dword [rsp + 0x20], ecx
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
test rax, rax
je 0x1401346b3
mov r8d, dword [0x1401734f4]
lea rsi, [rdi + 0x20a]
mov rcx, rax
lea r9, [rsp + 0x34]
mov rdx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1401346b3
mov edx, dword [rsp + 0x34]
test edx, edx
je 0x1401346b3
mov r8d, dword [rdi + 0x20a]
add rdx, rsi
xor eax, eax
nop dword [rax + rax]
mov rcx, qword [0x1401734cc]
mov edi, dword [rcx + rax]
add edi, r8d
mov dword [rdx + rax], edi
add rax, 4
cmp rax, 0x100
jne 0x140134663
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401346b3
mov qword [rsp + 0x38], 0
mov rdx, qword [0x140173468]
xor r9d, r9d
xor r8d, r8d
lea rcx, [rsp + 0x38]
call rax
nop word [rax + rax]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140d08058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140d081df
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 0x140d08089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d0806f
add dl, dl
jne 0x140d08096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d080f6
xor eax, eax
add dl, dl
jne 0x140d080a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d081ad
add dl, dl
jne 0x140d080b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d080c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d080d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d080dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140d080ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140d0807e
mov eax, 1
add dl, dl
jne 0x140d08106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d08113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d080fb
sub eax, ebx
mov ebx, 1
jne 0x140d0814c
mov ecx, 1
add dl, dl
jne 0x140d0812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d0813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d08123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d0807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140d08168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d08175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d0815d
cmp eax, 0x7d00
jae 0x140d0819b
cmp eax, 0x500
jb 0x140d08196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d0807e
cmp eax, 0x7f
ja 0x140d0819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d0807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140d081d2
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 0x140d0807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180002d50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x80]
add eax, 0x578
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x80]
xor eax, 0x159e
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x98]
sub eax, 0x396
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x98]
sub eax, 0x2d13
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x70]
xor eax, 0x30a
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x90]
add eax, 0xbbd
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x88]
add eax, 0xd1e
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x88]
xor eax, 0x3ed9
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x80]
add eax, 0x6c1
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x2c]
xor eax, 0x26d3
cmp dword [rsp + 0x28], eax
je 0x180002e44
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x9c]
sub eax, 0x962ff
mov rcx, qword [rsp + 0x78]
mov ecx, dword [rcx + 0x28]
sub ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x78]
mov dword [rcx + 0x28], eax
mov eax, dword [rsp + 0x24]
add eax, 0x785
mov dword [rsp + 0x24], eax
jmp 0x180002ee3
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x90]
mov dword [rsp + 0x20], eax
jmp 0x180002e60
mov eax, dword [rsp + 0x20]
add eax, 4
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
cmp dword [rsp + 0x20], eax
jge 0x180002ee3
mov eax, dword [rsp + 0x38]
sub eax, 0x2ddb
sub eax, dword [rsp + 0x28]
mov dword [rsp + 0x44], eax
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x78]
mov eax, dword [rdx + rax + 0x3c]
mov ecx, dword [rcx + 0x38]
sub ecx, eax
mov eax, ecx
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x78]
and eax, dword [rdx + rcx + 0xa4]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x48]
sub eax, 0x229b
mov dword [rsp + 0x3c], eax
mov r8d, dword [rsp + 0x3c]
mov edx, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_OpenThread]
jmp 0x180002e55
mov eax, dword [rsp + 0x2c]
add eax, 0x2d13
add rsp, 0x68
ret
Function at 0x180004660
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov eax, dword [rsp + 0x98]
sub eax, 0x9ca
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0xa0]
add eax, 0xd22
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x70]
sub eax, 0x2286
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x70]
sub eax, 0xce8
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x80]
xor eax, 0xf02
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xa0]
xor eax, 0x3b37
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x98]
add eax, 0x43d
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x88]
add eax, 0x770
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x98]
xor eax, 0x2540
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x24]
add eax, 0x44d
cmp dword [rsp + 0x2c], eax
jle 0x1800047f7
mov eax, dword [rsp + 0x24]
sub eax, 0x331
cmp dword [rsp + 0x2c], eax
jle 0x180004745
mov rax, qword [rsp + 0x78]
lea rcx, [0x1800af140]
mov qword [rax + 0x70], rcx
mov eax, dword [rsp + 0x20]
sub eax, 0x1d1
mov dword [rsp + 0x20], eax
jmp 0x1800047f7
mov eax, dword [rsp + 0x30]
or eax, 0x192e
mov rcx, qword [rsp + 0x78]
sub eax, dword [rcx + 0x2c]
cmp dword [rsp + 0x20], eax
jb 0x1800047f7
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x28], eax
jmp 0x180004775
mov eax, dword [rsp + 0x28]
add eax, 4
mov dword [rsp + 0x28], eax
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx + rax + 0xa4]
add eax, dword [rsp + 0x34]
and eax, dword [rsp + 0x24]
cmp dword [rsp + 0x28], eax
jbe 0x1800047f7
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x78]
mov eax, dword [rdx + rax + 0xa4]
mov ecx, dword [rcx + 0x98]
xor ecx, eax
mov eax, ecx
mov eax, eax
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x98]
mov ecx, dword [rsp + 0x38]
or ecx, eax
mov eax, ecx
sub eax, 0x15b2
mov eax, eax
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
jmp 0x18000476a
mov eax, dword [rsp + 0x3c]
sub eax, 0x193
add rsp, 0x68
ret
Function at 0x180008250
Capabilities:
Get file attributes
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov eax, dword [rsp + 0x68]
sub eax, 0x142a
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x78]
xor eax, 0x159e
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x80]
sub eax, 0xb8f
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x88]
sub eax, 0x19b1
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x68]
sub eax, 0x14ad
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x68]
sub eax, 0x2ddb
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x78]
add eax, 0x13df
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x68]
sub eax, 0x89b
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x2c]
xor eax, 0x297d
cmp dword [rsp + 0x20], eax
jg 0x1800082f2
mov eax, dword [rsp + 0x20]
xor eax, 0x1f55
mov dword [rsp + 0x20], eax
jmp 0x180008345
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x24], eax
jmp 0x180008307
mov eax, dword [rsp + 0x24]
add eax, 4
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x34]
and eax, 0x16b3
mov rcx, qword [rsp + 0x70]
or eax, dword [rcx + 0x90]
cmp dword [rsp + 0x24], eax
jb 0x180008345
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x2c]
mov ecx, dword [rsp + 0x28]
sub ecx, eax
mov eax, ecx
mov eax, eax
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x1800082fc
mov eax, dword [rsp + 0x28]
sub eax, 0xa2a
add rsp, 0x58
ret
Function at 0x180021590
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x68
mov eax, dword [rsp + 0xa8]
add eax, 0x1362
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xb0]
xor eax, 0x423
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xa8]
xor eax, 0x19b1
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x90]
sub eax, 0x564
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x98]
sub eax, 0x2540
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x80]
xor eax, 0x391f
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x90]
sub eax, 0x564
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x34]
xor eax, 0xc3d
cmp dword [rsp + 0x2c], eax
jg 0x1800217d8
mov eax, dword [rsp + 0x20]
xor eax, 0x9ed
cmp dword [rsp + 0x34], eax
jle 0x1800216a7
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 0x88]
mov eax, dword [rcx + rax + 0x88]
xor eax, 0x1663b7
mov rcx, qword [rsp + 0x88]
mov ecx, dword [rcx + 0xa0]
imul ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x88]
mov dword [rcx + 0xa0], eax
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x88]
mov ecx, dword [rcx + 0xa0]
mov dword [rax + 0x64], ecx
jmp 0x1800217d8
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x88]
mov eax, dword [rax + 0x44]
imul eax, dword [rcx + 0x48]
add eax, dword [rsp + 0x20]
cmp dword [rsp + 0x30], eax
jb 0x1800217d8
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x24], eax
jmp 0x1800216e1
mov eax, dword [rsp + 0x24]
add eax, 3
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x2c]
add eax, 0x2f57
cmp dword [rsp + 0x24], eax
jae 0x1800217d8
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x88]
mov eax, dword [rcx + rax + 0xb8]
mov dword [rsp + 0x28], eax
jmp 0x180021724
mov eax, dword [rsp + 0x28]
add eax, 3
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x90]
sub eax, 0x28d2
cmp dword [rsp + 0x28], eax
jae 0x1800217d3
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x2c]
or ecx, eax
mov eax, ecx
cdqe
mov qword [rsp + 0x50], rax
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x88]
mov edx, dword [rdx + 0x18]
mov eax, dword [rcx + rax + 0xb8]
xor eax, edx
mov eax, eax
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
mov eax, dword [rsp + 0x2c]
xor eax, 0x229b
mov ecx, 4
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x88]
add eax, dword [rdx + rcx + 8]
mov rcx, qword [rsp + 0x88]
mov ecx, dword [rcx + 0xb4]
xor ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x88]
mov dword [rcx + 0xb4], eax
jmp 0x180021719
jmp 0x1800216d6
mov eax, dword [rsp + 0x30]
sub eax, 0x13e5
add rsp, 0x68
ret
Function at 0xb904d0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0xb904dd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xb904ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xb904d5
lea eax, [rcx + 1]
jmp 0xb904fb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xb9050e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xb904f4
sub eax, 3
jb 0xb9052e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xb9057d
sar eax, 1
movsxd rbp, eax
jb 0xb90564
jmp 0xb9053c
add ebx, ebx
jne 0xb9053a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xb90564
inc ecx
add ebx, ebx
jne 0xb9054a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xb90564
call r11
adc ecx, ecx
add ebx, ebx
jne 0xb9055d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xb9054c
add ecx, 2
jmp 0xb90569
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00b90492
jmp 0xb904dd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x375400
mov dl, 0x93
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0xb905c9
cmp rsi, rcx
jae 0xb905d1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0xb905b0
cmp al, 0x8f
ja 0xb905b0
cmp byte [rsi - 2], 0xf
je 0xb905b6
sub al, 0xe8
cmp al, 1
ja 0xb9059a
cmp rsi, rcx
jae 0xb905d1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0xb905a0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0xb905d1
lodsb al, byte [rsi]
jmp 0xb905b0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x776000]
mov eax, dword [rdi]
or eax, eax
je 0xb9062e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x79d98c]
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 0xb905de
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 0xb90628
mov qword [rbx], rax
add rbx, 8
jmp 0xb905fe
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 0xb90668
cmp al, 0xef
ja 0xb9065a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xb9063a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0xb90649
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 + 0x22f]
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 0xb906bc
sub rsp, 0xffffffffffffff80
jmp 0x75f5c0
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400111f0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140011200]
mov dword [rax], 1
mov rax, qword [0x140011210]
mov dword [rax], 1
mov rax, qword [0x1400111e0]
mov dword [rax], 1
mov rax, qword [0x1400110a0]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x1400111d0]
mov dword [0x14001400c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010c0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140011190]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140011170]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140011050]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067
Function at 0x140006e70
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140006ee0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x140014114]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140007090
mov rax, qword [0x140014118]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140006f2c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140006fb7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140006f10
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x1400070ed
mov rax, qword [0x140014118]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140014118]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400070d2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140006fb0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140007040
add dword [0x140014114], 1
cmp ebx, 8
jae 0x140006fe8
test bl, 4
jne 0x1400070a0
test ebx, ebx
je 0x140006fd9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x1400070c0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140006fd9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x14000701a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x140014118]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140006fb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x140006f37
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140006fd9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140006fd9
mov rax, qword [0x140014118]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]
Function at 0x140007600
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140014180]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140014160]
test rbx, rbx
je 0x140007654
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000764b
test r12, r12
je 0x14000764b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140007630
lea rcx, [0x140014180]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140007880
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x140007890
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x1400078a0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x1400078e5
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x1400078dc
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x1400078e7
add rax, 0x28
cmp rax, r9
jne 0x1400078c8
xor eax, eax
ret

Function at 0x140007990
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x1400110a0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140007a09
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140007a09
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x140007a06
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x1400079fd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140007a09
add r8, 0x28
cmp r8, r9
jne 0x1400079e8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x140007af0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1400110a0]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x140007b5f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140007b5f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x140007b5d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140007b54
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140007b68
add rax, 0x28
cmp rax, r9
jne 0x140007b40
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret