joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000aa94
Capabilities:
Link many functions at runtime
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x1800131f8]
xor ebx, ebx
mov rdi, rcx
test rax, rax
je 0x18000ac8b
mov rcx, rdx
call qword [rax + 4]
mov qword [rdi + 4], rax
test rax, rax
je 0x18000ac89
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18000ac89
movsxd rcx, dword [rax + 0x3c]
cmp dword [rcx + rax], 0x4550
jne 0x18000ac89
mov edx, dword [rcx + rax + 0x28]
add rdx, rax
je 0x18000ac89
mov qword [rdi + 0xc], rdx
lea rdx, [0x180001220]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 4]
lea rdx, [0x180001230]
mov qword [rdi + 0x14], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 4]
lea rdx, [0x180001248]
mov qword [rdi + 0x1c], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 4]
lea rdx, [0x180001260]
mov qword [rdi + 0x24], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 4]
mov edx, 2
mov qword [rdi + 0x2c], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 4]
mov edx, 3
mov qword [rdi + 0x34], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 4]
mov edx, 4
mov qword [rdi + 0x3c], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 4]
mov edx, 5
mov qword [rdi + 0x44], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 4]
mov edx, 6
mov qword [rdi + 0x4c], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 4]
mov edx, 7
mov qword [rdi + 0x54], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 4]
mov edx, 8
mov qword [rdi + 0x5c], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 4]
mov edx, 9
mov qword [rdi + 0x64], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 4]
mov edx, 0xa
mov qword [rdi + 0x6c], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 4]
mov edx, 0xb
mov qword [rdi + 0x74], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 4]
mov edx, 0xc
mov qword [rdi + 0x7c], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 4]
mov edx, 0xd
mov qword [rdi + 0x84], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 4]
mov edx, 0xe
mov qword [rdi + 0x8c], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rdi + 4]
mov edx, 0xf
mov qword [rdi + 0x94], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x9c], rax
cmp qword [rdi + 0xc], rbx
je 0x18000ac84
cmp qword [rdi + 0x14], rbx
je 0x18000ac84
cmp qword [rdi + 0x1c], rbx
je 0x18000ac84
cmp qword [rdi + 0x24], rbx
je 0x18000ac84
cmp qword [rdi + 0x2c], rbx
je 0x18000ac84
mov ebx, 1
jmp 0x18000ac89
call fcn.1800075d0
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400033a0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x58
movaps xmmword [rsp + 0x40], xmm10
movaps xmmword [rsp + 0x30], xmm9
movaps xmmword [rsp + 0x20], xmm8
movaps xmmword [rsp + 0x10], xmm7
movaps xmmword [rsp], xmm6
aesimc xmm0, xmmword [rdx + 0x10]
aesimc xmm1, xmmword [rdx + 0x20]
aesimc xmm2, xmmword [rdx + 0x30]
aesimc xmm3, xmmword [rdx + 0x40]
aesimc xmm4, xmmword [rdx + 0x50]
aesimc xmm5, xmmword [rdx + 0x60]
aesimc xmm6, xmmword [rdx + 0x70]
aesimc xmm7, xmmword [rdx + 0x80]
aesimc xmm8, xmmword [rdx + 0x90]
movaps xmm9, xmmword [rdx]
movaps xmm10, xmmword [rdx + 0xa0]
movaps xmmword [rcx], xmm9
movdqa xmmword [rcx + 0x10], xmm0
movdqa xmmword [rcx + 0x20], xmm1
movdqa xmmword [rcx + 0x30], xmm2
movdqa xmmword [rcx + 0x40], xmm3
movdqa xmmword [rcx + 0x50], xmm4
movdqa xmmword [rcx + 0x60], xmm5
movdqa xmmword [rcx + 0x70], xmm6
movdqa xmmword [rcx + 0x80], xmm7
movdqa xmmword [rcx + 0x90], xmm8
movaps xmmword [rcx + 0xa0], xmm10
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x140008860
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 0x1400088f0
cmp r11, r10
ja 0x140008966
cmp r10, rdx
ja 0x14000897a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x1400088f2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x1400088d0
jmp 0x140008954
ja 0x1400088fa
mov r11, r10
cmp rax, r8
jne 0x140008894
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 0x140008930
mov rdi, r8
sub ecx, edx
jns 0x14000894b
jmp 0x140008956
cmp r8, rsi
je 0x14000898b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140008956
xor al, 1
cmp rdi, rsi
jne 0x140008910
jmp 0x140008956
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.14001ae20
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001abb0
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001ac30
ud2

Function at 0x14000d280
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140006440
cmp rax, rcx
je 0x14000d2a5
cmp rdx, 4
jae 0x14000d2a8
xor eax, eax
xor r8d, r8d
jmp 0x14000d340
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14001c410]
movdqa xmm3, xmmword [0x14001c420]
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 0x14000d2d0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000d357
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000d340
ret
Function at 0x14000e650
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x14000e6ab
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14000e6ab
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x14000e6c6
cmp eax, 0x42
jne 0x14000e6ab
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x14000e776
cmp byte [r9 + r11], 0x5f
jne 0x14000e776
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14000e7de
mov rcx, rsi
xor edx, edx
call fcn.140009a10
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.140009a10
test al, al
jne 0x14000e871
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000e702
lea rdx, [0x14001dfcc]
mov r8d, 1
call fcn.1400068b0
test al, al
jne 0x14000e871
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14000e6ba
xor r14d, r14d
lea rbx, [0x14001e380]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14000e734
cmp byte [rax + rcx], 0x45
je 0x14000e89a
sub r14, 1
jb 0x14000e759
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000e759
mov r8d, 2
mov rdx, rbx
call fcn.1400068b0
test al, al
jne 0x14000e871
mov rcx, rsi
call fcn.14000b270
test al, al
jne 0x14000e871
mov rax, qword [rsi]
test rax, rax
jne 0x14000e720
jmp 0x14000e6ba
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x14000e838
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x14000e7d2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14000e7bc
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14000e7ab
add dl, 0xa9
jmp 0x14000e7ba
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14000e838
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x14000e838
movzx edx, bl
add rax, rdx
jae 0x14000e780
jmp 0x14000e838
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x14000e838
cmp rax, rcx
jae 0x14000e835
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14000e879
cmp qword [rsi + 0x20], 0
je 0x14000e893
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.14000e650
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14000e6bc
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000e888
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x14001e340]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
add r8, 0x10
call fcn.1400068b0
test al, al
je 0x14000e888
mov dil, 2
jmp 0x14000e6ba
mov dil, 1
xor r8d, r8d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x14000e843
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14000e6ba
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14000e6ba
Function at 0x140015380
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rax, rdx
movzx r9d, byte [rdx + 0x38]
movzx r8d, byte [rdx + 0x3a]
xor edx, edx
cmp r9b, 1
ja 0x1400153e7
movzx r11d, byte [rax + 0x10]
test r8b, r8b
jne 0x140015548
cmp r11b, 5
jb 0x140015548
mov r10, qword [rax]
mov rdx, qword [rax + 8]
xor esi, esi
test r9b, r9b
jne 0x1400153d7
cmp r11b, 6
je 0x1400153d7
mov esi, 2
cmp rdx, 2
jb 0x1400155f6
cmp rsi, rdx
jne case.0x140014414.31
xor edx, edx
jmp 0x140015548
xor r10d, r10d
add rdx, r10
lea rdi, [r10 + rsi]
inc rdi
cmp rdi, rdx
sete dl
movzx r10d, byte [r10 + rsi]
test dl, 1
jne 0x14001553d
invalid
cmp r10b, 0x2e
jne 0x14001553d
invalid
movzx edx, byte [rdi]
cmp dl, 0x5c
sete r10b
cmp dl, 0x2f
sete dl
or dl, r10b
jmp 0x140015548
cmp r10b, 0x2e
sete r10b
xchg esp, eax
ret 0x2044
invalid
xor r10d, r10d
test r9b, r9b
jne case.default.0x140015570
xchg esi, eax
invalid
invalid
invalid
cmp r11b, 6
je case.default.0x140015570
invalid
invalid
invalid
movzx r10d, r11b
lea r11, [0x140020548]
add byte [rdi + 0x63], cl
adc al, 0x93
mov r10, qword [rax + 0x20]
mov r10, qword [rax + 0x20]
mov r11, qword [rax + 0x30]
xor byte [rcx - 0x73], cl
jae 0x14001558d
mov r10d, 6
jmp case.default.0x140015570
mov r10, qword [rax + 0x20]
mov r11, qword [rax + 0x30]
xor byte [rcx - 0x73], cl
jae 0x1400155b7
mov r10d, 2
jmp case.default.0x140015570
lea r8, str.library_std_srcpath.rs
mov ecx, 2
call fcn.14001aab0
ud2
clc
add ecx, dword [rdi]
xchg dword [rbx + 3], esp
add byte [rax], al

Function at 0x14001a658
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004e9360]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x004e9370]
mov dword [rax], 1
mov rax, qword [0x004e9380]
mov dword [rax], 1
mov rax, qword [0x004e9350]
mov dword [rax], 1
mov rax, qword [0x004e9250]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x004e9340]
mov dword [0x004fb00c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sub.msvcrt.dll___set_app_type
call fcn.004bd540
mov rdx, qword [0x004e9320]
mov edx, dword [rdx]
mov dword [rax], edx
call fcn.004bd630
mov rax, qword [0x004e9200]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sub.msvcrt.dll___set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [0x004bd8f0]
call fcn.004bdfc0
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067

Function at 0x4048f0
Capabilities:
Initialize winsock library

Disassembly:
push rsi
push rdi
sub rsp, 0x1f8
mov rax, qword [rcx]
mov rdi, qword [rax]
mov qword [rax], 0
test rdi, rdi
je 0x404948
lea rsi, [rsp + 0x60]
mov r8d, 0x198
mov rcx, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov cx, 0x202
mov rdx, rsi
call sub.WS2_32.dll_WSAStartup
mov dword [rsp + 0x2c], eax
test eax, eax
jne 0x404962
lea rax, [0x004bcde0]
mov qword [rdi], rax
add rsp, 0x1f8
pop rdi
pop rsi
ret
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_eb26296b556cef10fb713a38f3d16b9886080f26library_alloc_srccollections_btree_navigate.rs
lea r8, str.library_std_src_synconce.rs
mov edx, 0x2b
call fcn.00499580
ud2
mov qword [rsp + 0x30], 0
lea rdx, [0x004c5430]
lea r9, str.library_std_src_syswindows_net.rs
lea rcx, [rsp + 0x2c]
lea r8, [rsp + 0x30]
call sym.unk_178
ud2
Function at 0x422dd0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x468
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor esi, esi
mov r14d, 0xffffffff
xor edi, edi
xor r15d, r15d
cmp r8, 0x201
jae 0x422e50
jmp 0x422e3f
jae 0x422ef4
cmp r8, 0x201
jae 0x422e50
lea r12, [rsp + 0x68]
mov r13d, 0x200
mov rbp, r8
jmp 0x422e97
sub r8, r15
sub rdi, r15
cmp rdi, r8
jae 0x422e77
lea rcx, [rsp + 0x30]
mov rdx, r15
call fcn.00410520
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rsi, qword [rsp + 0x38]
cmp rsi, r14
mov r15d, 0xffffffff
cmovb r15, rsi
mov qword [rsp + 0x40], r15
mov rdi, rsi
mov r12, qword [rsp + 0x20]
mov r13, r15
mov rbp, r15
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov ecx, ebp
mov rdx, r12
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov ebx, eax
test eax, eax
jne 0x422ebb
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x422f52
mov r8d, ebx
cmp rbp, r8
jne 0x422e30
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x422f72
add rbp, rbp
cmp rbp, r14
cmovae rbp, r14
mov r8, rbp
cmp r8, 0x201
jb 0x422e3f
jmp 0x422e50
cmp r13, r8
jb 0x422f8c
lea rcx, [rsp + 0x48]
mov rdx, r12
call fcn.00431590
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
mov rdi, qword [rsp + 0x28]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
test rsi, rsi
je 0x422f3b
add rsi, rsi
mov r8d, 2
mov rcx, qword [rsp + 0x20]
mov rdx, rsi
call sym.unk_42
mov rax, rdi
add rsp, 0x468
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rdi, qword [rsp + 0x28]
mov qword [rdi], rax
mov byte [rdi + 0x18], 2
test rsi, rsi
jne 0x422f25
jmp 0x422f3b
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.00499580
jmp 0x422fa1
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r13
mov r8, rax
call fcn.004a02a0
ud2
Function at 0x423520
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a8
mov rdi, rcx
lea rcx, [rsp + 0xa8]
call fcn.00451c90
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x423689
mov qword [rsp + 0x40], rdi
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor esi, esi
mov r14d, 0xffffffff
xor r15d, r15d
xor ebx, ebx
cmp r8, 0x201
jae 0x4235e0
jmp 0x4235bf
jae 0x42369f
cmp r8, 0x201
jae 0x4235e0
lea r12, [rsp + 0xa8]
mov r13d, 0x200
mov rbp, r8
jmp 0x423626
sub r8, rbx
sub r15, rbx
cmp r15, r8
jae 0x423607
lea rcx, [rsp + 0x48]
mov rdx, rbx
call fcn.00410520
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rsi, qword [rsp + 0x50]
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rsp + 0x58], rbx
mov r15, rsi
mov r12, qword [rsp + 0x28]
mov r13, rbx
mov rbp, rbx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, qword [rsp + 0x38]
mov rdx, r12
mov r8d, ebp
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov edi, eax
test eax, eax
jne 0x423650
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x42375b
mov r8d, edi
cmp rbp, r8
jne 0x4235b0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x423785
add rbp, rbp
cmp rbp, r14
cmovae rbp, r14
mov r8, rbp
cmp r8, 0x201
jb 0x4235bf
jmp 0x4235e0
lea rcx, [rsp + 0xb0]
call sym.unk_132
mov byte [rdi + 0x18], 2
jmp 0x423727
cmp r13, r8
jb 0x42379f
lea rcx, [rsp + 0x88]
mov rdx, r12
call fcn.00431590
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
mov rdi, qword [rsp + 0x40]
test rsi, rsi
je 0x4236f2
add rsi, rsi
mov r8d, 2
mov rcx, qword [rsp + 0x28]
mov rdx, rsi
call sym.unk_42
cmp byte [rsp + 0x78], 2
jne 0x42373e
mov byte [rdi + 0x18], 2
lea rcx, [rsp + 0x60]
mov rsi, qword [rsp + 0x30]
call sym.unk_132
test rsi, rsi
je 0x423727
add rsi, rsi
mov r8d, 2
mov rcx, qword [rsp + 0x38]
mov rdx, rsi
call sym.unk_42
mov rax, rdi
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movaps xmm0, xmmword [rsp + 0x60]
movaps xmm1, xmmword [rsp + 0x70]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
mov rsi, qword [rsp + 0x30]
test rsi, rsi
jne 0x423711
jmp 0x423727
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x78], 2
mov rdi, qword [rsp + 0x40]
test rsi, rsi
jne 0x4236dc
jmp 0x4236f2
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.00499580
jmp 0x4237b4
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r13
mov r8, rax
call fcn.004a02a0
ud2
Function at 0x439a00
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov ebp, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.0048b280
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x439a5b
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x439ad2
mov r8d, 1
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
jmp sym.unk_42
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call sub.WS2_32.dll_getaddrinfo
test eax, eax
je 0x439adf
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
je 0x439ad2
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call sym.unk_42
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bp
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
jne 0x439ac1
jmp 0x439ad2
Function at 0x43a670
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1098
call fcn.004bc870
sub rsp, rax
movaps xmmword [rsp + 0x1080], xmm6
mov rsi, rdx
mov rdi, rcx
lea r14, [rsp + 0x80]
mov r8d, 0x1000
mov rcx, r14
xor edx, edx
call sub.msvcrt.dll_memset
lea r15, [rsp + 0x40]
xorps xmm6, xmm6
lea rbx, [rsp + 0x30]
lea r12, [0x0044a1b0]
lea r13, [rsp + 0x60]
mov qword [rsp + 0x28], rdi
mov r9d, 0x1000
mov rcx, r15
mov rdx, rdi
mov r8, r14
call fcn.004494b0
cmp qword [rsp + 0x40], 0
jne 0x43a7f6
mov rbp, qword [rsp + 0x48]
test rbp, rbp
je 0x43a7ca
cmp rbp, 0x1000
ja 0x43a816
mov rdi, r14
mov r14, r15
xor r15d, r15d
nop word cs:[rax + rax]
mov r8d, ebp
sub r8d, r15d
lea rdx, [rsp + r15]
add rdx, 0x80
mov dword [rsp + 0x30], 0
movaps xmmword [rsp + 0x60], xmm6
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x20], r12
mov rcx, rsi
mov r9, r13
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x43a7a0
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x30], 0
je 0x43a760
mov eax, dword [rsp + 0x34]
test rax, rax
jne 0x43a7a5
mov eax, dword [rsp + 0x38]
add r15, rax
cmp r15, rbp
je 0x43a790
jbe 0x43a720
jmp 0x43a802
mov r15, r14
mov r14, rdi
mov rdi, qword [rsp + 0x28]
jmp 0x43a6cd
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], 1
lea rcx, [rsp + 0x58]
mov rdi, qword [rsp + 0x28]
call sym.unk_132
mov rcx, rdi
call fcn.004bccb8
mov rcx, rsi
call fcn.004bccb8
movaps xmm6, xmmword [rsp + 0x1080]
add rsp, 0x1098
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x48]
call sym.unk_132
jmp 0x43a7ca
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r15
mov rdx, rbp
call fcn.004a0320
jmp 0x43a82a
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, rbp
call fcn.004a02a0
ud2

Function at 0x441580
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.00451c90
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x441635
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.00448240
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x441635
mov rcx, rdi
xor edx, edx
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
je 0x44160a
test rsi, rsi
je 0x441606
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call sym.unk_42
xor esi, esi
jmp 0x441635
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x441632
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call sym.unk_42
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret