joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f030
Capabilities:
Check for peb beingdebugged flag
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0xffffffffffffffff
push 0x448bcb
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x465d44]
xor eax, esp
mov dword [esp + 0x47c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x465d44]
xor eax, esp
push eax
lea eax, [esp + 0x494]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4a8]
mov edi, dword [esp + 0x4a4]
mov ecx, dword [esp + 0x4ac]
xor ebp, ebp
xor edx, edx
mov dword [esp + 0x14], eax
mov eax, edi
mov word [esp + 0x20], dx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x41f0a2
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esp + 0x24]
call fcn.0040376d
mov eax, dword [esp + 0x30]
lea esi, [eax - 1]
mov dword [esp + 0x49c], ebp
cmp esi, eax
jbe 0x41f0d3
call fcn.0043143f
mov eax, dword [esp + 0x20]
mov ebx, 8
cmp dword [esp + 0x34], ebx
jae 0x41f0e6
lea eax, [esp + 0x20]
cmp word [eax + esi*2], 0x5c
je 0x41f0fd
push 1
push 0x458b48
lea ecx, [esp + 0x24]
call fcn.004030e2
push 1
push 0x4555a0
lea ecx, [esp + 0x24]
call fcn.004030e2
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x34], ebx
jae 0x41f11b
lea eax, [esp + 0x20]
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41f149
cmp dword [esp + 0x34], 8
jb 0x41f142
mov edx, dword [esp + 0x20]
push edx
call fcn.00430dfa
add esp, 4
xor eax, eax
jmp 0x41f218
push 0x208
lea eax, [esp + 0x28c]
push ebp
push eax
call fcn.004310d0
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
jmp 0x41f170
push 0x45559c
lea ecx, [esp + 0x68]
push ecx
call esi
test eax, eax
je 0x41f1e4
push 0x44fad8
lea edx, [esp + 0x68]
push edx
call esi
test eax, eax
je 0x41f1e4
lea eax, [esp + 0x64]
push eax
push edi
lea ecx, [esp + 0x290]
push ecx
call ebp
test byte [esp + 0x38], 0x10
lea ecx, [esp + 0x288]
je 0x41f1da
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push eax
push ecx
call fcn.0041f030
mov edx, dword [esp + 0x20]
add esp, 0xc
cmp dword [edx], 0
je 0x41f1e4
lea eax, [esp + 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x41f1e4
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.0041eef0
lea edx, [esp + 0x38]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41f170
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x34], 8
jb 0x41f213
mov eax, dword [esp + 0x20]
push eax
call fcn.00430dfa
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x494]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x47c]
xor ecx, esp
call fcn.004310bf
add esp, 0x48c
ret
Function at 0x41f340
Capabilities:
Delete directory

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x14]
lea edx, [esp + 8]
mov dword [esp + 8], eax
push edx
lea eax, [esp + 0x1c]
push eax
push edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], esi
call fcn.0041f030
add esp, 0xc
test esi, esi
je 0x41f37f
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
xor eax, eax
pop esi
add esp, 8
ret
Function at 0x41f720
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x808
mov eax, dword [0x465d44]
xor eax, esp
mov dword [esp + 0x804], eax
mov eax, dword [esp + 0x818]
push ebx
mov ebx, dword [esp + 0x818]
push ebp
mov ebp, dword [esp + 0x824]
push esi
mov esi, dword [esp + 0x818]
push edi
mov edi, dword [esp + 0x820]
push 0x800
lea ecx, [esp + 0x18]
push 0
push ecx
mov dword [esp + 0x1c], eax
call fcn.004310d0
add esp, 0xc
push esi
push 0x3ff
lea edx, [esp + 0x1c]
push edx
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
pop edi
pop esi
lea eax, [esp + 0xc]
pop ebp
lea edx, [eax + 2]
pop ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f792
mov ecx, dword [esp]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 8]
push eax
call fcn.0040376d
mov ecx, dword [esp + 0x804]
xor ecx, esp
xor eax, eax
call fcn.004310bf
add esp, 0x808
ret

Function at 0x41fd20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x465d44]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x218]
push 0x208
lea eax, [esp + 8]
push 0
push eax
call fcn.004310d0
mov edx, dword [esp + 0x220]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 0
push 0
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [esp + 4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41fd70
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.0040376d
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.004310bf
add esp, 0x20c
ret 8
Function at 0x41fdb0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x465d44]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, ecx
cmp dword [esi + 0x1c8], 0
jne 0x41ff41
push str.shell32.dll
mov dword [esi + 0x1c8], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.SHGetKnownFolderPath
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 4], eax
lea eax, [esi + 0x24]
push eax
push 0x4561e0
mov ecx, esi
call fcn.0041fcb0
cmp dword [esi + 4], 0
jne 0x41fe1d
lea ecx, [esi + 0x40]
push ecx
push 0x1c
mov ecx, esi
call fcn.0041fd20
jmp 0x41fe2d
lea edx, [esi + 0x40]
push edx
push 0x456200
mov ecx, esi
call fcn.0041fcb0
lea eax, [esi + 8]
push eax
push 0x26
mov ecx, esi
call fcn.0041fd20
lea ecx, [esi + 0x78]
push ecx
push 0x4561f0
mov ecx, esi
call fcn.0041fcb0
lea edx, [esi + 0x94]
push edx
push 0x456220
mov ecx, esi
call fcn.0041fcb0
lea eax, [esi + 0xe8]
push eax
push 0x24
mov ecx, esi
call fcn.0041fd20
lea ecx, [esi + 0xcc]
push ecx
push 0x25
mov ecx, esi
call fcn.0041fd20
lea edx, [esi + 0x104]
push edx
push 0x10
mov ecx, esi
call fcn.0041fd20
lea eax, [esi + 0x120]
push eax
push 2
mov ecx, esi
call fcn.0041fd20
lea ecx, [esi + 0x13c]
push ecx
push 0x456210
mov ecx, esi
call fcn.0041fcb0
lea edx, [esi + 0x174]
push edx
push 0x19
mov ecx, esi
call fcn.0041fd20
lea eax, [esi + 0x190]
push eax
push 0x17
mov ecx, esi
call fcn.0041fd20
lea ecx, [esi + 0x158]
push ecx
push 0x2e
mov ecx, esi
call fcn.0041fd20
lea edx, [esi + 0xb0]
push edx
push 0x23
mov ecx, esi
call fcn.0041fd20
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.004310d0
add esp, 0xc
lea edx, [esp + 4]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41ff21
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 8]
push eax
lea ecx, [esi + 0x1ac]
call fcn.0040376d
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.004310bf
add esp, 0x20c
ret

Function at 0x4200d0
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0xc]
push 3
push ecx
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
and eax, 0x80004005
ret
Function at 0x420100
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x465d44]
xor eax, esp
mov dword [esp + 0x408], eax
push ebx
mov ebx, dword [esp + 0x41c]
push ebp
mov ebp, dword [esp + 0x424]
push esi
mov esi, dword [esp + 0x41c]
push edi
mov edi, dword [esp + 0x424]
push 0x400
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.004310d0
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
push ebx
push edi
push esi
mov dword [esp + 0x2c], 0x200
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x420185
mov ecx, dword [esp + 0x430]
mov dword [ebp], ecx
mov eax, 0x80004005
jmp 0x42018e
mov edx, dword [esp + 0x18]
mov dword [ebp], edx
xor eax, eax
mov ecx, dword [esp + 0x418]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004310bf
add esp, 0x40c
ret

Function at 0x4201b0
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 4
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0xc]
push 4
push ecx
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
and eax, 0x80004005
ret

Function at 0x420200
Capabilities:
Delete registry value

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
neg eax
sbb eax, eax
and eax, 0x80004005
ret

Function at 0x420220
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x18], 8
mov ecx, dword [eax + 0x14]
jb 0x420232
mov eax, dword [eax + 4]
jmp 0x420235
add eax, 4
mov edx, dword [esp + 0xc]
lea ecx, [ecx + ecx + 2]
push ecx
mov ecx, dword [esp + 8]
push eax
mov eax, dword [esp + 0x10]
push 1
push edx
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
and eax, 0x80004005
ret

Function at 0x420260
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
mov eax, dword [0x465d44]
xor eax, esp
mov dword [esp + 0x408], eax
push ebx
mov ebx, dword [esp + 0x41c]
push ebp
mov ebp, dword [esp + 0x424]
push esi
mov esi, dword [esp + 0x41c]
push edi
mov edi, dword [esp + 0x424]
push 0x400
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.004310d0
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
push ebx
push edi
push esi
mov dword [esp + 0x2c], 0x200
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x4202e2
mov ecx, ebp
call fcn.0041db90
mov eax, 0x80004005
jmp 0x42030e
lea eax, [esp + 0x18]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4202f0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebp
call fcn.0040376d
xor eax, eax
mov ecx, dword [esp + 0x418]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004310bf
add esp, 0x40c
ret
Function at 0x420330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x42035d
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov eax, 0x80004005
pop ebx
pop ecx
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42034e
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x420387
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov eax, 0x80004005
pop ebx
pop ecx
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea edx, [esp + 0xc]
push edx
push eax
mov eax, dword [esp + 0x24]
push edi
push eax
mov dword [esp + 0x1c], 0
call fcn.0041ede0
add esp, 0x10
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4203b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x465d44]
xor eax, esp
mov dword [esp + 0x114], eax
push pe_nt_image_headers32
lea eax, [esp + 8]
push 0
push eax
mov dword [esp + 0xc], 0x114
call fcn.004310d0
add esp, 0xc
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 4]
cmp eax, 6
ja 0x420413
jne 0x4203fc
cmp dword [esp + 8], 1
jae 0x420413
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004310bf
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
mov eax, 1
call fcn.004310bf
add esp, 0x118
ret
Function at 0x420430
Capabilities:
Create process on windows
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
sub esp, 0xa14
mov eax, dword [0x465d44]
xor eax, esp
mov dword [esp + 0xa10], eax
push esi
mov esi, dword [esp + 0xa1c]
push edi
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x222]
push ecx
mov word [esp + 0x224], ax
call fcn.004310d0
add esp, 0xc
lea edx, [esp + 8]
push edx
push 1
push 0
push str.http_shellopencommand
push SysReAllocString
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4204c6
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x21c]
push ecx
push 0
push 0
push 0x44f5d0
push edx
mov dword [esp + 0x24], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 1
push 0
push 0
push esi
push str.open
push 0
call edi
cmp eax, 0x20
jg 0x420553
push 0x208
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.004310d0
add esp, 0xc
push 0
push 0x26
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x420553
push str.Internet_Exploreriexplore.exe
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 1
push 0
push esi
lea ecx, [esp + 0x1c]
push ecx
push str.open
push 0
call edi
cmp eax, 0x20
jle 0x420553
pop edi
mov eax, 0x80004005
pop esi
mov ecx, dword [esp + 0xa10]
xor ecx, esp
call fcn.004310bf
add esp, 0xa14
ret
mov ecx, dword [esp + 0xa18]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.004310bf
add esp, 0xa14
ret

Function at 0x420570
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 1
push 0
push eax
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
ret
Function at 0x421d30
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x465d44]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x114
lea eax, [esp + 4]
push 0
push eax
call fcn.004310d0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
jb 0x421d92
cmp dword [esp + 0x10], 2
jne 0x421d92
mov eax, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004310bf
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
xor eax, eax
call fcn.004310bf
add esp, 0x118
ret

Function at 0x421db0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x465d44]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x114
lea eax, [esp + 4]
push 0
push eax
call fcn.004310d0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
jne 0x421e19
cmp dword [esp + 8], 0
jne 0x421e19
cmp dword [esp + 0x10], 2
jne 0x421e19
mov eax, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004310bf
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
xor eax, eax
call fcn.004310bf
add esp, 0x118
ret

Function at 0x421e40
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x465d44]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x114
lea eax, [esp + 4]
push 0
push eax
call fcn.004310d0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
jne 0x421e93
mov eax, 1
cmp dword [esp + 8], eax
jne 0x421e93
cmp dword [esp + 0x10], 2
je 0x421e95
xor eax, eax
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004310bf
add esp, 0x118
ret

Function at 0x421f30
Capabilities:
Check if file exists
Create process on windows

Disassembly:
sub esp, 0x3c
push edi
mov edi, dword [esp + 0x44]
test edi, edi
je 0x421ffb
push esi
mov esi, dword [esp + 0x4c]
test esi, esi
jne 0x421f4e
mov esi, 0x44f5d0
push 0x3c
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004310d0
add esp, 0xc
cmp dword [esp + 0x54], 0
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
je 0x421f8f
call fcn.00421d30
mov dword [esp + 0x14], 0x458b4c
test eax, eax
jne 0x421f97
mov dword [esp + 0x14], str.open
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x50]
neg edx
sbb edx, edx
and edx, 0xfffffffb
lea eax, [esp + 8]
add edx, 5
push eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x10], 0x440
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop esi
test eax, eax
je 0x421fee
mov eax, dword [esp + 0x54]
test eax, eax
je 0x421fe7
mov ecx, dword [esp + 0x3c]
mov dword [eax], ecx
xor eax, eax
pop edi
add esp, 0x3c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov eax, 0x80004005
pop edi
add esp, 0x3c
ret
Function at 0x422480
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x24c
mov eax, dword [0x465d44]
xor eax, esp
mov dword [esp + 0x248], eax
push esi
mov esi, dword [esp + 0x254]
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
test eax, 0xffffffe0
jne 0x4224c4
mov eax, 1
pop esi
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.004310bf
add esp, 0x24c
ret
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [esp + 8], edi
cmp edi, 0xffffffff
jne 0x4224f5
pop edi
mov eax, 0x8618000b
pop esi
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.004310bf
add esp, 0x24c
ret
mov eax, dword [esi + 0xc]
mov dword [esp + 0x10], eax
cmp eax, dword [esi + 0x10]
jbe 0x422506
call fcn.0043143f
mov eax, dword [esi + 0x10]
mov ecx, dword [esi]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
cmp dword [esi + 0xc], eax
jbe 0x42251d
call fcn.0043143f
mov edx, dword [esi]
push 0x22c
lea eax, [esp + 0x28]
push 0
push eax
mov dword [esp + 0x28], edx
call fcn.004310d0
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
push edi
mov dword [esp + 0x2c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x42263f
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
mov ebp, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test edi, edi
je 0x422572
cmp edi, dword [esp + 0x24]
je 0x422577
call fcn.0043143f
cmp esi, dword [esp + 0x14]
je 0x422622
test edi, edi
jne 0x4225bc
call fcn.0043143f
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x422596
call fcn.0043143f
cmp dword [esi + 0x1c], 0
jne 0x4225fd
test edi, edi
jne 0x4225c0
call fcn.0043143f
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4225b1
call fcn.0043143f
cmp dword [esi + 0x18], 8
jb 0x4225c4
mov eax, dword [esi + 4]
jmp 0x4225c7
mov eax, dword [edi]
jmp 0x42258c
mov eax, dword [edi]
jmp 0x4225a7
lea eax, [esi + 4]
push eax
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call ebp
test eax, eax
jne 0x4225fd
test edi, edi
jne 0x42261a
call fcn.0043143f
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4225ef
call fcn.0043143f
mov eax, dword [esp + 0x34]
push eax
push 0
push 1
call ebx
mov dword [esi + 0x1c], eax
test edi, edi
jne 0x42261e
call fcn.0043143f
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x422612
call fcn.0043143f
add esi, 0x20
jmp 0x422568
mov eax, dword [edi]
jmp 0x4225e5
mov eax, dword [edi]
jmp 0x422608
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x2c]
push ecx
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x422560
mov edi, dword [esp + 0x10]
pop ebp
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x250]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.004310bf
add esp, 0x24c
ret
Function at 0x422fb0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x449030
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x465d44]
xor eax, esp
mov dword [esp + 0x38], eax
push esi
push edi
mov eax, dword [0x465d44]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, dword [esp + 0x58]
lea ecx, [esp + 0xc]
call fcn.00416ab0
xor edi, edi
xor eax, eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], edi
mov word [esp + 0x28], ax
mov dword [esp + 0x40], edi
mov eax, esi
mov byte [esp + 0x50], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x423014
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x2c]
call fcn.0040376d
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x10]
call fcn.00422dd0
lea edx, [esp + 0xc]
push edx
call fcn.00422480
mov eax, dword [esp + 0x1c]
add esp, 4
mov esi, eax
cmp eax, dword [esp + 0x1c]
jbe 0x42305a
call fcn.0043143f
mov eax, dword [esp + 0xc]
cmp eax, edi
jne 0x4230b1
call fcn.0043143f
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x423073
call fcn.0043143f
mov eax, dword [esi + 0x1c]
cmp eax, edi
jne 0x4230b5
cmp dword [esp + 0x3c], 8
jb 0x42308e
mov eax, dword [esp + 0x28]
push eax
call fcn.00430dfa
add esp, 4
xor ecx, ecx
mov word [esp + 0x28], cx
lea ecx, [esp + 0xc]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], edi
call fcn.004229a0
mov eax, 0x8618000a
jmp 0x4230ef
mov eax, dword [eax]
jmp 0x423069
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [esp + 0x3c], 8
jb 0x4230d1
mov edx, dword [esp + 0x28]
push edx
call fcn.00430dfa
add esp, 4
xor eax, eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], edi
mov word [esp + 0x28], ax
call fcn.004229a0
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004310bf
add esp, 0x48
ret
Function at 0x4235e0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x44909b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x465d44]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
push esi
mov eax, dword [0x465d44]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x248]
xor eax, eax
push eax
mov esi, ecx
push 0x44f5d0
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
call fcn.0040376d
mov ebx, 8
mov dword [esp + 0x240], 0
cmp dword [esi + 0x238], ebx
jb 0x423669
mov esi, dword [esi + 0x224]
jmp 0x42366f
add esi, 0x224
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x423674
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.0040376d
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x36]
push edx
mov word [esp + 0x38], cx
call fcn.004310d0
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp dword [esp + 0x28], ebx
jae 0x4236b6
lea eax, [esp + 0x14]
push str.tpdownload_interface.dll
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x423716
lea eax, [esp + 0x2c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4236e0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x30]
push edx
mov ecx, ebp
call fcn.0040376d
cmp dword [esp + 0x28], ebx
jb 0x42370f
mov eax, dword [esp + 0x14]
push eax
call fcn.00430dfa
add esp, 4
mov eax, 1
jmp 0x42372b
cmp dword [esp + 0x28], ebx
jb 0x423729
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00430dfa
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.004310bf
add esp, 0x234
ret 4