joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453860
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0
push 0x10000000
push 3
push 0
push 1
push Ordinal_4
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4538b2
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0xc], eax
test eax, eax
jne 0x4538be
mov ecx, str.CFM_Error_n
call fcn.0044cef0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov byte [esi + 4], 0
xor eax, eax
pop esi
pop ebp
ret 4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push 0
push 0
push 0
push 4
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
test eax, eax
jne 0x4538f0
push dword [esi + 0xc]
call edi
pop edi
mov byte [esi + 4], 0
xor eax, eax
pop esi
pop ebp
ret 4
pop edi
mov byte [esi + 4], 1
mov eax, 1
pop esi
pop ebp
ret 4

Function at 0x4552a0
Capabilities:
Terminate process

Disassembly:
test ecx, ecx
je 0x4552ba
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x4552ba
mov ecx, dword [ecx + 0x44]
test ecx, ecx
je 0x4552ba
push 1
push ecx
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x469290
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x46941b
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x46941b
cmp dword [esi + 0x20], 0
je 0x46941b
cmp dword [esi + 0x24], 0
je 0x46941b
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov edx, dword [ecx + 0x18]
mov eax, dword [ecx + 8]
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], eax
test edx, edx
jns 0x4692ef
neg edx
mov dword [ecx + 0x18], edx
test edx, edx
mov eax, 0x71
push edi
mov edi, 0x2a
cmovne eax, edi
mov dword [ecx + 4], eax
xor eax, eax
cmp edx, 2
setne al
mov dword [esi + 0x30], eax
lea eax, [ecx + 0x94]
mov dword [ecx + 0xb18], eax
lea eax, [ecx + 0x988]
mov dword [ecx + 0xb24], eax
lea eax, [ecx + 0xa7c]
mov dword [ecx + 0xb30], eax
xor eax, eax
mov dword [ecx + 0x28], 0
mov dword [ecx + 0xb20], 0x4fe7d8
mov dword [ecx + 0xb2c], 0x4fe7b0
mov dword [ecx + 0xb38], 0x4fe7c4
mov word [ecx + 0x16b8], ax
mov dword [ecx + 0x16bc], eax
call fcn.0046ce60
mov esi, dword [esi + 0x1c]
xor edx, edx
pop edi
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
test eax, eax
je 0x46939e
push eax
push edx
push dword [esi + 0x44]
call fcn.0047ebc0
add esp, 0xc
mov eax, dword [esi + 0x84]
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x4de67a]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x4de678]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x4de67c]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x4de67e]
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret
Function at 0x46cd60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x46cd6b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x46ce27
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4def98]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4def98]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4def98]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4def98]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4def98]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4def98]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4def98]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4def98]
sub edi, 1
jne 0x46cd80
pop edi
test esi, esi
je 0x46ce4a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4def98]
sub esi, 1
jne 0x46ce30
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x48d129
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048cf9f

Function at 0x49068b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00490308
Function at 0x4a70d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
mov eax, dword [ebx - 4]
test ebp, ebp
jle 0x4a713a
mov ecx, dword [esp + 0xc]
sub ecx, ebx
push esi
mov dword [esp + 0x10], ecx
push edi
nop dword [eax]
mov esi, dword [ecx + ebx]
lea ebx, [ebx + 4]
mov ecx, eax
mov edi, esi
and edi, 0xffff00ff
and ecx, 0xffff00ff
add edi, ecx
mov edx, esi
movzx ecx, ax
and edx, 0xff00
add edx, ecx
and eax, 0xff00ffff
mov ecx, dword [esp + 0x14]
xor edi, edx
and esi, 0xff00ff00
and edi, 0xff00ff
add eax, esi
xor eax, edi
mov dword [ebx - 4], eax
sub ebp, 1
jne 0x4a70f0
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4a7140
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jle 0x4a71b4
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
sub ecx, eax
sub dword [esp + 0x14], eax
push ebx
push esi
mov dword [esp + 0x14], ecx
push edi
nop
mov ebx, dword [ecx + eax]
lea eax, [eax + 4]
mov esi, dword [eax - 4]
mov ecx, ebx
and ecx, 0xffff00ff
mov edi, esi
and edi, 0xffff00ff
mov edx, esi
add edi, ecx
and edx, 0xff00
movzx ecx, bx
and esi, 0xff00ff00
add edx, ecx
and ebx, 0xff00ffff
mov ecx, dword [esp + 0x20]
xor edi, edx
and edi, 0xff00ff
add ebx, esi
xor edi, ebx
mov dword [ecx + eax - 4], edi
mov ecx, dword [esp + 0x18]
sub ebp, 1
jne 0x4a7160
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4a7830
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
xor ecx, ecx
push ebx
mov ebx, dword [esp + 8]
push ebp
push edi
xor ebp, ebp
lea eax, [ebx + eax*4]
mov edi, eax
sub edi, ebx
add edi, 3
shr edi, 2
cmp ebx, eax
cmova edi, ecx
test edi, edi
je 0x4a789e
push esi
mov esi, dword [esp + 0x1c]
nop word [eax + eax]
mov edx, dword [ebx]
lea esi, [esi + 2]
mov ecx, edx
lea ebx, [ebx + 4]
shr ecx, 0x10
mov eax, edx
shr eax, 0xd
inc ebp
xor cl, al
mov eax, edx
and cl, 7
shr eax, 0x10
xor cl, al
mov eax, edx
mov byte [esi - 2], cl
mov ecx, edx
shr ecx, 5
shr eax, 3
xor cl, al
shr edx, 5
and cl, 0x1f
xor cl, dl
mov byte [esi - 1], cl
cmp ebp, edi
jb 0x4a7860
pop esi
pop edi
pop ebp
pop ebx
ret

Function at 0x4a78b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
xor ecx, ecx
push ebx
push ebp
push edi
mov edi, dword [esp + 0x10]
xor ebp, ebp
lea eax, [edi + eax*4]
mov ebx, eax
sub ebx, edi
add ebx, 3
shr ebx, 2
cmp edi, eax
cmova ebx, ecx
test ebx, ebx
je 0x4a7914
push esi
mov esi, dword [esp + 0x1c]
nop word [eax + eax]
mov edx, dword [edi]
lea esi, [esi + 2]
mov ecx, edx
lea edi, [edi + 4]
shr ecx, 0x10
mov eax, edx
shr eax, 0xc
inc ebp
xor cl, al
mov eax, edx
shr eax, 0x10
and cl, 0xf
xor cl, al
mov eax, edx
shr eax, 0x1c
and dl, 0xf0
or al, dl
mov byte [esi - 2], cl
mov byte [esi - 1], al
cmp ebp, ebx
jb 0x4a78e0
pop esi
pop edi
pop ebp
pop ebx
ret
Function at 0x4015d0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fdbd
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x479fcc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x401730
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6f
jne 0x401730
mov eax, dword [ebp - 0x10]
xor esi, esi
xor edi, edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4016a5
cmp eax, 0x7fffffff
ja 0x40176b
lea edi, [eax + eax]
cmp edi, 0x1000
jb 0x401675
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x401770
push eax
call fcn.00419793
add esp, 4
test eax, eax
je 0x401775
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x401688
test edi, edi
je 0x401686
push edi
call fcn.00419793
add esp, 4
mov esi, eax
jmp 0x401688
xor esi, esi
mov ecx, dword [ebp - 0x14]
add edi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], edi
lea eax, [ecx + ecx]
push eax
push 0
push esi
call fcn.0041b290
add esp, 0xc
mov dword [ebp - 0x20], edi
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov edx, dword [ebp + 8]
mov ecx, esi
xorps xmm0, xmm0
movups xmmword [edx], xmm0
lea eax, [ecx + 2]
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [ebp - 0x14], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4016d6
sub ecx, dword [ebp - 0x14]
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.004010e0
test esi, esi
je 0x40171c
sub edi, esi
mov eax, esi
and edi, 0xfffffffe
cmp edi, 0x1000
jb 0x401712
mov esi, dword [eax - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401775
push edi
push esi
call fcn.004197c3
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.004017e0
call fcn.004017b0
call fcn.0041e68f
int3
Function at 0x4018a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x479fcc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
test edi, edi
je 0x401941
mov edx, dword [ebp + 0xc]
lea eax, [edx - 1]
test eax, eax
jne 0x401941
cmp edx, 1
jne 0x401930
push esi
push 0x110
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0041b290
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 0x401920
mov eax, dword [ebp - 0x114]
cmp eax, 6
ja 0x40191b
cmp eax, 6
jne 0x401920
cmp dword [ebp - 0x110], esi
jbe 0x401920
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.004197d1
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.004197d1
mov esp, ebp
pop ebp
ret

Function at 0x401c30
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 0x401c9d
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 0x401c9d
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 0x401f90
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 0x402040
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x402040
xor esi, esi
cmp dword [edi], ebx
jle 0x40201e
nop dword [eax]
nop dword [eax + eax]
push 0x4475d4
push dword [eax + esi*4]
call fcn.00423967
add esp, 8
test eax, eax
je 0x401ff7
mov eax, dword [ebp + 0x10]
push str._accepteula
push dword [eax + esi*4]
call fcn.00423967
add esp, 8
test eax, eax
je 0x401ff7
mov eax, dword [ebp + 0x10]
inc esi
xor ebx, ebx
cmp esi, dword [edi]
jl 0x401fc0
jmp 0x40201e
mov edx, dword [edi]
mov ebx, 1
lea eax, [edx - 1]
cmp esi, eax
jge 0x402019
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 0x402008
lea eax, [edx - 1]
mov dword [edi], eax
push ebx
push dword [ebp + 8]
call fcn.00402140
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 0x4475a8
push 1
push str.Shell32.dll
xor edi, edi
call fcn.004018a0
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4020e4
push 0x47ada0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call esi
xor esi, esi
mov ebx, eax
cmp dword [0x47ada0], esi
jle 0x4020e4
push 0x4475d4
push dword [ebx + esi*4]
call fcn.00423967
add esp, 8
test eax, eax
je 0x4020b6
push str._accepteula
push dword [ebx + esi*4]
call fcn.00423967
add esp, 8
test eax, eax
je 0x4020b6
inc esi
xor edi, edi
cmp esi, dword [0x47ada0]
jl 0x402081
jmp 0x4020e4
mov ecx, dword [0x47ada0]
mov edi, 1
lea eax, [ecx - 1]
cmp esi, eax
jge 0x4020dd
mov eax, dword [ebx + esi*4 + 4]
mov dword [ebx + esi*4], eax
inc esi
mov ecx, dword [0x47ada0]
lea eax, [ecx - 1]
cmp esi, eax
jl 0x4020c8
dec ecx
mov dword [0x47ada0], ecx
push edi
push dword [ebp + 8]
call fcn.00402140
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 0x402660
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x479fcc]
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 0x402706
mov esi, 1
nop word [eax + eax]
lea ebx, [ecx + esi*4]
push 0x447864
push dword [ebx]
call fcn.00423967
add esp, 8
test eax, eax
je 0x4026d8
push str._nobanner
push dword [ebx]
call fcn.00423967
add esp, 8
test eax, eax
je 0x4026d8
mov ecx, dword [ebp - 0x210]
inc esi
xor ebx, ebx
cmp esi, dword [edi]
jl 0x4026a0
jmp 0x402706
mov edx, dword [edi]
mov ebx, 1
mov ecx, dword [ebp - 0x210]
lea eax, [edx - 1]
cmp esi, eax
jge 0x402701
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 0x4026f0
lea eax, [edx - 1]
mov dword [edi], eax
push ecx
push edi
push dword [ebp - 0x214]
call fcn.00401bc0
add esp, 0xc
test eax, eax
jne 0x402891
push 1
call fcn.0041e7a8
push eax
call fcn.0042420a
push eax
call fcn.004245fb
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
je 0x402891
push 1
call fcn.0041e7a8
mov esi, eax
lea eax, [ebp - 0x220]
push eax
push esi
call fcn.004241af
add esp, 0xc
test eax, eax
jne 0x402791
mov ecx, dword [ebp - 0x220]
or ecx, dword [ebp - 0x21c]
jne 0x402791
push 0x20000
push esi
call fcn.0042420a
add esp, 4
push eax
call fcn.004246cf
push 0x447944
push esi
call fcn.004029e0
add esp, 0x10
test ebx, ebx
jne 0x40289a
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.00423a68
add esp, 4
mov edi, eax
lea eax, [ebp - 0x20c]
push edi
push esi
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
push 0x44788c
push edi
call fcn.00402a40
push 0x4478a8
push edi
mov esi, eax
call fcn.00402a40
push 0x4478c0
push edi
mov dword [ebp - 0x214], eax
call fcn.00402a40
push 0x4478e0
push edi
mov dword [ebp - 0x218], eax
call fcn.00402a40
push 0x447900
push edi
mov dword [ebp - 0x210], eax
call fcn.00402a40
add esp, 0x28
mov edi, eax
call fcn.00401d50
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 0x40286f
push 1
call fcn.0041e7a8
add esp, 4
push eax
call fcn.00402a10
push 1
call fcn.0041e7a8
push eax
call fcn.004237fb
add esp, 0x24
jmp 0x40289a
push 2
call fcn.0041e7a8
add esp, 4
push eax
call fcn.00402a10
push 2
call fcn.0041e7a8
push eax
call fcn.004237fb
add esp, 0x24
jmp 0x40289a
push ebx
call fcn.004028c0
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.004197d1
mov esp, ebp
pop ebp
ret
Function at 0x4028c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x479fcc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x4029c4
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.00423a68
add esp, 4
mov edi, eax
lea eax, [ebp - 0x20c]
push edi
push esi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
push 0x44788c
push edi
call fcn.00402a40
push 0x4478a8
push edi
mov esi, eax
call fcn.00402a40
push 0x4478c0
push edi
mov ebx, eax
call fcn.00402a40
push 0x4478e0
push edi
mov dword [ebp - 0x214], eax
call fcn.00402a40
push 0x447900
push edi
mov dword [ebp - 0x210], eax
call fcn.00402a40
add esp, 0x28
mov edi, eax
call fcn.00401d50
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 0x4029a1
push 1
call fcn.0041e7a8
add esp, 4
push eax
call fcn.00402a10
push 1
jmp 0x4029b3
push 2
call fcn.0041e7a8
add esp, 4
push eax
call fcn.00402a10
push 2
call fcn.0041e7a8
push eax
call fcn.004237fb
add esp, 0x24
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004197d1
mov esp, ebp
pop ebp
ret
Function at 0x403530
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x447b2c
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40359b
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 0x447b3c
push dword [ebp + 0xc]
mov ebx, eax
call fcn.00424a50
mov esi, eax
add esp, 8
test esi, esi
je 0x40359b
push esi
push edi
push 1
push ebx
call fcn.00424e81
push esi
call fcn.00424b8c
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 0x403660
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 0x403698
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 0x4036d4
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 0x4036df
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403730
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.00403740
Function at 0x403ce0
Capabilities:
Delete file
Delete service
Get common file path
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x479fcc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [ebp - 0x834], ebx
cmp byte [ebp + 8], 0
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x830], eax
je 0x403e28
push 0xf003f
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push edi
push eax
mov dword [ebp - 0x828], eax
call fcn.00404310
add esp, 8
push 0xf01ff
push edi
push dword [ebp - 0x828]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x403d5a
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x828]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [ebp - 0x82c]
mov dword [ebp - 0x82c], 0x104
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00423967
add esp, 8
test eax, eax
jne 0x403dcd
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.0041b49a
add esp, 8
lea ebx, [ebp - 0x20c]
xor ecx, ecx
mov word [eax], cx
mov eax, str._s_s
jmp 0x403dd2
mov eax, str._sADMIN__s
push dword [ebp - 0x830]
push ebx
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.00404410
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x10
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
nop word [eax + eax]
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x403e22
call ebx
cmp eax, 5
jne 0x403e22
push 0x64
call edi
inc esi
cmp esi, 0xa
jb 0x403e00
mov ebx, dword [ebp - 0x834]
cmp byte [0x47ada8], 0
je 0x403e5b
push ebx
push str._sIPC_
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.004043d0
add esp, 0x10
lea eax, [ebp - 0x824]
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.004197d1
mov esp, ebp
pop ebp
ret