joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a6a70
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400a6a86
mov al, 1
jmp 0x1400a6ae6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400a6a97
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400a6ae4
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400a7484
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400a6ae4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400a6ae4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400a6ae4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400a6ae6
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400a7594
Capabilities:
Clear file content

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 rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14009f150
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14009f150
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400a76e4
cmp rax, 0xffffffffffffffff
je 0x1400a76e4
xor edi, edi
test rbp, rbp
jle 0x1400a768f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400a3550
mov rbx, rax
test rax, rax
jne 0x1400a761c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400a7685
mov edx, 0x8000
mov ecx, r14d
call fcn.1400a0810
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400a1f90
cmp eax, 0xffffffff
je 0x1400a7665
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400a762c
mov edx, r15d
mov ecx, r14d
call fcn.1400a0810
jmp 0x1400a7685
cmp byte [rsi + 0x38], dil
je 0x1400a767c
cmp dword [rsi + 0x34], 5
jne 0x1400a767c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1400a7685
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400a35c8
jmp 0x1400a76f8
jns 0x1400a76f8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14009f150
cmp rax, 0xffffffffffffffff
jne 0x1400a76b0
cmp byte [rsi + 0x30], dil
je 0x1400a76f8
mov edi, dword [rsi + 0x2c]
jmp 0x1400a76f8
mov ecx, r14d
call fcn.1400a7484
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400a76f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1400a76f8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400a76f1
mov eax, dword [rsi + 0x2c]
jmp 0x1400a76f6
mov eax, reloc.WLDAP32.dll_Ordinal_22
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14009f150
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400aaf74
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400aafa4
xor eax, eax
jmp 0x1400ab067
mov rbp, rbx
cmp word [rax], si
je 0x1400aafc9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400aafb0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400aafac
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400a7f30
movsxd r14, eax
test eax, eax
jne 0x1400ab007
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400aaf9d
mov rcx, r14
call fcn.1400a41ac
mov rdi, rax
test rax, rax
jne 0x1400ab020
xor ecx, ecx
call fcn.1400a35c8
jmp 0x1400aaffc
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400a7f30
test eax, eax
jne 0x1400ab051
mov rcx, rdi
call fcn.1400a35c8
jmp 0x1400ab05b
xor ecx, ecx
call fcn.1400a35c8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400ab084
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400ab10b
mov rsi, rbx
cmp word [rax], bp
je 0x1400ab0ca
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400ab0b4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400ab0b0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400a41ac
mov rdi, rax
test rax, rax
je 0x1400ab0f8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400b27d0
mov rbp, rdi
xor ecx, ecx
call fcn.1400a35c8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400ac80c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400ac82c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400942fc
or eax, 0xffffffff
jmp 0x1400ac82e
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400af178
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400e4700]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400af1c2
call fcn.140094368
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.140094388
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1400914f0
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140088d90
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400af1cd
lea eax, [rbx + 1]
jmp 0x1400af1af
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400af1ad
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400af1af
Function at 0x1400b0614
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400943a8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400b069e
cmp byte [rbp - 0x21], r15b
je 0x1400b0699
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400b06d4
call fcn.1400a3870
test eax, eax
jne 0x1400b06c0
cmp byte [rbp - 0x21], r15b
je 0x1400b06b8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400b06d4
cmp byte [rbp - 0x21], r15b
je 0x1400b06d1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14009cbf8
test eax, eax
jne 0x1400b0774
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400943a8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400b0713
cmp byte [rbp - 0x21], r15b
je 0x1400b0748
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400b0748
call fcn.1400a3870
test eax, eax
jne 0x1400b0734
cmp byte [rbp - 0x21], r15b
je 0x1400b072d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400b0748
cmp byte [rbp - 0x21], r15b
je 0x1400b0745
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14009cbf8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400b0774
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400b0777
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400b0785
mov rcx, rdi
call fcn.1400a35c8
cmp byte [rbp + 0x3f], r15b
je 0x1400b0794
mov rcx, qword [rbp + 0x27]
call fcn.1400a35c8
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140349a70
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x10090
call fcn.14034e3e0
sub rsp, rax
mov rax, qword [0x14039bd40]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x80], bp
mov edi, 0x28
mov word [rsp + 0x30], bp
test al, al
je 0x140349b32
nop dword [rax]
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.14035d594
cmp rax, 1
jne 0x140349b8e
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x140349b0f
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x140349b03
cmp rcx, 1
jb 0x140349b8e
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x140349ad0
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x140349b63
lea rcx, [rsp + 0x80]
call fcn.1403601c8
jmp 0x140349b65
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.14034e440
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140351b70
int3
Function at 0x14034aae0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp byte [0x1403b759e], 0
mov rsi, r8
mov rdi, rdx
mov rbp, rcx
jne 0x14034ab65
mov edx, 3
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x1403b7360], rax
xor ecx, ecx
mov ebx, dword [rax]
lea rdx, [rax + 4]
mov qword [0x1403b7360], rdx
mov r8d, dword [rdx]
add rdx, 4
mov qword [0x1403b7360], rdx
call fcn.1403487c0
cmp eax, ebx
jne 0x14034accd
mov byte [0x1403b759e], 1
lea rdx, [0x14036ffd8]
mov rcx, rsi
call fcn.14035f040
test eax, eax
je 0x14034abf0
cmp byte [0x1403b759d], 1
je 0x14034abf0
call qword [sym.imp.python313.dll_PyDict_New]
mov qword [0x1403b8310], rax
call qword [sym.imp.python313.dll_PyDict_New]
mov qword [0x1403b8318], rax
call qword [sym.imp.python313.dll_PyDict_New]
mov qword [0x1403b8320], rax
call qword [sym.imp.python313.dll_PyDict_New]
mov qword [0x1403b8328], rax
call qword [sym.imp.python313.dll_PyDict_New]
mov qword [0x1403b8330], rax
call qword [sym.imp.python313.dll_PyDict_New]
mov qword [0x1403b8338], rax
call qword [sym.imp.python313.dll_PyDict_New]
mov qword [0x1403b8340], rax
call qword [sym.imp.python313.dll_PyDict_New]
mov qword [0x1403b8348], rax
mov byte [0x1403b759d], 1
mov r8, qword [0x1403b7360]
mov rax, rsi
mov rdx, r8
sub rdx, rsi
movzx ecx, byte [rax]
xor r9d, r9d
cmp cl, byte [rax + rdx]
jne 0x14034ac17
inc rax
test cl, cl
jne 0x14034ac00
mov ecx, r9d
jmp 0x14034ac1c
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
cmp byte [r8 + rax + 1], r9b
lea rax, [rax + 1]
jne 0x14034ac23
lea rdx, [r8 + rax]
mov eax, dword [r8 + rax + 1]
add rdx, 5
test ecx, ecx
je 0x14034ac88
nop
add rdx, rax
mov rax, rsi
mov r8, rdx
sub r8, rsi
nop dword [rax]
movzx ecx, byte [rax]
cmp cl, byte [rax + r8]
jne 0x14034ac65
inc rax
test cl, cl
jne 0x14034ac50
mov ecx, r9d
jmp 0x14034ac6a
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], r9b
jne 0x14034ac71
add rdx, rax
mov eax, dword [rdx + 1]
add rdx, 5
test ecx, ecx
jne 0x14034ac40
movzx ecx, word [rdx]
lea rax, [rdx + 2]
cmp r9w, cx
jae 0x14034acb8
mov ebx, ecx
nop word [rax + rax]
mov r8, rax
mov rdx, rdi
mov rcx, rbp
call fcn.140346ef0
add rdi, 8
sub rbx, 1
jne 0x14034aca0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea rcx, str.Error__corrupted_constants_object
call fcn.140359dd4
call fcn.140351b70
int3
Function at 0x14034df50
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x14039bd40]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
mov edi, 0x28
test al, al
je 0x14034e001
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.14035d594
cmp rax, 1
jne 0x14034e037
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x14034dfdd
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x14034dfd0
cmp rcx, 1
jb 0x14034e037
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14034dfa0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14034e440
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.140351b70
int3

Function at 0x14034e260
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14039bd40]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x30], bp
mov edi, 0x28
test al, al
je 0x14034e30f
nop dword [rax]
nop dword [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.14035d594
cmp rax, 1
jne 0x14034e345
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14034e2ec
nop
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x14034e2e0
cmp rcx, 1
jb 0x14034e345
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14034e2b0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14034e440
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140351b70
int3

Function at 0x14034ee14
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14034ee5e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14034ee5e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14034ee5e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14034ee5e
cmp dword [rcx + 0x84], 0xe
jbe 0x14034ee5e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14034ee60
xor al, al
add rsp, 0x28
ret
Function at 0x1403531e4
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140353253
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140353253
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140353253
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140353253
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140353253
cmp dword [rcx + 0x84], 0xe
jbe 0x140353253
cmp dword [rcx + 0xf8], 0
je 0x140353253
mov ecx, ebx
call fcn.140353304
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1403530e0
nop
cmp dword [rbp + 0x20], 0
je 0x1403532a1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1403532ac
int3
xor r8d, r8d
xor edx, edx
jmp 0x1403531e4

Function at 0x1403533e8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140353253
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140353253
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140353253
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140353253
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140353253
cmp dword [rcx + 0x84], 0xe
jbe 0x140353253
cmp dword [rcx + 0xf8], 0
je 0x140353253
mov ecx, ebx
call fcn.140353304
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1403530e0
nop
cmp dword [rbp + 0x20], 0
je 0x1403532a1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1403532ac
int3
xor r8d, r8d
xor edx, edx
jmp 0x1403531e4
Function at 0x140365120
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1403651a7
mov rsi, rbx
cmp word [rax], bp
je 0x140365166
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140365150
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14036514c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1403606a0
mov rdi, rax
test rax, rax
je 0x140365194
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14036b4a0
mov rbp, rdi
xor ecx, ecx
call fcn.1403611e8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1403678ac
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1403678c2
mov al, 1
jmp 0x140367922
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1403678d3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140367920
mov ecx, dword [rcx + 0x18]
nop
call fcn.1403658c4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140367920
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140367920
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140367920
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140367922
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14036b280
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14036b2a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14036b2a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004580]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004590]
mov dword [rax], 1
mov rax, qword [0x1400045a0]
mov dword [rax], 1
mov rax, qword [0x140004520]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004570]
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 [0x140004640]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140004620]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140004500]
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 [dbg._matherr]
call dbg.__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 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, 0x30
mov rax, qword gs:[eax]
mov rsi, qword [rax + 8]
mov rbx, qword [0x1400045c0]
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001318
mov ecx, 0x3e8
call rdi
xor eax, eax
lock cmpxchg qword [rbx], rsi
jne 0x1400011b0
xor edi, edi
mov rsi, qword [0x1400045d0]
mov eax, dword [rsi]
cmp eax, 1
je 0x1400013a7
mov eax, dword [rsi]
test eax, eax
je 0x140001350
mov dword [0x140007008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x140001374
test edi, edi
je 0x140001340
mov rax, qword [0x140004550]
mov rax, qword [rax]
test rax, rax
je 0x14000121f
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call dbg._pei386_runtime_relocator
mov rcx, qword [dbg._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x1400045b0]
lea rcx, [dbg.__mingw_invalidParameterHandler]
mov qword [rdx], rax
call sym._set_invalid_parameter_handler
call dbg._fpreset
mov ebx, dword [0x140007028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sym.malloc
mov r12, qword [0x140007020]
mov rbp, rax
test ebx, ebx
jle 0x140001398
sub rdi, 8
xor ebx, ebx
nop dword [rax]
mov rcx, qword [r12 + rbx]
call sym.strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sym.malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sym.memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x140007020], rbp
call dbg.__main
call dbg.__p___initenv
mov r8, qword [0x140007018]
mov ecx, dword [0x140007028]
mov qword [rax], r8
mov rdx, qword [0x140007020]
call dbg.main
mov ecx, dword [0x14000700c]
mov dword [0x140007010], eax
test ecx, ecx
je 0x1400013a0
mov edx, dword [0x140007008]
test edx, edx
je 0x140001328
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov edi, 1
jmp 0x1400011cb
call sym._cexit
mov eax, dword [0x140007010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001204
mov rdx, qword [0x140004610]
mov rcx, qword [0x140004600]
mov dword [rsi], 1
call sym._initterm
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011fc
mov rdx, qword [0x1400045f0]
mov rcx, qword [0x1400045e0]
call sym._initterm
mov dword [rsi], 2
jmp 0x1400011fc
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sym.exit
mov ecx, 0x1f
call dbg._amsg_exit
nop
nop word cs:[rax + rax]
nop dword [rax]