joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4016b0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x1c
push str.Rebooting...
call fcn.00401240
add esp, 4
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4016de
xor eax, eax
add esp, 0x1c
ret
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
push 0
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4016d8
push 0x40000
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
add esp, 0x1c
ret

Function at 0x401740
Capabilities:
Create process on windows

Disassembly:
push ecx
push esi
push edi
push str.C:_restore.bat
push str.Executing_bat_file__s
call fcn.00401240
push 0x4143f0
push str.C:_restore.bat
call fcn.00403c77
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40179c
push 2
push 0
push esi
call fcn.00404c6c
add esp, 0xc
push esi
call fcn.00404e8e
add esp, 4
push 0
push 0
push esi
mov edi, eax
call fcn.00404c6c
add esp, 0xc
push esi
call fcn.00403ee9
add esp, 4
test edi, edi
jg 0x4017b2
push str.C:_restore.bat
push str.The_bat_file__s_does_not_exist
call fcn.00401240
add esp, 8
pop edi
pop esi
pop ecx
ret
push 0
push 0
push 0
push str.C:_restore.bat
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
pop ecx
ret

Function at 0x402380
Capabilities:
Create thread

Disassembly:
sub esp, 0x128
mov eax, dword [0x416040]
xor eax, esp
mov dword [esp + 0x124], eax
push esi
push edi
push 0x104
lea eax, [esp + 0x2c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x28]
push 0x5c
push ecx
call fcn.00404200
add esp, 8
test eax, eax
je 0x4023eb
mov byte [eax], 0
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4023c5
sub eax, edx
lea edx, [esp + 0x28]
mov edi, eax
push edx
mov eax, 0x417ba8
call fcn.00402c30
mov eax, 8
call fcn.00402b70
jmp 0x4023ff
push str.log.txt
mov edi, 7
mov eax, 0x417ba8
call fcn.00402c30
push str.The_application_started
call fcn.00401240
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x401dd0
push 0
push 0
call fcn.00404145
add esp, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
call esi
test eax, eax
je 0x40245f
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea edx, [esp + 0xc]
push edx
call edi
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
call esi
test eax, eax
jne 0x402447
mov ecx, dword [esp + 0x12c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
xor ecx, esp
call fcn.00403a66
add esp, 0x128
ret 0x10
Function at 0x402de0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402df7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402e28
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x402e24
cmp esi, eax
jae 0x402e28
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x402e14
cmp esi, eax
jb 0x402e2e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x402fc0
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
push 0x4143f0
push str.C:health_check.txt
call fcn.00403c77
mov edi, eax
add esp, 8
test edi, edi
je 0x403003
push 2
push 0
push edi
call fcn.00404c6c
push edi
call fcn.00404e8e
push 0
push 0
push edi
mov esi, eax
call fcn.00404c6c
push edi
call fcn.00403ee9
add esp, 0x20
test esi, esi
jg 0x403008
pop edi
xor eax, eax
pop esi
ret
push 0x4143f0
push str.C:health_check.txt
call fcn.00403c77
mov edi, eax
add esp, 8
test edi, edi
je 0x403003
mov eax, dword [ebx]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, esi
or ecx, edx
jge 0x40303f
mov ecx, esi
mov eax, ebx
call fcn.00402cc0
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x40306a
push edi
push esi
mov dword [eax - 0xc], esi
mov ecx, dword [ebx]
push 1
push eax
mov byte [esi + ecx], 0
call fcn.00404bc5
push edi
call fcn.00403ee9
add esp, 0x14
pop edi
mov eax, 1
pop esi
ret
push 0x80070057
call fcn.00402f50
int3
Function at 0x403a66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x416040]
jne 0x403a70
repz ret
jmp fcn.00405e83

Function at 0x410cbc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405ffb
and dword [ebp - 4], 0
cmp dword [0x417acc], 0
mov ebx, eax
jne 0x410d6d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x410e1e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x410e1e
push eax
call fcn.00405f89
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x417acc], eax
call esi
push eax
call fcn.00405f89
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x417ad0], eax
call esi
push eax
call fcn.00405f89
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x417ad4], eax
call esi
push eax
call fcn.00405f89
pop ecx
mov dword [0x417adc], eax
test eax, eax
je 0x410d6d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405f89
pop ecx
mov dword [0x417ad8], eax
mov eax, dword [0x417ad8]
cmp eax, ebx
je 0x410dc5
cmp dword [0x417adc], ebx
je 0x410dc5
push eax
call fcn.00406004
push dword [0x417adc]
mov esi, eax
call fcn.00406004
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x410dc5
test edi, edi
je 0x410dc5
call esi
test eax, eax
je 0x410dbc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x410dbc
test byte [ebp - 0xc], 1
jne 0x410dc5
or dword [ebp + 0x10], 0x200000
jmp 0x410dfe
mov eax, dword [0x417ad0]
cmp eax, ebx
je 0x410dfe
push eax
call fcn.00406004
pop ecx
test eax, eax
je 0x410dfe
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x410dfe
mov eax, dword [0x417ad4]
cmp eax, ebx
je 0x410dfe
push eax
call fcn.00406004
pop ecx
test eax, eax
je 0x410dfe
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x417acc]
call fcn.00406004
pop ecx
test eax, eax
je 0x410e1e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x410e20
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401350
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x46c
mov eax, dword [0x40e614]
mov dword [ebp - 0x454], 5
mov dword [esp + 4], str.AppID_
mov edi, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [ebp - 0x45c], eax
lea eax, [ebp - 0x468]
mov dword [ebp - 0x440], 0x100
mov dword [ebp - 0x458], 0xffff0001
mov dword [esp + 8], eax
mov dword [esp], 0x80000000
call edi
sub esp, 0xc
test eax, eax
jne 0x401504
mov esi, 0xffffffff
lea ebx, [ebp - 0x418]
lea esi, [esi]
mov eax, dword [ebp - 0x468]
inc esi
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x4014c8
lea eax, [ebp - 0x464]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x468]
mov dword [esp], eax
call edi
sub esp, 0xc
test eax, eax
jne 0x4013c0
lea eax, [ebp - 0x460]
lea edx, [ebp - 0x218]
mov dword [ebp - 0x460], 0x200
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x464]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
mov ecx, eax
sub esp, 0x10
mov eax, ebx
test ecx, ecx
jne 0x40145e
lea edx, [ebp - 0x218]
cmp word [ebp - 0x218], 0
mov eax, edx
cmove eax, ebx
mov dword [ebp - 0x444], eax
mov eax, dword [ebp - 0x464]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ecx, ebx
mov edx, ebx
mov eax, 2
sub esp, 4
mov dword [esp], 0
call sym._CreateITEM_INFO
mov dword [esp + 8], 0
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x45c]
mov dword [esp + 0xc], eax
mov eax, dword [0x40e330]
mov dword [esp + 4], 0x1132
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
jmp 0x4013c0
mov eax, dword [ebp - 0x468]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [0x40e614]
sub esp, 4
mov dword [esp + 0xc], eax
mov eax, dword [0x40e330]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1113
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401fb0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov edx, 0xffff0000
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x69c
mov eax, dword [0x40e604]
mov dword [ebp - 0x654], 0x45
mov dword [ebp - 0x640], 0x100
test eax, eax
mov dword [esp + 4], str.Component_Categories_
cmove eax, edx
mov dword [esp], 0x80000000
mov dword [ebp - 0x658], 0xffff0001
mov dword [ebp - 0x65c], eax
lea eax, [ebp - 0x670]
mov dword [esp + 8], eax
mov eax, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [ebp - 0x634], 1
mov dword [ebp - 0x67c], eax
call eax
sub esp, 0xc
test eax, eax
jne 0x4021fc
mov ebx, 0xffffffff
lea esi, [ebp - 0x618]
lea esi, [esi]
mov eax, dword [ebp - 0x670]
inc ebx
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x4021c0
lea eax, [ebp - 0x66c]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x670]
mov dword [esp], eax
mov eax, dword [ebp - 0x67c]
call eax
sub esp, 0xc
test eax, eax
jne 0x402038
lea eax, [ebp - 0x668]
lea edi, [ebp - 0x218]
mov dword [ebp - 0x668], 0x200
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x66c]
mov dword [ebp - 0x664], 0x200
mov dword [ebp - 0x660], 0x200
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
sub esp, 0x10
test eax, eax
jne 0x402150
cmp word [ebp - 0x218], 0
je 0x402150
mov eax, dword [ebp - 0x66c]
mov dword [ebp - 0x644], edi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ecx, esi
mov edx, esi
mov eax, 1
sub esp, 4
mov dword [esp], 0
call sym._CreateITEM_INFO
mov dword [esp + 8], 0
mov dword [ebp - 0x630], eax
lea eax, [ebp - 0x65c]
mov dword [esp + 0xc], eax
mov eax, dword [0x40e330]
mov dword [esp + 4], 0x1132
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
jmp 0x402038
lea eax, [ebp - 0x664]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x660]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x418]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x66c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumValueW]
sub esp, 0x20
test eax, eax
jne 0x402038
cmp word [ebp - 0x218], 0
jne 0x4020e3
jmp 0x402038
mov eax, dword [ebp - 0x670]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [0x40e604]
sub esp, 4
mov dword [esp + 0xc], eax
mov eax, dword [0x40e330]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1113
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402210
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x46c
mov eax, dword [0x40e61c]
mov dword [ebp - 0x454], 5
mov dword [esp + 4], str.Interface_
mov edi, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [ebp - 0x45c], eax
lea eax, [ebp - 0x468]
mov dword [ebp - 0x440], 0x100
mov dword [ebp - 0x458], 0xffff0001
mov dword [esp + 8], eax
mov dword [esp], 0x80000000
call edi
sub esp, 0xc
test eax, eax
jne 0x4023c4
mov esi, 0xffffffff
lea ebx, [ebp - 0x418]
lea esi, [esi]
mov eax, dword [ebp - 0x468]
inc esi
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x402388
lea eax, [ebp - 0x464]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x468]
mov dword [esp], eax
call edi
sub esp, 0xc
test eax, eax
jne 0x402280
lea eax, [ebp - 0x460]
lea edx, [ebp - 0x218]
mov dword [ebp - 0x460], 0x200
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x464]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
mov ecx, eax
sub esp, 0x10
mov eax, ebx
test ecx, ecx
jne 0x40231e
lea edx, [ebp - 0x218]
cmp word [ebp - 0x218], 0
mov eax, edx
cmove eax, ebx
mov dword [ebp - 0x444], eax
mov eax, dword [ebp - 0x464]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ecx, ebx
mov edx, ebx
mov eax, 0xa
sub esp, 4
mov dword [esp], 0
call sym._CreateITEM_INFO
mov dword [esp + 8], 0
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x45c]
mov dword [esp + 0xc], eax
mov eax, dword [0x40e330]
mov dword [esp + 4], 0x1132
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
jmp 0x402280
mov eax, dword [ebp - 0x468]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [0x40e61c]
sub esp, 4
mov dword [esp + 0xc], eax
mov eax, dword [0x40e330]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1113
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4023d0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x2c
cmp word [edx], 0
je 0x402460
mov eax, edx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x4023e8
sub eax, edx
lea edi, [eax + 2]
sar eax, 1
mov ebx, eax
mov eax, dword [esi + 0x204]
mov dword [esp + 4], 0
mov ecx, dword fs:[0x18]
lea eax, [ebx + eax + 1]
mov dword [ebp - 0x1c], edx
add eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [esi]
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
mov ecx, dword [esi + 0x204]
mov edx, dword [ebp - 0x1c]
sub esp, 0x10
mov dword [esi], eax
lea eax, [eax + ecx*2]
mov dword [esp + 8], edi
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._memcpy
add dword [esi + 0x204], ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor ebx, ebx
mov edi, 2
jmp 0x4023fa
Function at 0x402470
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
sub esp, 0x2c
movzx edx, word [edx]
test dx, dx
je 0x4025e4
mov ebx, eax
mov eax, esi
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x402490
mov ecx, eax
sub ecx, esi
sar ecx, 1
cmp esi, eax
je 0x4025e4
mov eax, esi
xor edi, edi
lea esi, [esi]
nop
cmp dx, 0xa
sete dl
add eax, 2
movzx edx, dl
add edi, edx
movzx edx, word [eax]
test dx, dx
jne 0x4024b0
cmp word [eax - 2], 0xa
setne al
movzx eax, al
add edi, eax
mov eax, dword [ebx + 0x204]
mov edx, dword fs:[0x18]
lea eax, [eax + ecx + 1]
lea eax, [eax + edi*4]
add eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
mov dword [ebx], eax
sub esp, 0x10
test edi, edi
je 0x4025e4
mov ecx, esi
jmp 0x402530
test ax, ax
je 0x402539
add esi, 2
test edi, edi
je 0x4025e4
movzx eax, word [esi]
cmp ax, 0xa
jne 0x402520
dec edi
test ax, ax
jne 0x4025f0
cmp word [ecx], 0
mov eax, ecx
je 0x402630
nop
add eax, 2
cmp word [eax], 0
jne 0x402550
sub eax, ecx
mov edx, eax
mov dword [ebp - 0x20], eax
sar edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebx]
mov edx, dword [ebx + 0x204]
mov word [eax + edx*2], 0x20
mov eax, dword [ebx]
mov edx, dword [ebx + 0x204]
mov word [eax + edx*2 + 2], 0x20
mov eax, dword [ebx]
mov edx, dword [ebx + 0x204]
mov word [eax + edx*2 + 4], 0x20
mov eax, dword [ebx]
mov edx, dword [ebx + 0x204]
mov word [eax + edx*2 + 6], 0x20
mov edx, dword [ebx + 0x204]
mov eax, dword [ebx]
mov dword [esp + 4], ecx
lea eax, [eax + edx*2 + 8]
mov edx, dword [ebp - 0x20]
mov dword [esp], eax
mov dword [esp + 8], edx
call sym._memcpy
mov eax, dword [ebx + 0x204]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebx]
lea eax, [ecx + eax + 4]
xor ecx, ecx
mov dword [ebx + 0x204], eax
mov word [edx + eax*2], cx
mov ecx, esi
test edi, edi
jne 0x402530
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
mov word [esi], ax
cmp word [ecx], 0
je 0x402648
mov eax, ecx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x402600
sub eax, ecx
mov edx, eax
add eax, 2
sar edx, 1
mov dword [ebp - 0x20], eax
inc edx
mov dword [ebp - 0x1c], edx
mov eax, 0xa
add esi, 2
mov word [esi - 2], ax
jmp 0x402565
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
jmp 0x402565
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x1c], 1
jmp 0x402619

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

Disassembly:
push ebp
mov edx, 0x40e600
xor eax, eax
mov ecx, 8
mov ebp, esp
push edi
mov edi, edx
sub esp, 4
rep stosd dword es:[edi], eax
call sym._AddComponentCategories
mov edi, dword [ebp - 4]
leave
jmp sym._AddCOMandAll

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sym._AddBaseEntries
call sym._AddComponentCategories
call sym._AddCOMandAll
call sym._AddApplicationID
call sym._AddTypeLib
leave
jmp sym._AddInterfaces
Function at 0x402ba0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
mov esi, ecx
push ebx
mov ebx, edx
mov eax, dword fs:[0x18]
sub esp, 0x1c
mov dword [esp + 8], 0x60c
mov dword [esp + 4], 8
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp + 8]
mov ecx, eax
mov eax, edi
sub esp, 0xc
mov byte [ecx], al
xor eax, eax
lea esi, [esi]
movzx edi, word [ebx + eax]
mov word [ecx + eax + 2], di
add eax, 2
test di, di
jne 0x402be8
test esi, esi
je 0x402c14
xor eax, eax
nop
movzx ebx, word [esi + eax]
mov word [ecx + eax + 0x202], bx
add eax, 2
test bx, bx
jne 0x402c00
test edx, edx
je 0x402c34
xor eax, eax
lea esi, [esi]
movzx ebx, word [edx + eax]
mov word [ecx + eax + 0x402], bx
add eax, 2
test bx, bx
jne 0x402c20
lea esp, [ebp - 0xc]
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4033f0
Capabilities:
Get graphical window text

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
xor eax, eax
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x18
cmp dword [ecx + 4], 0x111
mov ebx, dword [ecx]
mov edx, dword [ecx + 8]
je 0x403428
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
movzx ecx, dx
cmp dx, 1
je 0x403460
cmp ecx, 2
jne 0x403414
mov dword [esp], ebx
mov dword [esp + 4], 2
call dword [sym.imp.user32.dll_EndDialog]
mov eax, 1
sub esp, 8
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov edx, 0x40e348
mov ecx, pe_nt_image_headers32
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [esp + 4], 0x3e9
mov dword [esp], ebx
call dword [sym.imp.user32.dll_GetDlgItem]
sub esp, 8
mov esi, eax
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowTextLengthW]
sub esp, 4
test eax, eax
jle 0x4034b0
mov dword [esp + 8], 0x100
mov dword [esp + 4], 0x40e348
mov dword [esp], esi
call dword [sym.imp.user32.dll_GetWindowTextW]
sub esp, 0xc
mov dword [esp], ebx
mov dword [esp + 4], 1
call dword [sym.imp.user32.dll_EndDialog]
mov eax, 1
sub esp, 8
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
Function at 0x404010
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push esi
push ebx
mov esi, dword fs:[0x18]
sub esp, 0x40
mov word [ebp - 0xa], ax
mov dword [esp + 8], 0x1c
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x12], 0x410050
mov eax, dword [eax + 0x18]
mov dword [ebp - 0xe], 0x45004e
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ebx, eax
mov eax, dword [ebp + 0x10]
sub esp, 0xc
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x12]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80000000
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0x50000000
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.user32.dll_CreateWindowExW]
mov edx, dword [ebp + 0xc]
sub esp, 0x30
mov dword [edx], eax
test eax, eax
je 0x4040f0
mov dword [ebx], 0
mov eax, 1
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0x12c
mov dword [ebx + 0xc], 5
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
xor eax, eax
sub esp, 0xc
jmp 0x4040e1
Function at 0x404dd0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov edx, eax
xor ecx, ecx
xor eax, eax
mov ebp, esp
push esi
push ebx
sub esp, 0x250
mov dword [ebp + eax - 0x220], ecx
add eax, 4
cmp eax, 0x18
jb 0x404de1
mov eax, dword [0x40e33c]
lea esi, [ebp - 0x208]
mov dword [esp + 0x20], edx
mov dword [ebp - 0x218], esi
mov ebx, dword [sym.imp.user32.dll_CreateWindowExW]
mov dword [ebp - 0x224], 1
mov dword [ebp - 0x214], 0x100
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0x7d2
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x50000000
mov dword [esp + 8], 0
mov dword [esp + 4], str.SysTabControl32
mov dword [esp], 0
call ebx
sub esp, 0x30
mov dword [0x40e30c], eax
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.user32.dll_ShowWindow]
mov eax, dword [0x40e33c]
sub esp, 8
mov dword [esp + 8], esi
mov dword [esp + 0xc], 0x100
mov dword [esp + 4], 0xfa
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
lea eax, [ebp - 0x224]
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [0x40e30c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x133e
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
mov eax, dword [0x40e33c]
sub esp, 0x10
mov dword [esp + 0x28], eax
mov eax, dword [0x40e30c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x50000002
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40f020
mov dword [esp], 0x200
call ebx
mov dword [0x40e310], eax
sub esp, 0x30
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret