joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140016290
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x40
mov rbx, qword [0x1400940b0]
cmp byte [rbx + 0x2f5c], 0
je 0x14001637c
cmp qword [rbx + 0x2f68], 0
mov qword [rax - 0x18], rsi
lea rsi, [rax + 0x10]
mov qword [rax - 0x20], rdi
lea rdi, [rbx + 0x2f70]
je 0x140016364
mov r9d, dword [rdi + 4]
mov qword [rax - 0x10], rbp
xor ebp, ebp
test r9d, r9d
jns 0x14001630b
mov eax, r9d
mov rcx, rdi
cdq
sub eax, edx
mov edx, ebp
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140018390
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
mov dword [rdi], ebp
mov rcx, rdi
mov r8, rsi
call fcn.140002c70
mov eax, dword [rdi]
mov edx, 1
mov r9, qword [rbx + 0x2f68]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x2f78]
cmove ecx, ebp
test rax, rax
movsxd r8, ecx
lea rcx, [0x1400940a8]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
mov rdx, rcx
mov r8, rsi
mov rcx, rdi
call fcn.140002c70
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
Function at 0x14003b9ec
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x14042dddd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14042dded
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14042ddd5
lea eax, [rcx + 1]
jmp 0x14042ddfb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14042de0e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14042ddf4
sub eax, 3
jb 0x14042de2e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14042de7d
sar eax, 1
movsxd rbp, eax
jb 0x14042de64
jmp 0x14042de3c
add ebx, ebx
jne 0x14042de3a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14042de64
inc ecx
add ebx, ebx
jne 0x14042de4a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14042de64
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14042de5d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14042de4c
add ecx, 2
jmp 0x14042de69
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14042dd92
jmp 0x14042dddd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1e2400
mov dl, 0x2c
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14042dec9
cmp rsi, rcx
jae 0x14042ded1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14042deb0
cmp al, 0x8f
ja 0x14042deb0
cmp byte [rsi - 2], 0xf
je 0x14042deb6
sub al, 0xe8
cmp al, 1
ja 0x14042de9a
cmp rsi, rcx
jae 0x14042ded1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14042dea0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14042ded1
lodsb al, byte [rsi]
jmp 0x14042deb0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x421000]
mov eax, dword [rdi]
or eax, eax
je 0x14042df3a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x4429d4]
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 0x14042dede
jns 0x14042df13
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14042df1d
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 0x14042df34
mov qword [rbx], rax
add rbx, 8
jmp 0x14042defe
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 0x14042df7e
cmp al, 0xef
ja 0x14042df66
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14042df46
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x14042df55
mov eax, dword [rdi]
add rdi, 4
jmp 0x14042df55
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 + 0x227]
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 0x14042dfd2
sub rsp, 0xffffffffffffff80
jmp 0x1401aa200
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004420]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004430]
mov dword [rax], 1
mov rax, qword [0x140004440]
mov dword [rax], 1
mov rax, qword [0x1400043a0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004410]
mov dword [0x14000700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400044e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400044c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140004370]
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 0x140001760
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001195
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x1400011c8
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x1400011cd
call fcn.140018030
mov ecx, dword [0x140063c30]
mov r8, qword gs:[0x58]
mov rcx, qword [r8 + rcx*8]
mov byte [rcx + 0x48], 1
mov qword [rcx + 0x50], rax
mov qword [rcx + 0x58], rdx
add rsp, 0x38
ret

Function at 0x140001c4b
Capabilities:
Create process on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x108
add rdx, rcx
lea rsi, [rsp + 0x50]
mov qword [rsi], rcx
mov qword [rsi + 8], rdx
and word [rsi + 0x10], 0
mov dword [rsi + 0x18], 1
mov rcx, rsi
call fcn.140001000
test ax, ax
je 0x140001df4
mov ebp, edx
lea rdi, [rsp + 0xa0]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.1400010f7
mov rax, qword [rdi]
inc rax
mov rcx, 0xffffffffffffffff
cmovne rcx, rax
cmp rcx, 5
mov edi, 4
cmovae rdi, rcx
mov rax, rdi
shr rax, 0x3e
jne 0x140001e8c
lea r14, [rdi + rdi]
mov ecx, 2
mov rdx, r14
call fcn.1400015df
test rax, rax
je 0x140001e91
mov rbx, rax
mov word [rax], bp
movups xmm0, xmmword [rsp + 0x50]
movups xmm1, xmmword [rsp + 0x60]
lea r14, [rsp + 0xa0]
movaps xmmword [r14 + 0x10], xmm1
movaps xmmword [r14], xmm0
mov esi, 1
lea r15, [rsp + 0x70]
mov r12, 0xffffffffffffffff
mov rcx, r14
call fcn.140001000
cmp ax, 1
jne 0x140001ded
mov ebp, edx
cmp rsi, rdi
jne 0x140001de1
mov rcx, r15
mov rdx, r14
call fcn.1400010f7
mov r13, qword [rsp + 0x70]
inc r13
cmove r13, r12
add r13, rdi
jae 0x140001d58
xor ecx, ecx
jmp 0x140001dd9
lea rax, [rdi + rdi]
cmp rax, r13
cmova r13, rax
cmp r13, 5
jae 0x140001d6f
mov r13d, 4
xor edx, edx
mov rcx, r13
shr rcx, 0x3e
sete dl
lea r8, [r13*2]
add rdx, rdx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x78], 2
lea rcx, [rsp + 0x88]
mov r9, r15
call fcn.14000902f
cmp qword [rsp + 0x88], 0
mov rcx, qword [rsp + 0x90]
je 0x140001dc9
mov r13, qword [rsp + 0x98]
jmp 0x140001dd9
mov rbx, rcx
mov rdi, r13
movabs rcx, 0x8000000000000001
mov rdx, r13
call fcn.1400015f6
mov word [rbx + rsi*2], bp
inc rsi
jmp 0x140001d18
lea rsi, [rsp + 0x50]
jmp 0x140001dfb
mov ebx, 2
xor edi, edi
xorps xmm0, xmm0
lea rax, [rsp + 0xa0]
movaps xmmword [rax], xmm0
movaps xmmword [rax + 0x50], xmm0
movaps xmmword [rax + 0x40], xmm0
movaps xmmword [rax + 0x30], xmm0
movaps xmmword [rax + 0x20], xmm0
movaps xmmword [rax + 0x10], xmm0
and qword [rax + 0x60], 0
mov dword [rax], 0x68
movaps xmmword [rsp + 0x50], xmm0
and qword [rsp + 0x60], 0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], 0x8000000
and dword [rsp + 0x20], 0
xor ecx, ecx
mov rdx, rbx
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_CreateProcessW
test rdi, rdi
je 0x140001e77
add rdi, rdi
mov edx, 2
mov rcx, rbx
mov r8, rdi
call fcn.1400016d3
nop
add rsp, 0x108
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140004050
mov ecx, 2
mov rdx, r14
call fcn.14002a4d0
int3
Function at 0x140007740
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x1400077d0
cmp r11, r10
ja 0x140007846
cmp r10, rdx
ja 0x140007858
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x1400077d2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x1400077b0
jmp 0x140007834
ja 0x1400077da
mov r11, r10
cmp rax, r8
jne 0x140007774
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140007810
mov rdi, r8
sub ecx, edx
jns 0x14000782b
jmp 0x140007836
cmp r8, rsi
je 0x140007867
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140007836
xor al, 1
cmp rdi, rsi
jne 0x1400077f0
jmp 0x140007836
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14002a950
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14002a6e0
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14002aad0
int3

Function at 0x14000ca70
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140004b70
cmp rax, rcx
je 0x14000ca95
cmp rdx, 4
jae 0x14000ca98
xor eax, eax
xor r8d, r8d
jmp 0x14000cb30
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14002c490]
movdqa xmm3, xmmword [0x14002c4a0]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14000cac0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000cb47
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000cb30
ret
Function at 0x1400114c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x140054e78]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140011533
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14001156a
test eax, eax
js 0x140011544
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14001155d
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140010940
mov rcx, rax
call fcn.140010210
mov ecx, 7
int 0x29
ud2

Function at 0x140017110
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.140011dc0
mov rax, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
movabs rdi, 0x8000000000000000
cmp rax, rdi
je 0x1400171bb
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x40]
call fcn.140016ab0
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
cmp rbx, rdi
je 0x1400171bb
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140017197
test rbx, rbx
je 0x140017193
mov edx, 2
mov rcx, rsi
call fcn.140004000
xor esi, esi
jmp 0x1400171bb
call sub.KERNEL32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
test rbx, rbx
je 0x1400171b8
mov edx, 2
mov rcx, rsi
call fcn.140004000
mov rsi, rdi
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
Function at 0x140018030
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x140018073
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x140016410]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syspalwindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.14002a5a0
ud2

Function at 0x14001b234
Capabilities:
Parse pe header

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

Function at 0x14001f9bc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001f7b8
Function at 0x140022a7c
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 0x140022aac
xor eax, eax
jmp 0x140022b6f
mov rbp, rbx
cmp word [rax], si
je 0x140022ad1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140022ab8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140022ab4
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.14002299c
movsxd r14, eax
test eax, eax
jne 0x140022b0f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140022aa5
mov rcx, r14
call fcn.140023958
mov rdi, rax
test rax, rax
jne 0x140022b28
xor ecx, ecx
call fcn.140020ffc
jmp 0x140022b04
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.14002299c
test eax, eax
jne 0x140022b59
mov rcx, rdi
call fcn.140020ffc
jmp 0x140022b63
xor ecx, ecx
call fcn.140020ffc
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 0x140026060
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.140021a6c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400260ea
cmp byte [rbp - 0x21], r15b
je 0x1400260e5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140026120
call fcn.140024168
test eax, eax
jne 0x14002610c
cmp byte [rbp - 0x21], r15b
je 0x140026104
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140026120
cmp byte [rbp - 0x21], r15b
je 0x14002611d
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.14002104c
test eax, eax
jne 0x1400261c0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140021a6c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002615f
cmp byte [rbp - 0x21], r15b
je 0x140026194
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140026194
call fcn.140024168
test eax, eax
jne 0x140026180
cmp byte [rbp - 0x21], r15b
je 0x140026179
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140026194
cmp byte [rbp - 0x21], r15b
je 0x140026191
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.14002104c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400261c0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400261c3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400261d1
mov rcx, rdi
call fcn.140020ffc
cmp byte [rbp + 0x3f], r15b
je 0x1400261e0
mov rcx, qword [rbp + 0x27]
call fcn.140020ffc
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 0x1400290c0
Capabilities:
Parse pe header

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

Function at 0xa6e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00a6e1df
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 0xa6e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xa6e06f
add dl, dl
jne 0xa6e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xa6e0f6
xor eax, eax
add dl, dl
jne 0xa6e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xa6e1ad
add dl, dl
jne 0xa6e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa6e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa6e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa6e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0xa6e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0xa6e07e
mov eax, 1
add dl, dl
jne 0xa6e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa6e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xa6e0fb
sub eax, ebx
mov ebx, 1
jne 0xa6e14c
mov ecx, 1
add dl, dl
jne 0xa6e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa6e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xa6e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xa6e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa6e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa6e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xa6e15d
cmp eax, 0x7d00
jae 0xa6e19b
cmp eax, 0x500
jb 0xa6e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xa6e07e
cmp eax, 0x7f
ja 0xa6e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xa6e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0xa6e1d2
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 0xa6e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001920
Capabilities:
Parse pe header

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

Function at 0x140005a80
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400058ac

Function at 0x140012dc0
Capabilities:
Parse pe header

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

Function at 0x1004010e0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call sub.cygwin1.dll___getreent
mov rcx, qword [rax + 0x18]
lea r9, str._______________Q_msgkey____M_shmkey____S_semkey__...
lea r8, str.usage:_ipcrm___q_msqid____m_shmid____s_semid_
lea rdx, str._s_n_s_n
call sub.cygwin1.dll_fprintf
mov ecx, 1
call sub.cygwin1.dll_exit
nop
nop word cs:[rax + rax]