joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404520
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4063d8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x409008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x404556
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x404606
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00404810
test al, al
je 0x4045af
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4045f2
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4045e8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4045e8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0040494f
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040490e
mov esp, ebp
pop ebp
ret

Function at 0x40147b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0x114]
sub esp, 0x134
mov dword [esp], eax
lea ebx, [ebp - 0x10c]
call dword [sym.imp.USER32.dll_GetCursorPos]
push eax
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push eax
push eax
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 4]
leave
sub eax, 3
ret

Function at 0x4014f8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xa0
mov dword [ebp - 0x88], 0
call fcn.0040147b
mov dword [esp], 0x4015cc
mov dword [ebp - 0x8c], 0
mov ebx, eax
lea eax, [ebp - 0x8c]
mov dword [esp + 0xc], eax
mov eax, ebx
or eax, 0x40
mov dword [esp + 8], eax
mov eax, 0x40202e
sub eax, 0x4015cc
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x401593
lea esi, [ebp - 0x88]
mov dword [esp], ebx
call fcn.00401382
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.004013f5
mov cl, bl
mov dword [esp + 8], esi
lea eax, [ebx + 0x1b600]
shl eax, cl
mov dword [esp + 4], eax
mov eax, str.daae
shr eax, cl
mov dword [esp], eax
call fcn.00401d31
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x4022f0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415d08
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x41e358]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], edi
call fcn.004043c0
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
cmp esi, edi
je 0x40240a
cmp dword [ebp - 0x1c], edi
je 0x40240a
push str.MSIFile
push 0x81
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x402364
mov dword [ebx + 0x10], eax
push eax
jmp 0x40240e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x402392
mov eax, 0x41a2c0
mov ecx, ebx
call fcn.00402800
cmp dword [ebp - 0x18], 8
jb 0x402438
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x402430
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
jae 0x4023b5
lea eax, [ebp - 0x2c]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 0x30]
push 0
lea ecx, [ebp - 0x34]
push ecx
push edi
mov esi, eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x34], edi
jne 0x402408
lea edi, [ebp - 0x2c]
mov eax, ebx
call fcn.00402840
mov esi, edi
call fcn.00402860
jmp 0x402438
xor edi, edi
mov dword [ebx + 0x10], edi
push edi
xor eax, eax
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov eax, 0x41a2c0
mov esi, ebx
call fcn.00402dd0
cmp dword [ebp - 0x18], 8
jb 0x402438
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0040896d
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004087e8
mov esp, ebp
pop ebp
ret
Function at 0x4025f0
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415f5b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x41e358]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x23c], edi
xor eax, eax
mov word [ebp - 0x234], ax
push edi
mov eax, 0x41a2c0
lea esi, [ebp - 0x234]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
call fcn.00402dd0
lea ecx, [ebp - 0x218]
push ecx
push 0x104
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4026a8
push str.dotnetfx_x86.exe
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x4026a8
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x402687
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
lea esi, [ebp - 0x234]
call fcn.00402dd0
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
cmp esi, edi
je 0x4027af
cmp dword [ebp - 0x224], edi
je 0x4027af
push str.DotNetFx
push 0x82
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4026e5
mov dword [ebx + 0x10], eax
push eax
jmp 0x4027b3
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x238], eax
test eax, eax
jne 0x40271c
mov eax, 0x41a2c0
mov ecx, ebx
call fcn.00402800
cmp dword [ebp - 0x220], 8
jb 0x4027e3
mov edx, dword [ebp - 0x234]
push edx
jmp 0x4027db
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp dword [ebp - 0x220], 8
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x234]
jae 0x40274e
lea eax, [ebp - 0x234]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 0x238]
push 0
lea ecx, [ebp - 0x23c]
push ecx
push edi
mov esi, eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x23c], edi
jne 0x4027ad
lea edi, [ebp - 0x234]
mov eax, ebx
call fcn.00402840
mov esi, edi
call fcn.00402860
jmp 0x4027e3
xor edi, edi
mov dword [ebx + 0x10], edi
push edi
xor eax, eax
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov eax, 0x41a2c0
mov esi, ebx
call fcn.00402dd0
cmp dword [ebp - 0x220], 8
jb 0x4027e3
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.0040896d
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004087e8
mov esp, ebp
pop ebp
ret
Function at 0x403ef0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x41e358]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x25
push 0
mov esi, ecx
mov dword [ebp - 0x210], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x403f78
push 0x41a588
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x403f78
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
lea eax, [ebp - 0x20c]
mov word [esi], dx
lea edx, [eax + 2]
jmp 0x403f60
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403f60
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
jmp 0x403f91
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
push eax
mov eax, 0x41a2c0
call fcn.00402dd0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004087e8
mov esp, ebp
pop ebp
ret

Function at 0x4043c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x41e358]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x104
mov esi, ecx
mov dword [ebp - 0x210], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x404448
push str.BingDict.msi
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x404448
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
lea eax, [ebp - 0x20c]
mov word [esi], dx
lea edx, [eax + 2]
jmp 0x404430
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404430
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
jmp 0x404461
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
push eax
mov eax, 0x41a2c0
call fcn.00402dd0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004087e8
mov esp, ebp
pop ebp
ret
Function at 0x405550
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415b7b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x41e358]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00408703
push 4
mov dword [ebp - 4], 0
call fcn.00408d32
mov edi, eax
add esp, 4
test edi, edi
je 0x4055cc
call fcn.00407c4e
mov dword [edi], eax
call fcn.00407a0d
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00407942
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4055c2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0040796a
jmp 0x4055ce
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415cd8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x41e358]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov word [ebp - 0x2c], ax
xor ebx, ebx
push 0x34
mov eax, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.00402dd0
push 0x26
mov eax, str.BA6E3406_3BB9_433B_B9BF_ADC652DF3520
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00402960
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x406388
mov eax, esi
lea ecx, [ebp - 0x34]
push ecx
push 0x2001f
push ebx
push eax
push 0x80000002
mov dword [ebp - 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x34]
xor esi, esi
mov edi, eax
cmp eax, ebx
je 0x4063dd
mov ecx, 4
lea edx, [ebp - 0x38]
push edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x3c]
push edx
push ebx
push 0x41a8bc
push eax
mov dword [ebp - 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, dword [ebp - 0x30]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 8
jb 0x4063ef
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0040896d
add esp, 4
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 - 0x10]
xor ecx, ebp
call fcn.004087e8
mov esp, ebp
pop ebp
ret
Function at 0x406410
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41603b
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x41e358]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x88]
call fcn.00404290
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x78], ebx
je 0x40650a
mov ecx, 0x17
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionRun
lea edi, [ebp - 0x6c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x90]
push ecx
push 0x2001f
push ebx
lea edx, [ebp - 0x6c]
push edx
push 0x80000001
mov dword [ebp - 0x90], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [ebp - 0x90]
cmp esi, ebx
jne 0x4064c8
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x8c]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
lea edx, [ebp - 0x6c]
push edx
push 0x80000001
mov dword [ebp - 0x8c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, dword [ebp - 0x8c]
cmp esi, ebx
je 0x40650a
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x98], esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push ebx
lea edx, [ebp - 0x88]
mov word [ecx], ax
push edx
or eax, 0xffffffff
call fcn.00402a90
mov ecx, str.Bing_Dictionary
call fcn.00407560
add esp, 0x1c
cmp esi, ebx
je 0x40650a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x74], 8
jb 0x40651f
mov eax, dword [ebp - 0x88]
push eax
call fcn.0040896d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004087e8
mov esp, ebp
pop ebp
ret
Function at 0x406f70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415cd8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x41e358]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x34]
push eax
push 0x2001f
xor edi, edi
push edi
push str.SYSTEMCURRENTCONTROLSETCONTROLWINDOWS
push 0x80000002
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x34]
mov ecx, 4
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x40]
push ecx
push edi
push str.CSDVersion
push eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
push edi
mov eax, 0x41a2c0
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], dx
call fcn.00402dd0
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x30]
cmp eax, 0x100
jne 0x40701d
push 3
mov eax, 0x41aafc
jmp 0x407043
cmp eax, 0x200
jne 0x40702d
push 3
mov eax, 0x41a2f8
jmp 0x407043
cmp eax, 0x300
jne 0x40703d
push 3
mov eax, 0x41a2f0
jmp 0x407043
push edi
mov eax, 0x41a2c0
lea esi, [ebp - 0x2c]
call fcn.00402dd0
mov eax, dword [ebp - 0x38]
cmp eax, edi
je 0x407059
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], edi
mov esi, ebx
cmp dword [ebp - 0x1c], edi
je 0x407083
xor eax, eax
lea edi, [ebp - 0x2c]
mov word [ebx], ax
call fcn.004028f0
cmp dword [ebp - 0x18], 8
jb 0x4070a5
mov ecx, dword [ebp - 0x2c]
push ecx
jmp 0x40709d
xor edx, edx
push edi
mov eax, 0x41a2c0
mov word [ebx], dx
call fcn.00402dd0
cmp dword [ebp - 0x18], 8
jb 0x4070a5
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0040896d
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004087e8
mov esp, ebp
pop ebp
ret
Function at 0x4073a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x41e358]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [edi + 0x14], 0
push esi
je 0x4074ab
lea eax, [edi + 4]
push eax
lea ecx, [ebp - 0x22c]
lea esi, [edi + 0x20]
push ecx
call fcn.004072a0
mov eax, dword [ebp - 0x22c]
mov esi, 8
cmp dword [ebp - 0x218], esi
jae 0x4073ea
lea eax, [ebp - 0x22c]
mov edx, dword [ebp - 0x21c]
push edx
push eax
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0040906a
push 0x40
lea ecx, [ebp - 0x284]
push 0
push ecx
mov dword [ebp - 0x288], 0x44
call fcn.00410b50
add esp, 0x1c
lea edx, [ebp - 0x23c]
push edx
lea eax, [ebp - 0x288]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x210]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x407494
mov edx, dword [ebp - 0x238]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x234]
mov dword [edi + 0x44], eax
mov dword [edi + 0x3c], ecx
cmp dword [ebp - 0x218], esi
jb 0x407483
mov edx, dword [ebp - 0x22c]
push edx
call fcn.0040896d
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004087e8
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x218], esi
jb 0x4074ab
mov eax, dword [ebp - 0x22c]
push eax
call fcn.0040896d
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.004087e8
mov esp, ebp
pop ebp
ret

Function at 0x407560
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
test esi, esi
jne 0x407581
cmp dword [ebp + 0x1c], 8
jb 0x40757c
mov eax, dword [ebp + 8]
push eax
call fcn.0040896d
add esp, 4
xor al, al
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x1c]
cmp edi, 8
jae 0x407590
lea eax, [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407593
mov ecx, dword [ebp + 8]
sub eax, edx
sar eax, 1
cmp edi, 8
lea eax, [eax + eax + 2]
pop edi
jae 0x4075b2
lea ecx, [ebp + 8]
push eax
push ecx
push 1
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
cmp dword [ebp + 0x1c], 8
jb 0x4075d7
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040896d
add esp, 4
mov al, bl
pop ebx
pop ebp
ret
Function at 0x4075e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415ca8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x41e358]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, edx
xor esi, esi
mov edi, ecx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], esi
cmp ebx, esi
jne 0x407638
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], esi
mov word [edi], ax
jmp 0x407710
lea ecx, [ebp - 0x34]
push ecx
push esi
lea edx, [ebp - 0x30]
push edx
push esi
push eax
push ebx
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x407701
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], esi
mov ecx, dword [ebp - 0x34]
cmp ecx, esi
lea esi, [ebp - 0x2c]
ja 0x407683
or eax, 0xffffffff
call fcn.00402ec0
jmp 0x40768d
mov ebx, ecx
call fcn.00407740
mov ebx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x40769d
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x34]
push ecx
push eax
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x30]
push edx
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4076e7
mov esi, dword [ebp - 0x3c]
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], eax
xor ecx, ecx
mov word [edi], cx
lea edi, [ebp - 0x2c]
call fcn.004028f0
cmp dword [ebp - 0x18], 8
jb 0x4076e3
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0040896d
add esp, 4
mov eax, esi
jmp 0x40771f
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], esi
jb 0x4076ff
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0040896d
add esp, 4
xor esi, esi
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], esi
mov word [edi], cx
push esi
mov eax, 0x41a2c0
mov esi, edi
call fcn.00402dd0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004087e8
mov esp, ebp
pop ebp
ret

Function at 0x4087e8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41e358]
jne 0x4087f2
repz ret
jmp fcn.0040c37a
Function at 0x41345c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41e358]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040d56b
and dword [ebp - 0x14], 0
cmp dword [0x420338], 0
mov dword [ebp - 0x18], eax
jne 0x41350f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4135b7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x419e24
push ebx
call edi
test eax, eax
je 0x4135b7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x420338], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42033c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x420340], eax
call edi
push eax
call esi
mov dword [0x420348], eax
test eax, eax
je 0x41350f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x420344], eax
mov eax, dword [0x420344]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x413568
cmp dword [0x420348], ecx
je 0x413568
push eax
call esi
push dword [0x420348]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x413568
test ebx, ebx
je 0x413568
call edi
test eax, eax
je 0x41355f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41355f
test byte [ebp - 8], 1
jne 0x413568
or dword [ebp + 0x10], 0x200000
jmp 0x41359b
mov eax, dword [0x42033c]
cmp eax, dword [ebp - 0x18]
je 0x41359b
push eax
call esi
test eax, eax
je 0x41359b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41359b
mov eax, dword [0x420340]
cmp eax, dword [ebp - 0x18]
je 0x41359b
push eax
call esi
test eax, eax
je 0x41359b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x420338]
call esi
test eax, eax
je 0x4135b7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4135b9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004087e8
leave
ret