joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004a4dc
Capabilities:
Parse credit card information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
call fcn.14004a518
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140049934

Function at 0x14004f50c
Capabilities:
Encrypt data using rc4 prga

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, 0x20
mov rbx, rcx
lea r14, [0x140000000]
mov ecx, dword [rcx + 0xa8]
mov eax, ecx
and eax, 0xfff0000
cmp eax, 0x3ff0000
je 0x14004f5c1
mov r8b, 0x60
bt ecx, 0x10
jb 0x14004f56a
movzx eax, byte [rbx + 0xbd]
test byte [rax + r14 + 0xa4860], r8b
jne 0x14004f56a
mov rcx, rbx
call fcn.14004c708
jmp 0x14004f720
mov edx, 0xb0000
mov eax, ecx
and eax, edx
cmp eax, edx
je 0x14004f59f
movzx edx, byte [rbx + 0xbd]
mov al, byte [rdx + r14 + 0xa4860]
and al, r8b
cmp al, 0x40
jne 0x14004f59f
cmp dl, 0x47
je 0x14004f59f
mov rcx, rbx
call fcn.1400471b4
jmp 0x14004f720
mov eax, 0x110000
and ecx, eax
cmp ecx, eax
je 0x14004f5c1
movzx eax, byte [rbx + 0xbd]
mov al, byte [rax + r14 + 0xa4860]
and al, r8b
cmp al, r8b
je 0x14004f592
mov ebp, 0x7ffd
movzx edx, byte [rbx + 0xbd]
movzx ecx, word [rbx + 0xb8]
mov r10d, dword [rbx + 0x28]
shl edx, 0x11
cmp ecx, r10d
jb 0x14004f60b
mov r9, qword [rbx + 0x20]
movzx eax, byte [r9 + rcx*8 + 5]
shl eax, 0xa
add edx, eax
mov rax, qword [r9 + rcx*8]
mov qword [rbx + 0xc0], rax
cmp cx, bp
jae 0x14004f60b
mov rax, qword [r9 + rcx*8 + 8]
mov qword [rbx + 0xc8], rax
movzx r8d, word [rbx + 0xba]
cmp r8d, r10d
jb 0x14004f641
mov r9, qword [rbx + 0x20]
mov rax, qword [r9 + r8*8]
movzx ecx, byte [r9 + r8*8 + 5]
mov qword [rbx + 0xd0], rax
cmp r8w, bp
jae 0x14004f64a
mov rax, qword [r9 + r8*8 + 8]
mov qword [rbx + 0xd8], rax
jmp 0x14004f64a
mov ecx, r8d
and ecx, 0x3ff
lea esi, [rcx + rdx]
xor edi, edi
mov r8d, edi
mov eax, 0x5e1d27b
and r8d, 0x1ffff
or r8d, esi
mov ecx, r8d
ror ecx, 0xb
sub ecx, r8d
rol ecx, 0xe
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 9
imul eax, eax, 0x3e9
sub ecx, eax
mov edx, dword [r14 + rcx*4 + 0xa56c0]
mov eax, edx
and eax, 0xffffff
cmp eax, r8d
je 0x14004f6ad
lea eax, [rcx + 1]
mov edx, dword [r14 + rax*4 + 0xa56c0]
mov eax, edx
and eax, 0xffffff
cmp eax, r8d
jne 0x14004f6c5
mov eax, edx
mov rcx, rbx
shr rax, 0x18
call qword [r14 + rax*8 + 0xa51d0]
movzx edx, ax
test edx, edx
jne 0x14004f6e3
cmp edi, 0xfffff
je 0x14004f55d
mov eax, edi
shr eax, 0xa
or edi, eax
xor edi, 0xffc00
jmp 0x14004f64f
cmp edx, 5
jae 0x14004f712
cmp edx, 1
je 0x14004f5c6
cmp edx, 2
jne 0x14004f706
mov edx, dword [rbx + 0xb8]
mov rcx, rbx
call fcn.140047580
jmp 0x14004f720
cmp edx, 3
je 0x14004f73b
mov eax, 0xffff
jmp 0x14004f720
mov rax, qword [rbx + 0x20]
movzx eax, byte [rax + rdx*8 + 4]
shl eax, 0x18
add eax, edx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov edx, 0x18
mov rcx, rbx
call fcn.140015bcc
int3
Function at 0x14005099c
Capabilities:
Encrypt data using rc4 prga

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
push r15
movzx r14d, dx
xor r9d, r9d
mov r10, rcx
movzx eax, word [rcx + r14*2 + 0x1a2]
cmp eax, r8d
jbe 0x140050a2d
mov r11, qword [rcx + 0x20]
mov r15d, r8d
movzx ecx, word [r11 + rax*8]
mov ebp, eax
mov al, byte [r11 + rax*8 + 4]
and al, 0x1f
cmp ecx, r8d
je 0x140050a6f
test al, al
jne 0x140050a22
movzx ebx, word [r11 + rcx*8 + 2]
movzx edi, word [r11 + r15*8 + 2]
cmp r14d, 0x42
je 0x140050a0e
mov dl, byte [r11 + rdi*8 + 4]
xor dl, byte [r11 + rbx*8 + 4]
test dl, 0x1f
jne 0x140050a22
cmp ebx, edi
je 0x140050a54
cmp ebx, 0x8000
jae 0x140050a54
cmp edi, 0x8000
jae 0x140050a54
movzx eax, word [r11 + rbp*8 + 6]
cmp eax, r8d
ja 0x1400509d2
movzx eax, word [r10 + r14*2 + 0x192]
cmp eax, r8d
jbe 0x140050a54
mov rcx, qword [r10 + 0x20]
mov edx, eax
movzx eax, word [rcx + rax*8]
cmp eax, r8d
je 0x140050a7a
movzx eax, word [rcx + rdx*8 + 6]
cmp eax, r8d
ja 0x140050a3f
xor eax, eax
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
pop r15
pop r14
ret
test al, al
setne r9b
mov eax, r9d
jmp 0x140050a56
test byte [rcx + rdx*8 + 4], 0x1f
jmp 0x140050a71

Function at 0x14005118c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, edx
mov r8, rcx
and eax, 0x1f000000
cmp eax, 0xe000000
jne 0x1400511b3
mov dword [rcx + 0xba], 0x5b93226e
mov word [rcx + 0xb8], dx
jmp fcn.14004f50c
mov r9, qword [rcx + 0x20]
movzx r11d, dx
mov al, byte [r9 + r11*8 + 5]
sub al, 0x35
cmp al, 1
ja 0x14005121d
movzx r10d, word [r9 + r11*8 + 2]
mov eax, 0x8000
cmp r10w, ax
jae 0x14005121d
mov ecx, dword [r9 + r10*8]
add ecx, 0x40000000
cmp ecx, 0x80000000
jae 0x14005121d
movzx eax, byte [r9 + r11*8 + 5]
movzx ecx, word [r9 + r11*8]
sub ax, 0xc
shl ax, 8
or ax, 0x13
mov word [r8 + 0xb8], cx
mov word [r8 + 0xbc], ax
mov rcx, r8
mov word [r8 + 0xba], r10w
jmp 0x1400511ae
mov eax, edx
ret
Function at 0x140051a54
Capabilities:
Encrypt data using rc4 prga

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 r12
push r14
push r15
sub rsp, 0x20
mov r10, qword [rcx + 0x20]
mov ebp, r9d
movzx r14d, dx
mov r12d, r8d
mov r9d, edx
mov rsi, rcx
movzx r15d, byte [r10 + r14*8 + 5]
cmp r15d, 0x35
jb 0x140051b85
cmp r15d, r8d
jg 0x140051b85
xor edx, edx
lea rax, [rcx + 0xb24]
cmp word [rax], r14w
jne 0x140051ac2
mov ecx, dword [rax + 4]
cmp ecx, ebp
jb 0x140051ac2
xor ecx, ebp
test ecx, 0xfff
je 0x140051b6b
inc rdx
add rax, 8
cmp rdx, 0x10
jl 0x140051aa7
movzx edx, word [r10 + r14*8]
mov r9d, ebp
movzx ebx, word [r10 + r14*8 + 2]
mov rcx, rsi
call fcn.140051a54
mov r9d, ebp
mov r8d, r12d
mov edx, ebx
mov rcx, rsi
mov edi, eax
call fcn.140051a54
mov ecx, 0xf4
mov word [rsi + 0xb8], di
add r15w, cx
mov word [rsi + 0xba], ax
movzx edx, r15w
mov ecx, 0x100
imul edx, ecx
mov r8d, ebp
shr r8d, 5
mov rcx, rsi
and r8w, 0x1f
or r8w, dx
mov word [rsi + 0xbc], r8w
call fcn.14004f50c
mov r9d, eax
mov eax, dword [rsi + 0xba4]
mov ecx, eax
inc eax
and eax, 0xf
mov dword [rsi + 0xba4], eax
mov word [rsi + rcx*8 + 0xb24], r14w
mov word [rsi + rcx*8 + 0xb26], r9w
mov dword [rsi + rcx*8 + 0xb28], ebp
jmp 0x140051bca
test rax, rax
je 0x140051acf
movzx ecx, word [rax + 2]
movzx eax, byte [r10 + rcx*8 + 4]
shl eax, 0x18
add eax, ecx
jmp 0x140051bcd
bt ebp, 0xb
jae 0x140051bca
movzx eax, byte [r10 + r14*8 + 4]
mov ecx, 0x1f
and ecx, eax
mov edx, 0x605fd9
shr edx, cl
test dl, 1
jne 0x140051bca
mov eax, 0x5b15
mov word [rsi + 0xb8], r14w
mov rcx, rsi
mov word [rsi + 0xbc], ax
mov word [rsi + 0xba], bp
call fcn.14004f50c
mov r9d, eax
mov eax, r9d
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14005ab94
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdi, rcx
mov edx, 0x14
call fcn.140047580
mov ecx, 0x548a
mov word [rdi + 0xb8], ax
mov word [rdi + 0xbc], cx
mov rcx, rdi
mov word [rdi + 0xba], bx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14004f50c

Function at 0x14007a5d4
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14007a467
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14007a467
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14007a467
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14007a467
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14007a467
cmp dword [rcx + 0x84], 0xe
jbe 0x14007a467
cmp dword [rcx + 0xf8], 0
je 0x14007a467
mov ecx, ebx
call fcn.14007a508
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14007a2f8
cmp dword [rbp + 0x20], 0
je 0x14007a4b4
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14007a4bc
int3
xor r8d, r8d
xor edx, edx
jmp 0x14007a400
Function at 0x14008e0e4
Capabilities:
Read file on windows

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, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x14008de0a
call fcn.14007a698
mov dword [rax], 0x16
call fcn.1400882b4
jmp 0x14008df55
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14008df55
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14008df55
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14008de39
lock or dword [rcx + 0x14], 0x10
jmp 0x14008df55
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14008de4d
call fcn.140091a3c
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x14008de5d
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x14008de60
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.14007999c
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.14008d860
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14008df43
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x14008def1
mov rcx, rbx
call fcn.14007999c
cmp eax, 0xffffffff
je 0x14008dedc
mov rcx, rbx
call fcn.14007999c
cmp eax, 0xfffffffe
je 0x14008dedc
mov rcx, rbx
call fcn.14007999c
movsxd rdi, eax
lea r14, [0x1400bfcf0]
mov rcx, rbx
sar rdi, 6
call fcn.14007999c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x14008dee3
lea rdx, [0x1400be340]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14008def1
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x14008df15
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x14008df15
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x14008df15
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x14008df33
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x14008df3e
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x14008df5a
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x14008ddd4

Function at 0x14009408c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400940ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14007a628
or eax, 0xffffffff
jmp 0x1400940ae
xor eax, eax
add rsp, 0x28
ret
Function at 0x1415f5058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1415f51df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1415f5089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1415f506f
add dl, dl
jne 0x1415f5096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1415f50f6
xor eax, eax
add dl, dl
jne 0x1415f50a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1415f51ad
add dl, dl
jne 0x1415f50b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415f50c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415f50d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415f50dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1415f50ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1415f507e
mov eax, 1
add dl, dl
jne 0x1415f5106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1415f5113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415f50fb
sub eax, ebx
mov ebx, 1
jne 0x1415f514c
mov ecx, 1
add dl, dl
jne 0x1415f512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1415f513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415f5123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1415f507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1415f5168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1415f5175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1415f515d
cmp eax, 0x7d00
jae 0x1415f519b
cmp eax, 0x500
jb 0x1415f5196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1415f507e
cmp eax, 0x7f
ja 0x1415f519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1415f507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1415f51d2
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 0x1415f507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14001335c
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x65bb725
out dx, eax
sbb bpl, r11b
add bl, byte [rbx]
fisttp dword [rbx]
leave
invalid

Function at 0x14004f0bc
Capabilities:
Encode data using xor

Disassembly:
mov rdx, qword [rsp + 0xd8]
mov r8d, dword [rsp + 0xf4]
mov r9b, byte [rsp + 0xb9]
mov r10, rdx
or r10, 0x429f92da
mov qword [rsp + 0xe8], r10
mov r10, rdx
add r10, 0xffffffff975fa928
mov qword [rsp + 0x78], r10
mov dword [rsp + 0xcc], 0x7d3026e8
cmp r9b, 0x51
mov qword [rsp + 0x58], rcx
mov word [rsp + 0x56], ax
mov qword [rsp + 0x48], rdx
mov dword [rsp + 0x44], r8d
mov byte [rsp + 0x43], r9b
jbe 0x14004f1cc
jmp 0x14004f405
mov rax, qword [rsp + 0x48]
sub rax, 0x6d98a896
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xd8]
add rax, 0xffffffff8d5170c2
mov qword [rsp + 0x78], rax
mov dword [rsp + 0xcc], 0
mov rax, qword [rsp + 0x48]
xor rax, 0x86fe413
mov qword [rsp + 0xe8], rax
jmp 0x14004f1cc

Function at 0x14004fa40
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x40
lea rax, [fcn.14004fa40]
mov ecx, dword [rsp + 0x24]
mov edx, ecx
and edx, 0x39638de3
mov dword [rsp + 0x24], edx
mov qword [rsp + 0x28], rax
mov r8w, word [rsp + 0xe]
mov r9w, r8w
xor r9w, 0xffff
mov word [rsp + 0xe], r9w
mov dword [rsp + 8], ecx
mov word [rsp + 6], r8w
jmp 0x14004fadf
mov eax, 0xbfda860
mov rcx, qword [rsp + 0x38]
mov edx, dword [rsp + 8]
xor edx, 0xffffffff
mov dword [rsp + 0x24], edx
movsxd rcx, dword [rcx + 0x3c]
mov dword [rsp + 0x20], 0x1c9e4146
mov edx, dword [rsp + 0x20]
mov r8, qword [rsp + 0x38]
mov word [rsp + 0xe], 0x2d5d
mov r9d, dword [rsp + 8]
or r9d, r9d
mov dword [rsp + 0x24], r9d
mov r9d, dword [rsp + 8]
sub r9d, 0x47c9e68b
mov r10d, dword [r8 + rcx]
mov dword [rsp + 0x24], r9d
mov dword [rsp + 0x1c], r10d
cmp eax, edx
ja 0x14004fb01
jmp 0x14004fb4b
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov ecx, dword [rsp + 8]
or ecx, ecx
mov dword [rsp + 0x24], ecx
cmp word [rax], 0x5a4d
je 0x14004fa81
jmp 0x14004fb22
mov al, byte [rsp + 0x37]
mov byte [rsp + 0x37], al
mov rcx, qword [rsp + 0x10]
add rcx, qword [rsp + 0x10]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x10], rcx
add rsp, 0x40
ret
mov ax, word [rsp + 6]
imul cx, ax, 0x26c9
mov word [rsp + 0xe], cx
mov rdx, qword [rsp + 0x38]
add rdx, 0xfffffffffffff000
and rdx, 0xfffffffffffff000
mov qword [rsp + 0x28], rdx
jmp 0x14004fadf
cmp dword [rsp + 0x1c], 0x4550
je 0x14004fb01
jmp 0x14004fb22
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140009790]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400097a0]
mov dword [rax], 1
mov rax, qword [0x1400097b0]
mov dword [rax], 1
mov rax, qword [0x140009710]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140009780]
mov dword [0x14000c00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140009860]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140009840]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x1400096f0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x1400017a0
Capabilities:
Write file on windows

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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000c094]
test esi, esi
mov rbx, rcx
jle 0x140001940
mov rax, qword [0x14000c098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000185b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400018e5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001840
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x140001962
mov rax, qword [0x14000c098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000c098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001947
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400018de
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400018f0
add dword [0x14000c094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x14000c098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400018de
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001868
mov rax, qword [0x14000c098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001ed0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000c100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000c0e0]
test rbx, rbx
je 0x140001f2c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140001f23
test rsi, rsi
je 0x140001f23
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001f08
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002140
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002158
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002160
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002170
Capabilities:
Enumerate pe sections

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

Function at 0x1400021c0
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140009710]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002280
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002288
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002280
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400022dd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x1400022d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002280
add rax, 0x28
cmp rax, r9
jne 0x1400022c0
xor eax, eax
ret

Function at 0x1400022e0
Capabilities:
Parse pe header

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

Function at 0x140002320
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140009710]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002340
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002348
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002340
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x140002390
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002387
test rcx, rcx
je 0x140002340
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002378
xor eax, eax
ret