joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14080f3f0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14080f432
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14080f479
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14080f4d2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14080f490
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14080f513
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14082549a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14082549b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14080f4e0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x14080f684
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14080f6be
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14080f6c3
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14080f70c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x14080f70c
dec r8
sub rdx, 1
jne 0x14080f6f2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14080fa7c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.14080f79c
mov ebx, eax
test eax, eax
jne 0x14080faac
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x14080fb0f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14080fb06
test al, 0x10
je 0x14080fb06
bt eax, 0xa
jae 0x14080faff
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.14080fb20
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x14080fafb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14080fafb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x14080fb06
and dword [rsp + 0x3c], 0
jmp 0x14080fb0b
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140810cd8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140810d22
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140810d22
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140810d22
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140810d22
cmp dword [rcx + 0x84], 0xe
jbe 0x140810d22
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140810d24
xor al, al
add rsp, 0x28
ret
Function at 0x14002982c
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.14001ce24
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001ce24
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002997c
cmp rax, 0xffffffffffffffff
je 0x14002997c
xor edi, edi
test rbp, rbp
jle 0x140029927
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f738
mov rbx, rax
test rax, rax
jne 0x1400298b4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002991d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a758
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.14001db00
cmp eax, 0xffffffff
je 0x1400298fd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400298c4
mov edx, r15d
mov ecx, r14d
call fcn.14001a758
jmp 0x14002991d
cmp byte [rsi + 0x38], dil
je 0x140029914
cmp dword [rsi + 0x34], 5
jne 0x140029914
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002991d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b4ec
jmp 0x140029990
jns 0x140029990
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001ce24
cmp rax, 0xffffffffffffffff
jne 0x140029948
cmp byte [rsi + 0x30], dil
je 0x140029990
mov edi, dword [rsi + 0x2c]
jmp 0x140029990
mov ecx, r14d
call fcn.140018c10
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029990
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029990
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029989
mov eax, dword [rsi + 0x2c]
jmp 0x14002998e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001ce24
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 0x14002aa80
Capabilities:
Parse pe header

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

Function at 0x180001100
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180001128
xor eax, eax
lea r8, section..text
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret
Function at 0x14000f890
Capabilities:
Write file on windows

Disassembly:
test rcx, rcx
je 0x14000f9a2
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rsi, rdx
mov r14, rcx
and qword [rax - 0x38], 0
mov dword [rax - 0x40], 0x80
mov dword [rax - 0x48], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 1]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rbx, rax
mov qword [rsp + 0x80], rax
cmp rax, 0xffffffffffffffff
jne 0x14000f917
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov rdx, rsi
call fcn.14000f544
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 0x20]
call qword [0x14001bf80]
mov rdi, rax
mov rcx, qword [r14]
mov rax, qword [rcx + 0x18]
mov rcx, r14
call qword [0x14001bf80]
mov rdx, rax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x14000f981
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov rdx, rsi
call fcn.14000f544
nop
test rbx, rbx
je 0x14000f995
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret

Function at 0x1400171a4
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140027290], eax
call fcn.140016ef0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140027290], 0
jne case.default.0x1400171fa
mov ecx, 1
call fcn.140016ef0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
popfq
cmc
wait
pushfq
xchg edi, eax
add al, 0xbe
jl 0x140040927
pop rdi
invalid
scasd eax, dword [rdi]
add byte [rax + rbx*4], al
invalid
jmp 0x140040916
Function at 0x140615a30
Capabilities:
Terminate process

Disassembly:
pop rcx
adc dword [rbx + rax*8 - 0x18], ecx
and al, 0x59
or esp, eax
adc dword [0x10d881364], esi
invalid
cld
pop r11
jmp 0x140615a3d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140615a4d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140615a35
lea eax, [rcx + 1]
jmp 0x140615a5b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140615a6e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140615a54
sub eax, 3
jb 0x140615a8e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140615add
sar eax, 1
movsxd rbp, eax
jb 0x140615ac4
jmp 0x140615a9c
add ebx, ebx
jne 0x140615a9a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140615ac4
inc ecx
add ebx, ebx
jne 0x140615aaa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140615ac4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140615abd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140615aac
add ecx, 2
jmp 0x140615ac9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1406159f2
jmp 0x140615a3d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0x60b000]
mov eax, dword [rdi]
or eax, eax
je 0x140615b49
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x616338]
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 0x140615aed
jns 0x140615b22
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140615b2c
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 0x140615b43
mov qword [rbx], rax
add rbx, 8
jmp 0x140615b0d
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 0x140615b8d
cmp al, 0xef
ja 0x140615b75
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140615b55
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x140615b64
mov eax, dword [rdi]
add rdi, 4
jmp 0x140615b64
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 + 0x26f]
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 0x140615be1
sub rsp, 0xffffffffffffff80
jmp 0x14043b62c
Function at 0x1400011d0
Capabilities:
Enumerate processes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x160
mov rdi, rcx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x158], rax
mov dword [rsp + 0x28], 0x130
xor esi, esi
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
je 0x140001266
mov rbx, rax
lea rdx, [rsp + 0x28]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x14000124e
lea r14, [rsp + 0x54]
lea r15, [rsp + 0x28]
nop dword [rax]
mov rcx, r14
mov rdx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140001259
mov rcx, rbx
mov rdx, r15
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140001230
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001266
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.140001300
mov eax, esi
add rsp, 0x160
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140001a70
Capabilities:
Parse pe header

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

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

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
mov rbx, rcx
je 0x100401c29
mov edx, 0x2f
call sub.cygwin1.dll_strrchr
test rax, rax
je 0x100401c10
lea rdx, [rax + 1]
mov rcx, rdx
sub rcx, rbx
cmp rcx, 6
jle 0x100401c10
lea rsi, [rax - 6]
lea rdi, str._.libs_
mov ecx, 7
repe cmpsb byte [rsi], byte [rdi]
jne 0x100401c10
lea rdi, [0x100407bb0]
mov ecx, 3
mov rsi, rdx
mov rbx, rdx
repe cmpsb byte [rsi], byte [rdi]
seta r8b
setb cl
cmp r8b, cl
jne 0x100401c10
lea rbx, [rax + 4]
mov rax, qword [sym.imp.cygwin1.dll_program_invocation_short_name]
mov qword [rax], rbx
mov rax, qword [sym.imp.cygwin1.dll_program_invocation_name]
mov qword [0x10040c040], rbx
mov qword [rax], rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call sub.cygwin1.dll___getreent
mov r9, qword [rax + 0x18]
lea rcx, str.A_NULL_argv_0__was_passed_through_an_exec_system_call._n
mov r8d, 0x37
mov edx, 1
call sub.cygwin1.dll_fwrite
call sub.cygwin1.dll_abort
nop
nop

Function at 0x1004042e0
Capabilities:
Query environment variable

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
xor ecx, ecx
call sub.cygwin1.dll_nl_langinfo
test rax, rax
mov rbp, rax
je 0x100404470
lea rdi, str.US_ASCII
mov ecx, 9
mov rsi, rax
repe cmpsb byte [rsi], byte [rdi]
je 0x100404382
mov rbx, qword [0x10040c1b0]
test rbx, rbx
jne 0x10040433a
jmp 0x1004043f7
mov rcx, rbx
call sub.cygwin1.dll_strlen
lea rbx, [rbx + rax + 1]
mov rcx, rbx
call sub.cygwin1.dll_strlen
lea rbx, [rbx + rax + 1]
movzx esi, byte [rbx]
test sil, sil
je 0x10040436a
mov rdx, rbx
mov rcx, rbp
call sub.cygwin1.dll_strcmp
test eax, eax
je 0x10040435d
cmp sil, 0x2a
jne 0x100404320
cmp byte [rbx + 1], 0
jne 0x100404320
mov rcx, rbx
call sub.cygwin1.dll_strlen
lea rbp, [rbx + rax + 1]
cmp byte [rbp], 0
lea rax, str.ASCII
cmovne rax, rbp
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rcx, str.LC_ALL
call sub.cygwin1.dll_getenv
test rax, rax
je 0x100404398
cmp byte [rax], 0
jne 0x100404410
lea rcx, str.LC_CTYPE
call sub.cygwin1.dll_getenv
test rax, rax
je 0x1004043ae
cmp byte [rax], 0
jne 0x100404410
lea rcx, str.LANG
call sub.cygwin1.dll_getenv
test rax, rax
je 0x1004043c4
cmp byte [rax], 0
jne 0x100404410
call qword [sym.imp.KERNEL32.dll_GetACP]
lea rdx, str.CP_u
lea rcx, [0x10040c1a0]
mov r8d, eax
lea rbp, [0x10040c1a0]
call sub.cygwin1.dll_sprintf
mov rbx, qword [0x10040c1b0]
test rbx, rbx
jne 0x10040433a
lea rax, str.CP936
mov qword [0x10040c1b0], rax
mov rbx, rax
jmp 0x10040433a
mov edx, 0x2e
mov rcx, rax
call sub.cygwin1.dll_strchr
test rax, rax
je 0x1004043c4
lea rbx, [rax + 1]
mov edx, 0x40
mov rcx, rbx
call sub.cygwin1.dll_strchr
test rax, rax
je 0x10040447c
sub rax, rbx
cmp rax, 0xc
mov rsi, rax
ja 0x1004043c4
lea rbp, [0x10040c1a0]
mov r8, rax
mov rdx, rbx
mov rcx, rbp
call fcn.100404660
mov byte [rbp + rsi], 0
mov rax, rbp
jmp 0x100404379
lea rbp, [0x100408330]
jmp 0x10040430e
mov rax, rbx
jmp 0x100404379
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push rsi
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [rdx + 8]
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov edx, 0x10000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400010a4
mov qword [rsp + 0x60], rbx
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x70], rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov edx, eax
mov r8d, 0x1000
mov edi, eax
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov rdx, rax
mov r8d, edi
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
call rbx
mov rdi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x60]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400010d0
add rsp, 0x50
pop rsi
ret

Function at 0x140001998
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x1400188a0], rbx
je 0x140001327
cmp rax, rbx
jne 0x14000131a
mov edi, 1
mov esi, edi
jmp 0x14000132c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400012ff
mov edi, 1
mov eax, dword [0x1400188a8]
cmp eax, edi
jne 0x140001344
mov ebx, Ordinal_35
mov ecx, ebx
call sub.msvcrt.dll__amsg_exit
jmp 0x1400013ba
mov eax, dword [0x1400188a8]
test eax, eax
jne 0x1400013af
mov dword [0x1400188a8], edi
lea r15, [0x140013a48]
lea rbx, [0x140013a30]
mov qword [rsp + 0x30], rbx
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rbx, r15
jae 0x1400013a1
test eax, eax
jne 0x1400013a5
cmp qword [rbx], r14
je 0x140001396
movabs r10, 0xd30527475e523070
mov rax, qword [rbx]
mov rcx, qword [0x1400139c0]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x14000136e
test eax, eax
je 0x1400013b5
mov eax, 0xff
jmp 0x14000151b
mov dword [0x1400180a4], edi
mov ebx, Ordinal_35
mov eax, dword [0x1400188a8]
cmp eax, edi
jne 0x1400013e1
lea rdx, [0x140013a28]
lea rcx, [0x1400139d8]
call sub.msvcrt.dll__initterm
mov dword [0x1400188a8], 2
test esi, esi
jne 0x1400013ef
mov rax, r14
xchg qword [0x1400188a0], rax
cmp qword [0x1400188c0], r14
je 0x14000142c
lea rcx, [0x1400188c0]
call fcn.1400019d0
test eax, eax
je 0x14000142c
movabs r10, 0x99012e4578d92870
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400188c0]
mov r9, qword [0x1400139c0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140001445
mov eax, 0xff
jmp 0x14000151b
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x1400014cc
test ax, ax
je 0x140001460
test edx, edx
jne 0x1400014cc
sub ax, di
cmp ax, bx
ja 0x140001476
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x140001460
test byte [rsp + 0x7c], dil
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.14000b04c
mov dword [0x1400180a0], eax
cmp dword [0x1400180c0], r14d
jne 0x1400014b5
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400180a4], r14d
jne 0x1400014ca
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400180a0]
jmp 0x14000151b
cmp ax, 0x22
jne 0x1400014e0
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000144e
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.1400db000
add rsp, 0x28
jmp 0x1400012c0
Function at 0x1400018bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140001908
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001900
cmp dword [rcx + 0x3c], edx
jl 0x140001900
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140001900
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140001908
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140001a30
Capabilities:
Parse pe header

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

Function at 0x140001d74
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140018018]
xor rax, rsp
mov qword [rbp - 8], rax
xor edi, edi
mov word [rbp - 0xc], 0x500
lea rax, [rbp - 0x18]
mov dword [rbp - 0x20], edi
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x10]
mov dword [rsp + 0x48], edi
mov r9d, 0x220
mov dword [rsp + 0x40], edi
lea r8d, [rdi + 0x20]
mov dword [rsp + 0x38], edi
mov dl, 2
mov dword [rsp + 0x30], edi
mov ebx, edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov dword [rbp - 0x10], edi
mov qword [rbp - 0x18], rdi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
nop dword [rax + rax]
test eax, eax
je 0x140001e32
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
je 0x140001e32
cmp dword [rbp - 0x20], edi
je 0x140001e32
lea rdx, [rbp - 0x1c]
mov dword [rbp - 0x1c], 0x1000
xor ecx, ecx
call qword [sym.imp.iertutil.dll_Ordinal_35]
nop dword [rax + rax]
test eax, eax
jne 0x140001e32
cmp dword [rbp - 0x1c], 0x3000
setae bl
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140001e47
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140001580
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret