joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401840
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x490cc9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d01d4]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x30]
mov esi, ecx
mov dword [esp + 0x18], edi
lea ebp, [esi + 4]
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov dword [esp + 0x1c], esi
mov word [ebp], cx
mov dword [esp + 0x28], edi
mov ecx, eax
mov dword [esp + 0x18], 1
lea ebx, [ecx + 2]
nop
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x4018a0
sub ecx, ebx
sar ecx, 1
mov ebx, ecx
cmp ebx, 2
jb 0x401924
mov ecx, eax
lea edx, [ecx + 2]
mov dword [esp + 0x14], edx
nop
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x4018c0
sub ecx, dword [esp + 0x14]
sar ecx, 1
push ecx
call fcn.00403b50
lea edi, [ebx - 1]
cmp dword [esi + 0x14], edi
ja 0x4018e4
call fcn.00470818
mov ebx, 8
cmp dword [esi + 0x18], ebx
jb 0x4018f3
mov eax, dword [ebp]
jmp 0x4018f5
mov eax, ebp
cmp word [eax + edi*2], 0x5c
je 0x401924
cmp dword [esi + 0x14], edi
ja 0x401906
call fcn.00470818
cmp dword [esi + 0x18], ebx
jb 0x40190e
mov ebp, dword [ebp]
cmp word [ebp + edi*2], 0x2f
mov eax, esi
je 0x401926
push 1
push 0x49f804
call fcn.00403a30
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x490d82
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x4d01d4]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [0x4d01d4]
xor eax, esp
push eax
lea eax, [esp + 0x410]
mov dword fs:[0], eax
mov dword [esp + 0x418], 0
mov ecx, esi
mov dword [esp + 8], esi
mov dword [esp + 4], 0
call fcn.0048d000
mov dword [esp + 0x418], 0
push 0
push 0x1a
lea eax, [esp + 0x14]
push eax
push 0
mov dword [esp + 0x14], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.0048d230
push 0x49f814
mov ecx, esi
call fcn.0048d1e0
push 0
mov ecx, esi
call fcn.0048cdd0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [edi]
cmp ax, 0x5c
je 0x4019fc
cmp ax, 0x2f
je 0x4019fc
push 0x49f804
mov ecx, esi
call fcn.0048d1e0
push edi
mov ecx, esi
call fcn.0048d1e0
mov eax, esi
mov ecx, dword [esp + 0x410]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x408]
xor ecx, esp
call fcn.00470f4c
add esp, 0x418
ret
Function at 0x401fe0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40203c
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, 1
pop esi
ret
xor eax, eax
ret

Function at 0x402040
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x4d01d4]
xor eax, esp
mov dword [esp + 0x20c], eax
mov eax, dword [esp + 0x214]
push esi
mov esi, dword [eax]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
push esi
mov dword [esp + 0x14], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x210]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00470f4c
add esp, 0x210
ret
Function at 0x4020b0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4922eb
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x4d01d4]
xor eax, esp
mov dword [esp + 0x430], eax
push esi
push edi
mov eax, dword [0x4d01d4]
xor eax, esp
push eax
lea eax, [esp + 0x440]
mov dword fs:[0], eax
test ebx, ebx
je 0x402231
cmp word [ebx], 0
je 0x402231
push 1
push 0
push 0
push ebx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x402231
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0xc]
push eax
push 1
push 0
push str..htm
push SysReAllocString
call esi
test eax, eax
jne 0x402231
lea ecx, [esp + 0xc]
push ecx
lea edi, [esp + 0x30]
call fcn.00402040
add esp, 4
test eax, eax
jne 0x402231
push str._shellopencommand
mov edx, edi
push 0x208
push edx
call fcn.00471185
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push 1
push 0
mov ecx, edi
push ecx
push SysReAllocString
call esi
test eax, eax
jne 0x402231
lea edx, [esp + 0xc]
push edx
call fcn.00402040
add esp, 4
test eax, eax
jne 0x402231
mov eax, edi
push 0x49f99c
push eax
call fcn.00471124
add esp, 8
test eax, eax
jne 0x4021c8
mov ecx, edi
push 0x49f9a8
push ecx
call fcn.00471124
add esp, 8
test eax, eax
je 0x4021cd
xor edx, edx
mov word [eax], dx
jmp 0x4021cd
xor ecx, ecx
mov word [eax], cx
push 0x49f9b0
lea edx, [esp + 0x30]
push 0x206
push edx
call fcn.00471185
push ebx
lea eax, [esp + 0x3c]
push 0x206
push eax
call fcn.00471185
add esp, 0x18
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x14]
call fcn.0048d8d0
mov dword [esp + 0x448], 0
push 1
mov ecx, eax
call fcn.0048cef0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [esp + 0x448], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.0048d020
mov ecx, dword [esp + 0x440]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.00470f4c
add esp, 0x440
ret
Function at 0x402330
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x491426
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x4d01d4]
xor eax, esp
mov dword [esp + 0x294], eax
push esi
mov eax, dword [0x4d01d4]
xor eax, esp
push eax
lea eax, [esp + 0x2a0]
mov dword fs:[0], eax
lea ecx, [esp + 0x78]
call fcn.0048d000
mov dword [esp + 0x2a8], 0
lea ecx, [esp + 0x5c]
call fcn.0048d000
mov byte [esp + 0x2a8], 1
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x9e]
push ecx
mov word [esp + 0xa0], ax
call fcn.00473d50
add esp, 0xc
push 0x104
lea edx, [esp + 0x98]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x60]
push str.__s_
push ecx
call fcn.0048d0b0
push 0x44
lea edx, [esp + 0x28]
push 0
push edx
call fcn.00473d50
add esp, 0x18
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x38], 0x44
call fcn.0048cdb0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40246d
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
mov byte [esp + 0x2a8], 0
lea ecx, [esp + 0x5c]
call fcn.0048cfe0
mov dword [esp + 0x2a8], 0xffffffff
lea ecx, [esp + 0x78]
call fcn.0048cfe0
mov al, 1
jmp 0x402494
mov byte [esp + 0x2a8], 0
lea ecx, [esp + 0x5c]
call fcn.0048cfe0
mov dword [esp + 0x2a8], 0xffffffff
lea ecx, [esp + 0x78]
call fcn.0048cfe0
xor al, al
mov ecx, dword [esp + 0x2a0]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x294]
xor ecx, esp
call fcn.00470f4c
add esp, 0x2a4
ret

Function at 0x4024c0
Capabilities:
Get token membership

Disassembly:
sub esp, 0x14
mov eax, dword [0x4d01d4]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
xor ebx, ebx
lea eax, [esp + 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [esp + 4], eax
cmp eax, ebx
je 0x402539
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x40252a
mov dword [esp + 4], ebx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x14]
pop ebx
xor ecx, esp
call fcn.00470f4c
add esp, 0x14
ret
Function at 0x402550
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4931a0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4d01d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
push ecx
push eax
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
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 0x4025f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493180
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4d01d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
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 0x402690
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x824
mov eax, dword [0x4d01d4]
xor eax, esp
mov dword [esp + 0x820], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.00473d50
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x21e]
push eax
mov word [esp + 0x220], dx
call fcn.00473d50
xor ecx, ecx
push 0x40e
push ecx
lea edx, [esp + 0x432]
push edx
mov word [esp + 0x434], cx
call fcn.00473d50
add esp, 0x24
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp]
push ecx
lea edx, [esp + 0x20c]
push 0x104
push edx
call fcn.004717be
push 0x49fa44
lea eax, [esp + 0x218]
push 0x104
push eax
call fcn.00471185
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x42c]
push 0x208
push edx
call fcn.004717be
push str._shell32.dll_Control_RunDLL
lea eax, [esp + 0x438]
push 0x208
push eax
call fcn.00471185
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x444]
push 0x208
push edx
call fcn.00471185
push 0x49f804
lea eax, [esp + 0x450]
push 0x208
push eax
call fcn.00471185
add esp, 0x48
push esi
lea ecx, [esp + 0x414]
push 0x208
push ecx
call fcn.00471185
add esp, 0xc
push 5
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x418]
push eax
lea ecx, [esp + 0x214]
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x820]
xor ecx, esp
call fcn.00470f4c
add esp, 0x824
ret
Function at 0x402b90
Capabilities:
Get common file path
Get disk size

Disassembly:
sub esp, 0x234
mov eax, dword [0x4d01d4]
xor eax, esp
mov dword [esp + 0x22c], eax
push 0x208
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
fldz
lea ecx, [esp + 0x10]
fstp dword [esp + 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x402c19
mov eax, dword [esp + 4]
mov edx, dword [esp]
shrd edx, eax, 0x14
shr eax, 0x14
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp], edx
mov dword [esp + 4], eax
and ecx, 0x80000000
fild qword [esp]
mov dword [esp + 4], ecx
mov dword [esp], 0
fild qword [esp]
fchs
faddp st(1)
fmul qword [0x4b8018]
fstp dword [esp + 0xc]
mov ecx, dword [esp + 0x22c]
fld dword [esp + 0xc]
xor ecx, esp
call fcn.00470f4c
add esp, 0x234
ret
Function at 0x404cb0
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x49308b
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x4d01d4]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
mov eax, dword [0x4d01d4]
xor eax, esp
push eax
lea eax, [esp + 0x44c]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, 0x80010106
je 0x404d21
cmp eax, ebx
jge 0x404d21
push eax
push str.error_CoInitializeEx_failed:_0x_08lx_n
push 0xb
push str..DeskShortCut.cpp
push 1
call fcn.0048ccc0
push eax
call fcn.0048c3e0
add esp, 0x18
xor eax, eax
jmp 0x404e9b
lea ecx, [esp + 0x18]
call fcn.0048d000
mov dword [esp + 0x454], ebx
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x404e38
lea ecx, [esp + 0x10]
push ecx
push 0x19
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x404e38
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x23c]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x404e38
lea ecx, [esp + 0x23c]
push ecx
lea edx, [esp + 0x1c]
push 0x4a1270
push edx
call fcn.0048d0b0
add esp, 0xc
push 0x49f804
lea ecx, [esp + 0x1c]
call fcn.0048d1e0
push esi
lea ecx, [esp + 0x1c]
call fcn.0048d1e0
push 0x4a1278
lea ecx, [esp + 0x1c]
call fcn.0048d1e0
lea eax, [esp + 8]
push eax
push 0x49bcec
push 1
push ebx
push 0x49bcfc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x404e38
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push edi
push eax
call edx
mov eax, dword [esp + 8]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x49bd0c
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x404e38
lea ecx, [esp + 0x18]
call fcn.0048cdb0
lea edx, [esp + 0x34]
movzx ecx, word [eax]
mov word [edx], cx
add eax, 2
add edx, 2
cmp cx, bx
jne 0x404e14
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 1
lea edx, [esp + 0x38]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x404e48
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x404e58
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x404e71
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x404e81
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x14]
call eax
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x404e81
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [esp + 0x454], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.0048cfe0
mov ecx, dword [esp + 0x44c]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.00470f4c
add esp, 0x450
ret
Function at 0x404ec0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x404
mov eax, dword [0x4d01d4]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0
push 0x10
lea eax, [esp + 0xc]
push eax
push 0
call esi
test eax, eax
jl 0x404f36
push edi
lea ecx, [esp + 8]
call fcn.00404f60
add esp, 4
test al, al
jne 0x404f41
push 0
push 0x19
lea ecx, [esp + 0xc]
push ecx
push 0
call esi
test eax, eax
jl 0x404f41
push edi
lea ecx, [esp + 8]
call fcn.00404f60
add esp, 4
test al, al
setne al
pop esi
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.00470f4c
add esp, 0x404
ret
push 0
push 0x19
lea edx, [esp + 0xc]
push edx
jmp 0x404f06
mov ecx, dword [esp + 0x404]
pop esi
xor ecx, esp
mov al, 1
call fcn.00470f4c
add esp, 0x404
ret

Function at 0x405530
Capabilities:
Check mutex on windows

Disassembly:
push str.Global029E1EB6_7A55_4fd7_8815_105B2087C1FAdtl2013
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [0x4e567c], eax
test eax, eax
jne 0x405574
push str.Global029E1EB6_7A55_4fd7_8815_105B2087C1FAdtl2013
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x4e567c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4055bd
cmp eax, 5
je 0x4055bd
mov al, 1
ret 4
cmp byte [esp + 4], 0
jne 0x4055bd
push esi
push 0
push str.DriverTheLife6
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x4055bc
push esi
call dword [sym.imp.USER32.dll_IsHungAppWindow]
test eax, eax
jne 0x4055bc
push eax
push 0xf120
push 0x112
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop esi
xor al, al
ret 4

Function at 0x405bf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x405c00
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x405c10
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405c40
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x49008b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x4d01d4]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d01d4]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esp + 0x24c]
xor ebp, ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x244], ebp
mov ebx, dword [esi + 4]
mov eax, dword [esi]
lea edx, [esp + 0x24]
push edx
or ebx, 0x2001f
push ebx
push ebp
push ecx
push eax
mov dword [esp + 0x38], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, ebp
jne 0x405cee
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, ebp
je 0x405cd2
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebp
mov ecx, dword [esp + 0x24]
and ebx, 0x300
mov dword [esp + 0x1c], ebp
mov edi, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
cmp eax, ebp
je 0x405d13
mov dword [esp + 0x244], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x405d0c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebp
mov eax, edi
jmp 0x405dc0
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x2c]
push eax
push ebp
push ebp
push ebp
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x48]
push eax
push ebp
push ecx
mov dword [esp + 0x40], pe_nt_image_headers32
call edi
test eax, eax
jne 0x405d7e
jmp 0x405d40
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00405c40
mov ebx, eax
cmp ebx, ebp
jne 0x405dee
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x1c]
push ebp
push ebp
push ebp
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x48]
push ecx
push ebp
push edx
mov dword [esp + 0x40], pe_nt_image_headers32
call edi
test eax, eax
je 0x405d40
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x405d91
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebp
mov edi, dword [esp + 0x28]
mov dword [esp + 0x1c], ebp
call fcn.00405b30
mov esi, eax
mov dword [esp + 0x244], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x405dbe
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebp
mov eax, esi
mov dword [esp + 0x1c], ebp
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00470f4c
add esp, 0x234
ret 4
mov dword [esp + 0x244], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x405e0c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebp
mov eax, ebx
jmp 0x405dc0
Function at 0x406400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x491ad0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4d01d4]
xor eax, ebp
mov dword [ebp + 0x404], 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 + 0x410]
mov edi, ecx
mov ebx, dword [ebp + 0x414]
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp], ecx
mov byte [ebp - 4], 1
push 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x40647e
call fcn.004057a0
mov edi, eax
jmp 0x4065a0
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x406497
call fcn.004057a0
jmp 0x406597
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
jne 0x4064b2
call fcn.004057a0
jmp 0x406597
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x14], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x4064f3
mov byte [ebp - 4], 0
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x4064da
lea eax, [ebp]
call fcn.00409230
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x18]
call fcn.00408fa0
mov eax, 0x8007000e
jmp 0x4065bd
mov byte [ebp - 4], 2
mov ecx, 2
mul ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
test edx, edx
ja 0x40650d
cmp eax, 0xffffffff
jbe 0x406517
push 0x80070057
call fcn.00405600
cmp eax, 0x400
jbe 0x406530
lea edx, [ebp]
push edx
call fcn.004092a0
mov dword [ebp - 4], 1
jmp 0x406555
lea eax, [ebp + 4]
mov dword [ebp], eax
mov dword [ebp - 4], 1
jmp 0x406555
mov eax, dword [ebp]
test eax, eax
jne 0x406563
mov edi, 0x8007000e
jmp 0x406599
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x40657c
call fcn.004057a0
jmp 0x406597
xor ecx, ecx
mov edx, dword [ebp]
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
push eax
mov ecx, dword [ebp]
lea edx, [ebp - 0x28]
call fcn.004073a0
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x4065b4
lea eax, [ebp]
call fcn.00409230
mov dword [ebp - 4], 0xffffffff
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 + 0x404]
xor ecx, ebp
call fcn.00470f4c
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc