joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa92c20
Capabilities:
Create udp socket

Disassembly:
cmp byte [edx + 0x452], 2
je fcn.00a6a8c0
mov al, 1
ret

Function at 0xa98b40
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, ecx
push 0x401
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + 0x400], 0
test eax, eax
jne 0xa98b71
push 0x2e
push esi
call fcn.00a9ea00
add esp, 8
test eax, eax
je 0xa98b6f
mov byte [eax], 0
xor eax, eax
pop esi
ret

Function at 0xa98c10
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xb03008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push esi
push edi
push 0xf0000040
push 1
push 0
push 0
push eax
mov esi, edx
mov dword [ebp - 0x20], 8
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xa98c9d
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0x208
lea edx, [ebp - 0xc]
movlpd qword [ebp - 0xc], xmm0
mov ecx, ebx
mov dword [ebp - 0x14], 0x6601
mov dword [ebp - 0x10], 8
call fcn.00a98b80
mov ecx, edx
call fcn.00a9a160
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0xa98cb0
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a9a313
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x20]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esi], eax
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push 0
push dword [ebp - 0x24]
mov dword [esi + 4], ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00a9a313
mov esp, ebp
pop ebp
ret

Function at 0xa98ee0
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000040
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xa98f1f
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8003
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0xa98f27
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 0x1b
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0xa99350
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000040
push 0x18
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xa99382
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x800c
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
xor eax, eax
pop esi
pop ebp
ret
Function at 0xa99440
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0xb0397c]
mov edi, eax
add esp, 4
test edi, edi
jne 0xa99473
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
mov dword [edi + 8], eax
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x10]
jbe 0xa994ba
mov eax, dword [esi]
push ecx
call eax
push dword [ebp + 8]
mov eax, dword [esi + 4]
push ebx
push dword [edi + 4]
call eax
mov ebx, dword [edi + 8]
add ebx, dword [esi + 0xc]
push dword [edi + 4]
mov eax, dword [esi + 8]
push ebx
mov dword [ebp - 8], ebx
call eax
mov eax, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [ebp + 8], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 8]
add esp, 8
xor ebx, ebx
test eax, eax
je 0xa99513
mov ebx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 8], 1
jne 0xa994d8
mov ebx, dword [ebp - 0xc]
cmp ebx, dword [esi + 0x10]
jae 0xa99547
nop dword [eax + eax]
mov eax, dword [esi + 4]
push 1
push 0xad023b
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0xad023a
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0xa99520
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xa9a060
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push esi
push edi
push 0xf0000040
mov esi, ecx
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xa9a09b
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
pop esi
ret

Function at 0xab3c79
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00ab3939

Function at 0xabaf99
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00abae18
Function at 0x401160
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x14]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40121c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x40121c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push ebx
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40120b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x401204
test edi, edi
je 0x401204
push ebx
push eax
push edi
call fcn.00445050
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edi, dword [esp + 0x10]
push ebx
mov ecx, esi
call fcn.00401230
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 0xc
Function at 0x402c78
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x7b4]
sub esp, 0x834
mov eax, dword [0x4f43d8]
xor eax, ebp
mov dword [ebp + 0x7b0], eax
push ebx
push esi
push edi
mov esi, 0x206
xor edi, edi
push esi
lea eax, [ebp + 0x3a2]
push edi
push eax
mov dword [ebp - 0x74], ecx
mov word [ebp + 0x3a0], di
call fcn.00444860
push esi
lea eax, [ebp - 0x6e]
push edi
push eax
mov word [ebp - 0x70], di
call fcn.00444860
push esi
lea eax, [ebp + 0x5aa]
push edi
push eax
mov word [ebp + 0x5a8], di
call fcn.00444860
mov ebx, 0x4b0a4c
lea eax, [ebp - 0x70]
push ebx
push eax
mov dword [ebp - 0x7c], edi
call fcn.00444604
lea eax, [ebp - 0x70]
push eax
call fcn.004447f5
add esp, 0x30
push edi
push 0x2b
lea eax, [ebp + 0x3a0]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, 0x4b0a48
lea eax, [ebp + 0x3a0]
push edi
push eax
call fcn.004445da
lea eax, [ebp + 0x3a0]
push ebx
push eax
call fcn.004445da
lea eax, [ebp + 0x3a0]
push edi
push eax
call fcn.004445da
lea eax, [ebp + 0x3a0]
push str.WanNengWB
push eax
call fcn.004445da
lea eax, [ebp + 0x3a0]
push str..ini
push eax
call fcn.004445da
add esp, 0x28
lea eax, [ebp + 0x3a0]
push eax
push 0x104
lea eax, [ebp + 0x5a8]
push eax
push 0x4b09e8
push str.InstallPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp + 0x5a8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402da9
mov ecx, dword [ebp - 0x74]
lea eax, [ebp + 0x5a8]
push eax
add ecx, 0x1c
call fcn.00402916
jmp 0x402e9e
and word [ebp + 0x198], 0
push esi
lea eax, [ebp + 0x19a]
push 0
push eax
call fcn.00444860
lea eax, [ebp + 0x198]
push str.SOFTWARE_
push eax
call fcn.00444604
lea eax, [ebp + 0x198]
push ebx
push eax
call fcn.004445da
add esp, 0x1c
lea eax, [ebp - 0x78]
push eax
push 0x20019
xor esi, esi
push esi
lea eax, [ebp + 0x198]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402e53
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x5a8]
push eax
push esi
push esi
push str.InstallPath
push dword [ebp - 0x78]
mov dword [ebp - 0x80], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402e53
lea eax, [ebp + 0x5a8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402e53
mov ecx, dword [ebp - 0x74]
lea eax, [ebp + 0x5a8]
push eax
add ecx, 0x1c
mov dword [ebp - 0x7c], 1
call fcn.00402916
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x7c], esi
jne 0x402e9e
push esi
push 0x26
lea eax, [ebp + 0x5a8]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [ebp - 0x74]
lea eax, [ebp + 0x5a8]
add esi, 0x1c
push eax
mov ecx, esi
call fcn.00402916
push edi
mov ecx, esi
call fcn.004028f9
push ebx
mov ecx, esi
call fcn.004028f9
push edi
mov ecx, esi
call fcn.004028f9
mov ecx, dword [ebp + 0x7b0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004442cc
add ebp, 0x7b4
leave
ret
Function at 0x402eb6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x410
lea ebp, [esp - 4]
mov eax, dword [0x4f43d8]
xor eax, ebp
mov dword [ebp + 0x410], eax
push 0x8c
mov eax, 0x4ac4ee
call fcn.004442db
mov esi, dword [ebp + 0x41c]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x98]
call fcn.0045f840
push 0x4b0a9c
push str.CONFIGURE
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
jne 0x402f43
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.004022dd
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.004442cc
add ebp, 0x414
leave
ret 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea edi, [esi + 1]
push edi
call fcn.00443878
push edi
push ebx
push eax
mov dword [ebp - 0x14], eax
call fcn.00444860
push esi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.004448e0
add esp, 0x1c
push ebx
push ebx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x98]
call fcn.00461b20
push str.TheConfigure
lea ecx, [ebp - 0x98]
call fcn.0045edf0
mov edi, eax
cmp edi, ebx
jne 0x402fb6
push dword [ebp - 0x14]
call fcn.004445bf
pop ecx
jmp 0x402f0d
mov esi, 0x206
push esi
lea eax, [ebp + 0x20a]
push ebx
push eax
mov word [ebp + 0x208], bx
call fcn.00444860
push esi
lea eax, [ebp + 2]
push ebx
push eax
mov word [ebp], bx
call fcn.00444860
add esp, 0x18
push str.Application
mov ecx, edi
call fcn.0045eec0
cmp eax, ebx
jne 0x403008
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.004022dd
mov eax, ebx
jmp 0x402f1e
mov ecx, eax
call fcn.0045ee90
jmp 0x4030a9
mov edi, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
add edi, 8
cmp ecx, ebx
je 0x40302a
mov eax, dword [ecx]
call dword [eax + 0x30]
cmp eax, ebx
jne 0x40302f
mov dword [ebp - 0x10], ebx
jmp 0x403038
mov eax, dword [eax + 0x20]
add eax, 8
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x208]
push eax
push edi
call fcn.0040b2e5
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call fcn.0040b2e5
add esp, 0x10
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x50]
call fcn.00402933
lea eax, [ebp + 0x208]
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00402933
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x38]
mov eax, dword [ecx]
lea edx, [ebp - 0x50]
push edx
lea edx, [ebp - 0x34]
push edx
mov byte [ebp - 4], 2
call dword [eax]
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.004023bd
push ebx
push 1
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call fcn.004023bd
mov ecx, esi
call fcn.0045ef00
mov esi, eax
cmp esi, ebx
jne 0x403014
push dword [ebp - 0x14]
call fcn.004445bf
xor ebx, ebx
pop ecx
inc ebx
jmp 0x402ff2
Function at 0x404b18
Capabilities:
Create thread

Disassembly:
mov eax, dword [ecx + 0x300]
cmp eax, 0xffffffff
je 0x404b2c
cmp eax, 1
je 0x404b2c
or eax, 0xffffffff
ret
xor eax, eax
push eax
push eax
push ecx
push 0x40487c
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
ret

Function at 0x404d12
Capabilities:
Create directory

Disassembly:
push ebp
sub esp, 0x450
lea ebp, [esp - 4]
mov eax, dword [0x4f43d8]
xor eax, ebp
mov dword [ebp + 0x450], eax
push 8
mov eax, 0x4ac674
call fcn.004442db
mov edi, dword [ebp + 0x45c]
xor ebx, ebx
cmp edi, ebx
jne 0x404d69
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x450]
xor ecx, ebp
call fcn.004442cc
add ebp, 0x454
leave
ret 4
mov esi, 0xff
push esi
lea eax, [ebp + 0x351]
push ebx
push eax
mov byte [ebp + 0x350], bl
call fcn.00444860
lea eax, [ebp + 0x350]
push edi
push eax
call fcn.00444be0
push edi
mov dword [ebp - 0x14], ebx
call fcn.00443b40
add esp, 0x18
push 0x4f7250
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.00404b48
push esi
lea eax, [ebp + 0x251]
push ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ebp + 0x250], bl
call fcn.00444860
lea eax, [ebp + edi + 0x350]
add esp, 0xc
cmp byte [eax - 1], 0x5c
je 0x404dd4
mov byte [eax], 0x5c
cmp byte [ebp + 0x350], bl
je 0x404e4c
mov esi, dword [ebp - 0x14]
mov al, byte [ebp + esi + 0x350]
cmp al, 0x3a
jne 0x404dee
inc esi
inc esi
jmp 0x404e40
cmp al, 0x5c
jne 0x404e3f
push esi
lea eax, [ebp + 0x350]
push eax
lea eax, [ebp + 0x250]
push eax
call fcn.00445050
add esp, 0xc
lea eax, [ebp + 0x250]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp + esi + 0x250], bl
call fcn.00404cc8
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x404e3f
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x404e4f
inc esi
cmp byte [ebp + esi + 0x350], bl
mov dword [ebp - 0x14], esi
jne 0x404ddc
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00404511
mov eax, ebx
jmp 0x404d44

Function at 0x407c1b
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x407c71
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov ebx, ecx
jne 0x407c87
push 0x80004005
call fcn.004044f9
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x407c8a
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8
Function at 0x4081f1
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x4f43d8]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
call fcn.00407be6
mov edi, eax
cmp edi, esi
je 0x408259
lea ecx, [ebp - 0x70]
call fcn.00407b81
mov eax, edi
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004442cc
add ebp, 0x198
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x408271
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.004081f1
cmp eax, esi
jne 0x4082a4
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
je 0x408261
lea ecx, [ebp - 0x70]
call fcn.00407b81
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00407b81
mov eax, esi
jmp 0x40823f
Function at 0x40a66f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4f43d8]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x20c], 0
push esi
push 0x206
lea eax, [ebp - 0x20a]
push 0
push eax
mov esi, ecx
call fcn.00444860
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x14]
call fcn.00402916
mov ecx, esi
call fcn.0040a630
test eax, eax
jne 0x40a6dd
call fcn.0040783c
mov ecx, eax
call fcn.00405786
jmp 0x40a6f0
call fcn.0040783c
mov ecx, eax
call fcn.00405796
mov dword [esi + 8], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004442cc
leave
ret

Function at 0x40a70c
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x10]
push eax
xor eax, eax
push eax
push esi
push 0x40a6fd
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
pop esi
ret

Function at 0x40a76c
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x240
lea ebp, [esp - 4]
mov eax, dword [0x4f43d8]
xor eax, ebp
mov dword [ebp + 0x240], eax
push 0x1c
mov eax, 0x4acc42
call fcn.004442db
push 0x104
lea eax, [ebp + 0x38]
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x38]
push 0x5c
push eax
call fcn.004453b5
pop ecx
pop ecx
mov esi, 0x4b09e8
push esi
lea ecx, [ebp]
mov word [eax + 2], di
call fcn.00402933
push esi
lea ecx, [ebp + 0x1c]
mov dword [ebp - 4], edi
call fcn.00402933
xor ebx, ebx
lea eax, [ebp + 0x38]
inc ebx
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.00402933
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.00402707
push str.WnCore.exe
lea ecx, [ebp]
call fcn.004028f9
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x40a80b
lea eax, [ebp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a861
push 0x4b1d7c
lea ecx, [ebp + 0x1c]
call fcn.004028f9
push 0xffffffffffffffff
push edi
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x1c]
call fcn.0040265e
cmp dword [ebp + 0x250], edi
lea ecx, [ebp + 0x1c]
je 0x40a844
push str.__UninstOperate_1
jmp 0x40a849
push str.__UninstOperate_0
call fcn.004028f9
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x40a85a
lea eax, [ebp + 0x20]
push eax
call fcn.0040b314
pop ecx
push edi
push ebx
lea ecx, [ebp - 0x28]
call fcn.004023bd
push edi
push ebx
lea ecx, [ebp + 0x1c]
call fcn.004023bd
push edi
push ebx
lea ecx, [ebp]
call fcn.004023bd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x240]
xor ecx, ebp
call fcn.004442cc
add ebp, 0x244
leave
ret 8
Function at 0x40b314
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x7a8]
sub esp, 0x828
mov eax, dword [0x4f43d8]
xor eax, ebp
mov dword [ebp + 0x7a4], eax
push esi
push edi
mov edi, dword [ebp + 0x7b0]
push 0x44
xor esi, esi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.00444860
push 0x10
lea eax, [ebp - 0x3c]
push esi
push eax
mov dword [ebp - 0x80], 0x44
call fcn.00444860
push edi
lea eax, [ebp - 0x2c]
push 0x4b24c8
push eax
call fcn.00444a15
add esp, 0x24
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40b398
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
mov ecx, dword [ebp + 0x7a4]
pop edi
xor ecx, ebp
pop esi
call fcn.004442cc
add ebp, 0x7a8
leave
ret

Function at 0x40b3af
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x7ac]
sub esp, 0x82c
mov eax, dword [0x4f43d8]
xor eax, ebp
mov dword [ebp + 0x7a8], eax
push esi
push edi
mov edi, dword [ebp + 0x7b4]
push 0x44
xor esi, esi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.00444860
push 0x10
lea eax, [ebp - 0x38]
push esi
push eax
mov dword [ebp - 0x80], 0x44
call fcn.00444860
push edi
lea eax, [ebp - 0x28]
push 0x4b24c8
push eax
call fcn.00444a15
add esp, 0x24
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40b44b
push 0xffffffffffffffff
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x34]
call esi
mov ecx, dword [ebp + 0x7a8]
pop edi
xor ecx, ebp
pop esi
call fcn.004442cc
add ebp, 0x7ac
leave
ret
Function at 0x40b554
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x5a8]
sub esp, 0x628
mov eax, dword [0x4f43d8]
xor eax, ebp
mov dword [ebp + 0x5a4], eax
mov eax, dword [ebp + 0x5b4]
push ebx
push esi
mov esi, dword [ebp + 0x5b0]
push edi
mov ebx, 0x206
xor edi, edi
push ebx
mov dword [ebp - 0x78], eax
lea eax, [ebp + 0x196]
push edi
push eax
mov dword [ebp - 0x80], esi
mov word [ebp + 0x194], di
call fcn.00444860
push ebx
lea eax, [ebp - 0x72]
push edi
push eax
mov word [ebp - 0x74], di
call fcn.00444860
lea eax, [ebp + 0x194]
push esi
push eax
call fcn.00444604
push dword [ebp - 0x78]
lea eax, [ebp - 0x74]
push eax
call fcn.00444604
lea eax, [ebp + 0x194]
push eax
call fcn.004447f5
lea eax, [ebp - 0x74]
push eax
call fcn.004447f5
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x194]
push eax
call fcn.004456bc
add esp, 0x38
test eax, eax
je 0x40b6bc
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x7c], edi
push ebx
lea eax, [ebp + 0x39e]
push edi
push eax
mov word [ebp + 0x39c], di
call fcn.00444860
add esp, 0xc
cmp dword [ebp - 0x7c], edi
lea eax, [ebp + 0x39c]
jne 0x40b637
push dword [ebp - 0x78]
push str._s.bak
push eax
call fcn.00444a15
add esp, 0xc
jmp 0x40b64b
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
push str._s.bak_d
push eax
call fcn.00444a15
add esp, 0x10
lea eax, [ebp + 0x39c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b669
lea eax, [ebp + 0x39c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp + 0x39c]
push eax
push dword [ebp - 0x78]
call fcn.004463ba
pop ecx
pop ecx
lea eax, [ebp + 0x39c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push dword [ebp - 0x78]
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 5
test eax, eax
push edi
lea eax, [ebp + 0x39c]
push eax
jne 0x40b6b2
call esi
cmp dword [ebp - 0x7c], 0xa
jge 0x40b6bc
inc dword [ebp - 0x7c]
jmp 0x40b601
call esi
push 5
push edi
push dword [ebp - 0x80]
call esi
mov ecx, dword [ebp + 0x5a4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004442cc
add ebp, 0x5a8
leave
ret