joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6ca748
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004078f4
mov eax, dword [ebp - 8]
call fcn.004078f4
mov eax, dword [ebp + 0xc]
call fcn.004078f4
mov eax, dword [ebp + 8]
call fcn.004078f4
xor eax, eax
push ebp
push 0x6ca840
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0x11
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0x11
lea edx, [ebp - 0x28]
mov ecx, 1
mov eax, 0x6ca85c
call fcn.00417848
mov ebx, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x2c], ebx
mov eax, dword [ebp - 0x2c]
call fcn.0041f424
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x14]
call fcn.00407960
lea eax, [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
call fcn.00407df0
push 0
mov eax, dword [ebp - 0x10]
call fcn.00407998
push eax
mov eax, dword [ebp - 8]
call fcn.00407998
push eax
call sub.KERNEL32.DLL_CopyFileW
test eax, eax
jne 0x6ca818
mov ecx, 0x6ca888
mov dl, 1
mov eax, dword [0x6c99c0]
call fcn.0041d8bc
call fcn.00405fcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6ca847
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.00407904
lea eax, [ebp + 8]
mov edx, 2
call fcn.00407904
ret

Function at 0x6ca8a4
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004078f4
mov eax, dword [ebp - 8]
call fcn.004078f4
xor eax, eax
push ebp
push 0x6ca9d7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.00407998
push eax
call sub.advapi32.dll_OpenSCManagerW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x6ca907
mov ecx, 0x6ca9f4
mov dl, 1
mov eax, dword [0x6c9a78]
call fcn.0041d8bc
call fcn.00405fcc
jmp 0x6ca9bc
xor eax, eax
push ebp
push 0x6ca9b5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
mov eax, dword [ebp - 8]
call fcn.00407998
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x6ca997
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x14], 0
setne byte [ebp - 9]
cmp byte [ebp - 9], 0
je 0x6ca96b
cmp byte [ebp - 9], 0
je 0x6ca962
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
jne 0x6ca966
xor eax, eax
jmp 0x6ca968
mov al, 1
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x6ca977
cmp dword [ebp - 0x2c], 4
je 0x6ca97b
xor eax, eax
jmp 0x6ca97d
mov al, 1
mov byte [ebp - 9], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6ca99e
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6ca9de
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407904
ret
Function at 0x6cae40
Capabilities:
Create service
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004078f4
mov eax, dword [ebp - 8]
call fcn.004078f4
mov eax, dword [ebp + 0xc]
call fcn.004078f4
mov eax, dword [ebp + 8]
call fcn.004078f4
xor eax, eax
push ebp
push 0x6caff8
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.00407998
push eax
call sub.advapi32.dll_OpenSCManagerW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x6caec0
mov ecx, 0x6cb018
mov dl, 1
mov eax, dword [0x6c9a78]
call fcn.0041d8bc
call fcn.00405fcc
jmp 0x6cafc3
xor eax, eax
push ebp
push 0x6cafbc
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
mov eax, dword [ebp - 8]
call fcn.00407998
mov ebx, eax
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_OpenServiceW
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x6caf9e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x14], 0
jne 0x6caf4d
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x20]
mov eax, dword [ebp + 8]
call fcn.00416f04
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x6cb044
call fcn.00407df0
mov eax, dword [ebp - 0x1c]
call fcn.00407998
push eax
push 1
push 3
push 0x10
push 0xf01ff
mov eax, dword [ebp + 0xc]
call fcn.00407998
push eax
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CreateServiceW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x6caf5f
call fcn.004060c0
call fcn.004060c0
jmp 0x6cafc3
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_StartServiceW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x6caf87
call fcn.00420508
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6cafa5
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6cafff
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00407904
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407904
lea eax, [ebp + 8]
mov edx, 2
call fcn.00407904
ret
Function at 0x6cfdb0
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004078f4
mov eax, dword [ebp - 8]
call fcn.004078f4
xor eax, eax
push ebp
push 0x6cfe47
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.006cfc6c
lea eax, [ebp - 0x14]
push eax
push 0
push 3
mov eax, dword [ebp - 8]
call fcn.00407998
push eax
mov eax, dword [ebp - 0xc]
call fcn.00407998
push eax
mov eax, dword [ebp - 0x10]
call fcn.00407998
push eax
call sub.advapi32.dll_LogonUserW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x6cfe2c
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6cfe4e
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00407904
ret
Function at 0x71ec80
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x71ee9c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x71eeb8
mov ecx, 0x71eeb8
mov dl, 1
mov eax, dword [0x580150]
call fcn.005816a8
mov edx, eax
test edx, edx
je 0x71ecd2
sub edx, 0xffffffe8
lea eax, [ebp - 8]
call fcn.0040ab14
mov dword [ebp - 0x130], 0x114
lea eax, [ebp - 0x130]
push eax
call sub.KERNEL32.DLL_GetVersionExW
mov dword [ebp - 0x18], 0x10
push 0x71eee4
lea edx, [ebp - 0x134]
xor eax, eax
call fcn.004049e4
push dword [ebp - 0x134]
push 0x71eef4
lea eax, [ebp - 4]
mov edx, 3
call fcn.00407ed4
cmp word [ebx + 0xaa], 0
je 0x71ed39
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
mov eax, dword [ebx + 0x98]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x71ed4d
lea esi, [ebp - 0x10]
jmp 0x71ed4f
xor esi, esi
cmp dword [ebx + 0x88], 0
jne 0x71ed5c
xor edi, edi
jmp 0x71ed69
mov eax, dword [ebx + 0x88]
call fcn.00407998
mov edi, eax
mov eax, dword [ebx + 0x84]
call fcn.00407998
push eax
push edi
push 0x71ef04
push esi
mov eax, dword [ebx + 0x7c]
call fcn.00407998
push eax
mov eax, dword [ebp - 4]
call fcn.00407998
push eax
push 1
push 2
mov eax, dword [ebp - 0x18]
push eax
push 0xf01ff
lea edx, [ebp - 0x138]
mov eax, ebx
call fcn.00583b3c
mov eax, dword [ebp - 0x138]
call fcn.00407998
push eax
mov eax, dword [ebx + 8]
call fcn.00407998
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CreateServiceW
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x98], eax
cmp dword [ebp - 0x14], 0
jne 0x71eddf
call fcn.00420508
jmp 0x71edee
lea eax, [ebp - 0x1c]
push eax
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_StartServiceW
xor edx, edx
push ebp
push 0x71ee67
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x71ee2c
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xb2], 0
je 0x71ee22
mov edx, ebx
mov eax, dword [ebx + 0xb4]
call dword [ebx + 0xb0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x71ee50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x71ee6e
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x40170d
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov ebx, ecx
lea esi, [ebp + 8]
push 0x10
lea eax, [ebx + 8]
mov edi, eax
push eax
push dword [ebx + 4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x401866
cmp byte [ebx + 1], al
je 0x401862
cmp byte [ebx + 0x41], al
je 0x401770
sub esp, 0x18
lea eax, [ebx + 0x44]
mov ecx, esp
mov edx, str.TLS_Handshake...______
push eax
call fcn.00402ab7
sub esp, 0x14
mov ecx, esp
push 0x4563a4
call fcn.0040219e
call fcn.004113b1
add esp, 0x30
call fcn.0041682e
mov dword [ebx + 0x5c], eax
test eax, eax
jne 0x40178b
sub esp, 0x18
mov ecx, esp
push str.TLS_Error_1
jmp 0x4018c6
mov edx, dword [ebx + 4]
mov ecx, eax
call fcn.00416a52
cmp eax, 1
je 0x4017d1
sub esp, 0x18
mov ecx, esp
push str.TLS_Error_2
call fcn.0040219e
sub esp, 0x18
mov ecx, esp
push 0x4562d4
call fcn.0040219e
call fcn.004113b1
add esp, 0x30
mov ecx, dword [ebx + 0x5c]
call fcn.00416874
and dword [ebx + 0x5c], 0
jmp 0x4018e2
mov ecx, dword [ebx + 0x5c]
call fcn.00417581
cmp eax, 1
je 0x40180e
sub esp, 0x18
mov ecx, esp
push str.TLS_Authentication_Failed
call fcn.0040219e
sub esp, 0x18
mov ecx, esp
push 0x4562d4
call fcn.0040219e
call fcn.004113b1
mov ecx, dword [ebx + 0x5c]
add esp, 0x30
call fcn.00416c7b
jmp 0x4017c0
mov ecx, dword [ebx + 0x5c]
call fcn.004169c9
mov dword [ebx + 0x60], eax
test eax, eax
jne 0x401843
sub esp, 0x18
mov ecx, esp
push str.TLS_Error_3
call fcn.0040219e
sub esp, 0x18
mov ecx, esp
push 0x4562d4
call fcn.0040219e
call fcn.004113b1
add esp, 0x30
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor edi, edi
push edi
push 1
push edi
push edi
call esi
push edi
push 1
push edi
push edi
mov dword [ebx + 0x80], eax
call esi
mov dword [ebx + 0x7c], eax
mov al, 1
jmp 0x4018e4
cmp byte [ebx + 0x41], 0
je 0x4018e2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
sub ecx, 0x2736
je 0x4018e2
sub ecx, 0x17
je 0x4018bc
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.004125eb
sub esp, 0x18
mov edx, str.Connection_Failed:_n
mov ecx, esp
push eax
call fcn.00402a93
sub esp, 0x14
mov ecx, esp
push 0x4562d4
call fcn.0040219e
call fcn.004113b1
add esp, 0x30
lea ecx, [ebp - 0x18]
call fcn.004020b7
jmp 0x4018e2
sub esp, 0x18
mov ecx, esp
push str.Connection_Refused
call fcn.0040219e
sub esp, 0x18
mov ecx, esp
push 0x4562d4
call fcn.0040219e
call fcn.004113b1
add esp, 0x30
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4018ed
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov edi, ecx
lea ecx, [ebp + 0xc]
call fcn.00402046
push 0
push 0xc
lea ecx, [ebp - 0x1c]
lea esi, [eax + 4]
call fcn.00402174
push 0
lea ecx, [ebp - 0x1c]
call fcn.00402053
mov ecx, dword [edi + 0x3c]
push 4
mov dword [eax], ecx
lea ecx, [ebp - 0x1c]
call fcn.00402053
push 8
lea ecx, [ebp - 0x1c]
mov dword [eax], esi
call fcn.00402053
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402094
cmp byte [edi + 1], 0
jne 0x40196b
push 0
lea ecx, [ebp - 0x1c]
call fcn.00402046
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040204e
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
jmp 0x4019a5
push 0xffffffffffffffff
push dword [edi + 0x80]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00402046
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040204e
mov ecx, dword [edi + 0x60]
mov edx, eax
call fcn.00416c03
pop ecx
pop ecx
push dword [edi + 0x80]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [ebp - 0x1c]
call fcn.004020b7
lea ecx, [ebp + 0xc]
call fcn.004020b7
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x1c

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp byte [edi + 1], 0
je 0x4019f8
push 0xffffffffffffffff
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp + 8]
push ecx
push dword [ebp + 0xc]
mov ecx, dword [edi + 0x5c]
call fcn.00416c3f
pop ecx
pop ecx
push dword [edi + 0x7c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, esi
jmp 0x401a09
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_recv]
pop edi
pop esi
pop ecx
pop ebp
ret 0xc

Function at 0x401a10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [ecx + 0x18], eax
xor eax, eax
push eax
push eax
push ecx
push 0x401a2f
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret 4
Function at 0x401af4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
and dword [ebp - 8], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x28]
push edi
mov dword [ebp - 0x10], esi
and dword [esi + 0x64], 0
call fcn.004021ef
mov edi, dword [ebp + 8]
lea eax, [esi + 0x68]
push eax
lea eax, [ebp - 8]
mov ecx, edi
push eax
call fcn.0040204e
push eax
mov ecx, esi
call fcn.00401d37
test al, al
je 0x401c43
movzx eax, byte [esi + 0x40]
mov ecx, edi
mov ebx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
add ebx, eax
call fcn.00402046
cmp ebx, eax
jbe 0x401b67
mov ecx, edi
mov bl, 1
call fcn.00402046
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
add ecx, dword [ebp - 8]
mov edi, dword [ebp + 8]
sub ecx, eax
mov dword [esi + 0x64], ecx
jmp 0x401b69
xor bl, bl
test bl, bl
jne 0x401c43
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 0x40]
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
call fcn.0040202c
push eax
lea ecx, [ebp - 0x28]
call fcn.004020c1
lea ecx, [ebp - 0x40]
call fcn.004020b7
push dword [ebp - 8]
lea eax, [ebp - 0x40]
push 0
push eax
lea ecx, [ebp - 0x28]
call fcn.0040202c
push eax
lea ecx, [ebp - 0x28]
call fcn.004020c1
lea ecx, [ebp - 0x40]
call fcn.004020b7
cmp byte [ebp + 0x10], 0
lea eax, [ebp - 0x28]
jne 0x401bd2
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00402206
push esi
call dword [ebp + 0xc]
add esp, 0x1c
jmp 0x401c0e
push eax
lea ecx, [esi + 0x1c]
call fcn.0040209d
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x34], eax
xor eax, eax
push eax
push eax
push esi
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov ecx, edi
push 0xffffffffffffffff
add eax, ebx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040202c
push eax
mov ecx, edi
call fcn.004020c1
lea ecx, [ebp - 0x40]
call fcn.004020b7
mov ecx, edi
call fcn.00402046
test eax, eax
lea eax, [esi + 0x68]
jne 0x401b18
lea ecx, [ebp - 0x28]
call fcn.004020b7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401d80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x6c], 0
jne 0x401e1f
cmp byte [ebp + 0xc], 0
mov edi, dword [ebp + 8]
jne 0x401da6
mov byte [esi + 0x8c], 1
jmp 0x401df2
cmp byte [0x462c80], 0
je 0x401df2
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.004118dc
sub esp, 0x18
mov edx, str.Connection_KeepAlive___Enabled__Timeout:
mov ecx, esp
push eax
call fcn.00402a93
sub esp, 0x14
mov ecx, esp
push 0x4563a4
call fcn.0040219e
call fcn.004113b1
add esp, 0x30
lea ecx, [ebp - 0x28]
call fcn.004020b7
mov dword [esi + 0x84], edi
xor edi, edi
push edi
push edi
push edi
push edi
mov byte [esi + 0x6c], 1
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
push edi
push esi
push 0x401f85
push edi
push edi
mov dword [esi + 0x70], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
jmp 0x401e21
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x403fe3
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
push edi
mov edi, ecx
mov eax, esi
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmmword [0x45c770]
movups xmmword [edi + eax*4], xmm0
add eax, 4
cmp eax, 0x100
jl 0x403fef
mov ebx, esi
xor edx, edx
mov eax, ebx
div dword [ebp + 0xc]
mov eax, dword [ebp + 8]
movzx eax, byte [edx + eax]
add eax, dword [edi + ebx*4]
add esi, eax
and esi, 0x800000ff
jns 0x404033
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [edi + ebx*4]
mov eax, dword [edi + esi*4]
mov dword [edi + ebx*4], eax
inc ebx
movzx eax, cl
mov dword [edi + esi*4], eax
cmp ebx, 0x100
jl 0x404010
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x404052
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
xor edx, edx
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x400]
mov ecx, 0x100
mov ebx, edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0xc]
mov edi, edx
add esi, 1
je 0x4040ea
inc edx
and edx, 0x800000ff
jns 0x40408c
dec edx
or edx, 0xffffff00
inc edx
mov eax, dword [ebp + edx*4 - 0x400]
add ebx, eax
and ebx, 0x800000ff
jns 0x4040a5
dec ebx
or ebx, 0xffffff00
inc ebx
mov cl, al
mov eax, dword [ebp + ebx*4 - 0x400]
mov dword [ebp + edx*4 - 0x400], eax
movzx eax, cl
mov dword [ebp + ebx*4 - 0x400], eax
mov ecx, dword [ebp + edx*4 - 0x400]
add ecx, eax
and ecx, 0x800000ff
jns 0x4040d8
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [ebp + ecx*4 - 0x400]
mov ecx, dword [ebp + 8]
xor byte [edi + ecx], al
inc edi
cmp edi, esi
jb 0x40407b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x404504
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
lea eax, [ebp - 0x298]
lea ecx, [ebp + 8]
push ebx
push esi
push eax
call fcn.004043ec
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40454a
sub esp, 0x18
lea edx, [ebp + 8]
mov ecx, esp
call fcn.00411a52
push 0x54
mov ecx, 0x463100
call fcn.004018ed
jmp 0x40460b
lea ecx, [ebp - 0x18]
call fcn.004021ef
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00403540
mov edx, 0x456524
mov ecx, eax
call fcn.00405b36
lea ecx, [ebp - 0x30]
mov bl, al
call fcn.00403536
test bl, bl
je 0x4045d7
push 0x250
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x30]
call fcn.004021c5
push eax
lea ecx, [ebp - 0x18]
call fcn.004020c1
lea ecx, [ebp - 0x30]
jmp 0x4045d2
push 0x250
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x48]
call fcn.004021c5
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x30]
call fcn.00405bb8
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.004020c1
lea ecx, [ebp - 0x30]
call fcn.004020b7
lea ecx, [ebp - 0x48]
call fcn.004020b7
lea eax, [ebp - 0x298]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40459d
sub esp, 0x18
lea eax, [ebp - 0x18]
mov ecx, esp
push eax
call fcn.00402206
push 0x50
mov ecx, 0x463100
call fcn.004018ed
lea ecx, [ebp - 0x18]
call fcn.004020b7
lea ecx, [ebp + 8]
call fcn.00403536
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404619
Capabilities:
Delete file
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x186ec
call fcn.00447e20
push ebx
push esi
mov esi, ecx
lea edx, [ebp + 0x10]
push edi
xorps xmm0, xmm0
mov dword [ebp - 0xc], esi
xor ebx, ebx
movlpd qword [ebp - 8], xmm0
push 0x456528
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x14], ebx
call fcn.00405bdc
pop ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00405713
lea ecx, [ebp - 0x44]
call fcn.00403536
push ebx
push 0x80
push 2
push ebx
push ebx
push 4
lea ecx, [ebp - 0x2c]
call fcn.004043ec
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], ecx
ja 0x4046f3
mov edi, dword [ebp + 8]
jb 0x40468d
cmp dword [ebp - 8], edi
jae 0x4046f3
push ecx
push 0x186a0
lea eax, [ebp - 0x186e8]
mov ecx, esi
push eax
call fcn.004019bf
mov esi, eax
cdq
add dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push ebx
adc dword [ebp - 4], edx
push eax
push esi
lea eax, [ebp - 0x186e8]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x18
lea eax, [ebp - 8]
mov ecx, esp
push 8
push eax
call fcn.004021c5
mov ecx, dword [ebp - 0xc]
push 0x57
call fcn.004018ed
test esi, esi
jle 0x40472d
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0xc]
cmp dword [ebp - 4], eax
jb 0x40468d
ja 0x4046f0
cmp dword [ebp - 8], edi
jb 0x40468d
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 0x10]
call fcn.004043ec
push eax
lea ecx, [ebp - 0x2c]
call fcn.004043ec
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov bl, 1
lea ecx, [ebp - 0x2c]
call fcn.00403536
lea ecx, [ebp + 0x10]
call fcn.00403536
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
call fcn.004043ec
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x404714

Function at 0x404747
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push esi
push edi
mov esi, ecx
call fcn.004021ef
lea ecx, [ebp + 8]
call fcn.0040204e
mov edi, eax
jmp 0x4047ce
push 0xa
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push eax
call fcn.00434a4d
add esp, 0xc
lea eax, [ebp - 4]
lea ecx, [ebp - 0x4c]
push 0x2d
push eax
call fcn.0040219e
mov ecx, eax
call fcn.0040204e
push eax
mov edx, esi
lea ecx, [ebp - 0x34]
call fcn.00405c44
pop ecx
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.00405c88
pop ecx
push eax
mov ecx, esi
call fcn.004020c1
lea ecx, [ebp - 0x1c]
call fcn.004020b7
lea ecx, [ebp - 0x34]
call fcn.004020b7
lea ecx, [ebp - 0x4c]
call fcn.004020b7
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc edi
add edi, eax
cmp byte [edi], 0
jne 0x404762
lea ecx, [ebp + 8]
call fcn.004020b7
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret