joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403920
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x514
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov edi, 0x412
mov ecx, 0x437
cmp ax, di
mov edx, 0x443
push 0
cmove edx, ecx
mov ecx, 0x434b58
push edx
call fcn.004018d0
push eax
call fcn.00405990
add esp, 4
mov dword [esi + 0x100], 1
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x104]
push 0x42a674
push eax
call fcn.00416aeb
push eax
lea eax, [ebp - 0x104]
push 0x104
push eax
call fcn.00415b43
lea eax, [ebp - 0x104]
push eax
call fcn.004174b1
add esp, 0x18
lea eax, [ebp - 0x514]
push 0x104
push eax
push dword [0x434b50]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x104]
push str.janus_inst.exe
push eax
lea eax, [ebp - 0x410]
push 0x42a688
push eax
call edi
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.00415b43
push 0x42a618
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.00415b9d
push 0x42a648
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.00415b9d
push str..cab
lea eax, [ebp - 0x208]
push 0x104
push eax
call fcn.00415b9d
add esp, 0x40
lea eax, [ebp - 0x208]
mov ecx, esi
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x514]
push eax
call fcn.004040f0
test eax, eax
jne 0x403a87
cmp dword [esi + 0x104], eax
jne 0x403a78
push str.FileSplit_error
push 0
call fcn.0040d100
add esp, 8
call fcn.00405a10
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.00405720
add esp, 8
test eax, eax
jne 0x403ab0
cmp dword [esi + 0x104], eax
jne 0x403a78
push str.DecompressFolder_error
jmp 0x403a6e
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.00405a10
cmp dword [ebp + 8], 0
lea eax, [ebp - 0x30c]
push str.janus_inst.exe
je 0x403ada
push str._s__express
jmp 0x403adf
push str._s__install
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x104]
mov ecx, esi
push 1
push eax
lea eax, [ebp - 0x30c]
push eax
call fcn.00403b30
lea eax, [ebp - 0x104]
mov ecx, esi
push eax
call fcn.00404570
pop edi
mov dword [esi + 0x100], 0
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x403b30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x358
push ebx
push esi
push edi
push 0x44
lea eax, [ebp - 0x54]
mov ebx, ecx
push 0
push eax
call fcn.00413c60
lea eax, [ebp - 0x358]
mov dword [ebp - 0x54], 0x44
xorps xmm0, xmm0
mov dword [ebp - 0x28], 1
push 0x104
mov esi, 1
push eax
mov word [ebp - 0x24], si
movups xmmword [ebp - 0x10], xmm0
call fcn.00417329
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x254]
add esp, 0x14
test edi, edi
je 0x403bcb
push edi
push 0x200
push eax
call fcn.00415b43
push 0x42a618
lea eax, [ebp - 0x254]
push 0x200
push eax
call fcn.00415b9d
push dword [ebp + 8]
lea eax, [ebp - 0x254]
push 0x200
push eax
call fcn.00415b9d
push edi
call fcn.004174a6
add esp, 0x28
jmp 0x403bdc
push dword [ebp + 8]
push 0x200
push eax
call fcn.00415b43
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x254]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403c73
cmp dword [ebp + 0x10], 0
je 0x403c73
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1f4
push dword [ebp - 0x10]
mov dword [ebp + 8], 0
call esi
cmp eax, 0x102
jne 0x403c3d
call fcn.0040d350
push 0x1f4
push dword [ebp - 0x10]
call esi
cmp eax, 0x102
je 0x403c27
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x403c5e
cmp dword [ebp + 8], 0xffffffff
jne 0x403c5e
mov dword [ebx + 0x108], 1
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
mov esi, 1
test edi, edi
je 0x403c86
lea ecx, [ebp - 0x358]
push ecx
call fcn.004174a6
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x403ca0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
mov ebx, ecx
test edi, edi
jns 0x403d22
mov edi, dword [ebp + 0xc]
push edi
call fcn.00415e9c
add esp, 4
test eax, eax
jne 0x403d6b
push edi
push 1
lea eax, [ebp + 0x13]
push 1
push eax
call fcn.004160b9
add esp, 0x10
cmp eax, 1
jne 0x403d6b
push dword [ebp + 8]
push eax
push eax
lea eax, [ebp + 0x13]
push eax
call fcn.00416742
add esp, 0x10
cmp dword [ebx + 0x100], 0
je 0x403d09
inc esi
cmp esi, 0x400
jl 0x403d09
xor esi, esi
call fcn.00405b00
push edi
call fcn.00415e9c
add esp, 4
test eax, eax
je 0x403cc5
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 0xc
jle 0x403d6b
push dword [ebp + 0xc]
lea eax, [ebp + 0x13]
dec edi
push 1
push 1
push eax
call fcn.004160b9
add esp, 0x10
cmp eax, 1
jne 0x403d6b
push dword [ebp + 8]
push eax
push eax
lea eax, [ebp + 0x13]
push eax
call fcn.00416742
add esp, 0x10
cmp dword [ebx + 0x100], 0
je 0x403d67
inc esi
cmp esi, 0x400
jl 0x403d67
xor esi, esi
call fcn.00405b00
test edi, edi
jg 0x403d24
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 0xc
Function at 0x403d80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
jle 0x403da7
push edi
mov edi, dword [ebp + 8]
nop
push edi
push 1
lea eax, [ebp + 0xc]
dec esi
push 1
push eax
call fcn.00416742
add esp, 0x10
test esi, esi
jg 0x403d90
pop edi
mov eax, 1
pop esi
pop ebp
ret 0xc
Function at 0x4043f0
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
push esi
push 0x40
push 0x42a600
push ebx
mov dword [ebp - 4], ecx
movups xmmword [ebp - 0x14], xmm0
call fcn.0041622a
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x404426
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
push 0x40
push 0x42a604
push dword [ebp + 0xc]
call fcn.0041622a
mov edi, eax
push edi
call fcn.00415ec7
push eax
call fcn.00416c83
add esp, 0x14
mov dword [ebp - 0x14], eax
cmp eax, 0x70800
jle 0x404476
push 0
push 0x70800
push edi
call fcn.004164ef
add esp, 0xc
test eax, eax
jne 0x4044dc
push edi
push 0x10
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.004160b9
add esp, 0x10
push 0
push 0
push edi
call fcn.004164ef
mov ecx, dword [ebp - 4]
add esp, 0xc
push dword [ebp - 0x14]
push edi
push esi
call fcn.00403ca0
push edi
call fcn.00415e1c
push dword [ebp + 0x10]
lea eax, [ebp - 0x118]
push 0x104
push eax
call fcn.00415b43
push str..cab
lea eax, [ebp - 0x118]
push 0x104
push eax
call fcn.00415b9d
push 0x40
lea eax, [ebp - 0x118]
push 0x42a604
push eax
call fcn.0041622a
mov edi, eax
add esp, 0x28
test edi, edi
jne 0x4044f7
push esi
call fcn.00415e1c
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
call fcn.00415ec7
push eax
call fcn.00416c83
mov ecx, dword [ebp - 4]
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, 0x70800
sub eax, dword [ebp - 0x14]
push eax
push 0
push esi
call fcn.00403d80
push esi
push 0x10
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00416742
mov ecx, dword [ebp - 4]
add esp, 0x10
push 0xffffffffffffffff
push edi
push esi
call fcn.00403ca0
push edi
call fcn.00415e1c
push esi
call fcn.00415e1c
add esp, 8
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x404570
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push 0
push dword [ebp + 8]
call fcn.00416b06
add esp, 8
cmp eax, 0xffffffff
jne 0x404596
mov eax, 1
mov esp, ebp
pop ebp
ret 4
push 0x104
lea eax, [ebp - 0x124]
push 0
push eax
call fcn.00413c60
push dword [ebp + 8]
lea eax, [ebp - 0x124]
push 0x104
push eax
call fcn.00415b43
lea eax, [ebp - 0x124]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], eax
add esp, 0x18
mov eax, 0x14
mov dword [ebp - 0x1c], 3
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0
push eax
mov dword [ebp - 0xe], 0
mov dword [ebp - 0xa], 0
mov dword [ebp - 6], 0
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
xor eax, eax
cmp dword [ebp - 0xe], eax
sete al
mov esp, ebp
pop ebp
ret 4
Function at 0x405480
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x104]
push dword [ebp + 8]
push 0x104
push eax
call fcn.00415b43
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.00413b20
add esp, 0x14
test eax, eax
je 0x405552
push edi
mov byte [eax], 0
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.00413dc0
mov edi, eax
add esp, 8
test edi, edi
je 0x40552c
push esi
lea eax, [ebp - 0x104]
mov esi, edi
sub esi, eax
push esi
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.00413ef0
lea eax, [ebp - 0x208]
mov byte [ebp + esi - 0x208], 0
push 0
push eax
call fcn.00416b06
add esp, 0x14
cmp eax, 0xffffffff
jne 0x405517
lea eax, [ebp - 0x208]
push eax
call fcn.004174b1
add esp, 4
lea eax, [edi + 1]
push 0x5c
push eax
call fcn.00413dc0
mov edi, eax
add esp, 8
test edi, edi
jne 0x4054d2
pop esi
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00416b06
add esp, 8
pop edi
cmp eax, 0xffffffff
jne 0x405552
lea eax, [ebp - 0x104]
push eax
call fcn.004174b1
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x405910
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4351d8], 0
jne 0x405987
push dword [ebp + 8]
push 0x100
push 0x4351e0
call fcn.00415b43
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 4
push 0
push 0x405f90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4351d8], eax
test eax, eax
je 0x405987
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp dword [0x4351d8], 0
je 0x405987
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
cmp dword [0x4351d4], 0
jne 0x405986
push 0x64
call esi
cmp dword [0x4351d8], 0
jne 0x405970
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405990
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4351d8], 0
jne 0x405a07
push dword [ebp + 8]
push 0x100
push 0x4351e0
call fcn.00415b43
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 4
push 0
push 0x405fc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4351d8], eax
test eax, eax
je 0x405a07
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp dword [0x4351d8], 0
je 0x405a07
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
cmp dword [0x4351d4], 0
jne 0x405a06
push 0x64
call esi
cmp dword [0x4351d8], 0
jne 0x4059f0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4082f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
test ebx, ebx
jle 0x408474
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x408474
push 0
push 0
push 0
push str.running_ext
mov ecx, 0x434b58
call fcn.00401900
test eax, eax
je 0x40833c
push eax
push 0x402
push dword [edi + 0x138]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp + 0xc], 0
test ebx, ebx
jle 0x408474
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [eax]
test esi, esi
je 0x408376
push esi
push 0x403
push dword [edi + 0x138]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [edi + 0x264]
push 0
push dword [edi + 0x264]
push 0x402
push 0x401
push dword [edi + 0x138]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov ecx, edi
call fcn.00408490
test eax, eax
jne 0x408482
push 0x44
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00413c60
add esp, 0xc
mov dword [ebp - 0x54], 0x44
mov eax, 5
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
movups xmmword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40843d
push 0x1f4
push dword [ebp - 0x10]
call ebx
cmp eax, 0x102
jne 0x408429
call fcn.0040d350
push 0x1f4
push dword [ebp - 0x10]
call ebx
cmp eax, 0x102
je 0x408413
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x408453
push 0
push str.CreateProcess___Failed
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408458
sub eax, edx
inc eax
add esi, eax
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
cmp eax, dword [ebp + 8]
jl 0x408360
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x408840
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push str.RT_FILE
push 0x83
push dword [0x434b50]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x408906
push esi
push dword [0x434b50]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push dword [0x434b50]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x408906
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x408906
test ebx, ebx
je 0x408906
mov edi, dword [ebp + 8]
push 0
push edi
call fcn.00416b06
add esp, 8
cmp eax, 0xffffffff
je 0x4088b7
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x408906
push 0x40
push 0x42a600
push edi
call fcn.0041622a
mov esi, eax
add esp, 0xc
test esi, esi
je 0x408906
push esi
push ebx
push 1
push dword [ebp - 4]
call fcn.00416742
add esp, 0x10
push esi
cmp ebx, eax
jne 0x4088f7
call fcn.00415e1c
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00415e1c
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x408920
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 4
mov esi, ecx
push esi
push 0x40ba80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x248], eax
test eax, eax
je 0x408969
push eax
mov dword [esi + 0x24c], 1
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4095a0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push 0x104
lea eax, [ebp - 0x124]
push 0
push eax
call fcn.00413c60
push dword [ebp + 0x10]
lea eax, [ebp - 0x124]
push 0x104
push eax
call fcn.00415b43
push 0x42a618
lea eax, [ebp - 0x124]
push 0x104
push eax
call fcn.00415b9d
push dword [ebp + 0x14]
lea eax, [ebp - 0x124]
push 0x104
push eax
call fcn.00415b9d
mov eax, dword [ebp + 8]
add esp, 0x30
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x124]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, 0x210
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0xe], 0
mov dword [ebp - 0xa], 0
mov dword [ebp - 6], 0
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
xor eax, eax
cmp dword [ebp - 0xe], eax
sete al
mov esp, ebp
pop ebp
ret 0x10

Function at 0x409650
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push 0
push dword [ebp + 0xc]
call fcn.00416b06
add esp, 8
cmp eax, 0xffffffff
jne 0x409676
mov eax, 1
mov esp, ebp
pop ebp
ret 8
push 0x104
lea eax, [ebp - 0x124]
push 0
push eax
call fcn.00413c60
push dword [ebp + 0xc]
lea eax, [ebp - 0x124]
push 0x104
push eax
call fcn.00415b43
push str..
lea eax, [ebp - 0x124]
push 0x104
push eax
call fcn.00415b9d
mov eax, dword [ebp + 8]
add esp, 0x24
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x124]
mov dword [ebp - 0x18], eax
mov eax, 0x14
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xe], 0
mov dword [ebp - 0xa], 0
mov dword [ebp - 6], 0
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
xor eax, eax
cmp dword [ebp - 0xe], eax
sete al
mov esp, ebp
pop ebp
ret 8
Function at 0x409a80
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x454
push esi
test eax, eax
jle 0x409c38
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x409c38
mov ecx, 1
mov dword [ebp - 8], ecx
test eax, eax
jle 0x409c2f
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
nop dword [eax + eax]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 4], edi
cmp edi, 0xffffffff
je 0x409c0c
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], pe_nt_image_headers32
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x409c06
nop word [eax + eax]
mov eax, dword [ebp - 0x128]
test eax, eax
je 0x409b98
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x409b98
lea eax, [ebp - 0x454]
mov dword [ebp - 0x454], 0x224
push eax
push esi
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x409b95
lea eax, [ebp - 0x334]
push 0x5c
push eax
call fcn.00413b20
add esp, 8
test eax, eax
je 0x409b50
inc eax
jmp 0x409b56
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 0xc]
call fcn.00415cc4
add esp, 8
test eax, eax
jne 0x409b95
push dword [ebp - 0x44c]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x409baf
push edi
call ebx
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [ebp - 4]
push esi
call ebx
lea eax, [ebp - 0x130]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x409b00
jmp 0x409c06
push str.Failed_to_terminate_process._n
lea eax, [ebp - 0x230]
push 0x100
push eax
call fcn.00415b43
lea eax, [ebp - 0x334]
push eax
lea eax, [ebp - 0x230]
push 0x100
push eax
call fcn.00415b9d
add esp, 0x18
lea eax, [ebp - 0x230]
push 0x10
push eax
push str.Error
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
mov dword [ebp - 8], 0
call ebx
push esi
call ebx
mov edi, dword [ebp - 4]
push edi
call ebx
mov esi, dword [ebp + 0xc]
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409c11
sub ecx, edx
inc esi
add esi, ecx
sub dword [ebp + 8], 1
mov dword [ebp + 0xc], esi
jne 0x409ac0
mov ecx, dword [ebp - 8]
pop edi
pop ebx
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x409dd0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
lea eax, [ebp - 4]
push ebx
push eax
push 2
push 0
push dword [ebp + 8]
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
mov ebx, eax
test ebx, ebx
jne 0x409df8
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
mov edi, dword [sym.imp.SETUPAPI.dll_SetupGetLineByIndexA]
lea eax, [ebp - 0x14]
push eax
push 0
push str.Manufacturer
push ebx
call edi
test eax, eax
je 0x409f0e
push 0
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetLineTextA]
test eax, eax
je 0x409f0e
push esi
lea eax, [ebp - 0x21c]
push eax
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupGetLineCountA]
xor esi, esi
mov dword [ebp + 8], eax
test eax, eax
jle 0x409f0d
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x21c]
push eax
push ebx
call edi
test eax, eax
je 0x409f03
push 0
push 0x104
lea eax, [ebp - 0x320]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetLineTextA]
test eax, eax
je 0x409f03
lea eax, [ebp - 0x320]
push 0x2c
push eax
call fcn.00413dc0
mov edi, eax
add esp, 8
test edi, edi
je 0x409efd
push str.Enum_
lea eax, [ebp - 0x118]
push 0x104
push eax
call fcn.00415b43
lea eax, [edi + 1]
push eax
lea eax, [ebp - 0x118]
push 0x104
push eax
call fcn.00415b9d
push str.SUBSYS_00000000REV_11
lea eax, [ebp - 0x118]
push 0x104
push eax
call fcn.00415b9d
add esp, 0x24
lea eax, [ebp - 0x118]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edi, dword [sym.imp.SETUPAPI.dll_SetupGetLineByIndexA]
inc esi
cmp esi, dword [ebp + 8]
jl 0x409e57
pop esi
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40add0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x40afca
mov eax, dword [esi + 4]
mov ecx, str.true
mov eax, dword [eax + 0x74]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40ae13
test dl, dl
je 0x40ae0f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40ae13
add eax, 2
add ecx, 2
test dl, dl
jne 0x40adf3
xor eax, eax
jmp 0x40ae18
sbb eax, eax
or eax, 1
test eax, eax
je 0x40afca
push 0
push 0
push 0
push str.create_group
mov ecx, 0x434b58
call fcn.00401900
test eax, eax
je 0x40ae4b
push eax
push 0x403
push dword [esi + 0x138]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp + 8]
push eax
push 0x17
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [ebp - 4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 4]
push dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push 0x42a618
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00415b9d
push edi
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00415b9d
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00416b06
add esp, 0x20
cmp eax, 0xffffffff
jne 0x40af30
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00415b43
lea ecx, [ebp - 0x20c]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40aef5
sub ecx, edx
cmp byte [ebp + ecx - 0x20d], 0x5c
je 0x40af21
push 0x42a618
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00415b9d
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call fcn.00405480
add esp, 4
add esi, 0x13c
lea eax, [ebp - 0x108]
push esi
push eax
push 0x42ac38
push dword [0x434008]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0
push 5
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edi, [ebp - 0x108]
dec edi
nop dword [eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x40af70
mov ax, word [0x42a618]
lea ecx, [ebp - 0x108]
mov word [edi], ax
dec ecx
nop word [eax + eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x40af90
mov eax, dword [str.GNET_Player]
mov dword [ecx], eax
mov eax, dword [0x42aeb0]
mov dword [ecx + 4], eax
mov eax, dword [0x42aeb4]
push esi
mov dword [ecx + 8], eax
lea eax, [ebp - 0x108]
push eax
push 0x42aeb8
push dword [0x434008]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8