joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404340
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [esp + 0x20]
push 0
push edi
push 0
push 0
mov ebx, dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push closesocket
push 0
push closesocket
push 0xcf0000
push 0x41e618
push 0x41e618
push 0
call ebx
mov esi, eax
test esi, esi
jne 0x404385
pop edi
pop esi
pop ebx
add esp, 0x10
ret
xor eax, eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
push esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push 0
push edi
push 0
push esi
push edx
push eax
push 0
push 0
push 0x50300100
push 0x41c2c4
push str.ListBox
push 0
call ebx
test eax, eax
mov dword [0x61e770], eax
jne 0x4043de
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov ecx, dword [esp + 0x24]
push ecx
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [esp + 0x28]
push 0
push edx
push 1
push esi
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x61e77c], edi
pop edi
mov dword [0x61e780], eax
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret

Function at 0x4079b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x417f13
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x419560
mov dword [esp + 0x14], 1
xor edi, edi
mov eax, dword [esi + 0x28]
test eax, eax
je 0x407a12
mov ecx, dword [esi + 0x2c]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jae 0x407a12
mov edx, eax
mov ecx, dword [edx + edi*4]
test ecx, ecx
je 0x407a0f
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esi + 0x28]
mov ecx, dword [ecx + edi*4]
test ecx, ecx
je 0x407a0f
mov edx, dword [ecx]
push 1
call dword [edx]
inc edi
jmp 0x4079de
mov eax, dword [esi + 0x28]
push eax
mov dword [esp + 0xc], eax
call fcn.0040afd2
add esp, 4
mov ecx, esi
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esp + 0x14], 0xffffffff
call fcn.004020e0
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4087f0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418030
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov edx, ecx
push ebx
push esi
push edi
mov eax, dword [edx + 0x2c]
mov dword [ebp - 0x10], esp
test eax, eax
jne 0x408832
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov al, byte [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov byte [ebp - 0x118], al
xor eax, eax
mov ax, word [esi]
lea edi, [ebp - 0x117]
mov ecx, eax
mov word [esi + 2], 1
mov ebx, ecx
mov dword [ebp - 4], 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [edx + 0x2c]
lea edx, [ebp + 0xc]
push edx
lea edx, [ebp - 0x118]
push edx
lea edx, [ebp + 8]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x30]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x408ba0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push 0xffffffffffffffff
push 0x418058
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
call fcn.00401f70
lea ebp, [esi + 0xc]
xor ebx, ebx
mov ecx, ebp
mov dword [esp + 0x24], ebx
call fcn.004020a0
mov dword [esi], 0x4195a0
mov dword [ebp], 0x41959c
mov cl, byte [esp + 0x13]
mov al, byte [esp + 0x13]
mov edi, 1
mov byte [esi + 0x101], cl
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], edi
mov byte [esi + 0x100], al
mov byte [esi + 0x108], bl
call fcn.00416d8e
mov eax, dword [0x61e79c]
mov byte [esp + 0x24], 2
cmp eax, ebx
jne 0x408c3e
push 0x34
call fcn.0040b2aa
mov dword [eax + 4], ebx
mov dword [eax + 0x30], edi
mov dword [0x61e79c], eax
mov dword [eax], ebx
mov edx, dword [0x61e79c]
add esp, 4
mov dword [edx + 8], ebx
mov edi, dword [0x61e798]
push 0x34
inc edi
mov dword [0x61e798], edi
mov edi, dword [0x61e79c]
call fcn.0040b2aa
mov dword [eax + 4], edi
mov dword [eax + 0x30], ebx
mov dword [esi + 0x104], eax
mov dword [esi + 0x10c], ebx
mov dword [eax], eax
mov eax, dword [esi + 0x104]
add esp, 4
lea ecx, [esp + 0x14]
mov dword [eax + 8], eax
mov byte [esp + 0x24], 1
call fcn.00416e2a
mov ecx, 0x20
xor eax, eax
lea edi, [esi + 0x70]
mov dword [esi], 0x419588
mov dword [ebp], 0x419584
mov dword [esi + 0x4c], ebx
mov byte [esi + 0x2c], bl
mov dword [esi + 0xfc], ebx
mov dword [esi + 0x5c], ebx
rep stosd dword es:[edi], eax
mov eax, 0x409310
xor ecx, ecx
mov dword [esi + 0x78], eax
mov eax, 0x4095e0
mov dword [esi + 0x80], eax
mov eax, 0x4096f0
mov dword [esi + 0x88], eax
xor eax, eax
mov dword [esi + 0x90], eax
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x84], ecx
mov dword [esi + 0x8c], ecx
mov dword [esi + 0x94], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0xf0], ebx
mov dword [esi + 0xf4], ebx
mov dword [esi + 0xf8], ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x41079e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41da58
cmp edx, dword [eax]
je 0x4107c0
add eax, 8
inc ecx
cmp eax, 0x41dae8
jl 0x4107b1
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41da58]
jne 0x4108ee
mov eax, dword [0x61e7c0]
cmp eax, 1
je 0x4108c8
test eax, eax
jne 0x4107f1
cmp dword [0x41d104], 1
je 0x4108c8
cmp edx, 0xfc
je 0x4108ee
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x410828
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004127b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00412580
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41086b
lea eax, [ebp - 0x1a4]
push eax
call fcn.00412580
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4199f0
push edi
call fcn.0040c4b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004127b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004127c0
lea eax, [ebp - 0xa0]
push 0x4199d0
push eax
call fcn.004127c0
push dword [esi + 0x41da5c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004127c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00412a4c
add esp, 0x2c
pop edi
jmp 0x4108ee
lea eax, [ebp + 8]
lea esi, [esi + 0x41da5c]
push 0
push eax
push dword [esi]
call fcn.00412580
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4013d6
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push 0x80000001
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x40144b
push ebx
push edi
push 0x85
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
cmp ebx, esi
je 0x401444
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x40143f
mov eax, dword [ebp - 0x1c]
dec eax
je 0x40143f
dec eax
je 0x40143a
dec eax
je 0x40143f
dec eax
je 0x40143a
dec eax
dec eax
je 0x40143a
dec eax
je 0x40143a
sub eax, 0x39
jne 0x401441
xor esi, esi
inc esi
jmp 0x401441
xor esi, esi
push ebx
call edi
push dword [ebp - 4]
call edi
pop edi
pop ebx
mov eax, esi
pop esi
leave
ret 4

Function at 0x40147f
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
push 0x80000001
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 4], esi
cmp esi, edi
jne 0x4014a3
xor eax, eax
jmp 0x401503
push ebx
push 0x200000a0
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
cmp ebx, edi
jne 0x4014c4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x401502
mov esi, dword [sym.imp.ADVAPI32.dll_ControlService]
lea eax, [ebp - 0x20]
push eax
push 1
push ebx
call esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp + 8], eax
call edi
lea eax, [ebp - 0x20]
push eax
push 4
push ebx
call esi
push 0
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push dword [ebp - 4]
call esi
xor eax, eax
cmp dword [ebp + 8], eax
setne al
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x40166c
Capabilities:
Create process on windows

Disassembly:
push 0x14
mov eax, 0x40abb9
call fcn.00409c2a
call fcn.00401509
lea eax, [ebp - 0x18]
push eax
mov edi, str.DSUDiskOptimizer
call fcn.00401bae
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
mov edi, str.DSUDefragSrv.exe
mov dword [ebp - 4], ebx
call fcn.00401bae
mov byte [ebp - 4], 1
call fcn.0040110b
test al, al
je 0x4016b9
push str.DSUDefragSrv64.exe
lea eax, [ebp - 0x14]
push eax
call fcn.00401c56
mov eax, dword [0x410984]
add eax, 0xfffffff0
call fcn.004020e5
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push 0x40cbd0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00401de5
pop ecx
pop ecx
mov byte [ebp - 4], 3
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.004021cb
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00402447
push ebx
push ebx
push 0x40cbd4
push dword [ebp - 0x10]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push ebx
push ecx
mov eax, esp
mov dword [ebp - 0x1c], esp
push eax
mov edi, 0x40cc68
call fcn.00401bae
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x18]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x20], esp
mov esi, esp
call fcn.004020e5
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 2
call fcn.004019cb
add esp, 0xc
cmp eax, ebx
setne al
cmp al, bl
jne 0x4017c0
push ebx
push ecx
mov eax, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.00401bae
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x18]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
call fcn.004020e5
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 2
call fcn.004019cb
add esp, 0xc
cmp eax, ebx
setne al
cmp al, bl
jne 0x4017c0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402447
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00402447
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00402447
mov eax, ebx
call fcn.00409c93
ret
xor ebx, ebx
inc ebx
jmp 0x401797
Function at 0x4017c5
Capabilities:
Create process on windows

Disassembly:
push 0x10
mov eax, 0x40ab6e
call fcn.00409c2a
call fcn.00401509
lea eax, [ebp - 0x1c]
push eax
mov edi, str.DSUDiskOptimizer
call fcn.00401bae
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
mov edi, str.DSUDefragSrv.exe
call fcn.00401bae
mov byte [ebp - 4], 1
call fcn.0040110b
test al, al
je 0x401811
push str.DSUDefragSrv64.exe
lea eax, [ebp - 0x10]
push eax
call fcn.00401c56
mov eax, dword [0x410984]
add eax, 0xfffffff0
call fcn.004020e5
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 0x40cbd0
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00401de5
pop ecx
pop ecx
mov byte [ebp - 4], 3
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x14]
call fcn.004021cb
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00402447
mov esi, dword [ebp - 0x14]
push 0
push 0
push str._Remove
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esi - 0x10]
call fcn.00402447
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402447
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00402447
xor eax, eax
inc eax
call fcn.00409c93
ret

Function at 0x4018c5
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x7ac]
sub esp, 0x82c
mov eax, dword [0x40f13c]
xor eax, ebp
mov dword [ebp + 0x7a8], eax
push esi
mov esi, dword [ebp + 0x7bc]
push edi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x820
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.00403870
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40193f
lea eax, [ebp - 0x80]
push eax
lea edi, [ebp - 0x78]
call fcn.00401bae
lea eax, [ebp - 0x80]
call fcn.00401c06
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff0
call fcn.00402447
lea eax, [ebp - 0x7c]
push eax
mov edi, esi
call fcn.00401bae
lea eax, [ebp - 0x7c]
call fcn.00401cb5
lea eax, [ebp - 0x7c]
call fcn.00401cde
mov eax, dword [ebp - 0x7c]
cmp dword [eax - 0xc], 0
je 0x4019a5
push str.killservice
lea esi, [ebp - 0x7c]
call fcn.00401c8a
test eax, eax
jl 0x401979
call fcn.00401509
push str.installservice
lea esi, [ebp - 0x7c]
call fcn.00401c8a
test eax, eax
jl 0x40198f
call fcn.0040166c
push str.removeservice
lea esi, [ebp - 0x7c]
call fcn.00401c8a
test eax, eax
jl 0x4019a5
call fcn.004017c5
mov eax, dword [ebp - 0x7c]
add eax, 0xfffffff0
call fcn.00402447
mov ecx, dword [ebp + 0x7a8]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00403029
add ebp, 0x7ac
leave
ret 0x10
Function at 0x4019cb
Capabilities:
Continue service
Modify service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x401a02
cmp dword [ebp + 0x10], 2
je 0x401a02
cmp dword [ebp + 0x10], 3
je 0x401a02
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00402447
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00402447
xor eax, eax
jmp 0x401b88
push ebx
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 4], ebx
cmp ebx, esi
jne 0x401a36
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00402447
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00402447
xor eax, eax
jmp 0x401b87
push edi
push 0xf01ff
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
jne 0x401a58
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x401b6e
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x401b65
xor ebx, ebx
inc ebx
cmp dword [ebp + 0x10], 3
jne 0x401ac9
cmp dword [ebp - 0x1c], ebx
je 0x401a85
lea eax, [ebp - 0x20]
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x401ac5
push dword [ebp - 4]
push edi
call fcn.00401b8b
pop ecx
pop ecx
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00402447
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00402447
mov eax, esi
jmp 0x401b86
mov esi, ebx
jmp 0x401aa8
cmp dword [ebp - 0x1c], ebx
jne 0x401b43
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x401a9d
cmp dword [ebp + 0x10], esi
jne 0x401b1d
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x401a9d
push dword [ebp - 4]
push edi
call fcn.00401b8b
mov eax, dword [ebp + 8]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.00402447
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00402447
mov eax, ebx
jmp 0x401b86
cmp dword [ebp - 0x1c], ebx
je 0x401b36
lea eax, [ebp - 0x20]
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x401a9d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401aeb
cmp dword [ebp - 0x1c], 7
jne 0x401b5e
lea eax, [ebp - 0x20]
push eax
push 3
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x401a9d
mov esi, ebx
jmp 0x401a9d
push ebx
push edi
call fcn.00401b8b
pop ecx
pop ecx
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00402447
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00402447
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4023d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4023e7
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40241c
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x402418
cmp edi, eax
jae 0x40241c
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x40240a
cmp edi, eax
jb 0x402420
xor eax, eax
jmp 0x402429
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x4024cb
Capabilities:
Link many functions at runtime

Disassembly:
or dword [esi + 0x38], 0xffffffff
or dword [esi + 0x3c], 0xffffffff
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebx, ebx
push edi
mov dword [esi], vtable.CEnumProcess.0
mov byte [esi + 4], bl
push str.Kernel32
mov byte [esi + 5], bl
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x40], eax
cmp eax, ebx
je 0x402595
push 0x40cc80
push eax
mov dword [esi + 0x44], 0x22c
mov dword [esi + 0x270], 0x428
call edi
push str.Process32First
push dword [esi + 0x40]
mov dword [esi + 0x698], eax
call edi
push str.Process32Next
push dword [esi + 0x40]
mov dword [esi + 0x69c], eax
call edi
push str.Module32First
push dword [esi + 0x40]
mov dword [esi + 0x6a0], eax
call edi
push str.Module32Next
push dword [esi + 0x40]
mov dword [esi + 0x6a4], eax
call edi
mov dword [esi + 0x6a8], eax
cmp dword [esi + 0x698], ebx
je 0x402595
cmp dword [esi + 0x69c], ebx
je 0x402595
cmp dword [esi + 0x6a0], ebx
je 0x402595
cmp dword [esi + 0x6a4], ebx
je 0x402595
cmp eax, ebx
je 0x402595
mov byte [esi + 5], 1
push str.PSAPI
call ebp
mov dword [esi + 0xc], eax
cmp eax, ebx
je 0x4025e7
push str.EnumProcesses
push eax
mov dword [esi + 0x10], 0x100
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
call edi
push str.EnumProcessModules
push dword [esi + 0xc]
mov dword [esi + 0x2c], eax
call edi
push str.GetModuleFileNameEx
push dword [esi + 0xc]
mov dword [esi + 0x30], eax
call edi
mov dword [esi + 0x34], eax
cmp dword [esi + 0x2c], ebx
je 0x4025e7
cmp dword [esi + 0x30], ebx
je 0x4025e7
cmp eax, ebx
je 0x4025e7
mov byte [esi + 4], 1
mov ecx, esi
mov dword [esi + 8], ebx
call fcn.0040268e
push 2
pop ecx
mov edx, eax
pop edi
or edx, ecx
pop ebp
pop ebx
cmp eax, edx
jne 0x402602
mov dword [esi + 8], ecx
xor ecx, ecx
inc ecx
mov edx, eax
or edx, ecx
cmp eax, edx
jne 0x402610
mov dword [esi + 8], ecx
mov eax, esi
ret
Function at 0x4029fd
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x40f13c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
push ebx
push 0x10
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x50], eax
cmp eax, ebx
je 0x402a98
push 0xf4
lea eax, [ebp - 0x148]
push ebx
push eax
mov dword [ebp - 0x14c], ebx
call fcn.00403870
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
add esp, 0xc
push ebx
push 0x40
lea eax, [ebp - 0x4c]
push eax
push edi
push dword [ebp - 0x50]
call esi
mov eax, 0x5a4d
cmp ax, word [ebp - 0x4c]
jne 0x402a7b
push ebx
push 0xf8
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 0x10]
add edi, eax
push edi
push dword [ebp - 0x50]
call esi
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14c], 0x4550
jne 0x402a98
mov eax, dword [ebp - 0x118]
jmp 0x402a9a
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403029
leave
ret 4

Function at 0x403029
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f13c]
jne 0x403033
repz ret
jmp fcn.00404e2c
Function at 0x407e9d
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.0040483b
and dword [ebp - 4], 0
cmp dword [0x410868], 0
mov ebx, eax
jne 0x407f4e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407fff
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407fff
push eax
call fcn.004047c9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x410868], eax
call esi
push eax
call fcn.004047c9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41086c], eax
call esi
push eax
call fcn.004047c9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x410870], eax
call esi
push eax
call fcn.004047c9
pop ecx
mov dword [0x410878], eax
test eax, eax
je 0x407f4e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004047c9
pop ecx
mov dword [0x410874], eax
mov eax, dword [0x410874]
cmp eax, ebx
je 0x407fa6
cmp dword [0x410878], ebx
je 0x407fa6
push eax
call fcn.00404844
push dword [0x410878]
mov esi, eax
call fcn.00404844
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407fa6
test edi, edi
je 0x407fa6
call esi
test eax, eax
je 0x407f9d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407f9d
test byte [ebp - 0xc], 1
jne 0x407fa6
or dword [ebp + 0x10], 0x200000
jmp 0x407fdf
mov eax, dword [0x41086c]
cmp eax, ebx
je 0x407fdf
push eax
call fcn.00404844
pop ecx
test eax, eax
je 0x407fdf
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407fdf
mov eax, dword [0x410870]
cmp eax, ebx
je 0x407fdf
push eax
call fcn.00404844
pop ecx
test eax, eax
je 0x407fdf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x410868]
call fcn.00404844
pop ecx
test eax, eax
je 0x407fff
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408001
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret