joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014f40
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov rax, qword [0x14026b8a0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
call fcn.140017840
mov dword [rsp + 0x50], eax
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0x50]
call fcn.14001d4a0
movzx eax, al
test eax, eax
je 0x140014f96
lea rcx, [rsp + 0xe8]
call fcn.14001d450
jmp 0x14001520a
mov rcx, qword [rsp + 0xe0]
call fcn.14001b2d0
test rax, rax
je 0x140015002
mov rcx, qword [rsp + 0xe0]
call fcn.14001b2d0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0xe0]
call fcn.14001b1c0
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
jae 0x140015002
lea rcx, [rsp + 0xe8]
call fcn.140015230
mov byte [rsp + 0x40], al
mov rcx, qword [rsp + 0xe0]
call fcn.14001afc0
movzx ecx, byte [rsp + 0x40]
mov byte [rax], cl
mov eax, dword [rsp + 0xe8]
jmp 0x14001520a
mov rax, qword [rsp + 0xe0]
cmp qword [rax + 0x80], 0
jne 0x14001501e
call fcn.140017840
jmp 0x14001520a
mov rcx, qword [rsp + 0xe0]
call fcn.14001a9b0
mov rax, qword [rsp + 0xe0]
cmp qword [rax + 0x68], 0
jne 0x140015094
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0x80]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0xe8]
call fcn.140015230
mov byte [rsp + 0x41], al
mov rdx, qword [rsp + 0x68]
movzx ecx, byte [rsp + 0x41]
call fcn.140007200
movzx eax, al
test eax, eax
je 0x140015082
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x48], eax
jmp 0x14001508b
call fcn.140017840
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
jmp 0x14001520a
mov qword [rsp + 0x78], 0x20
lea rcx, [rsp + 0xe8]
call fcn.140015230
mov byte [rsp + 0x90], al
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0xb8]
lea rcx, [rsp + 0x91]
mov rdx, qword [rsp + 0xe0]
add rdx, 0x74
lea r8, [rsp + 0x80]
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9, rcx
lea r8, [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
call fcn.140018870
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x140015141
cmp dword [rsp + 0x44], 1
je 0x140015141
cmp dword [rsp + 0x44], 3
je 0x1400151c6
jmp 0x140015205
lea rax, [rsp + 0x98]
mov rcx, qword [rsp + 0x80]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x140015198
mov rax, qword [rsp + 0xe0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x58]
mov edx, 1
lea rcx, [rsp + 0x98]
call fcn.1400eddc0
cmp qword [rsp + 0x58], rax
je 0x140015198
call fcn.140017840
jmp 0x14001520a
mov rax, qword [rsp + 0xe0]
mov byte [rax + 0x71], 1
lea rax, [rsp + 0x90]
cmp qword [rsp + 0x88], rax
je 0x1400151bf
mov eax, dword [rsp + 0xe8]
jmp 0x14001520a
call fcn.140017840
jmp 0x14001520a
mov rax, qword [rsp + 0xe0]
mov rdx, qword [rax + 0x80]
movzx ecx, byte [rsp + 0x90]
call fcn.140007200
movzx eax, al
test eax, eax
je 0x1400151f6
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x4c], eax
jmp 0x1400151ff
call fcn.140017840
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x4c]
jmp 0x14001520a
call fcn.140017840
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400d6d00
add rsp, 0xd8
ret
Function at 0x14003fb10
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x270
jne 0x14003fb32
mov rcx, qword [rsp + 0x40]
call fcn.140040230
jmp 0x14003fb49
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4e0
jb 0x14003fb49
mov rcx, qword [rsp + 0x40]
call fcn.1400402e0
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0xb
mov rcx, qword [rsp + 0x40]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x12
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x140040230
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp + 8], 0x270
jmp 0x140040251
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x4e0
jae 0x1400402d5
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 - 0x9bc]
and eax, 0x80000000
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 - 0x9b8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp]
and eax, 1
test eax, eax
je 0x1400402a0
mov dword [rsp + 4], 0x9908b0df
jmp 0x1400402a8
mov dword [rsp + 4], 0
mov eax, dword [rsp]
shr eax, 1
xor eax, dword [rsp + 4]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x140040244
add rsp, 0x18
ret
Function at 0x1400402e0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov qword [rsp + 0x18], 0
jmp 0x140040301
mov rax, qword [rsp + 0x18]
inc rax
mov qword [rsp + 0x18], rax
cmp qword [rsp + 0x18], 0xe3
jae 0x140040385
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x18]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x18]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp]
and eax, 1
test eax, eax
je 0x140040350
mov dword [rsp + 4], 0x9908b0df
jmp 0x140040358
mov dword [rsp + 4], 0
mov eax, dword [rsp]
shr eax, 1
xor eax, dword [rsp + 4]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x18]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x18]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x1400402f4
jmp 0x140040394
mov rax, qword [rsp + 0x18]
inc rax
mov qword [rsp + 0x18], rax
cmp qword [rsp + 0x18], 0x26f
jae 0x14004041b
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x18]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x18]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 8], eax
mov eax, dword [rsp + 8]
and eax, 1
test eax, eax
je 0x1400403e5
mov dword [rsp + 0xc], 0x9908b0df
jmp 0x1400403ed
mov dword [rsp + 0xc], 0
mov eax, dword [rsp + 8]
shr eax, 1
xor eax, dword [rsp + 0xc]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x18]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x18]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x140040387
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x18]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x10]
and eax, 1
test eax, eax
je 0x140040462
mov dword [rsp + 0x14], 0x9908b0df
jmp 0x14004046a
mov dword [rsp + 0x14], 0
mov eax, dword [rsp + 0x10]
shr eax, 1
xor eax, dword [rsp + 0x14]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rsp + 0x30]
xor eax, dword [rdx + rcx + 4]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x18]
mov dword [rcx + rdx*4 + 4], eax
mov rax, qword [rsp + 0x30]
mov dword [rax], 0
add rsp, 0x28
ret
Function at 0x140040ec0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x14026b8a0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov edx, 8
lea rcx, [rsp + 0x50]
call fcn.1400045f0
mov rcx, qword [rsp + 0x80]
call fcn.1400023d0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x78]
call fcn.1400023d0
mov qword [rsp + 0x38], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.1400484e0
nop
lea rax, [0x140048580]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x70]
add rax, 8
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x50]
call fcn.140004a50
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x48]
xor edx, edx
xor ecx, ecx
call fcn.1400e9d20
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rax
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
je 0x140040f8d
lea rcx, [rsp + 0x50]
call fcn.140029670
jmp 0x140040fa4
mov rax, qword [rsp + 0x70]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.1400d503c
nop
lea rcx, [rsp + 0x50]
call fcn.140047260
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400d6d00
add rsp, 0x68
ret

Function at 0x140050a30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x14026b8a0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
mov rcx, qword [0x140272870]
mov rax, qword [rcx + 8]
cmp byte [rax + 0x19], 0
jne 0x140050a78
nop dword [rax]
cmp dword [rax + 0x20], 4
jge 0x140050a6c
mov rax, qword [rax + 0x10]
jmp 0x140050a72
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x140050a60
cmp byte [rcx + 0x19], 0
jne 0x140050b54
cmp dword [rcx + 0x20], 4
jg 0x140050b54
lea r8, [rcx + 0x28]
mov r10, qword [r8 + 0x10]
mov rdx, r8
cmp qword [r8 + 0x18], 0x10
jb 0x140050aa1
mov rdx, qword [r8]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
test r10, r10
je 0x140050ad3
movabs r11, 0x100000001b3
nop dword [rax]
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r11
inc rcx
cmp rcx, r10
jb 0x140050ac0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140050490
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140050b0e
cmp rcx, qword [rbx + 8]
je 0x140050b0e
cmp qword [rbx + 0x10], 1
jne 0x140050b12
mov al, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400d6d00
add rsp, 0x80
pop rbx
ret
xor al, al
jmp 0x140050af8
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.140050b80
nop
mov r8, rax
lea rdx, str.AcceptEncoding_does_not_accept_any_other_values_if_disabled_is_present._You_set_the_following_encodings:
lea rcx, [rsp + 0x58]
call fcn.140022ee0
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1400509d0
lea rdx, [0x140267db8]
lea rcx, [rsp + 0x20]
call fcn.1400d9cb0
nop
lea rcx, str.invalid_map_K__T__key
call fcn.1400d5280
int3
Function at 0x140055160
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 8], rbx
mov r9d, 0x23456789
mov dword [rdx], 0x12345678
mov dword [rdx + 4], r9d
mov rbx, r8
mov dword [rdx + 8], 0x34567890
mov r10, rcx
movzx eax, byte [rcx]
test al, al
je 0x1400551f3
mov r8d, 0x12345678
mov r11d, 0x34567890
nop word [rax + rax]
mov rcx, r8
lea r10, [r10 + 1]
xor rcx, rax
movzx eax, cl
mov ecx, r8d
shr ecx, 8
xor ecx, dword [rbx + rax*4]
movzx eax, cl
mov r8d, ecx
add eax, r9d
mov dword [rdx], ecx
imul r9d, eax, 0x8088405
mov ecx, r11d
shr ecx, 8
inc r9d
mov dword [rdx + 4], r9d
mov eax, r9d
shr rax, 0x18
xor rax, r11
movzx eax, al
xor ecx, dword [rbx + rax*4]
mov dword [rdx + 8], ecx
mov r11d, ecx
movzx eax, byte [r10]
test al, al
jne 0x1400551a0
mov rbx, qword [rsp + 8]
ret

Function at 0x140055200
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x10108], 0
mov rbx, rcx
je 0x1400552c6
xor r11d, r11d
cmp dword [rcx + 0xd4], r11d
jbe 0x1400552c6
nop word [rax + rax]
movzx eax, byte [r11 + rbx + 0x100]
mov edx, dword [rbx + 0x10128]
mov ecx, edx
mov r8, qword [rbx + 0x10138]
xor rcx, rax
mov r10d, dword [rbx + 0x10130]
movzx eax, cl
and r10d, 0xfffd
mov ecx, dword [rbx + 0x10130]
or r10d, 2
shr edx, 8
xor edx, dword [r8 + rax*4]
mov dword [rbx + 0x10128], edx
movzx eax, dl
add eax, dword [rbx + 0x1012c]
imul eax, eax, 0x8088405
inc eax
mov dword [rbx + 0x1012c], eax
shr rax, 0x18
xor rax, rcx
shr ecx, 8
movzx eax, al
xor ecx, dword [r8 + rax*4]
mov eax, r10d
xor eax, 1
mov dword [rbx + 0x10130], ecx
imul eax, r10d
shr eax, 8
xor byte [r11 + rbx + 0x100], al
inc r11d
cmp r11d, dword [rbx + 0xd4]
jb 0x140055230
mov r9d, dword [rbx + 0xd4]
lea r8, [rbx + 0x100]
mov rdx, qword [rbx + 0x58]
mov rcx, qword [rbx + 0x38]
mov edi, dword [rbx + 0xd4]
call qword [rbx + reloc.WS2_32.dll_recv]
xor edx, edx
mov dword [rbx + 0xd4], 0
cmp eax, edi
mov ecx, 0xffffffff
cmovne edx, ecx
mov ecx, dword [rbx + 0x84]
add qword [rbx + 0x10118], rdi
mov eax, edx
add qword [rbx + 0x10120], rcx
mov dword [rbx + 0x84], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140061a20
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx + 0x1c]
test ecx, ecx
je 0x140061a62
mov r8d, reloc.WS2_32.dll_recv
xor edx, edx
sub r8d, ecx
add rcx, qword [rbx + 0x48]
call fcn.1400d9680
mov rdx, qword [rbx + 0x48]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rbx
mov dword [rbx + 0x1c], 0
add rsp, 0x20
pop rbx
jmp fcn.140060da0
add rsp, 0x20
pop rbx
ret
Function at 0x140076c30
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.1400fe220
cdqe
add rsp, 0x28
ret

Function at 0x140076f40
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, rdx
mov edx, 0x2b
mov rsi, r8
mov rbp, rcx
test r8, r8
je 0x14007700b
xor r14d, r14d
nop dword [rax]
mov edi, 4
lea rdx, [rsp + 0x50]
cmp rsi, rdi
mov r8d, 4
mov rcx, rbp
cmovb rdi, rsi
call fcn.14007aa70
cmp eax, 4
jne 0x140076fbc
cmp byte [0x140274044], r14b
jne 0x140076fc8
lea r9d, [rax - 2]
mov dword [rsp + 0x50], r14d
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov edx, eax
test eax, eax
jne 0x14007700d
mov eax, dword [rsp + 0x50]
jmp 0x140076fe7
imul eax, dword [0x140274040], 0x41c64e6d
mov edx, r14d
add eax, 0x3039
mov dword [0x140274040], eax
rol eax, 0x10
mov dword [rsp + 0x50], eax
test rdi, rdi
je 0x140077002
sub rsi, rdi
nop
mov byte [rbx], al
inc rbx
shr eax, 8
sub rdi, 1
jne 0x140076ff0
mov dword [rsp + 0x50], eax
test rsi, rsi
jne 0x140076f70
mov eax, edx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x140077020
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
sub rdi, 1
je 0x1400770f0
xor ebp, ebp
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
nop
mov r8d, 4
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14007aa70
cmp eax, 4
je 0x140077072
test eax, eax
jne 0x1400770f5
jmp 0x1400770bc
cmp byte [0x140274044], bpl
jne 0x1400770a0
mov r9d, 2
mov dword [rsp + 0x50], ebp
lea rdx, [rsp + 0x50]
xor ecx, ecx
lea r8d, [r9 + 2]
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
je 0x1400770bc
mov eax, 2
jmp 0x1400770f5
imul eax, dword [0x140274040], 0x41c64e6d
add eax, 0x3039
mov dword [0x140274040], eax
rol eax, 0x10
mov dword [rsp + 0x50], eax
mov ecx, dword [rsp + 0x50]
cmp ecx, 0xfffffffc
jae 0x140077050
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x3e
sub ecx, eax
movzx eax, byte [rcx + r14]
mov byte [rsi], al
inc rsi
sub rdi, 1
jne 0x140077050
mov byte [rsi], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14007d020
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14007d102
call fcn.1400935f0
test al, al
jne 0x14007d102
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x14007d052
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.140094930
test rax, rax
je 0x14007d097
sub rax, rbx
mov edx, 0x2e
mov r8, rax
mov rcx, rbx
call fcn.140094930
mov rsi, rax
test rax, rax
je 0x14007d097
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rbx + rdi]
mov edi, 0x1505
cmp rbx, rsi
jae 0x14007d0cb
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.140076a10
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x14007d0b0
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
movabs rax, 0x410410410410411
mul rdi
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub rdi, rcx
mov rax, rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14008beb0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0xab7], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x14008bf79
cmp qword [rcx + 0x268], 0
je 0x14008bf2e
mov qword [rsp + 0x40], rbx
call fcn.140085190
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.1400854f0
mov rcx, qword [rdi + 0x1e0]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x268]
movzx edx, bl
mov rcx, rdi
call fcn.1400854f0
mov rbx, qword [rsp + 0x40]
jmp 0x14008bf79
mov ecx, esi
test edx, edx
je 0x14008bf3e
sub ecx, 1
je 0x14008bf3e
cmp ecx, 1
jne 0x14008bf79
mov r9, qword [rdi + 0x1d8]
lea rax, [0x14021ce10]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call fcn.1400eddc0
mov r9, qword [rdi + 0x1d8]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call fcn.1400eddc0
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14008e810
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x14026b8a0]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x14008e876
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14008e859
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x14008e853
shr ax, 8
cmp al, 2
je 0x14008e876
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1400d6d00
add rsp, 0x1e8
ret
call fcn.1400bea00
test eax, eax
jne 0x14008ea90
mov qword [rsp + 0x200], rsi
lea rcx, str.kernel32
mov qword [rsp + 0x208], rdi
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x14008e8b6
mov qword [0x140274138], rsi
jmp 0x14008ea4d
mov qword [rsp + 0x1f0], rbx
lea rdx, [0x14021d1e8]
mov rcx, rdi
mov qword [rsp + 0x1f8], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rbx, str.iphlpapi.dll
mov rbp, rax
mov rcx, rbx
lea rdx, [0x14021d1f8]
call fcn.1400f73b0
test rax, rax
je 0x14008e91a
mov rcx, rbx
test rbp, rbp
je 0x14008e90c
xor edx, edx
lea r8d, [rdx + 8]
call rbp
mov rsi, rax
jmp 0x14008ea0c
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
jmp 0x14008ea0c
test rbp, rbp
je 0x14008e949
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14008e949
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rsi, rax
jmp 0x14008ea0c
xor edx, edx
mov qword [rsp + 0x1e0], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r14d, eax
test eax, eax
je 0x14008ea04
lea ecx, [rax + 1]
lea rcx, [rcx*2 + 0x18]
call qword [fcn.1400ef230]
mov rdi, rax
test rax, rax
je 0x14008e9fb
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14008e9fb
mov rcx, 0xffffffffffffffff
mov rax, rcx
nop dword [rax]
cmp word [rdi + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x14008e9a0
mov dword [rdi + rax*2], 0x5c
cmp word [rdi + rcx*2 + 2], si
lea rcx, [rcx + 1]
jne 0x14008e9b2
lea rdx, [rcx + rcx]
sub rdx, rbx
add rdx, rdi
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rdx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x14008e9d0
mov rcx, rdi
test rbp, rbp
je 0x14008e9f2
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x14008e9f8
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
mov rcx, rdi
call qword [fcn.1400ee1f0]
mov r14, qword [rsp + 0x1e0]
mov rbp, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x1f0]
mov qword [0x140274138], rsi
test rsi, rsi
je 0x14008ea4d
lea rdx, str.if_nametoindex
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140274130]
test rax, rax
cmovne rcx, rax
mov qword [0x140274130], rcx
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.1400be5b0
test al, al
lea rcx, [0x140276460]
setne byte [0x140276458]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rdi, qword [rsp + 0x208]
xor eax, eax
mov rsi, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1400d6d00
add rsp, 0x1e8
ret
Function at 0x140091980
Capabilities:
Query environment variable

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, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [case.0x14007f180.0]
mov rdi, rax
test rax, rax
je 0x1400919fd
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x140091a28
cmp ebx, esi
je 0x140091a28
cmp ebx, 0x8000
ja 0x140091a28
cmp ebx, esi
jb 0x140091a23
mov edx, ebx
mov rcx, rdi
call qword [case.0x14007f180.0]
mov rdi, rax
test rax, rax
jne 0x1400919c0
mov rcx, rbp
call qword [fcn.1400ee1f0]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x140091a08
mov rcx, rdi
jmp 0x140091a00

Function at 0x1400943b0
Capabilities:
Convert ip address from string

Disassembly:
cmp qword [rsp + 0x28], 0
mov qword [r9], 0
jge 0x1400943c5
mov eax, 0xfffffffe
ret
mov qword [rsp + 0x28], r9
mov r9b, 1
jmp fcn.140093e40

Function at 0x1400950c0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.140088b60
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.1400766f0
mov rcx, rdi
mov rsi, rax
call fcn.1400766f0
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140095170
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.140088b60
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.140088bf0
cmp rax, 0x3e8
ja 0x1400951a1
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x140095120
test rsi, rsi
je 0x14009517d
mov rcx, rsi
call fcn.1400ee1f0
test rbx, rbx
je 0x14009518a
mov rcx, rbx
call fcn.1400ee1f0
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x1400951ae
mov rcx, rsi
call fcn.1400ee1f0
test rbx, rbx
je 0x1400951bb
mov rcx, rbx
call fcn.1400ee1f0
mov eax, 1
jmp 0x14009518c