joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004868
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x230
mov rax, qword [0x140273940]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov dword [rsp + 4], 0
mov dword [rsp + 8], 0
lea rax, [rsp + 0x120]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 0x100
rep stosb byte [rdi], al
mov byte [rsp], 0
mov dword [rsp + 4], 0
jmp 0x1400048e2
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
cmp dword [rsp + 4], 0x100
jge 0x140004923
movsxd rax, dword [rsp + 4]
mov cl, byte [rsp + 4]
mov byte [rsp + rax + 0x20], cl
xor edx, edx
mov eax, dword [rsp + 4]
div dword [rsp + 0x258]
mov eax, edx
mov eax, eax
movsxd rcx, dword [rsp + 4]
mov rdx, qword [rsp + 0x250]
mov al, byte [rdx + rax]
mov byte [rsp + rcx + 0x120], al
jmp 0x1400048d8
mov dword [rsp + 4], 0
jmp 0x140004937
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
cmp dword [rsp + 4], 0x100
jge 0x1400049a2
movsxd rax, dword [rsp + 4]
movzx eax, byte [rsp + rax + 0x20]
mov ecx, dword [rsp + 8]
add ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 4]
movzx ecx, byte [rsp + rcx + 0x120]
add eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 8], eax
movsxd rax, dword [rsp + 4]
mov al, byte [rsp + rax + 0x20]
mov byte [rsp], al
movsxd rax, dword [rsp + 8]
movsxd rcx, dword [rsp + 4]
mov al, byte [rsp + rax + 0x20]
mov byte [rsp + rcx + 0x20], al
movsxd rax, dword [rsp + 8]
mov cl, byte [rsp]
mov byte [rsp + rax + 0x20], cl
jmp 0x14000492d
mov dword [rsp + 0x10], 0
mov dword [rsp + 4], 0
mov dword [rsp + 8], 0
mov byte [rsp], 0
mov dword [rsp + 0xc], 0
mov dword [rsp + 0xc], 0
jmp 0x1400049da
mov eax, dword [rsp + 0xc]
inc eax
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0x248]
cmp dword [rsp + 0xc], eax
jae 0x140004aaf
mov eax, dword [rsp + 4]
inc eax
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 4], eax
movsxd rax, dword [rsp + 4]
movzx eax, byte [rsp + rax + 0x20]
mov ecx, dword [rsp + 8]
add ecx, eax
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 8], eax
movsxd rax, dword [rsp + 4]
mov al, byte [rsp + rax + 0x20]
mov byte [rsp], al
movsxd rax, dword [rsp + 8]
movsxd rcx, dword [rsp + 4]
mov al, byte [rsp + rax + 0x20]
mov byte [rsp + rcx + 0x20], al
movsxd rax, dword [rsp + 8]
mov cl, byte [rsp]
mov byte [rsp + rax + 0x20], cl
movsxd rax, dword [rsp + 4]
movzx eax, byte [rsp + rax + 0x20]
movsxd rcx, dword [rsp + 8]
movzx ecx, byte [rsp + rcx + 0x20]
add eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0xc]
movsxd rcx, dword [rsp + 0x10]
movzx ecx, byte [rsp + rcx + 0x20]
mov rdx, qword [rsp + 0x240]
movzx eax, byte [rdx + rax]
xor eax, ecx
mov ecx, dword [rsp + 0xc]
mov rdx, qword [rsp + 0x240]
mov byte [rdx + rcx], al
jmp 0x1400049d0
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.1401aa980
add rsp, 0x230
pop rdi
ret
Function at 0x140004ac8
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
sub rsp, 0x2f8
mov rax, qword [0x140273940]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140230720]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
je 0x140004b03
xor eax, eax
jmp 0x140004bef
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x68]
call fcn.140006d68
nop
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
lea r8, [0x14023ca54]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x40]
call fcn.14000838c
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call fcn.140006cc4
lea rdx, [rsp + 0x90]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x40]
call fcn.140006ce0
nop
cmp qword [rsp + 0x30], 0xffffffffffffffff
jne 0x140004b85
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x68]
call fcn.140006ce0
mov eax, dword [rsp + 0x24]
jmp 0x140004bef
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140004b8d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
cmp dword [rsp + 0x20], 0xa
jl 0x140004bd9
mov dword [rsp + 0x28], 1
lea rcx, [rsp + 0x68]
call fcn.140006ce0
mov eax, dword [rsp + 0x28]
jmp 0x140004bef
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x68]
call fcn.140006ce0
mov eax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.1401aa980
add rsp, 0x2f8
ret
Function at 0x140004c08
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
sub rsp, 0x318
mov rax, qword [0x140273940]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov ecx, 0x208
call fcn.1400107b4
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140004c69
xor eax, eax
jmp 0x140004d2b
mov dword [rsp + 0x30], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x88]
call fcn.140006d68
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
lea r8, [0x14023ca5c]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x68]
call fcn.140008338
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140006cc4
lea rdx, [rsp + 0xb0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x68]
call fcn.140006ce0
nop
lea rcx, [rsp + 0x88]
call fcn.140006ce0
nop
cmp qword [rsp + 0x38], 0xffffffffffffffff
je 0x140004d1b
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140004cee
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
cmp dword [rsp + 0x30], 0xa
jg 0x140004d26
xor eax, eax
jmp 0x140004d2b
mov eax, 1
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.1401aa980
add rsp, 0x318
ret
Function at 0x140004f40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0x68
mov rax, qword [0x140273940]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov byte [rsp + 0x28], 0x53
mov byte [rsp + 0x29], reloc.WS2_32.dll_WSAGetLastError
mov byte [rsp + 0x2a], 0x66
mov byte [rsp + 0x2b], reloc.WS2_32.dll_WSACleanup
mov byte [rsp + 0x2c], 0x77
mov byte [rsp + 0x2d], WSAAsyncSelect
mov byte [rsp + 0x2e], reloc.OLEAUT32.dll_VarBstrFromDisp
mov byte [rsp + 0x2f], reloc.WS2_32.dll_WSAAsyncSelect
mov byte [rsp + 0x30], 0x5c
mov byte [rsp + 0x31], 0x54
mov byte [rsp + 0x32], reloc.WS2_32.dll_WSAAsyncSelect
mov byte [rsp + 0x33], WSAGetLastError
mov byte [rsp + 0x34], WSAAsyncSelect
mov byte [rsp + 0x35], reloc.WS2_32.dll_WSAAsyncSelect
mov byte [rsp + 0x36], WSAGetLastError
mov byte [rsp + 0x37], reloc.WS2_32.dll_WSACleanup
mov byte [rsp + 0x38], 0x5c
mov byte [rsp + 0x39], WSAAsyncSelect
mov byte [rsp + 0x3a], 0x75
mov byte [rsp + 0x3b], 0x67
mov byte [rsp + 0x3c], 0x52
mov byte [rsp + 0x3d], reloc.WS2_32.dll_WSAAsyncSelect
mov byte [rsp + 0x3e], reloc.WS2_32.dll_WSASetLastError
mov byte [rsp + 0x3f], reloc.WS2_32.dll_WSAGetLastError
mov byte [rsp + 0x40], reloc.OLEAUT32.dll_VarBstrFromDisp
mov byte [rsp + 0x41], reloc.WS2_32.dll_WSACleanup
mov byte [rsp + 0x42], 0x5c
mov byte [rsp + 0x43], 0x57
mov byte [rsp + 0x44], reloc.WS2_32.dll_WSAAsyncSelect
mov byte [rsp + 0x45], WSAAsyncSelect
mov byte [rsp + 0x46], 0x68
mov byte [rsp + 0x47], WSAAsyncSelect
mov byte [rsp + 0x48], reloc.WS2_32.dll_WSACleanup
mov byte [rsp + 0x49], 0x57
mov byte [rsp + 0x4a], 0x69
mov byte [rsp + 0x4b], WSAGetLastError
mov byte [rsp + 0x4c], WSAAsyncSelect
mov byte [rsp + 0x4d], reloc.WS2_32.dll_WSAGetLastError
mov byte [rsp + 0x4e], 0x77
mov byte [rsp + 0x4f], reloc.WS2_32.dll_WSAStartup
mov byte [rsp + 0x50], 0
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x140005044
mov eax, 1
jmp 0x14000504d
xor eax, eax
jmp 0x14000504d
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401aa980
add rsp, 0x68
ret

Function at 0x14000508c
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x48
cmp dword [rsp + 0x50], 0
je 0x1400050ca
call fcn.140004c08
test eax, eax
je 0x1400050bf
call fcn.140004d44
test eax, eax
je 0x1400050bf
call fcn.140004ac8
test eax, eax
jne 0x1400050ca
mov ecx, 1
call fcn.1401b8108
nop
cmp dword [rsp + 0x60], 0
je 0x1400050e5
call fcn.140004f40
test eax, eax
jne 0x1400050e5
mov ecx, 1
call fcn.1401b8108
nop
cmp dword [rsp + 0x58], 0
je 0x140005122
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140005060]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
add rsp, 0x48
ret
Function at 0x140005c5c
Capabilities:
Enumerate pe sections

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
cmp dword [rsp + 0x28], 0
jne 0x140005c7c
mov rax, 0xffffffffffffffff
jmp 0x140005d24
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x20]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 6]
dec eax
mov dword [rsp], eax
jmp 0x140005cac
mov eax, dword [rsp]
dec eax
mov dword [rsp], eax
cmp dword [rsp], 0
jl 0x140005d1d
movsxd rax, dword [rsp]
imul rax, rax, 0x28
mov rcx, qword [rsp + 8]
mov edx, dword [rsp + 0x28]
cmp dword [rcx + rax + 0xc], edx
ja 0x140005d1b
movsxd rax, dword [rsp]
imul rax, rax, 0x28
movsxd rcx, dword [rsp]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 8]
mov eax, dword [rdx + rax + 0xc]
mov rdx, qword [rsp + 8]
add eax, dword [rdx + rcx + 0x10]
cmp dword [rsp + 0x28], eax
ja 0x140005d1b
movsxd rax, dword [rsp]
imul rax, rax, 0x28
mov rcx, qword [rsp + 8]
mov eax, dword [rcx + rax + 0x14]
add eax, dword [rsp + 0x28]
movsxd rcx, dword [rsp]
imul rcx, rcx, 0x28
mov rdx, qword [rsp + 8]
sub eax, dword [rdx + rcx + 0xc]
mov eax, eax
jmp 0x140005d24
jmp 0x140005ca4
mov rax, 0xffffffffffffffff
add rsp, 0x18
ret
Function at 0x140005d2c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
cmp qword [rsp + 0x80], 0
je 0x140005d50
cmp qword [rsp + 0x88], 0
jne 0x140005d57
xor eax, eax
jmp 0x140005f42
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rax, 0x88
mov qword [rsp + 0x48], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jne 0x140005db3
xor eax, eax
jmp 0x140005f42
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call fcn.140005c5c
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x140005dd3
xor eax, eax
jmp 0x140005f42
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x140005e04
xor eax, eax
jmp 0x140005f42
mov rax, qword [rsp + 0x38]
mov edx, dword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
call fcn.140005c5c
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x140005e28
xor eax, eax
jmp 0x140005f42
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x38]
mov edx, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x28]
call fcn.140005c5c
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x140005e63
xor eax, eax
jmp 0x140005f42
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x38]
mov edx, dword [rax + 0x24]
mov rcx, qword [rsp + 0x28]
call fcn.140005c5c
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x140005e9e
xor eax, eax
jmp 0x140005f42
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x24]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0x50]
mov edx, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x28]
call fcn.140005c5c
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x58]
call fcn.1401b7990
test eax, eax
jne 0x140005f2b
mov eax, dword [rsp + 0x24]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0x60]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x68]
mov edx, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x28]
call fcn.140005c5c
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
jmp 0x140005f42
mov eax, dword [rsp + 0x24]
dec eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x140005eb5
xor eax, eax
add rsp, 0x78
ret
Function at 0x14000d0e4
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xb8
mov rax, qword [0x140273940]
xor rax, rsp
mov qword [rsp + 0xa8], rax
lea rax, str.._InitSystem.ini
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x20
lea r9, [rsp + 0x88]
lea r8, [0x14023cb90]
lea rdx, str.ServerIPAddress
lea rcx, str.Base
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov rax, qword [rsp + 0xd0]
add rax, 0x180
lea rdx, [rsp + 0x88]
mov rcx, rax
call fcn.14000c2f8
nop
mov rax, qword [rsp + 0xd0]
add rax, 0x180
mov rcx, rax
call fcn.14000dc4c
movzx eax, al
test eax, eax
jne 0x14000d19f
mov rax, qword [rsp + 0xd0]
add rax, 0x180
lea rdx, str.0.0.0.0
mov rcx, rax
call fcn.14000dc10
movzx eax, al
test eax, eax
je 0x14000d247
mov edx, 0x28
lea rcx, [rsp + 0x38]
call fcn.140004680
lea rcx, [rsp + 0x38]
call fcn.14003816c
nop
xor r9d, r9d
mov r8d, 0x1002
lea rdx, str.InitSystem.ini
lea rcx, [rsp + 0x38]
call fcn.140038938
test eax, eax
jne 0x14000d1ef
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x38]
call fcn.14003826c
mov eax, dword [rsp + 0x30]
jmp 0x14000d24c
lea rax, [rsp + 0x60]
lea rcx, str._Base__r_nServerIPAddress169.254.76.130
mov rdi, rax
mov rsi, rcx
mov ecx, 0x27
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x60]
call fcn.1401b7a10
mov r8d, eax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.140038cb0
lea rcx, [rsp + 0x38]
call fcn.14003859c
nop
mov dword [rsp + 0x34], 0
lea rcx, [rsp + 0x38]
call fcn.14003826c
mov eax, dword [rsp + 0x34]
jmp 0x14000d24c
mov eax, 1
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1401aa980
add rsp, 0xb8
pop rdi
pop rsi
ret
Function at 0x14000e8cc
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 [0x140273940]
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 0x14000e90c
mov ecx, 0x2726
jmp 0x14000ea53
xor edx, edx
lea r8d, [rdx + 0x10]
lea rcx, [rbp + 8]
call fcn.1401d7af0
mov rcx, r14
call fcn.1401b7ab8
inc eax
cdqe
lea rsi, [rax + rax]
mov eax, 0x80000000
add rax, rsi
mov ecx, 0xffffffff
cmp rax, rcx
ja 0x14000ea4e
movsxd rdi, esi
cmp esi, 0x400
jg 0x14000e97e
mov rcx, rdi
call fcn.14000f5dc
test al, al
je 0x14000e97e
lea rax, [rdi + 0xf]
cmp rax, rdi
ja 0x14000e96b
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1401aae90
sub rsp, rax
lea rdi, [rsp + 0x40]
jmp 0x14000e9af
mov rax, rdi
not rax
cmp rax, 0x10
jb 0x14000ea8a
lea rcx, [rdi + 0x10]
call fcn.1401b8114
test rax, rax
jne 0x14000e9a0
xor edi, edi
jmp 0x14000e9af
and qword [rax], 0
mov rbx, rax
mov qword [rbp], rax
lea rdi, [rax + 0x10]
test rdi, rdi
je 0x14000ea4e
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 0x14000ea4e
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 0x14000ea22
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x14000e902
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.OLEAUT32.dll_SafeArrayGetDim
lea rdx, [rbp + 8]
mov rcx, r15
mov rax, qword [rax + 0x68]
call qword [case.0x14014d395.0]
mov edi, eax
jmp 0x14000ea5b
mov ecx, 8
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor edi, edi
jmp 0x14000ea68
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.1401b3108
test rbx, rbx
jne 0x14000ea5d
mov eax, edi
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1401aa980
lea rsp, [rbp + 0x20]
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80070216
call fcn.140002660
int3

Function at 0x14000ea98
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 0x1400135ac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov r14, r9
mov rdi, r8
mov rsi, rdx
mov r15, rcx
test r8, r8
je 0x140013614
call fcn.14002e61c
mov r8d, 0xf0
mov rdx, rdi
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140013614
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001365a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
mov edi, 1
test rbx, rbx
je 0x140013639
mov rcx, qword [r15]
mov r9, r14
mov r8, rbx
mov rdx, rsi
mov rax, qword [rcx + 0x40]
mov rcx, r15
call qword [case.0x14014d395.0]
mov edi, eax
mov rcx, qword [rsi + 0xc8]
test rcx, rcx
je 0x140013658
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x140]
mov rdx, r14
call qword [case.0x14014d395.0]
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x140014324
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 0x1400143c4
movzx eax, word [rdx]
mov r9d, ebx
jmp 0x140014360
movzx eax, ax
add rax, rdx
mov rdx, rax
inc r9d
movzx eax, word [rax]
test ax, ax
jne 0x140014351
test r9d, r9d
je 0x1400143c4
cmp r9d, 1
jne 0x140014384
mov r8, r14
xor edx, edx
xor ecx, ecx
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
js 0x1400143dd
xor eax, eax
jmp 0x1400143c7
lea esi, [r9 - 1]
mov rcx, rdi
test esi, esi
je 0x1400143a0
mov edx, esi
movzx eax, word [rcx]
add bx, ax
add rcx, rax
sub rdx, 1
jne 0x140014391
movzx edx, bx
mov rcx, r8
add edx, 2
call fcn.140014248
movzx r8d, bx
mov rdx, rdi
mov rcx, rax
mov qword [r14], rax
call fcn.1401d7eb0
mov eax, esi
jmp 0x1400143c7
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.140010524
int3
Function at 0x140024fb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rdi, r9
mov rbx, r8
and qword [r9], 0
mov r14, qword [rbp + 0x40]
and dword [r14], 0
cmp qword [rcx + 0xb0], 0
je 0x140025088
xor r8d, r8d
call fcn.140025418
mov rsi, rax
test rax, rax
je 0x140025134
mov qword [rbp - 0x20], rsi
and dword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
and dword [rbp + 0x20], 0
and dword [rbp + 0x40], 0
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x20]
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rbp + 0x40]
mov dword [r14], ecx
test eax, eax
jne 0x14002506c
call fcn.1400107b4
mov qword [rdi], rax
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x20]
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002506c
lea ebx, [rax + 1]
jmp 0x14002507a
mov rcx, qword [rdi]
call fcn.1400107ac
and qword [rdi], 0
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140025132
mov rax, qword [rcx]
and qword [rsp + 0x20], 0
mov r9, rbx
mov r8, rdx
lea rdx, [rbp + 0x40]
mov rax, qword [rax + 0x108]
call qword [case.0x14014d395.0]
nop
mov rax, qword [rbp + 0x40]
mov ecx, dword [rax - 0x10]
test ecx, ecx
jne 0x1400250b8
xor ebx, ebx
jmp 0x140025111
shr ecx, 1
mov dword [r14], ecx
call fcn.1400107b4
mov qword [rdi], rax
xor r8d, r8d
lea ebx, [r8 + 1]
cmp dword [r14], r8d
jbe 0x14002510d
lea ecx, [r8 + r8]
lea edx, [rcx + 1]
test edx, edx
js 0x140025149
mov rax, qword [rbp + 0x40]
cmp edx, dword [rax - 0x10]
jg 0x140025149
test ecx, ecx
js 0x140025149
cmp ecx, dword [rax - 0x10]
jg 0x140025149
movsxd rcx, ecx
mov dl, byte [rax + rcx*2 + 2]
shl dl, 4
sub dl, 0x51
add dl, byte [rax + rcx*2]
mov rax, qword [rdi]
mov byte [r8 + rax], dl
add r8d, ebx
cmp r8d, dword [r14]
jb 0x1400250d1
mov rax, qword [rbp + 0x40]
lea rdx, [rax - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140025132
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x14014d395.0]
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov ecx, 0x80070057
call fcn.140002660
int3
Function at 0x140025154
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx + 0xb0], 0
mov edi, r9d
mov rbx, r8
mov rax, rdx
je 0x1400251cf
xor r8d, r8d
call fcn.140025418
mov rsi, rax
test rax, rax
je 0x1400251cb
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1400251cb
mov eax, dword [rsp + 0x30]
jmp 0x1400251e5
mov eax, edi
jmp 0x1400251e5
mov r9, qword [rcx + 0xd8]
mov r8d, edi
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret