joyce8/EMBER2024-capa huggingface dataset:
Function at 0x485970
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2c14
call fcn.00467130
mov eax, dword [0x4be8a0]
xor eax, esp
mov dword [esp + 0x2c10], eax
mov eax, dword [esp + 0x2c18]
push edi
xor edi, edi
mov dword [esp + 0xc], eax
cmp eax, edi
je 0x485adb
cmp dword [esp + 0x2c20], edi
je 0x485adb
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov dword [esp + 0x10], edi
xor ebx, ebx
lea ebx, [ebx]
push ebx
push 0x4a2ec4
lea eax, [esp + 0x30]
push 0x100
push eax
call fcn.0041b810
add esp, 0x10
push edi
push edi
push 3
push edi
push 3
push edi
lea ecx, [esp + 0x40]
push ecx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x485ab4
xor eax, eax
push 0x2710
lea edx, [esp + 0x514]
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.004670a0
add esp, 0xc
push edi
lea eax, [esp + 0x18]
push eax
push 0x2710
lea ecx, [esp + 0x51c]
push ecx
push 0xc
lea edx, [esp + 0x30]
push edx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x485aa7
push 0x3e8
lea eax, [esp + 0x12c]
push edi
push eax
call fcn.004670a0
mov edx, dword [esp + 0x534]
lea ecx, [esp + 0x134]
push ecx
push 1
push edx
lea eax, [esp + 0x528]
push eax
call fcn.00487090
mov edx, dword [esp + 0x2c48]
mov eax, dword [esp + 0x34]
add esp, 0x1c
lea ecx, [esp + 0x128]
push ecx
push edx
push eax
call fcn.0041b8c0
test eax, eax
jne 0x485aa7
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], edi
jne 0x485abe
inc ebx
cmp ebx, 0x10
jl 0x4859c0
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x2c10]
xor ecx, esp
call fcn.0046711a
add esp, 0x2c14
ret
mov ecx, dword [esp + 0x2c14]
pop edi
xor ecx, esp
xor eax, eax
call fcn.0046711a
add esp, 0x2c14
ret
Function at 0x485d80
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x2ec
mov eax, dword [0x4be8a0]
xor eax, esp
mov dword [esp + 0x2e8], eax
push edi
mov edi, dword [esp + 0x2f4]
mov dword [esp + 0x18], edi
test edi, edi
je 0x485f81
cmp dword [esp + 0x2f8], 0
je 0x485f81
push 0x64
lea eax, [esp + 0x20]
push 0
push eax
call fcn.004670a0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 8
push 0
push 0x4a0620
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x485f48
mov ecx, dword [esp + 4]
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x100]
push eax
push ebx
mov esi, 0x104
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x485f3b
lea ebx, [ebx]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 1
push 0
lea eax, [esp + 0xf8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x485f09
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1f4]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x4a2f54
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x485efe
push 0x64
push eax
lea eax, [esp + 0x90]
push eax
call fcn.004670a0
lea ecx, [esp + 0x1fc]
push 0x64
push ecx
lea edi, [esp + 0x9c]
call fcn.00485c70
add esp, 0x14
test eax, eax
je 0x485efe
cmp byte [esp + 0x24], 0
je 0x485ec2
lea edx, [esp + 0x24]
push edx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x485efe
lea eax, [esp + 0x24]
lea esi, [esp + 0x88]
mov ecx, eax
mov edx, 0x64
sub esi, ecx
lea ecx, [edx + 0x7fffff9a]
test ecx, ecx
je 0x485ef1
mov cl, byte [esi + eax]
test cl, cl
je 0x485ef1
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x485ed6
jmp 0x485ef5
test edx, edx
jne 0x485ef6
dec eax
mov byte [eax], 0
mov esi, 0x104
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x100]
push ecx
inc ebx
push ebx
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x485e20
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
cmp byte [esp + 0x1c], 0
je 0x485f81
mov edx, dword [esp + 0x2f8]
lea ecx, [esp + 0x1c]
push ecx
push edx
push edi
call fcn.0041b8c0
xor ecx, ecx
test eax, eax
setge cl
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.0046711a
add esp, 0x2ec
ret
mov ecx, dword [esp + 0x2ec]
pop edi
xor ecx, esp
xor eax, eax
call fcn.0046711a
add esp, 0x2ec
ret
Function at 0x4861f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x50c
mov eax, dword [0x4be8a0]
xor eax, esp
mov dword [esp + 0x508], eax
push ebp
mov ebp, dword [esp + 0x514]
test edi, edi
je 0x48636d
cmp ebp, 0x20
jb 0x48636d
push 0x400
lea eax, [esp + 0x110]
push 0
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0x400
call fcn.004670a0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x10]
push eax
push 0x4a067c
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x48636d
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x486280
sub eax, edx
cmp eax, 0x40
jne 0x48636d
push ebx
lea edx, [eax + 0x40]
push esi
lea eax, [esp + 0x14]
lea esi, [esp + 0x114]
mov ecx, eax
sub esi, ecx
lea ecx, [edx - 0x60]
test ecx, ecx
je 0x4862be
mov cl, byte [esi + eax]
test cl, cl
je 0x4862be
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x4862a6
jmp 0x4862c2
test edx, edx
jne 0x4862c3
dec eax
mov byte [eax], 0
lea eax, [esp + 0x94]
lea edx, [esp + 0x134]
mov ecx, eax
mov esi, 0x80
sub edx, ecx
lea ecx, [ecx]
lea ecx, [esi + 0x7fffff7e]
test ecx, ecx
je 0x4862fb
mov cl, byte [edx + eax]
test cl, cl
je 0x4862fb
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x4862e0
jmp 0x4862ff
test esi, esi
jne 0x486300
dec eax
push 0x400
lea edx, [esp + 0x118]
push 0
push edx
mov byte [eax], 0
call fcn.004670a0
push 0x400
lea ebx, [esp + 0x124]
lea ecx, [esp + 0x24]
call fcn.004853f0
add esp, 0x10
lea eax, [esp + 0x94]
push eax
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop esi
pop ebx
test eax, eax
jne 0x48636d
lea edx, [esp + 0xc]
push edx
push ebp
push edi
call fcn.0041b8c0
neg eax
sbb eax, eax
inc eax
pop ebp
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.0046711a
add esp, 0x50c
ret
mov ecx, dword [esp + 0x50c]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0046711a
add esp, 0x50c
ret

Function at 0x486390
Capabilities:
Set registry value

Disassembly:
sub esp, 0x188
mov eax, dword [0x4be8a0]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
push esi
push 0x80
lea eax, [esp + 0xc]
push 0
push eax
mov esi, ecx
call fcn.004670a0
push 0x80
lea ebx, [esp + 0x18]
mov ecx, esi
call fcn.004853f0
lea eax, [esp + 0x98]
mov ecx, eax
add esp, 0x10
mov edx, 0x104
sub esi, ecx
lea esp, [esp]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x4863fb
mov cl, byte [esi + eax]
test cl, cl
je 0x4863fb
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x4863e0
jmp 0x4863ff
test edx, edx
jne 0x486400
dec eax
lea edx, [esp + 8]
push edx
mov byte [eax], 0
push 0x104
lea eax, [esp + 0x90]
push eax
call fcn.0041f510
lea eax, [esp + 0x88]
pop esi
lea edx, [eax + 1]
pop ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x486426
sub eax, edx
push eax
lea ecx, [esp + 0x84]
push ecx
push 1
push 0x4a067c
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.0046711a
add esp, 0x188
ret
Function at 0x4096c0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x40d018]
xor eax, ebp
mov dword [ebp - 0x40], eax
xor eax, eax
mov word [ebp - 0x248], ax
push 0x206
push 0
lea ecx, [ebp - 0x246]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
xor edx, edx
mov word [ebp - 0x450], dx
push 0x206
push 0
lea eax, [ebp - 0x44e]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVCR90.dll_wcslen]
add esp, 4
test eax, eax
jbe 0x40974f
mov edx, dword [ebp + 0xc]
push edx
push 0x104
lea eax, [ebp - 0x450]
push eax
call fcn.004062c0
push 0x40b3b4
push 0x104
lea ecx, [ebp - 0x450]
push ecx
call fcn.00406310
jmp 0x40979e
lea edx, [ebp - 0x450]
push edx
push 0
push 0
push 0x2b
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x409780
push 0x40b3b8
push 0x104
lea eax, [ebp - 0x450]
push eax
call fcn.00406310
jmp 0x40979e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40b3d8
push str.SHGetFolderPath_failed
call fcn.004080a0
add esp, 0xc
jmp 0x409874
lea ecx, [ebp - 0x450]
push ecx
push 0x104
lea edx, [ebp - 0x248]
push edx
call fcn.004062c0
push str.AdobeARMHelper.exe
push 0x104
lea eax, [ebp - 0x248]
push eax
call fcn.00406310
push 0xffffffffffffffff
lea ecx, [ebp - 0x248]
push ecx
call fcn.004095f0
add esp, 8
test eax, eax
jne 0x4097fc
push 0x357
lea edx, [ebp - 0x248]
push edx
push str.Service_workflow_failed__file_not_valid:
call fcn.004080a0
add esp, 0xc
jmp 0x409874
mov dword [ebp - 0x3c], 0
push 0x38
push 0
lea eax, [ebp - 0x38]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x540
mov dword [ebp - 0x20], 5
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0x248]
mov dword [ebp - 0x2c], edx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40985b
push 0
push 0x40b48c
push str.ShellExecuteEx_succeeded
call fcn.004080a0
add esp, 0xc
jmp 0x409874
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40b4c4
push str.ShellExecuteEx_failed
call fcn.004080a0
add esp, 0xc
mov ecx, dword [ebp - 0x40]
xor ecx, ebp
call fcn.00407458
mov esp, ebp
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x432002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x432072
mov ebx, 0x40c7d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x69ab7be3
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x432060
nop
nop
mov eax, section..text_1
nop
cmp eax, 0
nop
nop
je 0x4320d2
nop
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x120c435f
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x4320c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor eax, eax
push str.shell32.dll
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40106d
push str.SHGetKnownFolderPath
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401066
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0x48323c
call eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x401066
push 0x7ff
push eax
push 0x800
push edi
call fcn.00402df2
mov edx, dword [ebp - 4]
add esp, 0x10
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp word [edi], 0
pop esi
jne 0x401081
push 0
push 0x1c
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esp, ebp
pop ebp
ret
Function at 0x401430
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4aa024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
call fcn.00401220
mov esi, eax
cmp esi, ebx
je 0x4014a1
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
push ebx
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x10], ecx
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push esi
mov dword [ebp - 0x14], 0x10
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402de3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00402de3
mov esp, ebp
pop ebp
ret
Function at 0x4019c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
mov edi, ecx
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0xc], ebx
cmp ebx, 0xffffffff
je 0x401a8b
lea ecx, [ebp - 0x18]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x401a84
cmp dword [ebp - 0x14], esi
jne 0x401a84
mov edx, dword [ebp - 0x18]
cmp edx, 0x7fffffff
ja 0x401a84
cmp edx, esi
je 0x401a84
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov esi, ecx
sub esi, eax
mov byte [ebp - 8], 0
cmp edx, esi
jbe 0x401a48
lea esi, [ebp - 8]
push esi
sub eax, ecx
push ecx
add eax, edx
mov ecx, edi
call fcn.00401aa0
mov edx, dword [ebp - 0x18]
jmp 0x401a6b
jae 0x401a6b
lea ebx, [eax + edx]
cmp ebx, ecx
je 0x401a68
mov esi, ecx
sub esi, ecx
push esi
push ecx
push ebx
call fcn.00403070
mov edx, dword [ebp - 0x18]
add esp, 0xc
add esi, ebx
mov dword [edi + 4], esi
mov ebx, dword [ebp - 0xc]
mov edi, dword [edi]
push 0
lea eax, [ebp - 0x10]
push eax
push edx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401a84
mov byte [ebp - 1], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401cf0
Capabilities:
Accept command line arguments

Disassembly:
push esi
push edi
mov esi, edx
lea edi, [ecx - 1]
test eax, eax
jne 0x401d01
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
movzx ecx, word [eax]
cmp ecx, 0x20
jne 0x401d21
lea esp, [esp]
test cx, cx
je 0x401d21
movzx ecx, word [eax + 2]
add eax, 2
cmp ecx, 0x20
je 0x401d10
movzx ecx, word [eax]
cmp ecx, 0x22
jne 0x401d6c
movzx ecx, word [eax + 2]
add eax, 2
cmp ecx, 0x22
je 0x401d61
test cx, cx
je 0x401d5b
test edi, edi
je 0x401d5b
add eax, 2
mov word [esi], cx
movzx ecx, word [eax]
add esi, 2
dec edi
cmp ecx, 0x22
jne 0x401d35
add eax, 2
xor ecx, ecx
pop edi
mov word [esi], cx
pop esi
ret
cmp word [eax], 0x22
jne 0x401d64
add eax, 2
xor ecx, ecx
pop edi
mov word [esi], cx
pop esi
ret
test cx, cx
je 0x401d99
cmp ecx, 0x20
je 0x401d91
test cx, cx
je 0x401d91
test edi, edi
je 0x401d91
add eax, 2
mov word [esi], cx
movzx ecx, word [eax]
add esi, 2
dec edi
cmp ecx, 0x20
jne 0x401d76
xor edx, edx
pop edi
mov word [esi], dx
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x402390
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481ef8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4aa024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [edi], vtable.PEFile.0
mov byte [edi + 4], 1
mov dword [edi + 5], esi
mov dword [edi + 9], esi
mov dword [edi + 0xd], esi
mov dword [edi + 0x11], esi
xor ebx, ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], esi
call fcn.004019c0
test al, al
jne 0x402409
mov eax, dword [ebp - 0x24]
cmp eax, esi
je 0x4024db
push eax
call fcn.00402ed5
add esp, 4
jmp 0x4024db
mov esi, dword [ebp - 0x24]
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x4024d0
mov edi, dword [esi + 0x3c]
test edi, edi
je 0x4024cd
cmp dword [edi + esi], 0x4550
jne 0x40245e
mov ecx, 0x10b
cmp word [edi + esi + 0x18], cx
jne 0x40245e
mov eax, dword [edi + esi + 0x50]
push 4
push 0x1000
push eax
lea edx, [edi + esi + 0xf8]
push 0
mov dword [ebp - 0x10], edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x402469
push esi
call fcn.00402ed5
mov edi, dword [ebp + 8]
jmp 0x4024d6
mov ecx, dword [edi + esi + 0x54]
push ecx
push esi
push ebx
call fcn.00408200
lea ecx, [edi + esi + 6]
xor edx, edx
add esp, 0xc
mov dword [ebp + 0xc], 0
mov dword [ebp - 0x14], ecx
cmp dx, word [ecx]
jae 0x4024c2
mov edi, dword [ebp - 0x10]
add edi, 0x14
mov eax, dword [edi]
test eax, eax
je 0x4024b1
mov ecx, dword [edi - 4]
mov edx, dword [edi - 8]
push ecx
add eax, esi
push eax
add edx, ebx
push edx
call fcn.00408200
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov eax, dword [ebp + 0xc]
movzx edx, word [ecx]
inc eax
add edi, 0x28
mov dword [ebp + 0xc], eax
cmp eax, edx
jb 0x402493
push esi
call fcn.00402ed5
mov edi, dword [ebp + 8]
jmp 0x4024d6
mov edi, dword [ebp + 8]
push esi
call fcn.00402ed5
add esp, 4
xor esi, esi
mov dword [edi + 5], ebx
mov eax, edi
cmp ebx, esi
je 0x4024f6
mov dword [edi + 9], ebx
add ebx, dword [ebx + 0x3c]
mov dword [edi + 0xd], ebx
add ebx, 0xf8
mov dword [edi + 0x11], 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 8
Function at 0x402de3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4aa024]
jne 0x402ded
repz ret
jmp fcn.00404776

Function at 0x40a57c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4aa024]
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.0040597e
and dword [ebp - 0x14], 0
cmp dword [0x4ad278], 0
mov dword [ebp - 0x18], eax
jne 0x40a62f
push 0x485164
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40a6d7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40a6d7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4ad278], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4ad27c], eax
call edi
push eax
call esi
push 0x485118
push ebx
mov dword [0x4ad280], eax
call edi
push eax
call esi
mov dword [0x4ad288], eax
test eax, eax
je 0x40a62f
push 0x485100
push ebx
call edi
push eax
call esi
mov dword [0x4ad284], eax
mov eax, dword [0x4ad284]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40a688
cmp dword [0x4ad288], ecx
je 0x40a688
push eax
call esi
push dword [0x4ad288]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40a688
test ebx, ebx
je 0x40a688
call edi
test eax, eax
je 0x40a67f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40a67f
test byte [ebp - 8], 1
jne 0x40a688
or dword [ebp + 0x10], 0x200000
jmp 0x40a6bb
mov eax, dword [0x4ad27c]
cmp eax, dword [ebp - 0x18]
je 0x40a6bb
push eax
call esi
test eax, eax
je 0x40a6bb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40a6bb
mov eax, dword [0x4ad280]
cmp eax, dword [ebp - 0x18]
je 0x40a6bb
push eax
call esi
test eax, eax
je 0x40a6bb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4ad278]
call esi
test eax, eax
je 0x40a6d7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40a6d9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402de3
leave
ret