joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4069c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x468
mov eax, dword [0x43700c]
xor eax, esp
mov dword [esp + 0x464], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [esp + 0xc], eax
test edi, edi
jne 0x406a04
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x464]
xor ecx, esp
call fcn.0040d41a
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esi + 8], 0
jne 0x406a13
call fcn.00406be0
test eax, eax
je 0x4069ec
cmp dword [esi], 0
je 0x4069ec
cmp dword [ebp + 0x10], 0
je 0x406a27
xor dword [esi + 4], 0x8000000
jmp 0x406a2e
or dword [esi + 4], 0x8000000
push 0x44
lea eax, [esp + 0x24]
push 0
push eax
call fcn.0040fa30
add esp, 0xc
mov dword [esp + 0x20], 0x44
lea eax, [esp + 0x68]
mov dword [esp + 0x28], str.winsta0default
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
push 0x400
push 0
push eax
call fcn.0040fa30
add esp, 0xc
lea eax, [esp + 0x68]
push dword [esp + 0xc]
push edi
push str._s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push dword [esi + 8]
lea eax, [esp + 0x78]
push dword [esi + 4]
push 0
push 0
push 0
push eax
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x406aba
test eax, eax
jne 0x406abf
mov edi, 1
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x406ad0
push eax
call esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x406adb
push eax
call esi
mov ecx, dword [esp + 0x46c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0040d41a
mov esp, ebp
pop ebp
ret 0xc

Function at 0x406b00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406b40
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d41a
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x406bad
mov edi, dword [ebp + 0xc]
nop
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00410ac9
add esp, 8
test eax, eax
jne 0x406b99
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x406b99
cmp dword [ebp - 0x234], edi
je 0x406bc9
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x406b60
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d41a
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp - 0x228]
jmp 0x406bad
Function at 0x406be0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426318
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x43700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.WTSGetActiveConsoleSessionId
push 0x432bac
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.WTSQueryUserToken
push str.Wtsapi32.dll
mov dword [ebp - 0x10], eax
call edi
push eax
call esi
mov esi, eax
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x406c62
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x406c4e
call eax
mov edi, eax
mov dword [ebx + 4], 0x20
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], 0
push eax
push edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
call esi
test eax, eax
jne 0x406d2a
push 0x432be0
lea ecx, [ebp - 0x10]
call fcn.00406430
push 4
push str.lore
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00406df0
push 3
push 0x432bf4
lea ecx, [ebp - 0x10]
call fcn.00406df0
push 2
push 0x432bfc
lea ecx, [ebp - 0x10]
call fcn.00406df0
push edi
push dword [ebp - 0x10]
call fcn.00406b00
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push 0xf00ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406d39
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x406d39
mov eax, dword [ebp - 0x18]
xor edi, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
push 0x13
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x406d59
mov eax, dword [ebp - 0x1c]
mov dword [ebx], eax
jmp 0x406d7f
lea eax, [ebp - 0x28]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push ebx
push 1
push 1
push 0
push 0x2000000
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov eax, dword [ebx]
test eax, eax
je 0x406da4
push 1
push eax
lea eax, [ebx + 8]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x406da4
or dword [ebx + 4], 0x400
mov ebx, 1
jmp 0x406dad
mov dword [ebx + 8], 0
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x406dba
push edi
call esi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x406dc4
push eax
call esi
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x406dce
push ecx
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x141416f0
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..rdata
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x185b4081
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x40160a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, ebx
je 0x401697
cmp dword [esi + 8], ebx
je 0x401697
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 8], SysReAllocString
call fcn.004014e3
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 4]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401697
cmp dword [ebp - 4], ebx
je 0x401697
cmp dword [esi + 0x14], 1
jne 0x401665
push 4
lea eax, [esi + 0x10]
push eax
push 4
jmp 0x401679
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x40168e
push eax
call fcn.00429210
pop ecx
push eax
push dword [esi + 0xc]
push 1
push ebx
push dword [esi + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x402155
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc78
mov eax, dword [0x44a750]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, 0x400
push eax
lea ecx, [ebp - 0xc6c]
push ecx
lea ecx, [ebp - 0xc74]
push ecx
lea ecx, [ebp - 0xc78]
push ecx
lea ecx, [ebp - 0xc70]
push ecx
push eax
lea eax, [ebp - 0x86c]
push eax
push 0x43c6f8
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
xor esi, esi
test eax, eax
jne 0x4021aa
mov dword [ebp - 0xc70], esi
push str.wrapper
push dword [ebp - 0xc70]
lea eax, [ebp - 0x46c]
push str.game
push str._s_lu_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.004179dc
lea eax, [ebp - 0x46c]
push eax
call fcn.00429210
push eax
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00417a22
lea eax, [ebp - 0x6c]
push eax
call fcn.00417aa8
mov edi, dword [ebp + 8]
push str.xxxx_xxxx_xxxx_xxxx
push edi
call fcn.00429600
push str.ACDEFHJKMNPRSTWXYZ2345679
call fcn.00429210
add esp, 0x3c
mov ebx, eax
lea ecx, [ebp - 0x14]
cmp esi, 4
je 0x40223c
cmp esi, 9
je 0x40223c
cmp esi, 0xe
je 0x40223c
movzx eax, byte [ecx]
xor edx, edx
div ebx
inc ecx
mov al, byte [edx + str.ACDEFHJKMNPRSTWXYZ2345679]
mov byte [esi + edi], al
inc esi
cmp esi, 0x13
jb 0x40221c
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0042954e
leave
ret

Function at 0x402e50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
cmp ebx, esi
push edi
mov edi, dword [ebp + 8]
mov ecx, ebx
jae 0x402e7a
xor edx, edx
mov eax, ecx
div dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov al, byte [edx + eax]
xor byte [ecx + edi], al
inc ecx
cmp ecx, esi
jb 0x402e65
push dword [ebp + 0x1c]
sub esi, ebx
push esi
add edi, ebx
push edi
call fcn.004025a8
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x402e90
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0xb0]
sub esp, 0x130
mov eax, dword [0x44a750]
push ebx
push 0
push 2
mov dword [ebp + 0xac], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402f3e
push edi
push 0x49
pop ecx
xor eax, eax
lea edi, [ebp - 0x78]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x7c]
push eax
push ebx
mov dword [ebp - 0x7c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x402f3a
push esi
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0xb8]
call fcn.00429edd
test eax, eax
pop ecx
pop ecx
jne 0x402f2b
push dword [ebp - 0x74]
push eax
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x80], 0x103
jne 0x402f28
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call edi
lea eax, [ebp - 0x7c]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402ee5
pop esi
push ebx
call edi
pop edi
mov ecx, dword [ebp + 0xac]
pop ebx
call fcn.0042954e
add ebp, 0xb0
leave
ret

Function at 0x40316a
Capabilities:
Set current directory
Terminate process

Disassembly:
mov eax, dword [0x546160]
test eax, eax
je 0x40317a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 4], 0
je 0x40318f
push 1
push 0x545640
call fcn.00413d6c
pop ecx
pop ecx
mov ecx, dword [0x54615c]
test ecx, ecx
push esi
mov esi, ecx
je 0x4031a8
call fcn.00416698
push esi
call fcn.004291cb
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4031b1
Capabilities:
Create process on windows
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x4dc]
sub esp, 0x55c
mov eax, dword [0x44a750]
push ebx
push esi
push edi
push 0x44
pop esi
push esi
mov dword [ebp + 0x4d8], eax
xor ebx, ebx
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00428c80
push 0x10
lea eax, [ebp - 0x3c]
push ebx
push eax
mov dword [ebp - 0x80], esi
call fcn.00428c80
mov esi, 0x545748
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.00429600
push dword [0x546204]
lea eax, [ebp - 0x2c]
push eax
call fcn.00429610
add esp, 0x28
cmp dword [ebp + 0x4e4], ebx
mov edi, 0x43c778
je 0x403246
push dword [ebp + 0x4e4]
call fcn.00429210
test eax, eax
pop ecx
jbe 0x403246
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.00429610
push dword [ebp + 0x4e4]
lea eax, [ebp - 0x2c]
push eax
call fcn.00429610
add esp, 0x10
push dword [0x54620c]
call fcn.00429210
test eax, eax
pop ecx
jbe 0x403272
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.00429610
push dword [0x54620c]
lea eax, [ebp - 0x2c]
push eax
call fcn.00429610
add esp, 0x10
lea eax, [ebp + 0x3d4]
push esi
push eax
call fcn.00429600
push dword [0x546204]
lea eax, [ebp + 0x3d4]
push eax
call fcn.00429610
lea eax, [ebp + 0x3d4]
push 0x5c
push eax
call fcn.00429eb0
add esp, 0x18
cmp eax, ebx
je 0x4032b6
mov byte [eax + 1], bl
lea eax, [ebp + 0x3d4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push ebx
push dword [0x546164]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xbb8
push dword [ebp - 0x3c]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push 1
call fcn.0040316a
int3
Function at 0x409f4c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x43a968
call fcn.004291ac
sub esp, 0x420
mov eax, dword [0x44a750]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
call dword [0x4490b4]
xor ebx, ebx
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x420], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], esi
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
cmp dword [ebp + 8], ebx
mov byte [ebp - 4], 1
je 0x409ff3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov edi, 0x400
cmp esi, edi
jg 0x409fd3
push esi
call fcn.0040169d
test al, al
pop ecx
je 0x409fd3
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.004294e0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x409fdf
push esi
lea ecx, [ebp - 0x420]
call fcn.0040599b
push dword [ebp - 0x41c]
push esi
push dword [ebp + 8]
push eax
call fcn.004017f2
cmp eax, ebx
jne 0x40a016
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40a00c
lea ecx, [ebp - 0x418]
call fcn.0040a149
mov esi, 0x8007000e
jmp 0x40a11d
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
cmp eax, ebx
mov dword [ebp - 0x41c], eax
jne 0x40a036
call fcn.004069a5
mov esi, eax
jmp 0x40a104
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x40a060
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x424], eax
jne 0x40a06a
call fcn.004069a5
jmp 0x40a0f6
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, edi
mov dword [ebp + 8], esi
mov byte [ebp - 4], 2
jbe 0x40a09b
push eax
lea ecx, [ebp - 0x418]
call fcn.0040a152
jmp 0x40a0ae
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x40a0ae
cmp dword [ebp - 0x418], ebx
mov dword [ebp - 4], 1
jne 0x40a0c4
mov esi, 0x8007000e
jmp 0x40a0f8
push esi
push dword [ebp - 0x424]
push dword [ebp - 0x418]
call fcn.00429ae0
mov eax, dword [ebp - 0x418]
add esp, 0xc
push dword [ebp + 0x14]
mov byte [esi + eax], bl
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.0040a173
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40a11d
lea ecx, [ebp - 0x418]
call fcn.0040a149
lea ecx, [ebp - 0x420]
call fcn.00402f52
mov eax, esi
lea esp, [ebp - 0x438]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0042954e
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40ae07
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x44a750]
push ebx
push esi
push 0x2001f
push dword [ebp + 0x9c]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x90], eax
mov dword [ebp - 0x74], esi
call fcn.0040ad38
cmp eax, esi
jne 0x40ae8f
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x40ae58
lea eax, [ebp - 0x70]
push eax
call fcn.0040ae07
cmp eax, esi
jne 0x40ae8e
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x74]
je 0x40ae4b
call fcn.0040ad21
push dword [ebp + 0x9c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.0040ad21
mov ecx, dword [ebp + 0x90]
mov eax, esi
pop esi
pop ebx
call fcn.0042954e
add ebp, 0x94
leave
ret 4
Function at 0x40b29f
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x40b2aa
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8
Function at 0x40d667
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x44a750]
mov dword [ebp - 4], eax
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.00428c80
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 5
mov ecx, dword [ebp - 4]
seta al
call fcn.0042954e
leave
ret

Function at 0x40d75a
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x44a750]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push edi
mov edi, 0x100
mov dword [ebp + 0x3a0], eax
xor ebx, ebx
push edi
lea eax, [ebp + 0x1a0]
push eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x74], ebx
mov byte [ebp - 0x69], bl
push ebx
jmp 0x40d831
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push 0x20019
push ebx
push ebx
push ebx
lea eax, [ebp + 0x1a0]
push eax
push dword [ebp + 0x3ac]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40d823
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push str.GDFBinaryPath
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d815
push dword [ebp + 0x3b0]
lea eax, [ebp - 0x68]
push eax
call fcn.0042a5e3
test eax, eax
pop ecx
pop ecx
jne 0x40d815
push dword [ebp + 0x3b4]
lea eax, [ebp + 0x1a0]
push eax
mov byte [ebp - 0x69], 1
call fcn.0040d6b9
pop ecx
pop ecx
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x69], bl
jne 0x40d841
inc dword [ebp - 0x70]
push edi
lea eax, [ebp + 0x1a0]
push eax
push dword [ebp - 0x70]
push dword [ebp + 0x3ac]
call esi
test eax, eax
je 0x40d79a
mov ecx, dword [ebp + 0x3a0]
mov al, byte [ebp - 0x69]
pop edi
pop esi
pop ebx
call fcn.0042954e
add ebp, 0x3a4
leave
ret
Function at 0x40d85a
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov eax, 0x2c14
lea ebp, [esp - 0x2b94]
call fcn.004294e0
mov eax, dword [0x44a750]
push ebx
push esi
xor ebx, ebx
push ebx
mov dword [ebp + 0x2b90], eax
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
lea eax, [ebp - 0x78]
push eax
push 0x442e00
push 1
push ebx
push 0x442e20
setge byte [ebp - 0x71]
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x40d98a
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
push ebx
push ebx
mov edi, 0x2800
push edi
lea eax, [ebp - 0x70]
push eax
push 0xffffffffffffffff
push dword [ebp + 0x2b9c]
mov byte [ebp - 0x70], bl
push ebx
push ebx
call esi
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
lea edx, [ebp - 0x70]
push edx
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x2ba0], ebx
je 0x40d903
push ebx
push ebx
push edi
lea eax, [ebp - 0x70]
push eax
push 0xffffffffffffffff
push dword [ebp + 0x2ba0]
mov byte [ebp - 0x70], bl
push ebx
push ebx
call esi
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
lea edx, [ebp - 0x70]
push edx
push eax
call dword [ecx + 0x2c]
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x2790]
push eax
push 0x200
push dword [ebp + 0x2b9c]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, dword [ebp - 0x80]
cmp eax, ebx
je 0x40d929
mov word [eax], bx
push ebx
push ebx
push edi
lea eax, [ebp - 0x70]
push eax
push 0xffffffffffffffff
lea eax, [ebp + 0x2790]
push eax
push ebx
push ebx
mov byte [ebp - 0x70], bl
call esi
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
lea edx, [ebp - 0x70]
push edx
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
lea edx, [ebp - 0x7c]
push edx
push 0x43e3c8
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
pop edi
jl 0x40d981
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x2ba4]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp - 0x71], bl
je 0x40d995
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp + 0x2b90]
mov eax, esi
pop esi
pop ebx
call fcn.0042954e
add ebp, 0x2b94
leave
ret
Function at 0x40d9d3
Capabilities:
Delete registry key

Disassembly:
push ebp
lea ebp, [esp - 0x88c]
sub esp, 0x90c
mov eax, dword [0x44a750]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov dword [ebp + 0x888], eax
mov dword [ebp - 0x80], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
lea eax, [ebp - 0x80]
push eax
push 0x43d95c
push 1
push ebx
push 0x43d94c
setge byte [ebp - 0x79]
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x40da3d
mov esi, dword [ebp + 0x894]
mov eax, dword [ebp - 0x80]
mov ecx, dword [eax]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x10]
mov esi, eax
jmp 0x40dada
cmp dword [ebp + 0x894], ebx
je 0x40dada
push 0x3f
pop ecx
xor eax, eax
mov word [ebp + 0x788], bx
lea edi, [ebp + 0x78a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x80
lea eax, [ebp + 0x788]
push eax
push dword [ebp + 0x894]
call dword [sym.imp.ole32.dll_StringFromGUID2]
mov esi, eax
cmp esi, ebx
jl 0x40dada
lea eax, [ebp + 0x788]
push eax
push str.SoftwareClassesSoftwareMicrosoftWindowsCurrentVersionGameUXGamesToFindOnWindowsUpgrade_s
mov esi, 0x400
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.0040d9ac
mov edi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
add esp, 0x10
test eax, eax
jl 0x40dab0
lea eax, [ebp - 0x78]
push eax
push SysReAllocString
call edi
lea eax, [ebp + 0x788]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionGameUXGamesToFindOnWindowsUpgrade_s
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.0040d9ac
add esp, 0x10
test eax, eax
jl 0x40dad8
lea eax, [ebp - 0x78]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
xor esi, esi
mov eax, dword [ebp - 0x80]
cmp eax, ebx
je 0x40dae7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp - 0x79], bl
je 0x40daf2
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp + 0x888]
mov eax, esi
call fcn.0042954e
pop edi
pop esi
pop ebx
add ebp, 0x88c
leave
ret 4