joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001acc0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140032738], rbx
je 0x14001ad27
cmp rax, rbx
jne 0x14001ad1a
mov ebx, 1
mov esi, ebx
jmp 0x14001ad2c
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14001acff
mov ebx, 1
mov eax, dword [0x140032740]
cmp eax, ebx
jne 0x14001ad44
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14001adb0
mov eax, dword [0x140032740]
test eax, eax
jne 0x14001ada5
mov dword [0x140032740], ebx
lea r15, [0x1400206d8]
lea rdi, [0x1400206c0]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14001ad97
test eax, eax
jne 0x14001ad9b
cmp qword [rdi], r14
je 0x14001ad8c
mov rax, qword [rdi]
mov rcx, qword [0x140020620]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14001ad6e
test eax, eax
je 0x14001adab
mov eax, 0xff
jmp 0x14001af06
mov dword [0x140031ff0], ebx
mov edi, 0x1f
mov eax, dword [0x140032740]
cmp eax, ebx
jne 0x14001add7
lea rdx, [0x1400206b8]
lea rcx, [0x140020628]
call sub.msvcrt.dll__initterm
mov dword [0x140032740], 2
test esi, esi
jne 0x14001ade5
mov rax, r14
xchg qword [0x140032738], rax
cmp qword [0x140032758], r14
je 0x14001ae18
lea rcx, [0x140032758]
call fcn.14001b3b0
test eax, eax
je 0x14001ae18
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140032758]
mov r9, qword [0x140020620]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14001ae31
mov eax, 0xff
jmp 0x14001af06
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14001aeb7
test ax, ax
je 0x14001ae4c
test edx, edx
jne 0x14001aeb7
sub ax, bx
cmp ax, di
ja 0x14001ae62
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14001ae4c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140004034
mov dword [0x140031fec], eax
cmp dword [0x140032010], r14d
jne 0x14001aea0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140031ff0], r14d
jne 0x14001aeb5
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140031fec]
jmp 0x14001af06
cmp ax, 0x22
jne 0x14001aecb
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14001ae3a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.1401a5000
add rsp, 0x28
jmp 0x14001acc0
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.1401aaad0
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, [0x140230700]
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.140006eb8
nop
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
lea r8, [0x14023ca34]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x40]
call fcn.1400084dc
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call fcn.140006e14
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.140006e30
nop
cmp qword [rsp + 0x30], 0xffffffffffffffff
jne 0x140004b85
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x68]
call fcn.140006e30
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.140006e30
mov eax, dword [rsp + 0x28]
jmp 0x140004bef
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x68]
call fcn.140006e30
mov eax, dword [rsp + 0x2c]
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.1401aaad0
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.140010904
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.140006eb8
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
lea r8, [0x14023ca3c]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x68]
call fcn.140008488
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140006e14
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.140006e30
nop
lea rcx, [rsp + 0x88]
call fcn.140006e30
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.1401aaad0
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.1401aaad0
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.1401b8258
nop
cmp dword [rsp + 0x60], 0
je 0x1400050e5
call fcn.140004f40
test eax, eax
jne 0x1400050e5
mov ecx, 1
call fcn.1401b8258
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 0x140005dac
Capabilities:
Enumerate pe sections

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
cmp dword [rsp + 0x28], 0
jne 0x140005dcc
mov rax, 0xffffffffffffffff
jmp 0x140005e74
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 0x140005dfc
mov eax, dword [rsp]
dec eax
mov dword [rsp], eax
cmp dword [rsp], 0
jl 0x140005e6d
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 0x140005e6b
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 0x140005e6b
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 0x140005e74
jmp 0x140005df4
mov rax, 0xffffffffffffffff
add rsp, 0x18
ret
Function at 0x140005e7c
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 0x140005ea0
cmp qword [rsp + 0x88], 0
jne 0x140005ea7
xor eax, eax
jmp 0x140006092
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 0x140005f03
xor eax, eax
jmp 0x140006092
mov edx, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call fcn.140005dac
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x140005f23
xor eax, eax
jmp 0x140006092
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 0x140005f54
xor eax, eax
jmp 0x140006092
mov rax, qword [rsp + 0x38]
mov edx, dword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
call fcn.140005dac
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x140005f78
xor eax, eax
jmp 0x140006092
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.140005dac
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x140005fb3
xor eax, eax
jmp 0x140006092
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.140005dac
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x140005fee
xor eax, eax
jmp 0x140006092
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.140005dac
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.1401b7ae0
test eax, eax
jne 0x14000607b
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.140005dac
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
jmp 0x140006092
mov eax, dword [rsp + 0x24]
dec eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x140006005
xor eax, eax
add rsp, 0x78
ret
Function at 0x14000d234
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, [0x14023cb70]
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.14000c448
nop
mov rax, qword [rsp + 0xd0]
add rax, 0x180
mov rcx, rax
call fcn.14000dd9c
movzx eax, al
test eax, eax
jne 0x14000d2ef
mov rax, qword [rsp + 0xd0]
add rax, 0x180
lea rdx, str.0.0.0.0
mov rcx, rax
call fcn.14000dd60
movzx eax, al
test eax, eax
je 0x14000d397
mov edx, 0x28
lea rcx, [rsp + 0x38]
call fcn.140004680
lea rcx, [rsp + 0x38]
call fcn.1400382bc
nop
xor r9d, r9d
mov r8d, 0x1002
lea rdx, str.InitSystem.ini
lea rcx, [rsp + 0x38]
call fcn.140038a88
test eax, eax
jne 0x14000d33f
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x38]
call fcn.1400383bc
mov eax, dword [rsp + 0x30]
jmp 0x14000d39c
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.1401b7b60
mov r8d, eax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.140038e00
lea rcx, [rsp + 0x38]
call fcn.1400386ec
nop
mov dword [rsp + 0x34], 0
lea rcx, [rsp + 0x38]
call fcn.1400383bc
mov eax, dword [rsp + 0x34]
jmp 0x14000d39c
mov eax, 1
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1401aaad0
add rsp, 0xb8
pop rdi
pop rsi
ret
Function at 0x14000ea1c
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 0x14000ea5c
mov ecx, 0x2726
jmp 0x14000eba3
xor edx, edx
lea r8d, [rdx + 0x10]
lea rcx, [rbp + 8]
call fcn.1401d7c40
mov rcx, r14
call fcn.1401b7c08
inc eax
cdqe
lea rsi, [rax + rax]
mov eax, 0x80000000
add rax, rsi
mov ecx, 0xffffffff
cmp rax, rcx
ja 0x14000eb9e
movsxd rdi, esi
cmp esi, 0x400
jg 0x14000eace
mov rcx, rdi
call fcn.14000f72c
test al, al
je 0x14000eace
lea rax, [rdi + 0xf]
cmp rax, rdi
ja 0x14000eabb
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1401aafe0
sub rsp, rax
lea rdi, [rsp + 0x40]
jmp 0x14000eaff
mov rax, rdi
not rax
cmp rax, 0x10
jb 0x14000ebda
lea rcx, [rdi + 0x10]
call fcn.1401b8264
test rax, rax
jne 0x14000eaf0
xor edi, edi
jmp 0x14000eaff
and qword [rax], 0
mov rbx, rax
mov qword [rbp], rax
lea rdi, [rax + 0x10]
test rdi, rdi
je 0x14000eb9e
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 0x14000eb9e
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 0x14000eb72
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x14000ea52
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.0x14014d4e5.0]
mov edi, eax
jmp 0x14000ebab
mov ecx, 8
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor edi, edi
jmp 0x14000ebb8
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.1401b3258
test rbx, rbx
jne 0x14000ebad
mov eax, edi
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1401aaad0
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 0x14000ebe8
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 0x1400136fc
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 0x140013764
call fcn.14002e76c
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 0x140013764
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400137aa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
mov edi, 1
test rbx, rbx
je 0x140013789
mov rcx, qword [r15]
mov r9, r14
mov r8, rbx
mov rdx, rsi
mov rax, qword [rcx + 0x40]
mov rcx, r15
call qword [case.0x14014d4e5.0]
mov edi, eax
mov rcx, qword [rsi + 0xc8]
test rcx, rcx
je 0x1400137a8
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x140]
mov rdx, r14
call qword [case.0x14014d4e5.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 0x140014474
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 0x140014514
movzx eax, word [rdx]
mov r9d, ebx
jmp 0x1400144b0
movzx eax, ax
add rax, rdx
mov rdx, rax
inc r9d
movzx eax, word [rax]
test ax, ax
jne 0x1400144a1
test r9d, r9d
je 0x140014514
cmp r9d, 1
jne 0x1400144d4
mov r8, r14
xor edx, edx
xor ecx, ecx
call sub.SHELL32.dll_SHGetSpecialFolderLocation
test eax, eax
js 0x14001452d
xor eax, eax
jmp 0x140014517
lea esi, [r9 - 1]
mov rcx, rdi
test esi, esi
je 0x1400144f0
mov edx, esi
movzx eax, word [rcx]
add bx, ax
add rcx, rax
sub rdx, 1
jne 0x1400144e1
movzx edx, bx
mov rcx, r8
add edx, 2
call fcn.140014398
movzx r8d, bx
mov rdx, rdi
mov rcx, rax
mov qword [r14], rax
call fcn.1401d8000
mov eax, esi
jmp 0x140014517
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.140010674
int3