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

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [0x140052020]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, r9
mov ebp, r8d
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
jne 0x140013770
lea r8d, [rdx + 0x25]
lea rdx, str.srcmodescbccbc_decrypt.c
lea rcx, str.pt___NULL
call fcn.140013d70
test rdi, rdi
jne 0x14001378c
lea r8d, [rdi + 0x26]
lea rdx, str.srcmodescbccbc_decrypt.c
lea rcx, str.ct___NULL
call fcn.140013d70
test rbx, rbx
jne 0x1400137a8
lea r8d, [rbx + 0x27]
lea rdx, str.srcmodescbccbc_decrypt.c
lea rcx, str.cbc___NULL
call fcn.140013d70
mov ecx, dword [rbx]
call fcn.140013e10
test eax, eax
jne 0x1400138c1
mov ecx, dword [rbx + 4]
lea eax, [rcx - 1]
cmp eax, 0xf
ja 0x1400137ce
xor edx, edx
mov eax, ebp
div ecx
mov ecx, eax
test edx, edx
je 0x1400137d8
mov eax, reloc.WS2_32.dll_recv
jmp 0x1400138c1
movsxd rax, dword [rbx]
mov qword [rsp + 0x58], r15
lea r15, [0x140053cf0]
lea r8, [rax + rax*2]
shl r8, 6
mov r10, qword [r8 + r15 + 0x68]
test r10, r10
je 0x14001381a
lea rax, [rbx + 0x88]
mov r8d, ecx
mov rcx, rdi
mov qword [rsp + 0x20], rax
lea r9, [rbx + 8]
mov rdx, rsi
call r10
jmp 0x1400138bc
mov qword [rsp + 0x60], r14
test ebp, ebp
je 0x1400138b5
nop word [rax + rax]
movsxd rax, dword [rbx]
lea r8, [rbx + 0x88]
lea rdx, [rsp + 0x30]
mov rcx, rdi
lea r9, [rax + rax*2]
shl r9, 6
call qword [r9 + r15 + gethostbyname]
test eax, eax
jne 0x1400138b7
xor r8d, r8d
cmp dword [rbx + 4], r8d
jle 0x1400138a3
mov r10, rdi
lea r9, [rsp + 0x30]
sub r10, rbx
lea rax, [rbx + 8]
add r10, 0xfffffffffffffff8
sub r9, rdi
mov r11, rsi
sub r11, rbx
nop dword [rax + rax]
lea rcx, [r10 + rax]
inc r8d
movzx edx, byte [r9 + rcx]
xor dl, byte [rax]
lea rax, [rax + 1]
movzx ecx, byte [rcx]
mov byte [rax - 1], cl
mov byte [r11 + rax - 9], dl
cmp r8d, dword [rbx + 4]
jl 0x140013880
movsxd rcx, dword [rbx + 4]
add rdi, rcx
add rsi, rcx
sub ebp, ecx
jne 0x140013830
xor eax, eax
mov r14, qword [rsp + 0x60]
mov r15, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14003a790
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400144f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor edi, edi
mov dword [rsp + 0x58], edx
xor ebx, ebx
xor r14d, r14d
mov r13, r8
mov r15d, edx
mov r12, rcx
mov eax, edx
test edx, edx
je 0x14001459b
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x60], rsi
dec r15d
test r13, r13
je 0x140014531
call r13
mov ebp, 8
dec ebp
call fcn.14002abd4
mov esi, eax
call fcn.14002abd4
cmp esi, eax
jne 0x140014554
xor ebx, 1
call fcn.14002abd4
cmp esi, eax
je 0x140014548
call fcn.14002abd4
mov esi, eax
call fcn.14002abd4
cmp esi, eax
jne 0x140014570
xor edi, 1
call fcn.14002abd4
cmp esi, eax
je 0x140014564
cmp ebx, edi
je 0x140014538
add r14d, r14d
or r14d, ebx
test ebp, ebp
jne 0x140014536
mov byte [r12], r14b
inc r12
xor r14d, r14d
test r15d, r15d
jne 0x140014526
mov eax, dword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x1400145b0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov ebx, edx
mov qword [rsp + 0x58], 0
mov rdi, rcx
mov dword [rsp + 0x20], 0xf0000020
xor edx, edx
lea rcx, [rsp + 0x58]
mov r9d, 1
lea r8, [0x1400416c0]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140014612
lea r9d, [rax + 1]
mov dword [rsp + 0x20], 0xf0000028
lea r8, [0x1400416c0]
xor edx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140014647
mov rcx, qword [rsp + 0x58]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x58]
xor edx, edx
cmp eax, 1
jne 0x140014641
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140016dc0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push r14
push r15
sub rsp, 0x38
mov esi, r9d
mov r15, r8
movsxd r14, edx
mov rbx, rcx
test rcx, rcx
jne 0x140016df3
lea r8d, [rcx + 0x23]
lea rcx, str.hmac___NULL
lea rdx, str.srcmachmachmac_init.c
call fcn.140013d70
test r15, r15
jne 0x140016e0f
lea r8d, [r15 + 0x24]
lea rdx, str.srcmachmachmac_init.c
lea rcx, str.key___NULL
call fcn.140013d70
mov ecx, r14d
call fcn.140013e40
test eax, eax
jne 0x140016f6b
mov qword [rsp + 0x68], rbp
mov rbp, r14
shl rbp, 7
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x30], r13
lea r13, [0x1400554f0]
mov dword [rbx + 0x1a0], r14d
mov r12d, dword [r13 + rbp + 0xc]
test esi, esi
jne 0x140016e54
lea eax, [rsi + 3]
jmp 0x140016f5c
mov ecx, dword [r13 + rbp + 0x10]
mov qword [rsp + 0x70], rdi
call fcn.140028a64
mov rdi, rax
test rax, rax
je 0x140016e89
mov ecx, dword [r13 + rbp + 0x10]
call fcn.140028a64
mov qword [rbx + 0x348], rax
test rax, rax
jne 0x140016e93
mov rcx, rdi
call fcn.140028a50
mov eax, ntohs
jmp 0x140016f57
mov ecx, dword [r13 + rbp + 0x10]
mov rdx, r15
cmp esi, ecx
jbe 0x140016eca
mov dword [rsp + 0x60], ecx
mov r9, rax
lea rcx, [rsp + 0x60]
mov r8d, esi
mov qword [rsp + 0x20], rcx
mov ecx, r14d
call fcn.14000e850
mov esi, eax
test eax, eax
jne 0x140016f41
mov esi, r12d
jmp 0x140016ed5
mov r8, rsi
mov rcx, rax
call fcn.140022ae0
mov eax, dword [r13 + rbp + 0x10]
cmp esi, eax
jae 0x140016ef0
sub eax, esi
mov ecx, esi
add rcx, qword [rbx + 0x348]
mov edx, eax
call fcn.1400175c0
xor r9d, r9d
cmp dword [r13 + rbp + 0x10], r9d
jbe 0x140016f1d
nop word [rax + rax]
mov rax, qword [rbx + 0x348]
movzx ecx, byte [r9 + rax]
xor cl, 0x36
mov byte [r9 + rdi], cl
inc r9d
cmp r9d, dword [r13 + rbp + 0x10]
jb 0x140016f00
mov rcx, rbx
call qword [r13 + rbp + 0x58]
mov esi, eax
test eax, eax
jne 0x140016f41
mov r8d, dword [r13 + rbp + 0x10]
mov rdx, rdi
mov rcx, rbx
call qword [r13 + rbp + 0x60]
mov esi, eax
test eax, eax
je 0x140016f4d
mov rcx, qword [rbx + 0x348]
call fcn.140028a50
mov rcx, rdi
call fcn.140028a50
mov eax, esi
mov rdi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov r13, qword [rsp + 0x30]
add rsp, 0x38
pop r15
pop r14
pop rsi
pop rbx
ret
Function at 0x140017010
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x28
mov r12, r8
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
jne 0x14001703f
lea r8d, [rcx + 0x21]
lea rcx, str.hmac___NULL
lea rdx, str.srcmachmachmac_done.c
call fcn.140013d70
test rbx, rbx
jne 0x14001705b
lea r8d, [rbx + 0x22]
lea rdx, str.srcmachmachmac_done.c
lea rcx, str.out___NULL
call fcn.140013d70
movsxd rsi, dword [rdi + 0x1a0]
mov ecx, esi
call fcn.140013e40
test eax, eax
jne 0x1400171ec
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r13
mov r13, rsi
shl r13, 7
mov qword [rsp + 0x50], rsi
lea rsi, [0x1400554f0]
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x20], r15
mov ecx, dword [rsi + r13 + 0x10]
mov r15d, dword [rsi + r13 + 0xc]
call fcn.140028a64
mov ecx, r15d
mov rbp, rax
call fcn.140028a64
mov r14, rax
test rbp, rbp
je 0x1400171c6
test rax, rax
je 0x1400171c1
mov rdx, rax
mov rcx, rdi
call qword [rsi + r13 + 0x68]
mov esi, eax
test eax, eax
jne 0x1400171a1
xor r8d, r8d
lea r9, [0x1400554f0]
cmp dword [r9 + r13 + 0x10], r8d
jbe 0x14001710d
nop dword [rax]
mov rax, qword [rdi + 0x348]
movzx ecx, byte [rax + r8]
xor cl, 0x5c
mov byte [r8 + rbp], cl
inc r8d
cmp r8d, dword [r9 + r13 + 0x10]
jb 0x1400170f0
mov rcx, rdi
call qword [r9 + r13 + 0x58]
mov esi, eax
test eax, eax
jne 0x1400171a1
mov rax, qword [rsp + 0x50]
lea r9, [0x1400554f0]
shl rax, 7
mov rdx, rbp
mov rcx, rdi
mov r8d, dword [rax + r9 + 0x10]
call qword [rax + r9 + 0x60]
mov esi, eax
test eax, eax
jne 0x1400171a1
mov r8d, r15d
lea rax, [0x1400554f0]
mov rdx, r14
mov rcx, rdi
call qword [rax + r13 + 0x60]
mov esi, eax
test eax, eax
jne 0x1400171a1
mov rdx, rbp
lea rax, [0x1400554f0]
mov rcx, rdi
call qword [rax + r13 + 0x68]
mov esi, eax
test eax, eax
jne 0x1400171a1
xor ecx, ecx
test r15d, r15d
je 0x14001719b
mov rdx, rbp
sub rdx, rbx
cmp ecx, dword [r12]
jae 0x14001719b
movzx eax, byte [rdx + rbx]
inc ecx
mov byte [rbx], al
inc rbx
cmp ecx, r15d
jb 0x140017185
mov dword [r12], ecx
xor esi, esi
mov rcx, qword [rdi + 0x348]
call fcn.140028a50
mov rcx, r14
call fcn.140028a50
mov rcx, rbp
call fcn.140028a50
mov eax, esi
jmp 0x1400171d8
mov rcx, rbp
jmp 0x1400171ce
test r14, r14
je 0x1400171d3
mov rcx, r14
call fcn.140028a50
mov eax, ntohs
mov r14, qword [rsp + 0x68]
mov r13, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140029190
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
test rcx, rcx
jne 0x1400291af
call fcn.14002f6c4
jmp 0x140029264
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x28], 0
xor edx, edx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
call fcn.140028cd8
mov rax, qword [rbp - 0x48]
mov r9d, 0xfde9
cmp dword [rax + 0xc], r9d
jne 0x1400291fa
cmp byte [rbp - 0x38], 0
je 0x14002922f
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14002922f
call fcn.14002d0b0
test eax, eax
jne 0x14002921b
cmp byte [rbp - 0x38], al
je 0x140029213
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14002922f
cmp byte [rbp - 0x38], 0
je 0x14002922c
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
xor r9d, r9d
lea r8, [rbp + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call fcn.140028b5c
test eax, eax
je 0x140029248
or ebx, 0xffffffff
jmp 0x140029253
mov rcx, qword [rbp - 0x20]
call fcn.14002f6c4
mov ebx, eax
cmp byte [rbp - 8], 0
je 0x140029262
mov rcx, qword [rbp - 0x20]
call fcn.14002ce5c
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret

Function at 0x14002a1d8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14003a7c0
sub rsp, rax
mov rax, qword [0x140052020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002f070
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002a227
mov rax, rbp
jmp 0x14002a32f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x573e0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140030840
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x573e0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002a32b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002a32b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140030840
test rax, rax
js 0x14002a32b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002a32b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14002a31d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14002a31d
cmp byte [rcx], 0xd
jne 0x14002a303
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002a312
cmp byte [rcx + 1], 0xa
jne 0x14002a312
inc rcx
jmp 0x14002a312
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x52340]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002a2e5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002a32f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14003a790
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002a76c
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 0x14002a5cb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002a5cb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002a5cb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002a5cb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002a5cb
cmp dword [rcx + 0x84], 0xe
jbe 0x14002a5cb
cmp dword [rcx + 0xf8], 0
je 0x14002a5cb
mov ecx, ebx
call fcn.14002a688
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.14002a458
nop
cmp dword [rbp + 0x20], 0
je 0x14002a619
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002a624
int3
xor r8d, r8d
xor edx, edx
jmp 0x14002a55c

Function at 0x14002f270
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14002f290
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14002cd38
or eax, 0xffffffff
jmp 0x14002f292
xor eax, eax
add rsp, 0x28
ret

Function at 0x14002f69c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14002f6bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14002cd38
or eax, 0xffffffff
jmp 0x14002f6be
xor eax, eax
add rsp, 0x28
ret
Function at 0x14002f6f0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1400573e0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x14002f74e
cmp word [rdx], r12w
jne 0x14002f74e
or byte [rax + r8*8 + 0x38], cl
jmp 0x14002f754
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14002f8af
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x14002f88a
lea r9, [rcx + 2]
cmp ax, r13w
je 0x14002f78d
mov rcx, r9
jmp 0x14002f7b0
cmp r9, rdx
jae 0x14002f7c7
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x14002f771
jmp 0x14002f8af
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002f884
cmp dword [rsp + 0x80], edi
je 0x14002f884
mov rdx, r14
lea r11, [0x1400573e0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x14002f85d
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14002f830
mov word [rbx], r12w
jmp 0x14002f8ab
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x14002f839
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x14002f8ab
cmp word [rsp + 0x70], r12w
jne 0x14002f86a
cmp rbx, rsi
je 0x14002f82a
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140030848
cmp word [rsp + 0x70], r12w
je 0x14002f8af
mov word [rbx], r13w
jmp 0x14002f8ab
lea r11, [0x1400573e0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14002f8a7
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14002f8af
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140030104
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x140030136
call fcn.14002cdc4
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14002cc88
jmp 0x140030255
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140030255
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140030255
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140030165
lock or dword [rcx + 0x14], 0x10
jmp 0x140030255
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140030179
call fcn.140036924
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14002f070
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14002fb9c
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140030243
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14003020e
mov rcx, rsi
call fcn.14002f070
cmp eax, edi
je 0x1400301f9
mov rcx, rsi
call fcn.14002f070
cmp eax, 0xfffffffe
je 0x1400301f9
mov rcx, rsi
call fcn.14002f070
movsxd rbx, eax
lea r14, [0x1400573e0]
mov rcx, rsi
sar rbx, 6
call fcn.14002f070
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140030200
lea rdx, [0x140052180]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14003020e
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140030232
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140030232
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140030232
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x140030258
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140033c54
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 0x140033c84
xor eax, eax
jmp 0x140033d47
mov rbp, rbx
cmp word [rax], si
je 0x140033ca9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140033c90
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140033c8c
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.140031904
movsxd r14, eax
test eax, eax
jne 0x140033ce7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140033c7d
mov rcx, r14
call fcn.14002dad0
mov rdi, rax
test rax, rax
jne 0x140033d00
xor ecx, ecx
call fcn.14002ce5c
jmp 0x140033cdc
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.140031904
test eax, eax
jne 0x140033d31
mov rcx, rdi
call fcn.14002ce5c
jmp 0x140033d3b
xor ecx, ecx
call fcn.14002ce5c
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 0x1400377c8
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.140028cd8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140037852
cmp byte [rbp - 0x21], r15b
je 0x14003784d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140037888
call fcn.14002d0b0
test eax, eax
jne 0x140037874
cmp byte [rbp - 0x21], r15b
je 0x14003786c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140037888
cmp byte [rbp - 0x21], r15b
je 0x140037885
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.140028b5c
test eax, eax
jne 0x140037928
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140028cd8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400378c7
cmp byte [rbp - 0x21], r15b
je 0x1400378fc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400378fc
call fcn.14002d0b0
test eax, eax
jne 0x1400378e8
cmp byte [rbp - 0x21], r15b
je 0x1400378e1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400378fc
cmp byte [rbp - 0x21], r15b
je 0x1400378f9
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.140028b5c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140037928
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14003792b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140037939
mov rcx, rdi
call fcn.14002ce5c
cmp byte [rbp + 0x3f], r15b
je 0x140037948
mov rcx, qword [rbp + 0x27]
call fcn.14002ce5c
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