joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010eb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401141
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401141
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x401133
cmp esi, ecx
jae 0x401141
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x401121
cmp esi, ecx
jae 0x401141
cmp word [esi], 0
je 0x401141
mov eax, esi
jmp 0x401143
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x401645
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor eax, eax
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
call fcn.00401224
push eax
lea ecx, [ebp - 8]
call fcn.00402e01
push str.installsource
lea eax, [ebp - 8]
push 0x41fe50
push eax
call fcn.0040150a
mov esi, dword [ebp - 8]
xor edi, edi
inc edi
add esp, 0xc
cmp dword [ebp - 4], edi
jle 0x4016d1
push esi
push dword [ebx + edi*4]
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x4016c3
mov ecx, dword [ebp - 4]
lea eax, [edi + 1]
cmp eax, ecx
jge 0x4016c6
push str.windowsupdate
push dword [ebx + edi*4 + 4]
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x4016cd
mov ecx, dword [ebp - 4]
inc edi
cmp edi, ecx
jl 0x401698
jmp 0x4016d1
mov byte [ebp - 0xc], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esi - 0x10]
call fcn.0040120c
mov al, byte [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401a50
Capabilities:
Delete directory
Delete file

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x18], esi
je 0x401a77
test esi, esi
js 0x401a93
cmp esi, dword [edi + 0x18]
jge 0x401a93
mov eax, dword [edi + 0x14]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, dword [edi + 0x18]
jne 0x401a5c
lea ecx, [edi + 0x14]
call fcn.00402860
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [edi + 0x20]
pop edi
pop esi
pop ebx
jmp fcn.00402aed
push 1
push 0xc000008c
call fcn.00401052
int3
Function at 0x401c62
Capabilities:
Get common file path
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x41e96c
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jns 0x401c87
xor al, al
jmp 0x401cbb
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x401ca0
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0xc], ebx
ja 0x401cb7
cmp dword [ebp - 0x10], 0x40000000
jb 0x401cb9
mov bl, 1
mov al, bl
pop ebx
leave
ret

Function at 0x401cbe
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 8], ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401ceb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401ceb
xor al, al
jmp 0x401d5f
call fcn.00401224
push eax
lea ecx, [ebp + 8]
call fcn.00402e01
push 0x104
lea ecx, [ebp + 8]
call fcn.00402ab1
push eax
push ebx
push 0x420080
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov esi, eax
lea ecx, [ebp + 8]
push 0xffffffffffffffff
mov dword [ebp - 4], esi
call fcn.00402a85
test esi, esi
mov esi, dword [ebp + 8]
je 0x401d55
cmp dword [ebp - 4], 0x6f
je 0x401d55
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x401d55
mov ecx, dword [ebp - 8]
lea eax, [ebp + 8]
push eax
add ecx, 0x20
call fcn.004029d3
mov bl, 1
lea ecx, [esi - 0x10]
call fcn.0040120c
mov al, bl
pop esi
pop ebx
leave
ret 4

Function at 0x401d65
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x401d7d
xor al, al
jmp 0x401e34
push ebx
push esi
call fcn.00401224
push eax
lea ecx, [ebp - 4]
call fcn.00402e01
push 0x104
lea ecx, [ebp - 4]
call fcn.00402ab1
push eax
xor ebx, ebx
push ebx
push ebx
push 0x8026
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
mov esi, eax
call fcn.00402a85
test esi, esi
mov esi, dword [ebp - 4]
js 0x401e28
push esi
lea ecx, [ebp - 4]
call fcn.00402a53
push 0x41fd38
lea ecx, [ebp - 4]
call fcn.0040281e
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401def
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401e1d
push str.Temp
lea ecx, [ebp - 4]
call fcn.0040281e
lea eax, [ebp - 4]
mov ecx, edi
push eax
call fcn.00401cbe
test al, al
je 0x401e1d
lea eax, [ebp - 4]
push eax
lea ecx, [edi + 0x24]
call fcn.004029d3
mov byte [edi + 0x28], 1
mov bl, 1
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.0040120c
lea ecx, [esi - 0x10]
call fcn.0040120c
pop esi
mov al, bl
pop ebx
pop edi
leave
ret
Function at 0x401e37
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.00401224
push eax
lea ecx, [ebp - 4]
call fcn.00402e01
mov ebx, 0x104
lea ecx, [ebp - 4]
push ebx
call fcn.00402ab1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
mov edi, eax
call fcn.00402a85
test edi, edi
je 0x401e9b
cmp edi, ebx
jae 0x401e9b
lea eax, [ebp - 4]
mov ecx, esi
push eax
call fcn.00401cbe
test al, al
je 0x401e9b
lea eax, [ebp - 4]
push eax
lea ecx, [esi + 0x24]
call fcn.004029d3
mov byte [esi + 0x28], 0
mov bl, 1
jmp 0x401e9d
xor bl, bl
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.0040120c
pop edi
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x401f17
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x423018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x210]
push edi
push eax
mov esi, ecx
call fcn.00407aa0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push edi
push 0x41fe9c
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x401fae
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], edi
push eax
push edi
push 1
push 0x100
push 0x4000002
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_SHCreateStreamOnFileEx]
test eax, eax
js 0x401fae
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x401fb0
push eax
call fcn.00401eaf
test al, al
mov eax, dword [ebp - 0x214]
jne 0x401fb0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
jmp 0x401fb0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00407597
leave
ret

Function at 0x402517
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push esi
xor esi, esi
push esi
push eax
push esi
push 3
push esi
push esi
push esi
push 0x41feb0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40259e
push ebx
push edi
push 4
pop edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], edi
push eax
lea eax, [ebp - 4]
mov ebx, str.WindowsUpdateAttempts
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402571
cmp dword [ebp - 0x10], edi
jne 0x402571
mov eax, dword [ebp - 4]
jmp 0x402576
mov eax, esi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jae 0x40257f
inc eax
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 4]
mov dword [ebp - 0xc], edi
push eax
push edi
push esi
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4025a1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x423018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.00407aa0
add esp, 0xc
lea eax, [ebp - 0x210]
mov esi, 0x104
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x402699
cmp eax, esi
jae 0x402699
lea eax, [ebp - 0x210]
mov dword [ebp - 0x21c], edi
push eax
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x218], edi
call fcn.00403af0
test eax, eax
je 0x40268d
push ecx
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00403b89
mov esi, dword [ebp - 0x220]
cmp dword [esi - 0xc], edi
je 0x402685
cmp dword [esi - 0xc], 7
jl 0x402685
push edi
lea eax, [ebp - 0x214]
push eax
push edi
push 3
push edi
push edi
push edi
push 0x41feb0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402685
mov eax, dword [esi - 0xc]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push edi
push str.WindowsUpdateVersion
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esi - 0x10]
call fcn.0040120c
push dword [ebp - 0x21c]
call fcn.00417d7e
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00407597
leave
ret
Function at 0x4026a7
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
push edi
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4026d5
push 0x800
call eax
call fcn.00401645
mov bl, al
mov byte [esp + 0x10], bl
test bl, bl
je 0x4026ee
call fcn.00402517
call fcn.004025a1
push dword [esp + 0x10]
xor edx, edx
mov ecx, str.WUInstallTimeout
test bl, bl
sete dl
dec edx
and edx, 0xffcda560
add edx, 0x36ee80
call fcn.004031b1
push eax
lea ecx, [esp + 0x1c]
call fcn.004031f6
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov edi, eax
test edi, edi
jns 0x40272e
mov ecx, edi
jmp 0x40273e
push ecx
call fcn.00401466
pop ecx
test al, al
jne 0x402747
mov ecx, 0x80040703
call fcn.00402464
mov esi, eax
jmp 0x4027b1
push dword [ebp + 0x10]
lea ecx, [esp + 0x30]
push dword [ebp + 8]
call fcn.004016e8
lea ecx, [esp + 0x2c]
call fcn.0040178b
mov esi, eax
test bl, bl
je 0x4027a8
lea eax, [esi + 0x7ffbf6f3]
neg eax
sbb eax, eax
and esi, eax
jne 0x4027a8
lea eax, [esp + 0x10]
push eax
push 2
push esi
push 0x41feb0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4027a8
push str.WindowsUpdateAttempts
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x2c]
call fcn.00401745
cmp edi, 0x800401f0
je 0x4027c3
test edi, edi
js 0x4027c3
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [esp + 0x1c], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x402806
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [esp + 0x20], 0
je 0x4027fb
push 0x3e8
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x20]
call edi
and dword [esp + 0x20], 0
push dword [esp + 0x1c]
call edi
and dword [esp + 0x1c], 0
cmp dword [esp + 0x28], 0
je 0x402813
push dword [esp + 0x28]
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4031f6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x1c
mov edx, 0x41eb0
push ebx
push esi
mov esi, ecx
mov ecx, str.WUUpdateCheckTimeout
push edi
mov dword [esi], eax
call fcn.004031b1
mov bl, byte [ebp + 0xc]
xor edi, edi
push edi
push 1
push edi
mov dword [esi + 4], eax
mov dword [esi + 0xc], edi
mov byte [esi + 0x10], bl
mov byte [esi + 0x11], 1
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 8], eax
test eax, eax
je 0x40324e
lea eax, [ebp + 0xc]
push eax
push edi
push esi
push 0x4032b0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xc], eax
test bl, bl
je 0x4032a7
call fcn.00401224
push eax
lea ecx, [ebp - 0x18]
call fcn.00402e01
xor ebx, ebx
lea edx, [ebp - 0x18]
mov edi, 0x420560
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.00404eab
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push ebx
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea ecx, [ebp - 8]
mov dword [esi + 0x14], eax
mov dword [ebp - 8], edi
call fcn.004030ec
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.0040120c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x403372
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, ecx
call fcn.00403401
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x4033f9
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
je 0x4033f2
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esi + 0xc], edx
test edx, edx
je 0x4033f2
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
push 0x1c
lea ecx, [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4033f2
mov ecx, dword [ebp - 0x10]
mov al, 1
mov dword [esi + 0x10], ecx
jmp 0x4033fb
mov ecx, esi
call fcn.00403401
xor al, al
pop edi
pop esi
leave
ret 4

Function at 0x4036e4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ecx + 0x10]
push edi
cmp esi, 0x40
jb 0x403742
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x403742
mov edx, dword [ecx + 0x3c]
lea eax, [edx + 0xf8]
cmp esi, eax
jb 0x403742
cmp dword [edx + ecx], 0x4550
jne 0x403742
movzx eax, word [edx + ecx + 4]
mov edi, 0x14c
cmp ax, di
je 0x40372d
mov edi, 0x8664
cmp ax, di
je 0x403742
lea eax, [ecx + 0x98]
add eax, edx
mov ecx, dword [eax]
test ecx, ecx
je 0x403742
add ecx, 0xc
cmp esi, ecx
jae 0x403744
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x403a1f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov ecx, dword [ecx]
push ebx
push esi
push edi
sub ecx, 0x10
mov dword [ebp - 8], edx
call fcn.00402e2a
push 0x44
xor ebx, ebx
push ebx
lea esi, [eax + 0x10]
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], esi
push eax
call fcn.00407aa0
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
or dword [ebp - 0x30], 0x81
xor eax, eax
inc eax
mov word [ebp - 0x2c], ax
cmp dword [esi - 4], eax
jle 0x403a80
push dword [esi - 0xc]
lea ecx, [ebp - 4]
call fcn.00402f80
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0x400
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x403aab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x403ae1
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 8]
test eax, eax
je 0x403ace
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne bl
jmp 0x403ad1
xor ebx, ebx
inc ebx
push dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x14]
call edi
lea ecx, [esi - 0x10]
call fcn.0040120c
pop edi
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x403fb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push ebx
push edi
push eax
push 1
xor ebx, ebx
mov edi, ecx
push ebx
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404023
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 4
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push ebx
push dword [ebp + 0xc]
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 0x404023
cmp dword [ebp - 8], 4
jne 0x404023
cmp dword [ebp - 0xc], 4
ja 0x404023
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
mov byte [edi + 4], 1
jmp 0x404028
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov eax, edi
pop edi
pop ebx
leave
ret
Function at 0x6154a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x140000]
push edi
or ebp, 0xffffffff
jmp 0x6154c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6154c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6154b8
mov eax, 1
add ebx, ebx
jne 0x6154db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6154ec
jne 0x61550b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x61550b
dec eax
add ebx, ebx
jne 0x6154f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6154d0
add ebx, ebx
jne 0x615507
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x61555d
xor ecx, ecx
sub eax, 3
jb 0x615523
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x615592
sar eax, 1
mov ebp, eax
jmp 0x61552e
add ebx, ebx
jne 0x61552e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6154fc
inc ecx
add ebx, ebx
jne 0x61553c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6154fc
add ebx, ebx
jne 0x615549
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x61553e
jne 0x61555a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x61553e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x61557c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x61556e
jmp 0x6154be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x61557c
add edi, ecx
jmp 0x6154be
pop esi
mov edi, esi
mov ecx, 0x8702
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x61559a
cmp byte [edi], 0x21
jne 0x61559a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x61559f
lea edi, [esi + 0x20f000]
mov eax, dword [edi]
or eax, eax
je 0x615617
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2194a0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x219578]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6155cc
mov ecx, edi
jns 0x6155fb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x219580]
or eax, eax
je 0x615611
mov dword [ebx], eax
add ebx, 4
jmp 0x6155e9
call dword [esi + 0x21957c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x615648
cmp al, 0xef
ja 0x61563b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x61561d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x61562a
mov ebp, dword [esi + 0x219584]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x61567c
sub esp, 0xffffff80
jmp 0x52e985
Function at 0x10005720
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x20]
mov dword [ecx], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [esi], eax
mov ecx, dword [ecx]
cmp ecx, dword [ebp + 0x10]
je 0x1000587f
mov eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0x1c]
xor ebx, ebx
inc ebx
mov edi, 0x3ff
mov ecx, eax
cmp dword [esi], edx
je 0x1000587f
mov edx, dword [ebp + 8]
movzx ecx, word [eax]
mov eax, ecx
mov byte [ebp - 1], 0
movzx edx, word [edx]
cmp bx, dx
jae 0x1000579f
lea eax, [ecx + 0x2400]
cmp ax, di
ja 0x1000588e
mov eax, edx
lea ebx, [ecx - 0xdc00]
shl eax, 0xa
or ebx, eax
mov cl, byte [ebp - 1]
cmp ebx, 0x80
jae 0x100057bc
mov dl, bl
xor edi, edi
jmp 0x100057ec
mov ebx, eax
lea eax, [ecx + 0x2800]
cmp ax, di
ja 0x1000578e
add ebx, 0xffff2840
mov cl, 1
shl ebx, 0xa
mov byte [ebp - 1], cl
jmp 0x10005791
mov edx, ebx
cmp ebx, 0x800
jae 0x100057d1
shr edx, 6
xor edi, edi
or dl, 0xc0
inc edi
jmp 0x100057ec
cmp ebx, 0x10000
jae 0x100057e3
shr edx, 0xc
or dl, 0xe0
push 2
jmp 0x100057eb
shr edx, 0x12
or dl, 0xf0
push 3
pop edi
movzx eax, cl
mov ecx, dword [ebp - 0xc]
xor eax, 1
add eax, eax
cmp edi, 3
cmovb eax, edi
mov dword [ebp - 0x10], eax
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x1c]
sub eax, dword [esi]
cmp eax, dword [ebp - 8]
jl 0x1000587f
mov eax, ecx
mov ecx, dword [ebp + 0x14]
add eax, 2
cmp byte [ebp - 1], 0
mov dword [ecx], eax
jne 0x10005823
cmp edi, 3
jae 0x1000582e
mov eax, dword [esi]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [ebp - 0x10]
jmp 0x10005831
mov eax, dword [ebp - 8]
test eax, eax
je 0x10005856
imul ecx, edi, 6
sub ecx, 6
mov edx, ebx
dec eax
shr edx, cl
mov dword [ebp - 8], eax
and dl, 0x3f
mov eax, dword [esi]
or dl, 0x80
mov byte [eax], dl
inc dword [esi]
mov eax, dword [ebp - 8]
test eax, eax
jg 0x10005838
xor ecx, ecx
shr ebx, 0xa
inc ecx
movzx eax, bx
cmp byte [ebp - 1], 0
cmovne ecx, eax
mov eax, dword [ebp + 8]
mov word [eax], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov eax, ecx
mov dword [ebp - 0xc], eax
cmp ecx, dword [ebp + 0x10]
jne 0x10005749
xor eax, eax
cmp dword [ebp + 0xc], ecx
sete al
pop edi
pop esi
pop ebx
leave
ret 0x1c
push 2
pop eax
jmp 0x10005887

Function at 0x1000b110
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
cmp eax, 0x1a
jl 0x1000b168
mov eax, dword [esi + 8]
cmp eax, dword [esi]
jl 0x1000b168
push 0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
push 0x10
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi]
push eax
push dword [esi + 4]
push dword [esi]
push 0
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, edi
call fcn.100076b0
push 1
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
ret 4