joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18007d7d0
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xd0
mov rax, qword [0x1800a4040]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, rcx
movdqa xmm0, xmmword [0x180094bc0]
movdqa xmmword [rsp + 0x30], xmm0
movdqa xmm1, xmmword [0x180094ab0]
movdqa xmmword [rsp + 0x40], xmm1
movdqa xmm0, xmmword [0x180094870]
movdqa xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [0x180095060]
movdqa xmmword [rsp + 0x60], xmm1
movdqa xmm0, xmmword [0x180095000]
movdqa xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [0x180095140]
movdqa xmmword [r11 - 0x58], xmm1
mov dword [r11 - 0x48], 0xa4c1d0ef
mov dword [r11 - 0x44], 0xa0a3c4a6
mov dword [r11 - 0x40], 0xcaafaec7
mov dword [r11 - 0x3c], 0x100aaad
xor ecx, ecx
nop word [rax + rax]
lea eax, [rcx + 0x7f]
xor byte [rsp + rcx + 0x30], al
lea eax, [rcx - 0x80]
xor byte [rsp + rcx + 0x31], al
lea eax, [rcx - 0x7f]
xor byte [rsp + rcx + 0x32], al
lea eax, [rcx - 0x7e]
xor byte [rsp + rcx + 0x33], al
lea eax, [rcx - 0x7d]
xor byte [rsp + rcx + 0x34], al
lea eax, [rcx - 0x7c]
xor byte [rsp + rcx + 0x35], al
lea eax, [rcx - 0x7b]
xor byte [rsp + rcx + 0x36], al
lea eax, [rcx - 0x7a]
xor byte [rsp + rcx + 0x37], al
lea eax, [rcx - 0x79]
xor byte [rsp + rcx + 0x38], al
lea eax, [rcx - 0x78]
xor byte [rsp + rcx + 0x39], al
lea eax, [rcx - 0x77]
xor byte [rsp + rcx + 0x3a], al
add rcx, 0xb
cmp rcx, 0x6e
jb 0x18007d870
mov byte [rsp + 0x9f], 0
mov word [rsp + 0xb9], WSAStartup
movdqa xmm0, xmmword [0x180094570]
movdqu xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0xb0], 0x6f632d67
mov dword [rsp + 0xb4], 0x642e6572
mov byte [rsp + 0xb8], WSAStartup
mov byte [rsp + 0xbb], 0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xa0]
call fcn.18000cd90
cmp qword [rbx + 0x10], 0
je 0x18007d96d
lea rcx, section..text
mov qword [rsp + 0xa0], rcx
mov qword [rsp + 0xa8], rax
xor eax, eax
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.180080140
nop
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1800804d0
add rsp, 0xd0
pop rbx
ret

Function at 0x18007db80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1800a4040]
xor rax, rsp
mov qword [rsp + 0x80], rax
movdqa xmm0, xmmword [0x180093d40]
lea rax, section..text
movdqu xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x50]
mov rbx, rcx
movdqa xmm0, xmmword [0x1800943f0]
lea rcx, [rsp + 0x30]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x60], 0x30
mov byte [rsp + 0x62], 0
mov word [rsp + 0x49], 0x6c
mov dword [rsp + 0x40], 0x6f632d73
mov dword [rsp + 0x44], 0x642e6572
mov byte [rsp + 0x48], 0x6c
mov byte [rsp + 0x4b], 0
mov qword [rsp + 0x68], rax
call fcn.18000cd90
mov qword [rsp + 0x70], rax
xor r9d, r9d
xor eax, eax
xor r8d, r8d
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x78], rax
mov rcx, rbx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
call fcn.180080140
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1800804d0
add rsp, 0x90
pop rbx
ret
Function at 0x18008017c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1800801b6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1800801bb
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180080204
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180088c00]
cmp byte [rcx + rax], 0
je 0x180080204
dec r8
sub rdx, 1
jne 0x1800801ea
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140005720
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x58
mov rax, qword [0x14005b040]
xor rax, rsp
mov qword [rsp + 0x40], rax
test r9d, r9d
je 0x140005757
cmp dword [rcx + 0x5a4], 0
je 0x140005757
mov eax, dword [rsp + 0x80]
mov dword [rcx + 0x594], eax
lea rax, [rcx + 0x590]
jmp 0x14000578a
mov eax, 2
mov word [rsp + 0x30], ax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x34], eax
movzx eax, word [rsp + 0x88]
test ax, ax
jne 0x140005780
movzx eax, word [rcx + 0x582]
mov word [rsp + 0x32], ax
lea rax, [rsp + 0x30]
mov rcx, qword [rcx + 0x558]
xor r9d, r9d
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140020e70
add rsp, 0x58
ret
Function at 0x140010400
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x60
mov rax, qword [0x14005b040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [r11 + 0x20], rbp
lea rax, [r11 - 0x28]
mov qword [r11 - 0x10], rsi
lea r9, [0x140052318]
mov qword [r11 - 0x18], r14
mov rbp, rdx
xor r14d, r14d
mov qword [r11 - 0x48], rax
mov rsi, rcx
mov qword [r11 - 0x28], r14
xor edx, edx
mov qword [r11 - 0x30], r14
mov r8d, 1
mov qword [r11 - 0x38], r14
lea rcx, [0x1400522f8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test eax, eax
js 0x1400104cf
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + gethostname]
mov edi, eax
test eax, eax
js 0x1400104cf
mov qword [rsp + 0x80], rbx
mov ebx, r14d
cmp ebx, 3
jge 0x1400104c7
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
mov edx, ebx
mov rax, qword [rcx]
call qword [rax + 0x40]
mov edi, eax
test eax, eax
js 0x1400104c1
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400104c1
mov rdx, rbp
call rsi
mov rcx, qword [rsp + 0x30]
mov edi, eax
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rsp + 0x30], r14
inc ebx
test edi, edi
jns 0x140010483
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
mov r14, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x88]
test rcx, rcx
je 0x1400104f1
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140010501
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov eax, edi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140020e70
add rsp, 0x60
pop rdi
ret

Function at 0x140010bb0
Capabilities:
Create service
Persist via windows service

Disassembly:
push rbx
sub rsp, 0x290
mov rax, qword [0x14005b040]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea r8, [rsp + 0x70]
xor ebx, ebx
lea rdx, [rsp + 0x74]
call fcn.140010ee0
cmp dword [rsp + 0x70], ebx
jne 0x140010cd4
lea r8, [0x14005d8a0]
mov qword [rsp + 0x2a0], rdi
lea rdx, str.__s___service
lea rcx, [rsp + 0x80]
call qword [sym.imp.USER32.dll_wsprintfA]
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
je 0x140010ccc
mov qword [rsp + 0x60], rbx
lea rax, [0x1400501f0]
mov qword [rsp + 0x58], rbx
lea r8, [0x14005bdf0]
mov qword [rsp + 0x50], rax
lea rdx, str.DHCPServer
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rbx
mov r9d, 0xf01ff
mov qword [rsp + 0x38], rax
mov rcx, rdi
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
test rax, rax
jne 0x140010c97
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x140010ca0
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rdi, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140020e70
add rsp, 0x290
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140010cab
mov eax, ebx
jmp 0x140010cb3
Function at 0x140010ce0
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor esi, esi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
je 0x140010d60
mov r8d, 0xf01ff
mov qword [rsp + 0x30], rbx
lea rdx, str.DHCPServer
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
test rax, rax
je 0x140010d45
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140010d3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x140010d80
Capabilities:
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
mov r8d, 1
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
je 0x140010e0f
mov r8d, reloc.WS2_32.dll_recv
mov qword [rsp + 0x30], rsi
lea rdx, str.DHCPServer
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
test rax, rax
je 0x140010dec
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x140010de1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140010df4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x30]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x140010e20
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14005b040]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
xor ecx, ecx
mov r8d, 1
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
je 0x140010eba
mov r8d, 0x20
mov qword [rsp + 0x60], rsi
lea rdx, str.DHCPServer
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
test rax, rax
je 0x140010ea0
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x140010e95
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140010ea8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
jmp 0x140010ec0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140020e70
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140010ee0
Capabilities:
Query service status

Disassembly:
mov r11, rsp
push rbx
push rsi
sub rsp, 0x68
mov rax, qword [0x14005b040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [r11 + 8], rbp
xor eax, eax
mov qword [r11 - 0x20], r14
xorps xmm0, xmm0
mov r14, r8
mov qword [r11 - 0x28], r15
movups xmmword [rsp + 0x20], xmm0
mov rsi, rdx
mov qword [r11 - 0x48], rax
xor ebp, ebp
mov dword [rsp + 0x38], eax
mov r8d, 1
xor edx, edx
xor ecx, ecx
mov ebx, ebp
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r15, rax
test rax, rax
je 0x140010fc8
mov r8d, 4
mov qword [rsp + 0x60], rdi
lea rdx, str.DHCPServer
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
je 0x140010fb0
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140010f8f
mov rcx, rdi
mov ebp, 1
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x60]
jmp 0x140010fd0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x60]
jmp 0x140010fd0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r15
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x60]
jmp 0x140010fd0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r15, qword [rsp + 0x50]
test r14, r14
je 0x140010fdd
mov dword [r14], ebp
mov r14, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x80]
test rsi, rsi
je 0x140010ff5
mov eax, dword [rsp + 0x24]
mov dword [rsi], eax
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140020e70
add rsp, 0x68
pop rsi
pop rbx
ret
Function at 0x140011200
Capabilities:
Resolve dns

Disassembly:
mov r11, rsp
push rbx
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x14005b040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov qword [r11 + 0x10], rbp
lea r9, [r11 - 0x70]
xorps xmm0, xmm0
mov qword [r11 + 0x18], rsi
movups xmmword [rsp + 0x30], xmm0
or dword [rsp + 0x30], 2
lea r8, [r11 - 0x68]
xor r14d, r14d
mov qword [r11 + 0x20], r12
xor edx, edx
mov qword [r11 - 0x20], r13
mov dword [rsp + 0x38], 1
mov ebx, r14d
mov ebp, r14d
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov rsi, qword [rsp + 0x28]
mov r12d, r14d
mov dword [rsp + 0x20], eax
mov r13d, eax
test eax, eax
jne 0x1400112d3
mov qword [rsp + 0x70], r15
mov r13, 0xffffffffffffffff
mov r15d, r14d
test rsi, rsi
je 0x1400112c9
cmp dword [rsi + 4], 2
jne 0x1400112c3
mov rdi, qword [rsi + 0x20]
mov eax, ebp
inc r12d
mov rcx, rbx
add eax, 9
movsxd rdx, eax
cmovo rdx, r13
call fcn.140026cb0
mov rbx, rax
add ebp, 9
mov eax, dword [rdi + 4]
mov dword [r15 + rbx], eax
add r15, 9
mov byte [r15 + rbx - 1], r14b
mov rsi, qword [rsi + 0x28]
jmp 0x140011287
mov r13d, dword [rsp + 0x20]
mov r15, qword [rsp + 0x70]
lea eax, [r12*8 + 0x28]
mov edx, 1
movsxd rcx, eax
call fcn.14002e080
mov rsi, qword [rsp + 0xb0]
test r13d, r13d
mov rbp, qword [rsp + 0xa8]
mov rdi, rax
mov r13, qword [rsp + 0x78]
movsxd rcx, r12d
lea rdx, [rax + 0x20]
mov r12, qword [rsp + 0xb8]
mov qword [rax + 0x18], rdx
mov word [rax + 0x12], 4
mov qword [rdx + rcx*8], r14
mov rcx, qword [rsp + 0x28]
jne 0x140011366
test rcx, rcx
je 0x140011358
cmp dword [rcx + 4], 2
jne 0x140011352
mov rax, qword [rdi + 0x18]
mov qword [r14 + rax], rbx
add rbx, 8
cmp byte [rbx], 0
je 0x14001134b
inc rbx
cmp byte [rbx], 0
jne 0x140011343
inc rbx
add r14, 8
mov rcx, qword [rcx + 0x28]
jmp 0x140011327
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140020e70
add rsp, 0x80
pop r14
pop rdi
pop rbx
ret
Function at 0x140011940
Capabilities:
Read and send data from client to server
Read file on windows
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14005b040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rax, qword [rcx + 0x20]
mov rbx, rcx
test rax, rax
je 0x1400119b6
mov r8d, dword [rcx + 0x28]
test r8d, r8d
jle 0x1400119b6
mov rcx, qword [rcx + 8]
xor r9d, r9d
mov rdx, rax
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
test eax, eax
jle 0x1400119a8
mov eax, dword [rbx + 0x28]
cmp eax, edi
jle 0x14001199e
mov rcx, qword [rbx + 0x20]
sub eax, edi
movsxd r8, eax
lea rdx, [rcx + rdi]
call fcn.140045d50
sub dword [rbx + 0x28], edi
mov eax, edi
jmp 0x140011a4d
mov dword [rbx + 0x40], 1
mov eax, edi
jmp 0x140011a4d
cmp qword [rcx + 0x50], 0xffffffffffffffff
mov qword [rsp + 0x58], rsi
je 0x140011a46
mov rcx, qword [rcx + 0x58]
test rcx, rcx
jle 0x140011a46
mov edi, 0x10000
cmp rcx, rdi
cmovl edi, ecx
cmp dword [rbx + 0x2c], edi
jge 0x1400119f1
movsxd rdx, edi
mov rcx, rax
mov dword [rbx + 0x2c], edi
call fcn.140026cb0
mov qword [rbx + 0x20], rax
mov rcx, qword [rbx + 0x50]
lea r9, [rsp + 0x30]
xor esi, esi
mov r8d, edi
mov rdx, rax
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140011a65
mov ecx, dword [rsp + 0x30]
mov rdx, qword [rbx + 0x58]
sub rdx, rcx
mov dword [rbx + 0x28], ecx
mov qword [rbx + 0x58], rdx
test ecx, ecx
je 0x140011a30
test rdx, rdx
jne 0x140011a46
mov rcx, qword [rbx + 0x50]
mov qword [rbx + 0x58], rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x50], 0xffffffffffffffff
xor eax, eax
mov rsi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140020e70
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rbx + 0x50]
mov qword [rbx + 0x58], rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xffffffff
mov qword [rbx + 0x50], 0xffffffffffffffff
jmp 0x140011a48
Function at 0x140015150
Capabilities:
Get file size

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x40
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x30], rbx
mov qword [rbp + 0x38], rsi
mov qword [rbp + 0x40], rdi
mov qword [rbp + 0x48], r12
mov rax, qword [0x14005b040]
xor rax, rbp
mov qword [rbp], rax
mov eax, dword [rsp]
mov rdi, rcx
mov eax, 0x400
sub rsp, rax
lea r14, [rsp + 0x30]
mov eax, dword [r14]
mov rax, qword [rbp + 0x58]
lea r9, [0x140052bf4]
mov r8d, 0xc8
mov qword [rsp + 0x20], rax
call fcn.140014d20
mov r12, qword [rbp + 0x68]
mov r15, qword [rbp + 0x60]
test r12, r12
jne 0x1400151cf
cmp r15, 0xffffffffffffffff
je 0x1400151cf
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r12d, eax
mov r9, qword [rbp + 0x50]
lea r8, str.Content_Type:__s_r_nContent_Length:__I64u_r_n_r_n
xor ecx, ecx
mov rax, r12
cmp r15, 0xffffffffffffffff
mov edx, 0x400
cmove rax, rcx
test r9, r9
lea rcx, str.text_html
mov qword [rsp + 0x20], rax
cmove r9, rcx
mov rcx, r14
call fcn.140011390
mov r8, r14
xor edx, edx
mov rcx, rdi
call fcn.140015300
mov rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp byte [r14 + rbx], 0
jne 0x140015220
mov r9, qword [rdi + 0x20]
lea rsi, [rdi + 0x28]
test r9, r9
je 0x140015240
mov ecx, dword [rsi]
add ecx, ebx
cmp ecx, dword [rdi + 0x2c]
jle 0x14001525c
mov r8d, dword [rsi]
mov rcx, r9
add r8d, ebx
movsxd rdx, r8d
mov dword [rdi + 0x2c], r8d
call fcn.140026cb0
mov r9, rax
mov qword [rdi + 0x20], rax
movsxd rcx, dword [rsi]
mov rdx, r14
add rcx, r9
movsxd r8, ebx
call fcn.140045d50
add dword [rsi], ebx
test r15, r15
je 0x14001528c
mov rcx, qword [rdi + 0x50]
cmp rcx, 0xffffffffffffffff
je 0x140015284
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x50], r15
mov qword [rdi + 0x58], r12
mov eax, ebx
mov rcx, qword [rbp]
xor rcx, rbp
call fcn.140020e70
mov rbx, qword [rbp + 0x30]
mov rsi, qword [rbp + 0x38]
mov rdi, qword [rbp + 0x40]
mov r12, qword [rbp + 0x48]
lea rsp, [rbp + 0x10]
pop r15
pop r14
pop rbp
ret
Function at 0x140015300
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0x1b8
mov rax, qword [0x14005b040]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rsi, r8
mov rbp, rdx
test rdx, rdx
jne 0x140015332
test r8, r8
je 0x140015503
jmp 0x140015340
cmp byte [rdx], 0
je 0x140015503
test rsi, rsi
je 0x14001534a
cmp byte [r8], 0
je 0x140015503
mov rax, qword [rcx + 0x60]
lea r9, [0x1400501f0]
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rcx
lea r8, str.Logfile
lea rdx, str.HTTP_SETTINGS
mov rcx, qword [rax + 0x6d8]
call fcn.140019080
test eax, eax
je 0x140015503
mov qword [rsp + 0x1a8], r14
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x1a0], r15
xor r9d, r9d
xor r15d, r15d
mov edx, 0x40000000
mov qword [rsp + 0x30], r15
mov r8d, 3
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x1400154f3
mov r9d, 2
mov qword [rsp + 0x1e8], rbx
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rbx, 0xffffffffffffffff
test rbp, rbp
je 0x1400154b3
mov qword [rsp + 0x1b0], rdi
mov rdi, rbx
inc rdi
cmp byte [rdi + rbp], r15b
jne 0x140015411
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rsp + 0x52]
movzx edx, word [rsp + 0x50]
movzx eax, word [rsp + 0x54]
movzx r10d, word [rsp + 0x48]
movzx r9d, word [rsp + 0x4e]
movzx r8d, word [rsp + 0x4a]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x58]
mov dword [rsp + 0x28], edx
lea rdx, str._r_n__02d__02d__d__02d:_02d:_02d_
mov dword [rsp + 0x20], r10d
call qword [sym.imp.USER32.dll_wsprintfA]
lea rax, [rsp + 0x58]
mov r8, rbx
inc r8
cmp byte [rax + r8], r15b
jne 0x140015471
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r15
lea rdx, [rsp + 0x58]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r15
mov r8d, edi
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdi, qword [rsp + 0x1b0]
test rsi, rsi
je 0x1400154e2
nop dword [rax + rax]
inc rbx
cmp byte [rsi + rbx], r15b
jne 0x1400154c0
mov r8, rbx
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x1e8]
mov r14, qword [rsp + 0x1a8]
mov r15, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140020e70
add rsp, 0x1b8
pop rsi
pop rbp
ret
Function at 0x1400168f0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor ebx, ebx
mov ebp, edx
mov r14, rcx
cmp edx, 2
jl 0x140016a4a
movsx eax, byte [rcx + 1]
movsx edx, byte [rcx]
mov r15d, eax
shr r15d, 7
mov r12d, edx
and r15w, 1
shr r12d, 7
and al, 0x7f
shl r15w, 2
and dl, 0xf
movzx esi, al
and r12b, 1
mov byte [rsp + 0x68], dl
movzx r13d, r15w
cmp esi, 0x7e
jae 0x140016962
lea ecx, [rsi + 2]
add ecx, r13d
cmp ebp, ecx
jl 0x140016a4a
cmp esi, 0x7e
jne 0x14001699d
lea eax, [r13 + 4]
cmp ebp, eax
jl 0x140016a4a
movsx eax, byte [r14 + 3]
movsx esi, byte [r14 + 2]
shl si, 8
or si, ax
mov dword [rsp + 0x60], 4
movzx eax, si
add eax, 4
add eax, r13d
cmp ebp, eax
setge r8b
jmp 0x140016a45
cmp esi, 0x7f
jne 0x140016a61
lea eax, [r13 + 0xa]
cmp ebp, eax
jl 0x140016a4a
movsx ecx, byte [r14 + 6]
movsx edx, byte [r14 + 7]
or cx, 0x7f00
movsx r8d, byte [r14 + 8]
movsx esi, byte [r14 + 9]
movzx eax, cx
add eax, 0xa
shl cx, 8
or dx, cx
add eax, r13d
movzx r10d, dx
shl dx, 8
add r10d, 0xa
or r8w, dx
mov edx, ebx
movzx r9d, r8w
shl r8w, 8
add r9d, 0xa
or si, r8w
add r9d, r13d
lea r8d, [r10 + r13]
movzx r11d, si
add r11d, 0xa
add r11d, r13d
cmp ebp, eax
setge al
cmp ebp, r8d
movzx ecx, al
mov r8d, ebx
cmovge edx, ecx
cmp ebp, r9d
movzx eax, dl
mov ecx, ebx
movzx edx, byte [rsp + 0x68]
cmovge ecx, eax
movzx eax, cl
cmp ebp, r11d
cmovge r8d, eax
mov eax, 0xa
mov word [rsp + 0x60], ax
test r8b, r8b
jne 0x140016a6b
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, 2
mov word [rsp + 0x60], ax
mov eax, 0xff
cmp si, ax
ja 0x140016a4a
cmp dl, 1
jne 0x140016a4a
test r12b, r12b
je 0x140016a4a
movzx edi, si
mov edx, 1
mov eax, edi
add eax, 1
movsxd rcx, eax
mov rax, 0xffffffffffffffff
cmovo rcx, rax
call fcn.14002e080
mov r12, rax
test r15w, r15w
jne 0x140016abe
movzx edx, word [rsp + 0x60]
mov rcx, rax
add rdx, r14
movzx r8d, si
call fcn.140045d50
jmp 0x140016b03
test edi, edi
je 0x140016b03
movzx r10d, word [rsp + 0x60]
mov r9, r12
lea r8d, [r10 + r13]
add r8, r14
nop dword [rax]
nop word [rax + rax]
mov eax, ebx
lea r9, [r9 + 1]
and eax, 3
lea r8, [r8 + 1]
add eax, r10d
inc ebx
movzx edx, byte [rax + r14]
xor dl, byte [r8 - 1]
mov byte [r9 - 1], dl
cmp ebx, edi
jl 0x140016ae0
mov rax, qword [rsp + 0x70]
movzx ecx, si
mov qword [rax], r12
mov eax, ebp
mov byte [rcx + r12], 0
jmp 0x140016a4c