joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404180
Capabilities:
Import public key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx], 0
jne 0x4041aa
push 0xf0000040
push 1
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4042d2
mov eax, dword [ebx + 4]
test eax, eax
je 0x4041b8
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov edi, dword [ebp + 8]
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
lea ecx, [esi + esi]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push esi
mov esi, eax
mov dword [ebp - 0xc], eax
push esi
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0
push esi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x4042d2
push dword [ebp - 4]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
push 0
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
push 0
push 0
push esi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x4042d2
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0x8000
push dword [ebp - 4]
push edi
push 8
push 1
call dword [sym.imp.CRYPT32.dll_CryptDecodeObjectEx]
test eax, eax
je 0x4042d2
lea eax, [ebx + 4]
push eax
push dword [ebp - 8]
push 1
push dword [ebx]
call dword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
mov esi, eax
test esi, esi
je 0x4042d2
push 0x10
push 1
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404480
Capabilities:
Delete service
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
push edi
push 0xf003f
push 0
push 0
mov dword [ebp - 0x20], ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x4044ac
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 0
push eax
push 0x24
lea eax, [ebp - 0x44]
push eax
push 3
push 0x3b
push edi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
jne 0x4045f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4045f5
push esi
mov esi, dword [ebp - 0x10]
add esi, 0x24
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
mov esi, dword [ebp - 0x1c]
push esi
push 3
push 0x3b
push edi
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
push dword [ebp + 8]
mov eax, 0x2c
mov word [ebp - 4], ax
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x444]
push eax
call fcn.00405310
mov ecx, eax
add esp, 8
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x4045e4
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 8], ebx
jbe 0x4045cc
mov eax, dword [esi]
test eax, eax
je 0x4045bd
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x4045ba
push edi
push dword [esi]
push dword [ebp - 0x20]
call fcn.004028e0
push 0x10000
push dword [esi]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x4045b0
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
inc ebx
add esi, 0x24
mov dword [ebp - 0x14], ebx
cmp ebx, dword [ebp - 8]
jb 0x404571
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 4]
push eax
push 0
call fcn.00405310
mov ecx, eax
mov dword [ebp - 0xc], eax
add esp, 8
test ecx, ecx
jne 0x404567
pop ebx
push esi
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x404610
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
xor eax, eax
nop dword [eax + eax]
mov byte [ebp + eax - 0x104], al
inc eax
cmp eax, 0x100
jb 0x404620
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
nop word [eax + eax]
mov eax, esi
mov bl, byte [ebp + esi - 0x104]
xor edx, edx
movzx ecx, bl
div dword [ebp + 0xc]
mov eax, dword [ebp + 8]
movzx eax, byte [edx + eax]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [ebp + edi - 0x104]
mov byte [ebp + esi - 0x104], al
inc esi
mov byte [ebp + edi - 0x104], bl
cmp esi, 0x100
jb 0x404640
mov esi, dword [ebp + 0x14]
xor ebx, ebx
xor eax, eax
test esi, esi
je 0x4046e1
mov edi, dword [ebp + 0x10]
nop dword [eax + eax]
inc eax
lea edi, [edi + 1]
movzx edx, al
mov dword [ebp - 4], edx
mov cl, byte [ebp + edx - 0x104]
movzx eax, cl
add eax, ebx
movzx ebx, al
mov al, byte [ebp + ebx - 0x104]
mov byte [ebp + edx - 0x104], al
mov eax, dword [ebp - 4]
movzx edx, cl
mov byte [ebp + ebx - 0x104], cl
movzx ecx, byte [ebp + eax - 0x104]
add edx, ecx
movzx ecx, dl
movzx ecx, byte [ebp + ecx - 0x104]
xor byte [edi - 1], cl
sub esi, 1
jne 0x404690
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404950
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 4
push 0x3000
push 0x1fc
push 0
mov dword [ebp - 8], 0x1fc
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x20119
push 0
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4049ba
lea eax, [ebp - 8]
push eax
push esi
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4049ba
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405150
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 4
push 0x3000
push 0x7f
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, dword [ebp + 8]
xor esi, esi
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
xor edx, edx
test ebx, ebx
jle 0x405198
nop
movzx ecx, word [edi + edx*2]
inc edx
xor ecx, 0xab01ff3c
add esi, ecx
mov eax, esi
rol eax, 0xd
sub esi, eax
cmp edx, ebx
jl 0x405180
push esi
mov esi, dword [ebp - 4]
push str._08X
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4063c0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push edi
mov edi, dword [ebp + 8]
push 0xf0000040
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x10
push 1
push 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
cmp dword [0x40d918], 0
jne 0x406449
push 0x810
push 0
push 0x40d920
call fcn.00406390
push 0x40d920
call fcn.004064f0
push 0x40d920
call fcn.004064f0
add esp, 0x14
mov dword [0x40d918], 1
push 0x40
lea eax, [ebp - 0x44]
push eax
push 0x40d920
call fcn.004066d0
add esp, 0xc
test esi, esi
jle 0x4064e8
lea eax, [ebp - 0x15c]
push eax
call fcn.0040a8d0
push 0x40
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.0040a980
push esi
lea eax, [ebp - 0x15c]
push edi
push eax
call fcn.0040a980
add esp, 0x1c
lea eax, [ebp - 0x15c]
push eax
cmp esi, 0x40
jle 0x4064cb
push edi
call fcn.0040a5b0
add esp, 8
lea eax, [ebp - 0x44]
add edi, 0x40
mov ecx, 0x40
sub esi, 0x40
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4064b6
test esi, esi
jg 0x406464
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x84]
push eax
call fcn.0040a5b0
push esi
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.0040aac0
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4064f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ecx, dword [eax + 0x808]
lea esi, [eax + 0x402]
mov ebx, dword [eax + 0x804]
inc ecx
mov edi, dword [eax + 0x800]
add ebx, ecx
mov dword [ebp - 0x18], ecx
lea ecx, [eax + 8]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], 0xffffff81
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], 0x40
mov edx, dword [ecx - 8]
mov ecx, dword [ebp - 8]
dec ecx
rol edi, 0xd
xor edi, dword [ebp - 0xc]
movzx ecx, cl
add edi, dword [eax + ecx*4]
mov ecx, edx
shr ecx, 2
xor ebx, edi
movzx ecx, cl
add ebx, dword [eax + ecx*4]
mov ecx, dword [ebp - 4]
mov dword [ecx - 8], ebx
shr ebx, 0xa
movzx ecx, bl
lea ebx, [edx + edi]
xor ebx, dword [eax + ecx*4]
mov ecx, ebx
mov byte [esi - 2], bl
shr ecx, 8
mov byte [esi - 1], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi], cl
mov ecx, ebx
shr ecx, 0x18
mov byte [esi + 1], cl
mov esi, edi
mov ecx, dword [ebp - 4]
ror esi, 6
xor esi, edi
mov edi, dword [ebp - 4]
mov edx, dword [ecx - 4]
mov ecx, dword [ebp - 8]
movzx ecx, cl
add esi, dword [eax + ecx*4]
mov ecx, edx
shr ecx, 2
xor ebx, esi
movzx ecx, cl
add ebx, dword [eax + ecx*4]
mov dword [edi - 4], ebx
shr ebx, 0xa
movzx ecx, bl
lea ebx, [edx + esi]
mov edx, dword [ebp - 0x10]
xor ebx, dword [eax + ecx*4]
mov ecx, ebx
mov byte [edx + 2], bl
shr ecx, 8
mov byte [edx + 3], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edx + 4], cl
mov ecx, ebx
shr ecx, 0x18
mov byte [edx + 5], cl
mov edx, dword [edi]
mov edi, esi
mov ecx, dword [ebp - 8]
inc ecx
rol edi, 2
movzx ecx, cl
xor edi, esi
mov esi, dword [ebp - 0x10]
add edi, dword [eax + ecx*4]
mov ecx, edx
shr ecx, 2
xor ebx, edi
movzx ecx, cl
add ebx, dword [eax + ecx*4]
mov ecx, dword [ebp - 4]
mov dword [ecx], ebx
shr ebx, 0xa
movzx ecx, bl
lea ebx, [edx + edi]
xor ebx, dword [eax + ecx*4]
mov ecx, ebx
mov byte [esi + 6], bl
shr ecx, 8
mov byte [esi + 7], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 8], cl
mov ecx, ebx
shr ecx, 0x18
mov byte [esi + 9], cl
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov ecx, edi
ror ecx, 0x10
xor ecx, edi
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
add ecx, 2
movzx ecx, cl
add dword [ebp - 8], 4
add edi, dword [eax + ecx*4]
mov ecx, edx
shr ecx, 2
xor ebx, edi
movzx ecx, cl
mov dword [ebp - 0xc], edi
add ebx, dword [eax + ecx*4]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], ebx
shr ebx, 0xa
movzx ecx, bl
lea ebx, [edx + edi]
xor ebx, dword [eax + ecx*4]
mov ecx, ebx
mov byte [esi + 0xa], bl
shr ecx, 8
mov byte [esi + 0xb], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 0xc], cl
mov ecx, ebx
shr ecx, 0x18
mov byte [esi + 0xd], cl
add esi, 0x10
mov ecx, dword [ebp - 4]
add ecx, 0x10
mov dword [ebp - 0x10], esi
sub dword [ebp - 0x14], 1
mov dword [ebp - 4], ecx
jne 0x406534
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x800], edi
pop edi
pop esi
mov dword [eax + 0x804], ebx
mov dword [eax + 0x808], ecx
mov dword [eax + 0x80c], 0x400
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a8d0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0xf3bcc908
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0xd0], 0
mov dword [eax + 0xd4], 0x40
pop ebp
ret
Function at 0x401000
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x43a128]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
test edi, edi
je 0x4010a1
mov edx, dword [ebp + 0xc]
lea eax, [edx - 1]
test eax, eax
jne 0x4010a1
cmp edx, 1
jne 0x401090
push esi
push pe_nt_image_headers32
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00408280
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x401080
mov eax, dword [ebp - 0x114]
cmp eax, 6
ja 0x40107b
cmp eax, 6
jne 0x401080
cmp dword [ebp - 0x110], esi
jbe 0x401080
mov esi, 1
shl esi, 0xb
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, eax
pop esi
mov eax, ecx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040760d
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.0040760d
mov esp, ebp
pop ebp
ret

Function at 0x401390
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 0x4013fd
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 0x4013fd
xor eax, eax
cmp dword [ebp - 8], eax
setne al
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4016f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
test edi, edi
je 0x4017a0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4017a0
xor esi, esi
cmp dword [edi], ebx
jle 0x40177e
nop dword [eax]
nop dword [eax + eax]
push 0x42d4e4
push dword [eax + esi*4]
call fcn.0040aa3e
add esp, 8
test eax, eax
je 0x401757
mov eax, dword [ebp + 0x10]
push str._accepteula
push dword [eax + esi*4]
call fcn.0040aa3e
add esp, 8
test eax, eax
je 0x401757
mov eax, dword [ebp + 0x10]
inc esi
xor ebx, ebx
cmp esi, dword [edi]
jl 0x401720
jmp 0x40177e
mov edx, dword [edi]
mov ebx, 1
lea eax, [edx - 1]
cmp esi, eax
jge 0x401779
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + esi*4 + 4]
mov dword [ecx + esi*4], eax
inc esi
mov edx, dword [edi]
lea eax, [edx - 1]
cmp esi, eax
jl 0x401768
lea eax, [edx - 1]
mov dword [edi], eax
push ebx
push dword [ebp + 8]
call fcn.004018a0
add esp, 8
mov ecx, 1
test eax, eax
cmovne ebx, ecx
xor eax, eax
pop edi
test ebx, ebx
pop esi
setne al
pop ebx
pop ebp
ret
push 0x42d4b8
push 1
push str.Shell32.dll
xor edi, edi
call section..text
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x401844
push 0x43aaa0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call esi
xor esi, esi
mov ebx, eax
cmp dword [0x43aaa0], esi
jle 0x401844
push 0x42d4e4
push dword [ebx + esi*4]
call fcn.0040aa3e
add esp, 8
test eax, eax
je 0x401816
push str._accepteula
push dword [ebx + esi*4]
call fcn.0040aa3e
add esp, 8
test eax, eax
je 0x401816
inc esi
xor edi, edi
cmp esi, dword [0x43aaa0]
jl 0x4017e1
jmp 0x401844
mov ecx, dword [0x43aaa0]
mov edi, 1
lea eax, [ecx - 1]
cmp esi, eax
jge 0x40183d
mov eax, dword [ebx + esi*4 + 4]
mov dword [ebx + esi*4], eax
inc esi
mov ecx, dword [0x43aaa0]
lea eax, [ecx - 1]
cmp esi, eax
jl 0x401828
dec ecx
mov dword [0x43aaa0], ecx
push edi
push dword [ebp + 8]
call fcn.004018a0
add esp, 8
mov ecx, 1
test eax, eax
cmovne edi, ecx
xor eax, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
pop ebp
ret
Function at 0x401e00
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x43a128]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x214], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x210], ecx
cmp dword [edi], 1
jle 0x401ea6
mov esi, 1
nop word [eax + eax]
lea ebx, [ecx + esi*4]
push 0x42d774
push dword [ebx]
call fcn.0040aa3e
add esp, 8
test eax, eax
je 0x401e78
push str._nobanner
push dword [ebx]
call fcn.0040aa3e
add esp, 8
test eax, eax
je 0x401e78
mov ecx, dword [ebp - 0x210]
inc esi
xor ebx, ebx
cmp esi, dword [edi]
jl 0x401e40
jmp 0x401ea6
mov edx, dword [edi]
mov ebx, 1
mov ecx, dword [ebp - 0x210]
lea eax, [edx - 1]
cmp esi, eax
jge 0x401ea1
nop dword [eax]
mov eax, dword [ecx + esi*4 + 4]
mov dword [ecx + esi*4], eax
inc esi
mov edx, dword [edi]
lea eax, [edx - 1]
cmp esi, eax
jl 0x401e90
lea eax, [edx - 1]
mov dword [edi], eax
push ecx
push edi
push dword [ebp - 0x214]
call fcn.00401320
add esp, 0xc
test eax, eax
jne 0x402031
push 1
call fcn.0040af7e
push eax
call fcn.004105e4
push eax
call fcn.004109d5
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x402031
push 1
call fcn.0040af7e
mov esi, eax
lea eax, [ebp - 0x220]
push eax
push esi
call fcn.00410589
add esp, 0xc
test eax, eax
jne 0x401f31
mov ecx, dword [ebp - 0x220]
or ecx, dword [ebp - 0x21c]
jne 0x401f31
push 0x20000
push esi
call fcn.004105e4
add esp, 4
push eax
call fcn.00410aa9
push 0x42d854
push esi
call fcn.00402180
add esp, 0x10
test ebx, ebx
jne 0x40203a
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
push esi
call fcn.0040ab5a
add esp, 4
mov edi, eax
lea eax, [ebp - 0x20c]
push edi
push esi
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
push 0x42d79c
push edi
call fcn.004021e0
push 0x42d7b8
push edi
mov esi, eax
call fcn.004021e0
push 0x42d7d0
push edi
mov dword [ebp - 0x214], eax
call fcn.004021e0
push 0x42d7f0
push edi
mov dword [ebp - 0x218], eax
call fcn.004021e0
push 0x42d810
push edi
mov dword [ebp - 0x210], eax
call fcn.004021e0
add esp, 0x28
mov edi, eax
call fcn.004014b0
push edi
push dword [ebp - 0x210]
push dword [ebp - 0x218]
push dword [ebp - 0x214]
push esi
push str._n_s_v_s____s_n_s_n_s_n_n
test eax, eax
je 0x40200f
push 1
call fcn.0040af7e
add esp, 4
push eax
call fcn.004021b0
push 1
call fcn.0040af7e
push eax
call fcn.00410536
add esp, 0x24
jmp 0x40203a
push 2
call fcn.0040af7e
add esp, 4
push eax
call fcn.004021b0
push 2
call fcn.0040af7e
push eax
call fcn.00410536
add esp, 0x24
jmp 0x40203a
push ebx
call fcn.00402060
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
test ebx, ebx
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.0040760d
mov esp, ebp
pop ebp
ret
Function at 0x402060
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x43a128]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x402164
push ebx
push esi
push edi
push 0x104
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.0040ab5a
add esp, 4
mov edi, eax
lea eax, [ebp - 0x20c]
push edi
push esi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
push 0x42d79c
push edi
call fcn.004021e0
push 0x42d7b8
push edi
mov esi, eax
call fcn.004021e0
push 0x42d7d0
push edi
mov ebx, eax
call fcn.004021e0
push 0x42d7f0
push edi
mov dword [ebp - 0x214], eax
call fcn.004021e0
push 0x42d810
push edi
mov dword [ebp - 0x210], eax
call fcn.004021e0
add esp, 0x28
mov edi, eax
call fcn.004014b0
push edi
push dword [ebp - 0x210]
push dword [ebp - 0x214]
push ebx
push esi
push str._n_s_v_s____s_n_s_n_s_n_n
test eax, eax
je 0x402141
push 1
call fcn.0040af7e
add esp, 4
push eax
call fcn.004021b0
push 1
jmp 0x402153
push 2
call fcn.0040af7e
add esp, 4
push eax
call fcn.004021b0
push 2
call fcn.0040af7e
push eax
call fcn.00410536
add esp, 0x24
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040760d
mov esp, ebp
pop ebp
ret
Function at 0x402cd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x42da3c
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x402d3b
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 0x42da4c
push dword [ebp + 0xc]
mov ebx, eax
call fcn.00410e2a
mov esi, eax
add esp, 8
test esi, esi
je 0x402d3b
push esi
push edi
push 1
push ebx
call fcn.0041125b
push esi
call fcn.00410f66
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret

Function at 0x402e00
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 0x402e38
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 0x402e74
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 0x402e7f
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402ed0
Capabilities:
Check if file exists
Create service
Create thread
Delete file
Delete service
Get common file path
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00402ee0