joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000a490
Capabilities:
Create directory

Disassembly:
cmp byte [rcx], 0
je 0x14000a4a0
mov rcx, rdx
mov rdx, r8
jmp fcn.14000a4b0
mov rcx, rdx
mov rdx, r8
jmp fcn.1400123e0

Function at 0x1400123e0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.140014980
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x1400124a1
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.140013580
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
cmp rdi, rbx
je 0x1400124a1
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140012475
test rdi, rdi
je 0x140012471
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140003770
xor esi, esi
jmp 0x1400124a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
je 0x14001249e
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140003770
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x140012880
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x1432702e0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x1400128c4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14001292a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140012961
test eax, eax
js 0x14001293b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140012954
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, [0x143270340]
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.14000c930
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140007d50
mov ecx, 7
int 0x29
ud2
Function at 0x140021440
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400214ba
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x1400214b0
cmp r11, r10
ja 0x140021551
cmp r10, rdx
ja 0x140021563
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400214b2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140021490
jmp 0x140021527
ja 0x1400214ba
mov r11, r10
cmp rax, r8
jne 0x140021462
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14002152b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140021500
mov r8, r10
sub ecx, r9d
jns 0x14002151e
jmp 0x14002152d
cmp r10, rdx
je 0x140021539
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14002152d
xor al, 1
cmp r8, rdx
jne 0x1400214e0
jmp 0x14002152d
xor eax, eax
jmp 0x14002152d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x143272f2b]
lea r8, [0x1432738b8]
mov edx, 0x2b
call fcn.140024f40
lea r8, [0x1432738d0]
mov rcx, r11
mov rdx, r10
call fcn.140025410
lea r8, [0x1432738d0]
mov rcx, r10
call fcn.140025390
int3

Function at 0x140023004
Capabilities:
Parse pe header

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

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp], 0xfffffffffffffffe
lea rcx, [0x14326e0f5]
call sub.KERNEL32.dll_GetModuleHandleA
test rax, rax
je 0x14002414e
mov rdi, rax
lea rdx, [0x14326e116]
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x14002414e
mov rsi, rax
lea rdx, [0x14326e124]
mov rcx, rdi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x14002414e
mov rdi, rax
xor ebx, ebx
jmp 0x1400241d0
lea rcx, [0x14326e0b0]
call sub.KERNEL32.dll_GetModuleHandleA
test rax, rax
je 0x140024243
mov rsi, rax
lea rdx, [0x14326e0ba]
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x140024243
mov rdi, rax
lea rdx, [0x14326e0cd]
mov rcx, rsi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x140024243
mov rbx, rax
lea rdx, [0x14326e0e1]
mov rcx, rsi
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x140024243
mov rsi, rax
lea rcx, [rbp - 0x18]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rdi
test eax, eax
jne 0x140024243
mov rdi, qword [rbp - 0x18]
movzx eax, byte [0x14327a181]
mov ecx, 0x18
mov edx, 8
call fcn.140003760
test rax, rax
je 0x140024248
mov rcx, rax
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rdi
xor eax, eax
lock cmpxchg qword [0x14327a198], rcx
je 0x140024237
mov rsi, rax
cmp qword [rcx], 0
mov qword [rbp - 8], rcx
je 0x140024220
mov rax, qword [rbp - 8]
mov rcx, qword [rax + 0x10]
call sub.KERNEL32.dll_CloseHandle
mov edx, 0x18
mov r8d, 8
mov rcx, qword [rbp - 8]
call fcn.140003770
mov rcx, rsi
mov rax, rcx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop rbp
ret
call fcn.1400240c0
mov qword [rbp - 0x10], rdi
mov qword [rbp - 8], rbx
mov ecx, 8
mov edx, 0x18
call fcn.140024d80
ud2
Function at 0x14047e03f
Capabilities:
Encode data using xor

Disassembly:
push qword [rsp + 0x28]
popfq
lea rsp, [rsp + 0x38]
call fcn.1409f600a
add byte [rax], al
add dword [rax], eax
add byte [rax], al
add dword [rax], eax
add byte [rax], al
push rbp
push rsi
movabs rbp, 0x24326f42147e08
pushfq
mov rsi, rbp
movsx bp, sil
lea rsi, [rsi*8 + 0xe0463a9]
movabs rsi, 0x6ab8747171676058
xor sil, bpl
push rsi
mov rbp, qword [rsp + 0x18]
mov qword [rsp + 0x18], 0xffffffffc6efc7de
not rsi
add dword [rsp], esi
jg 0x14047e065
cmp dword [rsp], 0xee6627a
mov rsi, qword [rsp + 0x10]
call fcn.14046a4df
call fcn.1404764ba
sbb rax, 0xffffffffbf82c86a
pop rsi
sub al, 0x81
fidivr dword [r12 + r9 + 0x7e]
cmp si, si
invalid

Function at 0x14082c05c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
call rax
jmp 0x1408f6d70
call rax
mov r11, rax
clc
test r9w, 0x4895
cmp r14b, 0xf0
test rax, rax
jmp 0x1408f6c01
push qword [rsp + 0x50]
popfq
lea rsp, [rsp + 0x58]
call fcn.140955e84
call rax
mov r11, rax
clc
test rax, rax
jmp 0x1408f6be5
sub eax, eax
jmp 0x1408f6b4c
jmp 0x1408f6d70
jne 0x1408f6c07
lea rcx, [rsp + 0x40]
movsxd rax, ecx
cdqe
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x1404e3279
je 0x1408f6b45
cmp r11, rsi
jmp 0x1408f6c0f
jne 0x1408f6cbe
cmp byte [rsp + 0x180], dil
jmp 0x1408f6c22
je 0x1408f6ca5
lea rax, [rsp + 0x40]
add edx, 0x59f94062
sub rbp, rax
cqo
bswap cx
btr ax, r12w
nop
cwd
lea rdx, [rsp + rdi + 0x40]
rcr ch, 0x13
movsxd rcx, edx
cwde
mov ecx, edi
movzx ax, bl
btr eax, eax
movsx rax, si
mov eax, 0x6b970a09
cmc
rol eax, cl
cmp r14b, 0x6e
cmp eax, r8d
add al, dil
clc
test bl, 0x82
stc
xor al, byte [rdx + rbp]
mov byte [rdx], al
jmp 0x1408f6c7d
je 0x1408f6ca0
inc rdi
jmp 0x1408f6c8e
cmp rdi, 0x104
jmp 0x1408f6c9a
jb 0x1408f6c43
lea rbp, [rsp + 0x40]
mov rdx, rbp
cwde
movzx ecx, bp
mov rcx, rsi
movsxd rax, r10d
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x1404667ae
cmp byte [rbx + 1], 0x23
movzx dx, spl
movzx rdx, bx
movsx rdx, r8w
lea rdx, [rbx + 1]
jne 0x1408f6d49
movzx edx, byte [rbx + 2]
cmp rbx, 0x16967725
add rbx, 2
test r8b, spl
test dl, dl
je 0x1408f6d3d
nop
movsx ax, r15b
lea eax, [rdx - 0x30]
jmp 0x1408f6d01
inc rbx
test al, 0x9b
cmp al, 9
jmp 0x1408f6d0d
ja 0x1408f6d3d
movsx eax, dl
movzx edx, byte [rbx]
lea ecx, [rdi + rdi*4]
lea edi, [rax + rcx*2 - 0x30]
test ebx, 0x1b3e0cc7
cmp r12d, 0x1e60656
cmp bl, spl
test dl, dl
jmp 0x1408f6d37
jne 0x1408f6cf9
movsxd rdx, edi
sal cl, cl
dec ch
sub cx, 0x1df1
xor r8d, r8d
movzx rcx, dx
not rcx
mov rcx, r11
jmp 0x1408f6d5b
call fcn.1408f6786
jmp 0x1408f6d70
mov rbx, qword [rsp + 0x178]
sub sil, 0xcb
btr si, 0x47
mov rdi, qword [rsp + 0x150]
test rsp, 0x2adf1284
sal sil, cl
add rsp, 0x158
cmovl ebp, r13d
mov bpl, r15b
pop rsi
pop rbp
jmp 0x1408f6da8
ret
Function at 0x180001270
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
mov eax, 0x1060
call fcn.180004bf0
sub rsp, rax
mov rax, qword [0x180008040]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x38], rcx
xor edi, edi
mov dword [rsp + 0x30], edi
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], 0xf
mov byte [rcx], dil
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 1]
lea rcx, str.UserAgent
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r14, rax
test rax, rax
je 0x1800013d6
cmp qword [rbx + 0x18], 0xf
jbe 0x1800012fb
mov rbx, qword [rbx]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x400100
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rbp, rax
test rax, rax
je 0x1800013cd
lea r9, [rsp + 0x40]
mov r8d, 0x1000
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1800013c4
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1800013c4
mov ebx, eax
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x18]
mov rax, rdx
sub rax, rcx
cmp rbx, rax
ja 0x180001392
lea rax, [rcx + rbx]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp rdx, 0xf
jbe 0x180001378
mov rax, qword [rsi]
lea rdi, [rax + rcx]
mov r8, rbx
lea rdx, [rsp + 0x50]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rbx], 0
jmp 0x1800013a7
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x50]
mov rdx, rbx
mov rcx, rsi
call fcn.180002cd0
lea r9, [rsp + 0x40]
mov r8d, 0x1000
lea rdx, [rsp + 0x50]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x180001347
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rax, rsi
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.180003b90
lea r11, [rsp + 0x1060]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x180002170
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x1800021b4
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
lea r8, [0x180001d90]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x10000bae0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x100011df8], rdi
je 0x10000bb40
cmp rax, rdi
jne 0x10000bb33
mov r12d, 1
jmp 0x10000bb40
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10000bb19
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bb55
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x10000bbbc
mov eax, dword [0x100011df0]
cmp eax, ebx
jne 0x10000bbb2
mov dword [0x100011df0], 1
lea r13, [0x100001448]
lea rdi, [0x100001430]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x10000bba4
cmp eax, ebx
jne 0x10000bba4
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x10000bb99
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x10000bb82
cmp eax, ebx
je 0x10000bbbc
mov eax, 0xff
jmp 0x10000bd04
mov dword [0x1000115d4], 1
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bbe4
lea rdx, [0x100001428]
lea rcx, [0x1000013f0]
call sub.msvcrt.dll__initterm
mov dword [0x100011df0], 2
cmp r12d, ebx
jne 0x10000bbf3
mov rax, rbx
xchg qword [0x100011df8], rax
cmp qword [0x100011e10], rbx
je 0x10000bc1b
lea rcx, [0x100011e10]
call fcn.10000c0cc
cmp eax, ebx
je 0x10000bc1b
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100011e10]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x10000bc31
mov eax, 0xff
jmp 0x10000bd04
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc4c
cmp edx, ebx
jne 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc62
cmp word [rcx], 0x20
ja 0x10000bc62
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc4c
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.100002d14
mov dword [0x1000115d0], eax
cmp dword [0x1000115b4], ebx
jne 0x10000bca0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1000115d4], ebx
jne 0x10000bcb4
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1000115d0]
jmp 0x10000bd04
cmp word [rcx], 0x22
jne 0x10000bcc9
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc3d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.100184000
add rsp, 0x28
jmp 0x10000bae0
Function at 0x1400011c0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rdi, rcx
movzx edx, dx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rbx
xor ecx, ecx
mov r14, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
cmp qword [rdi + 0x18], 0xf
lea rsi, [rdi + 0x18]
mov r15d, eax
mov rcx, rdi
jbe 0x140001220
mov rcx, qword [rdi]
xor r12d, r12d
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov edx, 0x40000000
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 2
lea r8d, [r12 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
lea r9, [rsp + 0x78]
mov dword [rsp + 0x78], r12d
mov rcx, rax
mov qword [rsp + 0x20], r12
mov r8d, r15d
mov rdx, r14
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rdx, qword [rsi]
cmp rdx, 0xf
jbe 0x1400012b7
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x1400012b2
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400012df
mov rcx, r8
lea rsi, [rdi + 0x18]
call fcn.140002edc
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x80]
mov qword [rdi + 0x10], r12
mov qword [rsi], 0xf
mov byte [rdi], r12b
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call fcn.140009758
int3
Function at 0x140003664
Capabilities:
Parse pe header

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

Function at 0x14000a668
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000a464
Function at 0x14000d650
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 0x14000d680
xor eax, eax
jmp 0x14000d743
mov rbp, rbx
cmp word [rax], si
je 0x14000d6a5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000d68c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000d688
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.14000d570
movsxd r14, eax
test eax, eax
jne 0x14000d6e3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000d679
mov rcx, r14
call fcn.14000bb94
mov rdi, rax
test rax, rax
jne 0x14000d6fc
xor ecx, ecx
call fcn.14000bc6c
jmp 0x14000d6d8
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.14000d570
test eax, eax
jne 0x14000d72d
mov rcx, rdi
call fcn.14000bc6c
jmp 0x14000d737
xor ecx, ecx
call fcn.14000bc6c
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 0x140010f38
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.14000b928
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140010fc2
cmp byte [rbp - 0x21], r15b
je 0x140010fbd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140010ff8
call fcn.14000ec24
test eax, eax
jne 0x140010fe4
cmp byte [rbp - 0x21], r15b
je 0x140010fdc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140010ff8
cmp byte [rbp - 0x21], r15b
je 0x140010ff5
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.14000bcbc
test eax, eax
jne 0x140011098
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000b928
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140011037
cmp byte [rbp - 0x21], r15b
je 0x14001106c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001106c
call fcn.14000ec24
test eax, eax
jne 0x140011058
cmp byte [rbp - 0x21], r15b
je 0x140011051
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001106c
cmp byte [rbp - 0x21], r15b
je 0x140011069
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.14000bcbc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140011098
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001109b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400110a9
mov rcx, rdi
call fcn.14000bc6c
cmp byte [rbp + 0x3f], r15b
je 0x1400110b8
mov rcx, qword [rbp + 0x27]
call fcn.14000bc6c
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 0x1400139f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140013a18
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140013a18
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x416960
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x416aeb
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00434e20
xorps xmm15, xmm15
mov r14, qword [0x0067f540]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x4169c5
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x4169d4
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x4169f3
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x416a03
cmp rbx, 0x1000
jae 0x4169cb
jmp 0x416a6d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x416a15
xor edx, edx
jmp 0x416a64
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00434e20
xorps xmm15, xmm15
mov r14, qword [0x0067f540]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x4169f9
jmp 0x4169e8
call fcn.00468200
xorps xmm15, xmm15
mov r14, qword [0x0067f540]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00438f20
lea rax, [0x0050e049]
mov ebx, 0x18
nop dword [rax]
call fcn.004397a0
mov rax, qword [rsp + 0x38]
call fcn.004394e0
lea rax, [0x0050e4b7]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.004397a0
mov rax, qword [rsp + 0x30]
call fcn.004394e0
call fcn.00439160
call fcn.00438f80
lea rax, [0x00510922]
mov ebx, 0x21
call fcn.00437480
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00464ae0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00416960