joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ee0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x43d180]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x54], ecx
push edi
push ecx
mov dword [ebp - 0x50], eax
xor ebx, ebx
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x5c], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
mov dword [ebp - 0x64], esi
test esi, esi
je 0x401f5b
push esi
call fcn.0041661c
add esp, 4
mov ebx, eax
push ebx
push esi
push edi
push dword [ebp - 0x54]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x60]
push eax
push 0x435ce4
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
push 0
push dword [ebp - 0x50]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
mov dword [ebp - 0x5c], esi
test esi, esi
je 0x401f9b
push esi
call fcn.0041661c
add esp, 4
mov edi, eax
push edi
push esi
push 0
push dword [ebp - 0x50]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x58]
push eax
push 0x435ce4
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
lea eax, [ebp - 0x28]
push eax
push 0
push dword [ebp - 0x54]
call esi
lea eax, [ebp - 0x4c]
push eax
push 0
push dword [ebp - 0x50]
call esi
mov edx, dword [ebp - 0x60]
test edx, edx
je 0x401ff1
mov ecx, dword [ebp - 0x58]
test ecx, ecx
je 0x401ff1
mov eax, dword [edx + 8]
cmp eax, dword [ecx + 8]
jne 0x401fed
mov eax, dword [edx + 0xc]
cmp eax, dword [ecx + 0xc]
jne 0x401fed
mov eax, dword [edx + 0x10]
cmp eax, dword [ecx + 0x10]
jne 0x401fed
mov eax, dword [edx + 0x14]
cmp eax, dword [ecx + 0x14]
jne 0x401fed
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x2c]
je 0x401ff1
xor esi, esi
jmp 0x401ff6
mov esi, 1
test ebx, ebx
je 0x402003
push ebx
call fcn.00416435
add esp, 4
test edi, edi
je 0x402010
push edi
call fcn.00416435
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416230
mov esp, ebp
pop ebp
ret 8

Function at 0x402080
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x43d180]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00417930
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00417930
push 1
lea eax, [ebp - 0x20c]
push eax
push str.doclink
call fcn.00405300
push str.p1
lea eax, [ebp - 0x20c]
push eax
push str._s_s
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00401280
add esp, 0x38
lea eax, [ebp - 0x414]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00416230
mov esp, ebp
pop ebp
ret
Function at 0x402130
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x43d180]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00417930
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00417930
push 1
lea eax, [ebp - 0x20c]
push eax
push str.doclink
call fcn.00405300
push str.p4
lea eax, [ebp - 0x20c]
push eax
push str._s_s
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00401280
add esp, 0x38
lea eax, [ebp - 0x414]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00416230
mov esp, ebp
pop ebp
ret

Function at 0x4021e0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x43d180]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x234], 0
push 0
push eax
mov dword [ebp - 0x230], 0
call fcn.00417930
push 1
call fcn.00405460
push 1
push 0x32
push 0xff7018c3
push 0
call fcn.00405290
add esp, 0x20
call fcn.004052f0
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40225f
mov eax, 6
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416230
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x402339
push esi
jmp 0x402290
push dword [ebp - 0x228]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push 0xc
lea eax, [ebp - 0x20c]
push eax
push str.iexplore.exe
call fcn.0041646d
add esp, 0xc
test eax, eax
je 0x402314
push 0xb
lea eax, [ebp - 0x20c]
push eax
push str.firefox.exe
call fcn.0041646d
add esp, 0xc
test eax, eax
je 0x402314
push 0xe
lea eax, [ebp - 0x20c]
push eax
push str.gidoskhlpr.exe
call fcn.0041646d
add esp, 0xc
test eax, eax
je 0x402314
push 8
lea eax, [ebp - 0x20c]
push eax
push str.gidd.exe
call fcn.0041646d
add esp, 0xc
test eax, eax
jne 0x40231d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebx
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x402290
pop esi
jmp 0x402345
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x234], eax
push edi
call ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x234]
xor ecx, ebp
pop ebx
pop edi
call fcn.00416230
mov esp, ebp
pop ebp
ret
Function at 0x402360
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x43d180]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea ecx, [ebp - 0x414]
mov dword [ebp - 0x620], 0
mov esi, str.SYSTEMCurrentControlSetServicesEventLogApplicationGIDTB
mov dword [ebp - 0x624], 3
mov eax, ecx
mov edx, 0x104
sub esi, eax
lea esp, [esp]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x4023be
movzx eax, word [esi + ecx]
test ax, ax
je 0x4023be
mov word [ecx], ax
add ecx, 2
dec edx
jne 0x4023a0
jmp 0x4023c2
test edx, edx
jne 0x4023c5
sub ecx, 2
xor eax, eax
mov word [ecx], ax
mov dword [ebp - 0x62c], eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x620]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x414]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea ecx, [ebp - 0x61c]
call fcn.00401360
lea eax, [ebp - 0x61c]
push eax
push str._seventsevents.dll
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00401280
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402431
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 2
push 0
push str.EventMessageFile
push dword [ebp - 0x620]
call esi
push 4
lea eax, [ebp - 0x628]
mov dword [ebp - 0x628], 7
push eax
push 4
push 0
push str.TypesSupported
push dword [ebp - 0x620]
call esi
cmp dword [ebp - 0x624], 0
jbe 0x4024e9
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4024a0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 2
push 0
push str.CategoryMessageFile
push dword [ebp - 0x620]
call esi
push 4
lea eax, [ebp - 0x624]
push eax
push 4
push 0
push str.CategoryCount
push dword [ebp - 0x620]
call esi
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00416230
mov esp, ebp
pop ebp
ret
Function at 0x402940
Capabilities:
Check if file exists
Check os version
Delete file
Link many functions at runtime
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x52c
mov eax, dword [0x43d180]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00417930
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00417930
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
add esp, 0x18
push str.Wow64DisableWow64FsRedirection
push str.kernel32
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4029b4
lea ecx, [ebp - 0x52c]
push ecx
call eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, 0x43e468
push esi
push 0x4413a0
push str._s_s
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00401280
push str..remove
push esi
push 0x4413a0
push str._s_s_s
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00401280
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004169b3
add esp, 0x34
cmp eax, 0xffffffff
je 0x402a41
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x402a41
push 1
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call edi
test eax, eax
je 0x402a41
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
call edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
add esi, 0x64
cmp esi, 0x43e97c
jl 0x4029c0
mov edi, dword [ebp - 0x52c]
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
test eax, eax
je 0x402a7a
push edi
call eax
push 0x114
lea eax, [ebp - 0x528]
push 0
push eax
call fcn.00417930
add esp, 0xc
mov dword [ebp - 0x528], 0x114
lea eax, [ebp - 0x528]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x524], 5
pop edi
jbe 0x402b4d
push str.RegDeleteKeyExW
push str.Advapi32
call ebx
push eax
call esi
test eax, eax
je 0x402adb
push 0
push 0x100
push str.SOFTWAREMicrosoftWindowsCurrentVersionAuthenticationCredential_Providers32D9BAC2_F66B_4454_8164_04D6D0C4363C
push reloc.OLEAUT32.dll_SysReAllocString
call eax
push str.RegDeleteKeyExW
push str.Advapi32
call ebx
push eax
call esi
test eax, eax
je 0x402b01
push 0
push 0x100
push str.CLSID32D9BAC2_F66B_4454_8164_04D6D0C4363CInprocServer32
push SysReAllocString
call eax
push str.RegDeleteKeyExW
push str.Advapi32
call ebx
push eax
call esi
test eax, eax
je 0x402b27
push 0
push 0x100
push str.CLSID32D9BAC2_F66B_4454_8164_04D6D0C4363C
push SysReAllocString
call eax
push str.RegDeleteKeyExW
push str.Advapi32
call ebx
push eax
call esi
test eax, eax
je 0x402b4d
push 0
push 0x100
push str.SOFTWAREMicrosoftInternet_ExplorerLow_RightsElevationPolicyF47A7273_2494_4fb6_BF9D_E1971FE089D2
push reloc.OLEAUT32.dll_SysReAllocString
call eax
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.00416230
mov esp, ebp
pop ebp
ret
Function at 0x405670
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x43d180]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
lea eax, [ebp - 0x118]
mov dword [ebp - 0x11c], 0
push 0
push eax
call fcn.00417930
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 5
jbe 0x405729
push str.ieframe.dll
mov dword [ebp - 0x120], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.IEGetWriteableHKCU
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405740
lea ecx, [ebp - 0x120]
push ecx
call eax
lea eax, [ebp - 0x11c]
push eax
push 0x42d504
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416230
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x11c]
push eax
push 0x42d504
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x11c]
xor ecx, ebp
call fcn.00416230
mov esp, ebp
pop ebp
ret
Function at 0x405b40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x43d180]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push 0x30
push 0
push esi
call fcn.00417930
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
mov ebx, 0x30
call fcn.00417930
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x405ba4
cmp dword [ebp - 0x114], 6
jae 0x405ba9
mov ebx, 0x2c
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], ebx
test eax, eax
jne 0x405bcb
push edi
call dword [sym.imp.USER32.dll_GetParent]
or dword [esi + 4], 1
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
jmp 0x405bd1
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x405be1
movdqu xmm0, xmmword [eax]
movdqu xmmword [esi + 0x10], xmm0
mov eax, dword [0x440914]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x20], eax
xor ecx, ebp
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x1c]
pop edi
mov dword [esi + 0x28], eax
pop esi
pop ebx
call fcn.00416230
mov esp, ebp
pop ebp
ret 0x18

Function at 0x405c10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa38
mov eax, dword [0x43d180]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xa34]
mov dword [ebp - 0xa30], 0x1000
push eax
push 1
push 0
push 0x42d520
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xa38], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0xa30]
push eax
push 0
push 0
push 0x42d928
push dword [ebp - 0xa34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xa34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xa30]
xor ecx, ecx
and eax, 0xff000
cmp eax, 0xa000
jg 0x405cdc
je 0x405cd5
cmp eax, 0x4000
jg 0x405cb9
je 0x405cb2
test eax, eax
je 0x405d16
cmp eax, 0x1000
je 0x405d16
cmp eax, 0x2000
jne 0x405d2a
push 0x42d958
jmp 0x405d22
cmp eax, 0x8000
je 0x405cce
cmp eax, 0x9000
jne 0x405d2a
push 0x42d988
jmp 0x405d22
push 0x42d970
jmp 0x405d22
push 0x42d9a0
jmp 0x405d22
cmp eax, 0xd000
jg 0x405d08
je 0x405d01
cmp eax, 0xb000
je 0x405cfa
cmp eax, 0xc000
jne 0x405d2a
push 0x42d9d0
jmp 0x405d22
push 0x42d9b8
jmp 0x405d22
push 0x42d9e8
jmp 0x405d22
cmp eax, 0xe000
je 0x405d1d
cmp eax, 0xf000
jne 0x405d2a
push 0x42d940
jmp 0x405d22
push str.GIDBIN11.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416230
mov esp, ebp
pop ebp
ret
Function at 0x405db0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov bl, 1
mov ecx, dword [edi + 0x54]
mov eax, ecx
and eax, 0xc
cmp al, 0xc
jne 0x405e09
mov eax, dword [edi + 4]
mov esi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0xc], eax
call esi
push dword [edi + 4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0xfffffffe
call esi
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0xc]
push ecx
push esi
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
shr ecx, 2
test cl, 1
je 0x405e41
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [edi + 4]
movzx ecx, si
push ecx
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push 0
push 0
push dword [edi + 0x28]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta bl
test bl, bl
je 0x405e72
or byte [edi + 0x58], 2
push 1
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406d30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406da1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x406d6f
cmp eax, 2
jne 0x406d8b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x406d9b
test ecx, ecx
je 0x406d96
test cl, 1
jne 0x406d8b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x406d9b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x407060
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c4c6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x43d180]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x40710c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x40710c
call fcn.00403e10
mov esi, eax
jmp 0x4071fc
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40712f
call fcn.00403e10
jmp 0x4071ef
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
test ebx, ebx
jne 0x40714d
call fcn.00403e10
jmp 0x4071ef
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x40716e
mov esi, 0x8007000e
jmp 0x4071f1
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00403bf0
jmp 0x407198
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x4071af
mov esi, 0x8007000e
jmp 0x4071f1
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4071cf
call fcn.00403e10
jmp 0x4071ef
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00406f00
mov esi, eax
test edi, edi
je 0x4071fc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x407220
lea ecx, [ebp - 0x418]
call fcn.00404d40
jmp 0x407220
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00416230
mov esp, ebp
pop ebp
ret 0x10
Function at 0x407c80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x407c99
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407ca5
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x407ca0
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x407ce0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x407cf5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x407d00
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407d00
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x408870
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c598
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x43d180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
call fcn.0040e000
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 1
push 0
push 0x42dcb8
lea esi, [edi + 0x3cb0]
mov dword [ebp - 0x14], 4
mov dword [esi], 0x1000
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x14]
push eax
push esi
push 0
push 0
push 0x42d928
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
push 0
mov ecx, edi
call fcn.00410d10
push 0x104
lea eax, [edi + 0x4aec]
push 0
push eax
call fcn.00417930
add esp, 0xc
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408940
Capabilities:
Check os version
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x93c
mov eax, dword [0x43d180]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
lea eax, [ebp - 0x938]
push 0
push eax
call fcn.00417930
add esp, 0xc
mov dword [ebp - 0x938], 0x114
lea eax, [ebp - 0x938]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x934], 5
jbe 0x408a73
push esi
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call fcn.00417930
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00417930
push str.USERPROFILE
push 0
lea eax, [ebp - 0x93c]
push 0
push eax
call fcn.00416749
mov eax, dword [ebp - 0x93c]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00417498
mov esi, eax
add esp, 0x2c
test esi, esi
je 0x408a72
push str.USERPROFILE
push dword [ebp - 0x93c]
lea eax, [ebp - 0x93c]
push esi
push eax
call fcn.00416749
movzx eax, word [esi]
push eax
push esi
push str._sAppDataLocalMicrosoftWindowsTemporary_Internet_FilesVirtualized_cProgramDataGID_act.ws
lea eax, [ebp - 0x824]
push 0x208
push eax
call fcn.00401280
movzx eax, word [esi]
push eax
push esi
push str._sAppDataLocalMicrosoftWindowsTemporary_Internet_FilesVirtualized_cProgramDataGID
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.00401280
add esp, 0x38
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
call fcn.004174a1
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416230
mov esp, ebp
pop ebp
ret