joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6294a5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x632378
cmp edx, dword [eax]
je 0x6294c7
add eax, 8
inc ecx
cmp eax, 0x632408
jl 0x6294b8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x632378]
jne 0x6295f5
mov eax, dword [0x63bd00]
cmp eax, 1
je 0x6295cf
test eax, eax
jne 0x6294f8
cmp dword [0x6322a4], 1
je 0x6295cf
cmp edx, 0xfc
je 0x6295f5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x62952f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00629e90
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0062a2c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x629572
lea eax, [ebp - 0x1a4]
push eax
call fcn.0062a2c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62ec1c
push edi
call fcn.0062be60
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00629e90
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00629ea0
lea eax, [ebp - 0xa0]
push 0x62ebfc
push eax
call fcn.00629ea0
push dword [esi + 0x63237c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00629ea0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062bdd4
add esp, 0x2c
pop edi
jmp 0x6295f5
lea eax, [ebp + 8]
lea esi, [esi + 0x63237c]
push 0
push eax
push dword [esi]
call fcn.0062a2c0
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 0x43b63a
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x43b3c1
pop ecx
sub eax, eax
add eax, ebx
mov ebx, eax
call fcn.0043b67e
sub ebx, 0x5f6f9cbb
or ebx, ebx
xor dword [edi], ecx
mov ebx, eax
push ebx
pop ebx
inc eax
add edi, 1
add ebx, 0x2784d37b
cmp edi, esi
jne fcn.0043b63a
inc eax
sub ebx, 0xef8889d9
ret
Function at 0x406a06
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406a2a
xor eax, eax
test eax, eax
je 0x406a3d
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406a3d
xor ecx, ecx
jmp 0x406a40
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406b63
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4275ec], 0
push esi
jne 0x406b9a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b74
mov dword [ecx*4 + 0x4275e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b6f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406bcb
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4275e8]
xor eax, esi
inc ecx
dec edx
jne 0x406bad
pop edi
not eax
pop esi
ret 0xc

Function at 0x402bd0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404840], eax
mov ecx, ebp
add ecx, 8
mov dword [0x40410c], ecx
mov dword [0x4047c0], 0x30
mov dword [0x4047c4], 2
mov dword [0x4047cc], 0
mov dword [0x4047d0], 0
mov dword [0x4047c8], 0x402f50
jmp 0x402c23
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4047d4], eax
mov dword [0x4047e0], 0xf
mov dword [0x4047e8], 0x404767
mov dword [0x404104], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4047d8], eax
mov dword [0x4047ec], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4047dc], eax
push 0x4047c0
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x404104]
push 0
push 0
push 0x24e
push 0x320
push 0xd8
push 0xa0
push 0x40000
push str.litform
push str.ndcls
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404838], eax
xor eax, eax
jmp 0x402cc2
push eax
push dword [0x404838]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404838]
call dword [sym.imp.user32.dll_UpdateWindow]
push 0
push 0
push 0
push 0x4047f0
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x402d08
push 0x4047f0
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x4047f0
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x402cdb
mov eax, dword [0x4047f8]
jmp 0x402d15
call 0x4022b2
ret
Function at 0x4068db
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068ff
xor eax, eax
test eax, eax
je 0x406912
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406912
xor ecx, ecx
jmp 0x406915
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a38
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43110c], 0
push esi
jne 0x406a6f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a49
mov dword [ecx*4 + 0x431108], eax
inc ecx
cmp ecx, 0x100
jl 0x406a44
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406aa0
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431108]
xor eax, esi
inc ecx
dec edx
jne 0x406a82
pop edi
not eax
pop esi
ret 0xc

Function at 0x43b655
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop eax
and ebx, edx
inc ebx
call fcn.0043b689
push edx
pop edx
and ebx, edx
xor dword [esi], eax
add edx, 0x54c64dbe
or ebx, ebx
inc esi
dec ebx
sub edx, ebx
add ebx, 0xbcf30263
cmp esi, ecx
jne fcn.0043b655
inc edx
sub edx, ebx
ret
Function at 0x4012a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x101
push 0
push dword [ebp + 0xc]
mov dword [ebp - 8], 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401310
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push str.EulaAccepted
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x401310
cmp dword [ebp - 8], 0
je 0x401310
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x401430
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x42a130]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push str.SoftwareMicrosoftwindows_ntcurrentversion
xor esi, esi
mov dword [ebp - 0x214], 0x208
push 0x80000002
mov dword [ebp - 0x218], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4014d0
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push 0x420514
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4014c4
lea eax, [ebp - 0x20c]
push eax
push str.iotuap
call fcn.00406e6e
add esp, 8
mov ecx, 1
test eax, eax
cmove esi, ecx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004077dc
mov esp, ebp
pop ebp
ret

Function at 0x4014f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x420540
xor esi, esi
mov dword [ebp - 0xc], 0
push 0x80000002
mov dword [ebp - 0x10], 4
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x401562
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x4205c4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401559
cmp dword [ebp - 8], 4
jne 0x401559
mov eax, 1
cmp dword [ebp - 0xc], eax
cmove esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4018d0
Capabilities:
Terminate process

Disassembly:
push dword [0x4290c4]
push 0x4205f4
call fcn.0040751b
push str.This_is_the_first_run_of_this_program._You_must_accept_EULA_to_continue._n
call fcn.0040751b
push str.Use__accepteula_to_accept_EULA._n_n
call fcn.0040751b
add esp, 0x10
push 1
call fcn.004072ca
int3
Function at 0x4022d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x42a130]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x4023d7
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
push esi
call fcn.00407316
add esp, 4
mov edi, eax
lea eax, [ebp - 0x20c]
push edi
push esi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
push 0x42073c
push edi
call fcn.004023f0
push 0x420758
push edi
mov esi, eax
call fcn.004023f0
push 0x420770
push edi
mov ebx, eax
call fcn.004023f0
push 0x420790
push edi
mov dword [ebp - 0x210], eax
call fcn.004023f0
push 0x4207b0
push edi
mov dword [ebp - 0x214], eax
call fcn.004023f0
add esp, 0x28
mov edi, eax
call fcn.00401570
push edi
push dword [ebp - 0x214]
push dword [ebp - 0x210]
push ebx
push esi
push str._n_s_v_s____s_n_s_n_s_n_n
test eax, eax
je 0x4023b5
call fcn.00407f6a
add eax, 0x20
push eax
call fcn.00408343
call fcn.00407f6a
add eax, 0x20
jmp 0x4023cb
call fcn.00407f6a
add eax, 0x40
push eax
call fcn.00408343
call fcn.00407f6a
add eax, 0x40
push eax
call fcn.004080f9
add esp, 0x20
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004077dc
mov esp, ebp
pop ebp
ret
Function at 0x402b60
Capabilities:
List domain servers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x42a130]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
push 0x420dd4
mov dword [ebp - 0x21c], eax
mov edi, 1
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x218], 0
call fcn.00407f6a
add eax, 0x40
push eax
call fcn.004082af
add esp, 8
lea eax, [ebp - 0x218]
push eax
push 0
push 3
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x214]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push eax
push 0x65
push 0
call sub.NETAPI32.dll_NetServerEnum
test eax, eax
je 0x402c16
cmp eax, 0xea
je 0x402c16
push eax
push str.A_system_error_has_occurred:__d_n
call fcn.00407f6a
add eax, 0x40
push eax
call fcn.00408b5b
mov esi, dword [ebp - 0x210]
add esp, 0xc
jmp 0x402c93
mov esi, dword [ebp - 0x210]
test esi, esi
je 0x402c9d
push ebx
xor ebx, ebx
cmp dword [ebp - 0x214], ebx
jbe 0x402c92
jmp 0x402c30
test esi, esi
je 0x402c8c
mov edx, dword [esi + 4]
lea eax, [ebp - 0x20c]
lea ecx, [ecx]
movzx ecx, word [edx]
lea edx, [edx + 2]
mov word [eax], cx
lea eax, [eax + 2]
test cx, cx
jne 0x402c40
cmp byte [ebp + 8], cl
je 0x402c6a
lea eax, [ebp - 0x20c]
push eax
push str._s:_n
call fcn.0040746c
add esp, 8
lea eax, [ebp - 0x20c]
push eax
call dword [ebp - 0x21c]
add esp, 4
neg eax
sbb eax, eax
inc ebx
and edi, eax
add esi, 0x18
cmp ebx, dword [ebp - 0x214]
jb 0x402c30
mov esi, dword [ebp - 0x210]
pop ebx
test esi, esi
je 0x402c9d
push esi
call sub.NETAPI32.dll_NetApiBufferFree
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004077dc
mov esp, ebp
pop ebp
ret

Function at 0x402d50
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push 0x4209dc
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x402d6f
xor al, al
pop edi
pop ebp
ret
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x4209ec
push dword [ebp + 0xc]
mov ebx, eax
call fcn.00408f04
mov esi, eax
add esp, 8
test esi, esi
jne 0x402dad
pop esi
pop ebx
xor al, al
pop edi
pop ebp
ret
push esi
push edi
push 1
push ebx
call fcn.00408dc6
push esi
call fcn.00408ae4
add esp, 0x14
mov al, 1
pop esi
pop ebx
pop edi
pop ebp
ret
Function at 0x402dd0
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push ebx
push 0xf003f
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
jne 0x402ded
pop ebx
pop ebp
ret
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x110
lea ebx, [ebx]
cmp byte [ebp + 0x18], 0
mov eax, 0x10
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 0x14]
cmovne eax, ecx
push 0
push 3
push eax
push 0xf01ff
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x402e5e
call edi
xor ecx, ecx
cmp eax, 0x431
sete cl
test ecx, ecx
jne 0x402e65
call edi
mov esi, eax
cmp esi, 0x34
je 0x402e65
cmp esi, 0x431
je 0x402e65
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x402e96
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp + 0x10]
push ebx
call fcn.00403780
add esp, 8
test al, al
jne 0x402e94
call edi
mov esi, eax
mov ecx, 0x110
cmp esi, 0x20
je 0x402e00
cmp esi, 0x3e5
jne 0x402e96
jmp 0x402e00
xor esi, esi
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test esi, esi
pop edi
pop esi
sete al
pop ebx
pop ebp
ret

Function at 0x402ec0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
lea eax, [ebx - 0x834]
mov edi, 0x1300
cmp eax, 0x383
ja 0x402ef8
push 2
push esi
push str.netmsg.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov eax, 0x1b00
test esi, esi
cmovne edi, eax
push 0
push 0
lea eax, [ebp + 8]
push eax
push 0x400
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x402f34
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 8]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x402f3f
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4032e0
Capabilities:
Delete file
Get common file path
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x42a130]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [ebp - 0x828], ebx
cmp byte [ebp + 8], 0
push edi
mov edi, dword [ebp + 0x14]
je 0x4033da
push eax
push ebx
call fcn.00403960
add esp, 8
mov dword [ebp - 0x82c], 0x104
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp - 0x824]
push ebx
push eax
call fcn.00406e6e
add esp, 8
test eax, eax
jne 0x403390
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004089d2
xor ecx, ecx
push edi
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push str._s_s
push eax
call fcn.00407531
add esp, 0x18
jmp 0x4033a6
push edi
push ebx
lea eax, [ebp - 0x414]
push str._sADMIN__s
push eax
call fcn.00407531
add esp, 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4033d4
call ebx
cmp eax, 5
jne 0x4033d4
push 0x64
call edi
inc esi
cmp esi, 0xa
jb 0x4033b2
mov ebx, dword [ebp - 0x828]
cmp byte [0x42b348], 0
je 0x403408
push ebx
lea eax, [ebp - 0x61c]
push str._sIPC_
push eax
call fcn.00407531
add esp, 0xc
lea eax, [ebp - 0x61c]
push 1
push 0
push eax
call sub.MPR.dll_WNetCancelConnection2W
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004077dc
mov esp, ebp
pop ebp
ret

Function at 0x403420
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x42a130]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov word [ebp - 0x210], cx
cmp word [esi], cx
jne 0x40345e
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004077dc
mov esp, ebp
pop ebp
ret
push eax
lea eax, [ebp - 0x20c]
push str._sIPC_
push eax
call fcn.00407531
add esp, 0xc
lea eax, [ebp - 0x210]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x220], xmm0
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x20c]
push 0
push esi
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x230]
push edi
movdqu xmmword [ebp - 0x230], xmm0
push eax
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x224], 3
mov dword [ebp - 0x214], 0
call sub.MPR.dll_WNetAddConnection2W
movzx ecx, byte [0x42b348]
mov edx, eax
test edx, edx
mov eax, 1
pop edi
cmove ecx, eax
xor eax, eax
test edx, edx
mov byte [0x42b348], cl
mov ecx, dword [ebp - 4]
sete al
xor ecx, ebp
pop esi
call fcn.004077dc
mov esp, ebp
pop ebp
ret
Function at 0x403500
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x42a130]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x10]
push ebx
mov bl, byte [ebp + 0x14]
mov dword [ebp - 0x62c], ecx
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x620], edx
mov edx, dword [ebp + 0x2c]
mov dword [ebp - 0x624], eax
mov dword [ebp - 0x630], ecx
mov dword [ebp - 0x628], edx
push esi
mov esi, dword [ebp + 0x28]
push edi
mov edi, dword [ebp + 0xc]
test bl, bl
je 0x40359e
cmp word [esi], 0
jne 0x40359e
push 0x104
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x414]
push 0x5c
push eax
call fcn.004089d2
push dword [ebp - 0x630]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push str._s_s
push eax
call fcn.00407531
add esp, 0x18
jmp 0x4035c6
push ecx
push eax
lea eax, [ebp - 0x20c]
push str._sADMIN__s
push eax
call fcn.00407531
push dword [ebp - 0x628]
push esi
push dword [ebp - 0x624]
call fcn.00403420
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x620]
call fcn.00402d50
add esp, 8
test al, al
jne 0x40371a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp + 8], al
jne 0x4035f9
call esi
cmp eax, 0x20
je 0x40371a
call esi
cmp eax, 5
je 0x403613
cmp eax, 0x52e
je 0x403613
cmp eax, 0x3e7
je 0x403613
cmp eax, 0x35
jne 0x403630
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x620]
call fcn.00402d50
add esp, 8
test al, al
jne 0x40371a
call fcn.00402940
cmp byte [ebp + 0x30], 0
je 0x4036d4
test bl, bl
je 0x403650
push dword [ebp - 0x62c]
push str._rCouldnt_install__s_service:_n
jmp 0x403656
push edi
push str._rCouldnt_access__s:_n
call fcn.00407f6a
add eax, 0x40
push eax
call fcn.004082af
add esp, 0xc
call esi
mov esi, eax
push esi
call fcn.00402ec0
add esp, 4
cmp esi, 0x43
je 0x4036a1
cmp esi, 0x35
je 0x4036a1
cmp esi, 0x4d0
je 0x40368e
cmp esi, 0x4cf
jne 0x4036d4
test bl, bl
je 0x403699
push str._nMake_sure_that_file_and_print_sharing_services_are_enabled._n
jmp 0x4036aa
push edi
push str._nMake_sure_that_file_and_print_sharing_services_are_enabled_on__s._n
jmp 0x4036c3
test bl, bl
je 0x4036bd
push str._nMake_sure_that_the_admin__share_is_enabled._n
call fcn.00407f6a
add eax, 0x40
push eax
call fcn.004082af
add esp, 8
jmp 0x4036d4
push edi
push str._nMake_sure_that_the_default_admin__share_is_enabled_on__s._n
call fcn.00407f6a
add eax, 0x40
push eax
call fcn.004082af
add esp, 0xc
cmp byte [0x42b348], 0
je 0x403707
push dword [ebp - 0x624]
lea eax, [ebp - 0x61c]
push str._sIPC_
push eax
call fcn.00407531
add esp, 0xc
lea eax, [ebp - 0x61c]
push 1
push 0
push eax
call sub.MPR.dll_WNetCancelConnection2W
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004077dc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004077dc
mov esp, ebp
pop ebp
ret