joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180002950
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
cmp dword [0x180020a94], 0xa
jl 0x180002982
mov eax, dword [0x180020a98]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x180002982
nop word cs:[rax + rax]
jmp 0x180002980
mov rax, qword gs:[0x60]
mov r11, qword [rax + 0x18]
add r11, 0x10
mov eax, dword [0x180020a80]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a7c], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180020a9c]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020aa0], 0xa
setl r9b
or r9b, al
lea r10, [rcx - 1]
xor eax, eax
mov r14, r11
mov r14, qword [r14]
cmp r14, r11
je 0x180002a58
mov rsi, r10
test r8b, r8b
je 0x180002a70
cmp byte [rsi + 1], 0
lea rsi, [rsi + 1]
jne 0x1800029f0
test r9b, r9b
je 0x180002a80
sub rsi, rcx
je 0x180002a54
mov r15, qword [r14 + 0x60]
xor ebx, ebx
nop
movzx r13d, word [r15 + rbx*2]
lea edi, [r13 - 0x41]
lea ebp, [r13 + 0x20]
cmp di, 0x1a
cmovae ebp, r13d
movsx edi, byte [rcx + rbx]
lea r12d, [rdi - 0x41]
lea edx, [rdi + 0x20]
cmp r12b, 0x1a
cmovae edx, edi
sub ebp, edx
test r13d, r13d
je 0x180002a50
test ebp, ebp
jne 0x180002a50
add rbx, 1
cmp rsi, rbx
jne 0x180002a10
jmp 0x180002a54
test ebp, ebp
jne 0x1800029dc
mov rax, qword [r14 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x180002a70
jmp 0x180002a80
Function at 0x140003c10
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
mov r9d, 0x270
mov rbx, rcx
cmp dword [rcx], r9d
jne 0x140003c63
lea r8, [rcx + 8]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x140003c28
jmp 0x140003c70
cmp dword [rcx], 0x4e0
jb 0x140003c70
call fcn.14000539c
mov eax, dword [rbx]
mov edx, dword [rbx + rax*4 + 4]
inc eax
mov dword [rbx], eax
mov ecx, edx
mov eax, dword [rbx + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 0x20
pop rbx
ret

Function at 0x140004070
Capabilities:
Check for debugger via api

Disassembly:
push rbx
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ebx, ebx
test eax, eax
jne 0x140004097
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
test eax, eax
je 0x140004099
mov bl, 1
mov al, bl
add rsp, 0x20
pop rbx
ret

Function at 0x1400040a4
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x78
mov rax, qword [0x1400a6738]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x1400040de
mov eax, 0x80000000
cmp qword [rsp + 0x28], rax
jae 0x1400040de
mov al, 1
jmp 0x1400040e0
xor al, al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140031f60
add rsp, 0x78
ret
Function at 0x140004564
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x19d0]
mov eax, 0x1ad0
call fcn.1400323d0
sub rsp, rax
mov rax, qword [0x1400a6738]
xor rax, rsp
mov qword [rbp + 0x19c0], rax
mov r15, rdx
mov rsi, rcx
xor ebx, ebx
lea rcx, str.A_WinHTTP_Example_Program_1.0
xor edx, edx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rdi, rax
test rax, rax
jne 0x1400045cc
xor al, al
jmp 0x14000476d
mov r14d, 0x68
lea rcx, [rsp + 0x50]
mov r8d, r14d
xor edx, edx
call fcn.140033a80
lea rax, [rbp - 0x40]
mov dword [rsp + 0x50], r14d
mov qword [rsp + 0x68], rax
lea r9, [rsp + 0x50]
lea rax, [rbp + 0x1c0]
mov dword [rsp + 0x70], 0x100
xor r8d, r8d
mov qword [rbp - 0x68], rax
xor edx, edx
mov dword [rbp - 0x60], 0x400
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
movzx r8d, word [rsp + 0x74]
lea rdx, [rbp - 0x40]
xor r9d, r9d
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r12, rax
test rax, rax
jne 0x140004645
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x1400045c5
cmp dword [rsp + 0x64], 2
lea r8, [rbp + 0x1c0]
mov eax, ebx
lea rdx, [0x14005cf30]
mov ecx, 0x800000
cmove eax, ecx
xor r9d, r9d
mov dword [rsp + 0x30], eax
mov rcx, r12
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rsi, rax
test rax, rax
jne 0x14000468f
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x14000463a
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], ebx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
setne r14b
test eax, eax
je 0x1400046c8
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
setne r14b
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140004750
test r14b, r14b
je 0x140004744
lea r9, [rsp + 0x40]
mov r8d, 0x1000
lea rdx, [rbp + 0x9c0]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140004744
mov r8d, dword [rsp + 0x40]
test r8d, r8d
je 0x140004744
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], rbx
lea rdx, [rbp + 0x9c0]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400046ff
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, r14b
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov al, bl
mov rcx, qword [rbp + 0x19c0]
xor rcx, rsp
call fcn.140031f60
lea r11, [rsp + 0x1ad0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140004d7c
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x210
mov rax, qword [0x1400a6738]
xor rax, rsp
mov qword [rsp + 0x200], rax
xor r11d, r11d
mov r14, r8
mov r10d, r11d
mov ebx, r11d
mov edi, r11d
mov esi, edx
mov rbp, rcx
mov eax, ebx
mov byte [rsp + rdi], bl
cdq
inc ebx
idiv esi
movsxd rax, edx
mov cl, byte [rax + rbp]
mov byte [rsp + rdi + 0x100], cl
inc rdi
cmp ebx, 0x100
jl 0x140004db7
mov rdx, r11
mov edi, 0x800000ff
mov ebx, 0xffffff00
movzx eax, byte [rsp + rdx + 0x100]
movzx r8d, byte [rsp + rdx]
add r10d, eax
add r10d, r8d
and r10d, edi
jge 0x140004e07
dec r10d
or r10d, ebx
inc r10d
movsxd rcx, r10d
mov al, byte [rsp + rcx]
mov byte [rsp + rdx], al
inc rdx
mov byte [rsp + rcx], r8b
cmp rdx, 0x100
jl 0x140004de6
movsxd r8, r9d
mov edx, r11d
test r9d, r9d
jle 0x140004e76
lea eax, [r11 + 1]
and eax, edi
jge 0x140004e39
dec eax
or eax, ebx
inc eax
movsxd r11, eax
movzx r10d, byte [rsp + r11]
add edx, r10d
and edx, edi
jge 0x140004e4e
dec edx
or edx, ebx
inc edx
movsxd rcx, edx
mov al, byte [rsp + rcx]
mov byte [rsp + r11], al
mov byte [rsp + rcx], r10b
movzx ecx, byte [rsp + r11]
add rcx, r10
movzx eax, cl
mov cl, byte [rsp + rax]
xor byte [r14], cl
inc r14
sub r8, 1
jne 0x140004e2b
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.140031f60
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140004ea0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x90
xor edx, edx
mov dword [rsp + 0x20], 0x70
mov rbx, rcx
lea rcx, [rsp + 0x24]
lea r8d, [rdx + 0x6c]
call fcn.140033a80
lea rax, str.runas
mov qword [rsp + 0x38], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x50], 1
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne al
add rsp, 0x90
pop rbx
ret

Function at 0x14000539c
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
lea r10, [rcx + 0x9c4]
mov r9, rcx
mov eax, dword [r10]
mov r11d, 0xe3
lea r8, [r10 + 4]
mov edx, dword [r8]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 - 0x9c0], ecx
lea r10, [r8]
sub r11, 1
jne 0x1400053af
lea r10, [r9 + 0xd50]
mov r11d, 0x18c
mov eax, dword [r10]
lea r8, [r10 + 4]
mov edx, dword [r8]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd4c]
xor ecx, edx
mov dword [r10 - 0x9c0], ecx
lea r10, [r8]
sub r11, 1
jne 0x1400053fa
mov edx, dword [r9 + 0x1380]
xor edx, dword [r9 + 4]
btr edx, 0x1f
xor edx, dword [r9 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
and dword [r9], 0
ret
Function at 0x140005a04
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1400a6738]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rsi, rcx
xor ebx, ebx
xor edx, edx
lea ecx, [rbx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140005a44
xor eax, eax
jmp 0x140005a8e
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rdi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x140005a79
lea rdx, [rsp + 0x4c]
mov rcx, rsi
call fcn.1400363c4
test eax, eax
je 0x140005a7f
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140005a5b
jmp 0x140005a83
mov ebx, dword [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140031f60
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140005bbc
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1370]
mov eax, 0x1470
call fcn.1400323d0
sub rsp, rax
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x14a8], rbx
mov qword [rsp + 0x14b0], rsi
mov rax, qword [0x1400a6738]
xor rax, rsp
mov qword [rbp + 0x1360], rax
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x20], rcx
movaps xmm0, xmmword [str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz]
movaps xmmword [rbp + 0x12e0], xmm0
movaps xmm1, xmmword [0x14005ce70]
movaps xmmword [rbp + 0x12f0], xmm1
movaps xmm0, xmmword [0x14005ce80]
movaps xmmword [rbp + 0x1300], xmm0
movaps xmm1, xmmword [0x14005ce90]
movaps xmmword [rbp + 0x1310], xmm1
movaps xmm0, xmmword [0x14005cea0]
movaps xmmword [rbp + 0x1320], xmm0
movaps xmm1, xmmword [0x14005ceb0]
movaps xmmword [rbp + 0x1330], xmm1
movaps xmm0, xmmword [0x14005cec0]
movaps xmmword [rbp + 0x1340], xmm0
movsd xmm1, qword [0x14005ced0]
movsd qword [rbp + 0x1350], xmm1
mov eax, dword [0x14005ced8]
mov dword [rbp + 0x1358], eax
movzx eax, word [0x14005cedc]
mov word [rbp + 0x135c], ax
call fcn.14000dfc8
mov ecx, eax
or dword [rbp + 0x12d4], 0xffffffff
mov dword [rsp + 0x54], eax
mov r12d, 1
mov r8d, r12d
mov edx, r12d
mov r9d, 0x270
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, r8d
mov dword [rsp + rdx*4 + 0x54], ecx
add r8d, r12d
add rdx, r12
cmp rdx, r9
jl 0x140005cbf
mov dword [rsp + 0x50], r9d
xor r15d, r15d
mov ebx, r15d
mov qword [rsp + 0x40], rbx
lea edi, [r15 + 7]
mov qword [rsp + 0x48], rdi
mov word [rsp + 0x30], r15w
test rsi, rsi
je 0x140005d71
mov r9d, 0x3d
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.140002938
movsxd rcx, eax
movzx r9d, word [rbp + rcx*2 + 0x12e0]
cmp rbx, rdi
jae 0x140005d50
lea rax, [rbx + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp rdi, 8
cmovae rax, qword [rsp + 0x30]
mov word [rax + rbx*2], r9w
mov word [rax + rbx*2 + 2], r15w
jmp 0x140005d60
mov r8b, r15b
mov rdx, r12
lea rcx, [rsp + 0x30]
call fcn.140002d50
sub rsi, r12
je 0x140005d71
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
jmp 0x140005d02
lea r8, str..jpg
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.140002854
nop
lea rcx, [rsp + 0x30]
call fcn.14000242c
mov rax, r14
mov rcx, qword [rbp + 0x1360]
xor rcx, rsp
call fcn.140031f60
lea r11, [rsp + 0x1470]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret

Function at 0x140006144
Capabilities:
Encode data using xor

Disassembly:
test rdx, rdx
je 0x140006155
xor byte [rcx], r8b
inc rcx
sub rdx, 1
jne 0x140006149
ret
Function at 0x140008178
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 r13
push r14
push r15
mov r14, qword [rsp + 0x48]
xor r11d, r11d
mov rbx, qword [rsp + 0x60]
mov r12, r9
mov rax, qword [rsp + 0x50]
mov r15, r8
mov r13, rdx
mov qword [r14], r8
mov qword [rbx], rax
mov r10, qword [r14]
cmp r10, r9
je 0x140008315
mov rsi, r10
lea edi, [r11 + 1]
mov rax, qword [rsp + 0x58]
mov r9d, 0x3ff
mov r10, rsi
cmp qword [rbx], rax
je 0x140008315
mov bpl, r11b
movzx ecx, word [rsi]
cmp di, word [r13]
jae 0x140008213
mov edx, 0x2400
lea eax, [rdx + rcx]
cmp ax, r9w
ja 0x14000833c
movzx r8d, word [r13]
movzx eax, cx
shl r8d, 0xa
sub eax, 0xdc00
or r8d, eax
jmp 0x140008233
mov eax, 0x2800
movzx r8d, cx
add cx, ax
cmp cx, r9w
ja 0x140008233
shl r8d, 0xa
mov bpl, dil
sub r8d, 0x35f0000
cmp r8d, 0x80
jae 0x140008244
mov dl, r8b
mov r9d, r11d
jmp 0x14000827e
mov edx, r8d
cmp r8d, 0x800
jae 0x14000825b
shr edx, 6
mov r9d, edi
or dl, 0xc0
jmp 0x14000827e
cmp r8d, 0x10000
jae 0x140008272
shr edx, 0xc
mov r9d, 2
or dl, 0xe0
jmp 0x14000827e
shr edx, 0x12
mov r9d, 3
or dl, 0xf0
mov rcx, qword [rsp + 0x58]
movzx eax, bpl
xor eax, edi
cmp r9d, 3
lea edi, [rax + rax]
cmovb edi, r9d
sub rcx, qword [rbx]
inc edi
mov eax, edi
cmp rcx, rax
jl 0x140008315
lea rax, [rsi + 2]
mov qword [r14], rax
test bpl, bpl
jne 0x1400082b2
cmp r9d, 3
jae 0x1400082bc
mov rax, qword [rbx]
mov byte [rax], dl
inc qword [rbx]
dec edi
test edi, edi
jle 0x1400082ee
lea ecx, [r9 + r9*2]
mov r14d, 1
add ecx, ecx
mov rax, qword [rbx]
sub ecx, 6
mov edx, r8d
sub edi, r14d
shr edx, cl
and dl, 0x3f
or dl, 0x80
mov byte [rax], dl
add qword [rbx], r14
test edi, edi
jg 0x1400082cc
mov r14, qword [rsp + 0x48]
shr r8d, 0xa
mov edi, 1
test bpl, bpl
mov eax, edi
cmovne ax, r8w
mov word [r13], ax
mov r10, qword [r14]
mov rsi, r10
cmp r10, r12
jne 0x1400081c7
cmp r15, r10
sete r11b
mov eax, r11d
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
ret
mov eax, 2
jmp 0x14000831f
Function at 0x140036a90
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 0x14003691b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003691b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003691b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003691b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003691b
cmp dword [rcx + 0x84], 0xe
jbe 0x14003691b
cmp dword [rcx + 0xf8], 0
je 0x14003691b
mov ecx, ebx
call fcn.1400369bc
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.140036798
cmp dword [rbp + 0x20], 0
je 0x140036968
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140036970
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400368b4
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004430]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004440]
mov dword [rax], 1
mov rax, qword [0x140004450]
mov dword [rax], 1
mov rax, qword [0x1400043d0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004420]
mov dword [0x14000700c], 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 [0x140004500]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400044e0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140004380]
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 0x140001760
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 0x140002120
Capabilities:
Parse pe header

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

Function at 0x140002150
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 0x14000219d
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 0x140002194
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000219f
add rax, 0x28
cmp rax, r9
jne 0x140002180
xor eax, eax
ret

Function at 0x1400021a0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002230
mov rdx, qword [0x1400043d0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000221e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000221e
cmp word [rax + 0x18], 0x20b
jne 0x14000221e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002230
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002209
add rbx, 0x28
cmp rbx, rdi
je 0x140002230
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002200
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 0x140002240
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400022c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043d0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400022df
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400022e8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400022df
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140002300
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400043d0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002320
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002328
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002320
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x140002370
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002367
test rcx, rcx
je 0x140002320
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002358
xor eax, eax
ret

Function at 0x140002380
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x1400043d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400023e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400023e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400023e0
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x1400023e0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140002434
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002440
add rdx, 0x28
cmp r9, rdx
jne 0x140002420
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1400043d0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002472
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002480
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002472
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002472
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x140002472
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x1400024d5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400024e8
add rdx, 0x28
cmp rdx, r10
jne 0x1400024c0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400024f7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002507
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400024de
test ecx, ecx
jg 0x1400024f0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret