joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413040
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
call fcn.004031c0
test eax, eax
je 0x4130f3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
call fcn.004031c0
test eax, eax
je 0x4130f3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov ecx, str.GamePP.lnk
mov dword [ebp + 0xc], eax
xor eax, eax
test esi, esi
setne al
test esi, esi
lea eax, [eax*2 + 8]
push eax
mov eax, 0x4dd674
cmovne eax, ecx
mov ecx, edi
push eax
call fcn.00403760
push dword [ebp + 0x10]
mov ecx, 0x4dc068
test esi, esi
mov eax, 0x4dc04c
cmovne eax, ecx
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.004040c0
mov esi, dword [ebp + 0xc]
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x4130d3
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4130eb
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
pop edi
pop esi
pop ebp
ret 0x10
push 0x80004005
call fcn.00402f10
int3

Function at 0x413100
Capabilities:
Query environment variable
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5023a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x234]
push 0x208
push 0
push eax
call fcn.0049b560
add esp, 0xc
lea eax, [ebp - 0x234]
push 0x104
push eax
push str._localappdata_GamePPGamePPConfig.ini
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x234]
xorps xmm0, xmm0
push eax
push 0x14
lea eax, [ebp - 0x2c]
movq qword [ebp - 0xc], xmm0
push eax
push 0x4d9ea8
push str.CurrentType
push str.LANGUAGE
movups xmmword [ebp - 0x2c], xmm0
movups xmmword [ebp - 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
call fcn.004031c0
mov ecx, eax
test ecx, ecx
je 0x4131ce
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov ecx, esi
mov dword [esi], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004034f0
test al, al
jne 0x4131bb
lea ecx, [ebp - 0x2c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4131a0
sub ecx, edx
lea eax, [ebp - 0x2c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00403760
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0049765c
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00402f10
int3
Function at 0x4132d0
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5023a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
call fcn.004031c0
test eax, eax
je 0x413419
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea esi, [ebx + 0x20c]
push esi
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x214]
push str._scommon.7z
push eax
call fcn.004040c0
mov edi, dword [ebp - 0x214]
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413342
push 1
lea eax, [ebx + 0x187c]
mov ecx, ebx
push eax
push edi
call fcn.004147b0
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0049b560
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
push str._localappdata__GamePPSdk_Common
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
call fcn.004031c0
test eax, eax
je 0x413419
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
push esi
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x214]
push str._scommonSdk.7z
push eax
call fcn.004040c0
mov esi, dword [ebp - 0x214]
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4133d2
push 1
lea eax, [ebp - 0x210]
mov ecx, ebx
push eax
push esi
call fcn.004147b0
mov ecx, ebx
call fcn.00415940
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4133f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x413408
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049765c
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402f10
int3
Function at 0x413550
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5023a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
call fcn.004031c0
mov ecx, eax
test ecx, ecx
je 0x413637
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 0x208
mov dword [esi], eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0049b560
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push 0x4dc0e0
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x413624
lea eax, [ebp - 0x214]
mov dword [ebp - 0x218], 1
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push str.ChannelID
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413606
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00403760
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0049765c
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00402f10
int3
Function at 0x413990
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
push ebx
push esi
push edi
push 0x4dc164
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push dword [ebp + 0x10]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
mov edi, eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x413a20
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
mov eax, dword [0x5023a4]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
push 0x208
lea eax, [esp + 0xc]
mov edi, ecx
push 0
push eax
call fcn.0049b560
mov eax, dword [ebp + 0x14]
lea esi, [esp + 0x14]
add esp, 0xc
mov edx, eax
sub esi, eax
nop dword [eax]
movzx ecx, word [edx]
lea edx, [edx + 2]
mov word [esi + edx - 2], cx
test cx, cx
jne 0x413a60
lea esi, [edi + 0x20c]
mov edx, esi
sub edx, eax
nop word [eax + eax]
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x413a80
lea ecx, [esp + 8]
add ecx, 0xfffffffe
nop word [eax + eax]
mov ax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x413aa0
mov eax, dword [str.program.7z]
mov dword [ecx], eax
mov eax, dword [0x4dd7a4]
mov dword [ecx + 4], eax
mov eax, dword [0x4dd7a8]
mov dword [ecx + 8], eax
mov eax, dword [0x4dd7ac]
mov dword [ecx + 0xc], eax
mov eax, dword [0x4dd7b0]
mov dword [ecx + 0x10], eax
mov eax, dword [0x4dd7b4]
push 0
push esi
mov dword [ecx + 0x14], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [esp + 8]
push eax
push ecx
push 0x8d
call fcn.00413990
push 0
push esi
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.004147b0
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
call fcn.0049765c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4143b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5023a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 8]
push 0x208
push 0
push eax
call fcn.0049b560
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 1
push 0
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x414444
lea eax, [ebp - 0x214]
mov dword [ebp - 0x218], 1
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push str.SetupPath
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004031c0
mov ecx, eax
test ecx, ecx
je 0x4144a6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov ecx, edi
mov dword [edi], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004034f0
test al, al
jne 0x414492
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414474
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00403760
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0049765c
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00402f10
int3
Function at 0x4144c0
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x5023a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x4dc0e0
lea eax, [ebp - 0x43c]
mov edi, ecx
push eax
mov dword [ebp - 0x444], edi
call fcn.004143b0
mov esi, dword [ebp - 0x43c]
or ebx, 0xffffffff
cmp dword [esi - 0xc], 0
jne 0x4145cf
push 0x228
lea eax, [ebp - 0x434]
push 0
push eax
call fcn.0049b560
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x438], 0x22c
push 0
push eax
call fcn.0049b560
add esp, 0x18
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, ebx
jne 0x414549
xor eax, eax
jmp 0x41459a
lea eax, [ebp - 0x438]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x41458e
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x414]
push eax
push str.GamePP.exe
call fcn.004a4268
add esp, 8
test eax, eax
je 0x414647
lea eax, [ebp - 0x438]
push eax
push edi
call ebx
test eax, eax
jne 0x414561
or ebx, 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x4d9ea8
push eax
lea ecx, [ebp - 0x44c]
call fcn.00403470
mov edx, dword [ebp - 0x44c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4145c3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi - 0xc], 0
mov edi, dword [ebp - 0x444]
je 0x414621
cmp dword [esi - 4], 1
jle 0x4145e9
push dword [esi - 0xc]
lea ecx, [ebp - 0x43c]
call fcn.00403890
mov esi, dword [ebp - 0x43c]
push esi
lea eax, [edi + 0x1454]
push 0x104
push eax
call fcn.004a9fb4
push dword [esi - 8]
push esi
call fcn.004a38d8
add esp, 0x14
test eax, eax
js 0x4146b9
cmp eax, dword [esi - 8]
jg 0x4146b9
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x414636
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049765c
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x430]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4146a4
lea eax, [ebp - 0x448]
mov dword [ebp - 0x440], 0
push eax
push 4
lea eax, [ebp - 0x440]
mov dword [ebp - 0x448], 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x440]
push ebx
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20c]
or ebx, 0xffffffff
jmp 0x41459a
push 0x80070057
call fcn.00402f10
int3
Function at 0x4146d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0f60
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5023a4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov byte [ebp - 0x39], 0
lea esi, [ecx + 0x165c]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x414718
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x414727
xor al, al
jmp 0x41478b
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
push esi
lea ecx, [ebp - 0x48]
call fcn.004211a0
push edi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x38]
call fcn.00421720
push ebx
lea ecx, [ebp - 0x38]
call fcn.00421820
mov bl, 1
mov byte [ebp - 0x39], bl
lea ecx, [ebp - 0x38]
call fcn.00421790
lea ecx, [ebp - 0x48]
call fcn.00421180
mov dword [ebp - 4], 0xffffffff
jmp 0x414789
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049765c
mov esp, ebp
pop ebp
ret 8

Function at 0x4147b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x5023a4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov ecx, esi
mov dword [ebp - 0x38], 0
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4147e5
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x38]
call fcn.00416200
mov edx, edi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 7
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x414820
sub edx, ecx
lea ecx, [ebp - 0x20]
sar edx, 1
push edx
push edi
call fcn.00416200
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004146d0
cmp dword [ebp + 0x10], 0
je 0x414855
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0xc]
cmp edx, 8
jb 0x41488b
mov ecx, dword [ebp - 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414881
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4148d4
push edx
push ecx
call fcn.0049789c
add esp, 8
mov edx, dword [ebp - 0x24]
cmp edx, 8
jb 0x4148c1
mov ecx, dword [ebp - 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4148b7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4148d4
push edx
push ecx
call fcn.0049789c
add esp, 8
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049765c
mov esp, ebp
pop ebp
ret 0xc
call fcn.0049e530
int3
Function at 0x4148e0
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x5023a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x41c], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x414a72
push esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call esi
test eax, eax
jne 0x414a71
push edi
push 0x208
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0049b560
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0049b560
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push 0
push str.retmp
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x20c]
push 3
push eax
push ebx
call edi
test eax, eax
lea eax, [ebp - 0x20c]
jne 0x414a69
push eax
call esi
call fcn.004031c0
mov ecx, eax
test ecx, ecx
je 0x414a83
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x418]
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004034f0
test al, al
jne 0x4149f8
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4149d6
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x418]
call fcn.00403760
push dword [ebp - 0x41c]
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x418]
call fcn.0040f2a0
mov esi, dword [ebp - 0x418]
push 3
push esi
push ebx
call edi
test eax, eax
je 0x414a30
push 3
lea eax, [ebp - 0x20c]
push eax
push esi
call edi
test eax, eax
jne 0x414a3e
push 5
push 0
push ebx
call edi
push 3
push 0
push esi
call edi
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x414a70
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049765c
mov esp, ebp
pop ebp
ret 8
push 5
push 0
push eax
call edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0049765c
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00402f10
int3
Function at 0x414a90
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x5023a4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x268], ecx
call fcn.004031c0
test eax, eax
je 0x414c59
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x260]
push str._s.
push eax
call fcn.004040c0
mov edi, dword [ebp - 0x260]
lea eax, [ebp - 0x25c]
add esp, 0xc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
or esi, 0xffffffff
mov dword [ebp - 0x260], eax
cmp eax, esi
je 0x414c2a
mov esi, eax
nop dword [eax + eax]
mov ecx, 0x4dd608
lea eax, [ebp - 0x230]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x414b46
test dx, dx
je 0x414b42
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x414b46
add eax, 4
add ecx, 4
test dx, dx
jne 0x414b20
xor eax, eax
jmp 0x414b4b
sbb eax, eax
or eax, 1
test eax, eax
je 0x414c0a
mov eax, 0x4dd274
lea ecx, [ebp - 0x230]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x414b86
test dx, dx
je 0x414b82
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x414b86
add ecx, 4
add eax, 4
test dx, dx
jne 0x414b60
xor eax, eax
jmp 0x414b8b
sbb eax, eax
or eax, 1
test eax, eax
je 0x414c0a
call fcn.004031c0
test eax, eax
je 0x414c59
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x230]
push eax
push ebx
lea eax, [ebp - 0x264]
push 0x4dc0d4
push eax
call fcn.004040c0
mov esi, dword [ebp - 0x264]
add esp, 0x10
test byte [ebp - 0x25c], 0x10
je 0x414be5
mov ecx, dword [ebp - 0x268]
push esi
call fcn.00414a90
jmp 0x414bec
push ebx
push esi
call fcn.004148e0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x414c04
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x260]
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x414b10
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
or esi, 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x414c46
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049765c
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00402f10
int3
Function at 0x4152d0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5023a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x22c]
push edi
push 0x228
push 0
push eax
mov dword [ebp - 0x234], esi
call fcn.0049b560
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x415385
push ebx
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x415381
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.004a4268
add esp, 8
test eax, eax
jne 0x41536f
push dword [ebp - 0x228]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebx
mov esi, dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x415338
push edi
call ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0049765c
mov esp, ebp
pop ebp
ret 4

Function at 0x4153a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5023a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x234], 0
test edi, edi
je 0x415484
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.0049b560
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x415484
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x415465
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.004a4268
add esp, 8
test eax, eax
je 0x41545a
lea eax, [ebp - 0x230]
push eax
push esi
call ebx
test eax, eax
jne 0x415418
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x234]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049765c
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x234], 1
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x234]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049765c
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0049765c
mov esp, ebp
pop ebp
ret 4