joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f1e0
Capabilities:
Copy file
Delete file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4969ea
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4d01d4]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d01d4]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov eax, dword [esp + 0x84]
xor ebx, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], vtable.EasyCurlGet.0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x7c], 2
push str.http:__int.updrv.com_service_DTLGetImgUrl.ashx_CodeUpDrv2012NewsImgUrl
lea ecx, [esp + 0x1c]
call fcn.0046f990
mov eax, dword [esp + 0x28]
mov edi, eax
cmp eax, ebx
je 0x45f3c5
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x45f266
sub eax, edx
je 0x45f3c5
lea esi, [esp + 0x34]
call fcn.0045f480
mov byte [esp + 0x7c], 3
push 0xa
push str.adtemp.xml
mov eax, esi
call fcn.00403a30
mov eax, dword [esp + 0x38]
mov ebp, 8
cmp dword [esp + 0x4c], ebp
jae 0x45f2a4
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], ebp
jae 0x45f2b9
lea eax, [esp + 0x38]
push 0x4a388c
push eax
call fcn.00471fbd
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x45f307
mov esi, dword [esp + 0x38]
cmp dword [esp + 0x4c], ebp
jae 0x45f2db
lea esi, [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str._wfopen_file__S__failed_code:_d
push 0x10d
push str..ThreadDownImage.cpp
push 1
call fcn.0048ccc0
push eax
call fcn.0048c3e0
add esp, 0x1c
jmp 0x45f39a
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x45f310
push esi
sub eax, edx
push eax
push 1
push edi
call fcn.00472906
push esi
call fcn.00472728
mov eax, dword [esp + 0x4c]
add esp, 0x14
cmp dword [esp + 0x4c], ebp
jae 0x45f33a
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x14]
push 1
push eax
push ecx
call fcn.0045ea20
test al, al
je 0x45f39a
lea esi, [esp + 0x50]
call fcn.0045f480
mov byte [esp + 0x7c], 4
push 6
push str.ad.xml
mov eax, esi
call fcn.00403a30
mov ecx, dword [esp + 0x54]
cmp dword [esp + 0x68], ebp
jae 0x45f375
lea ecx, [esp + 0x54]
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x4c], ebp
jae 0x45f383
lea eax, [esp + 0x38]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov byte [esp + 0x7c], 3
lea esi, [esp + 0x50]
call fcn.0042db60
mov byte [esp + 0x7c], 2
cmp dword [esp + 0x4c], ebp
jb 0x45f3b2
mov edx, dword [esp + 0x38]
push edx
call fcn.00471099
add esp, 4
xor eax, eax
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], ebx
mov word [esp + 0x38], ax
mov dword [esp + 0x7c], 0xffffffff
lea ecx, [esp + 0x18]
push ecx
call fcn.0045f400
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00470f4c
add esp, 0x6c
ret 4
Function at 0x4646f0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x490eef
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x4d01d4]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
xor ebx, ebx
mov dword [esp + 0xc], ebx
test byte [0x4e5794], 1
jne 0x464760
mov eax, 1
or dword [0x4e5794], eax
mov dword [esp + 0x34], eax
xor eax, eax
push 0x49a780
mov dword [0x4e5790], 7
mov dword [0x4e578c], ebx
mov word [0x4e577c], ax
call fcn.00471082
add esp, 4
mov byte [esp + 0x34], bl
cmp dword [0x4e578c], ebx
jne 0x4647f6
lea ecx, [esp + 0x10]
push ecx
call fcn.0048a420
add esp, 4
mov dword [esp + 0x34], 2
push 0xffffffffffffffff
push ebx
mov ecx, 0x4e5778
call fcn.00403690
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 8
jb 0x4647a6
mov edx, dword [esp + 0x14]
push edx
call fcn.00471099
add esp, 4
xor eax, eax
push 0x11
mov word [esp + 0x18], ax
push 0x49f814
mov eax, 0x4e5778
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
call fcn.00403a30
cmp dword [0x4e5790], 8
mov eax, dword [0x4e577c]
jae 0x4647dd
mov eax, 0x4e577c
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0xf
push str.drvprotect.ini
mov eax, 0x4e5778
call fcn.00403a30
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0xffffffffffffffff
mov word [esi + 4], cx
push ebx
mov eax, 0x4e5778
mov ecx, esi
call fcn.00403690
mov dword [esp + 0x34], ebx
mov dword [esp + 0xc], 1
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret 4
Function at 0x466b70
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x18]
push ecx
push 1
xor eax, eax
push eax
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov word [ebp], ax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x466c0f
mov edx, dword [esp + 0x14]
cmp byte [edx + 0x18], 0
je 0x466c0f
call ebx
push eax
push esi
push str.ExternalApply_GetSoftAppPath__S__RegOpenKeyEx_Failed.ErrCode_u_r_n
push 0x122
push str..ThreadExterAppMgr.cpp
push 1
call fcn.0048ccc0
push eax
call fcn.0048c3e0
add esp, 0x1c
lea eax, [esp + 0x18]
push eax
push 0x101
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
je 0x466c0f
call ebx
push eax
push esi
push str.ExternalApply_GetSoftAppPath__S__RegOpenKeyEx_Failed.ErrCode_u_r_n
push 0x127
push str..ThreadExterAppMgr.cpp
push 1
call fcn.0048ccc0
push eax
call fcn.0048c3e0
add esp, 0x1c
pop edi
pop ebp
xor al, al
pop ebx
pop ecx
ret 8
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0xc]
push ecx
push ebp
push 0
push 0
push str.AppPath
push edx
mov dword [esp + 0x24], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x466c52
call ebx
push eax
push esi
push str.ExternalApply_GetSoftAppPath__S__RegQueryValueEx_Failed.ErrCode_u_r_n
push 0x135
jmp 0x466bf1
pop edi
pop ebp
mov al, 1
pop ebx
pop ecx
ret 8
Function at 0x4687e0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x492528
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4d01d4]
xor eax, esp
mov dword [esp + 0x20], eax
push ebp
push esi
push edi
mov eax, dword [0x4d01d4]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x10], ebp
mov dword [ebp], vtable.CPluginMgrThread.0
mov dword [esp + 0x3c], 2
push ebp
mov dword [0x4e02e0], 0
call fcn.004695d0
lea esi, [esp + 0x14]
mov edi, eax
call fcn.00469770
mov byte [esp + 0x3c], 3
lea eax, [edi*8]
sub eax, edi
mov ecx, dword [eax*4 + 0x4d2428]
mov eax, ecx
lea esi, [eax + 2]
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x468860
sub eax, esi
sar eax, 1
push eax
push ecx
lea eax, [esp + 0x1c]
call fcn.00403a30
mov eax, dword [esp + 0x18]
mov esi, 8
cmp dword [esp + 0x2c], esi
jae 0x46888d
lea eax, [esp + 0x18]
push eax
call fcn.0048a660
add esp, 4
test al, al
je 0x4688af
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x2c], esi
jae 0x4688a8
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x3c], 2
cmp dword [esp + 0x2c], esi
jb 0x4688c7
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00471099
add esp, 4
xor edx, edx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], dx
mov byte [esp + 0x3c], 1
lea eax, [ebp + 0x38]
push eax
call fcn.00465d70
mov byte [esp + 0x3c], 0
lea ecx, [ebp + 0x1c]
push ecx
mov dword [ebp + 0x18], vtable.base_Mutex.0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [esp + 0x3c], 0xffffffff
mov ecx, ebp
call fcn.00489940
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00470f4c
add esp, 0x30
ret 4
Function at 0x468c80
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x497db8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d01d4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x18]
lea ebp, [edi + 4]
mov dword [esp + 0x1c], edi
push ebp
mov byte [edi + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x30], 0
push esi
call fcn.004695d0
lea ecx, [eax*8]
sub ecx, eax
mov ebx, dword [ecx*4 + 0x4d2424]
call fcn.00411130
push 0
push 0
push 0
push 0
push 0
push 5
push esi
call fcn.00468d60
mov ebx, dword [esi + 0x48]
add esi, 0x38
cmp dword [esi + 0xc], ebx
jbe 0x468d03
call fcn.0047198a
mov ecx, dword [esi + 0xc]
mov edx, dword [esi]
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], ecx
cmp ecx, dword [esi + 0x10]
jbe 0x468d1e
call fcn.0047198a
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov eax, dword [esi]
push ebx
push edx
push ecx
push eax
lea ebx, [esp + 0x30]
call fcn.00469880
mov dword [esp + 0x30], 0xffffffff
push ebp
mov byte [edi + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x468f80
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4995fb
mov eax, dword fs:[0]
push eax
sub esp, 0x834
mov eax, dword [0x4d01d4]
xor eax, esp
mov dword [esp + 0x830], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d01d4]
xor eax, esp
push eax
lea eax, [esp + 0x848]
mov dword fs:[0], eax
mov edi, ecx
push edi
mov dword [esp + 0x20], edi
call fcn.004695d0
lea ebp, [eax*8]
sub ebp, eax
add ebp, ebp
mov ebx, dword [ebp + ebp + 0x4d2424]
add ebp, ebp
call fcn.00411530
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 6
jne 0x4690f4
lea esi, [esp + 0x20]
call fcn.00469770
xor esi, esi
mov dword [esp + 0x850], esi
mov edx, dword [ebp + 0x4d2428]
mov eax, edx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x469010
sub eax, edi
sar eax, 1
push eax
push edx
lea eax, [esp + 0x28]
call fcn.00403a30
mov ecx, dword [ebp + 0x4d2424]
lea edx, [esp + 0x3c]
call fcn.00411400
lea eax, [esp + 0x3c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x469040
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x3c]
push ecx
mov edi, eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x24]
call fcn.0040ae60
mov edi, 8
test eax, eax
je 0x4690a1
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4690a1
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x38], edi
jae 0x469089
lea eax, [esp + 0x24]
push esi
push eax
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [ebp + 0x4d2424]
call fcn.00411130
mov edx, dword [esp + 0x1c]
push esi
push esi
push esi
push esi
push esi
push 6
push edx
call fcn.00468d60
mov dword [esp + 0x850], 0xffffffff
cmp dword [esp + 0x38], edi
jb 0x4690db
mov eax, dword [esp + 0x24]
push eax
call fcn.00471099
add esp, 4
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], esi
mov word [esp + 0x24], cx
jmp 0x46915a
cmp esi, 7
je 0x469131
cmp esi, 5
je 0x469131
cmp esi, 0xa
je 0x469131
mov ebx, dword [ebp + 0x4d2424]
mov esi, 4
call fcn.004115e0
mov ebx, dword [ebp + 0x4d2424]
push eax
call fcn.00411740
mov ebx, dword [ebp + 0x4d2424]
push edx
push eax
call fcn.00411690
push edx
push eax
push esi
jmp 0x469152
mov ebx, dword [ebp + 0x4d2424]
call fcn.00411130
mov ebx, dword [ebp + 0x4d2424]
call fcn.004111b0
push 0
push 0
push 0
push 0
push 0
push esi
push edi
call fcn.00468d60
mov eax, esi
mov ecx, dword [esp + 0x848]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x830]
xor ecx, esp
call fcn.00470f4c
add esp, 0x840
ret
Function at 0x4694c0
Capabilities:
Check for peb beingdebugged flag
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4924a8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4d01d4]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
push edi
mov eax, dword [0x4d01d4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
push ebx
call fcn.004695d0
lea esi, [esp + 0x10]
mov edi, eax
call fcn.00469770
mov dword [esp + 0x38], 0
lea eax, [edi*8]
sub eax, edi
mov edx, dword [eax*4 + 0x4d2428]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x469521
sub eax, esi
sar eax, 1
push eax
push edx
lea eax, [esp + 0x18]
call fcn.00403a30
mov eax, dword [esp + 0x14]
mov esi, 8
cmp dword [esp + 0x28], esi
jae 0x46954e
lea eax, [esp + 0x14]
push eax
call fcn.0048a660
add esp, 4
test al, al
je 0x469570
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x28], esi
jae 0x469569
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, ebx
call fcn.00489a00
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], esi
jb 0x469597
mov edx, dword [esp + 0x14]
push edx
call fcn.00471099
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00470f4c
add esp, 0x2c
ret 4

Function at 0x469770
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x492481
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push edi
mov eax, dword [0x4d01d4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x38], ebx
push esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
call fcn.00489e90
add esp, 4
mov dword [esp + 0x38], ebx
mov eax, dword [esi + 0x14]
lea edi, [eax - 1]
mov dword [esp + 0xc], 1
cmp eax, edi
ja 0x4697c7
call fcn.00470818
cmp dword [esi + 0x18], 8
jb 0x4697d2
mov eax, dword [esi + 4]
jmp 0x4697d5
lea eax, [esi + 4]
cmp word [eax + edi*2], 0x5c
je 0x4697ea
push 1
push 0x49f804
mov eax, esi
call fcn.00403a30
push 9
push 0x4b707c
mov eax, esi
call fcn.00403a30
push esi
lea ecx, [esp + 0x18]
call fcn.0048d2f0
mov dword [esp + 0x38], 1
mov ecx, eax
call fcn.0048cdd0
push eax
call fcn.0048a980
add esp, 4
mov byte [esp + 0x38], bl
lea ecx, [esp + 0x14]
call fcn.0048cfe0
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x30
ret
Function at 0x46a3c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4903a8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4d01d4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x18]
lea eax, [edi + 4]
mov dword [esp + 0x18], edi
push eax
mov byte [edi + 0x1c], 1
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x30], 0
mov ebx, dword [esi + 0x48]
add esi, 0x38
cmp dword [esi + 0xc], ebx
jbe 0x46a41f
call fcn.0047198a
mov ecx, dword [esi + 0xc]
mov eax, dword [esi]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ecx
cmp ecx, dword [esi + 0x10]
jbe 0x46a43a
call fcn.0047198a
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov eax, dword [esi]
push ebx
push edx
push ecx
push eax
lea ebx, [esp + 0x2c]
call fcn.00469880
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x14]
push eax
mov byte [edi + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46bd70
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x490e09
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4d01d4]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push edi
mov eax, dword [0x4d01d4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x30], edi
mov ebx, ecx
mov ecx, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
call fcn.0048d000
mov dword [esp + 0x30], edi
mov ecx, dword [ebx]
push edi
push 0x10
lea eax, [esp + 0x1c]
push eax
push 0xc
push ecx
mov dword [esp + 0x20], 1
call dword [sym.imp.pcidrv.dll_PCIDrv_GetDeviceProperty]
lea edi, [esp + 0x14]
call fcn.0046be50
mov ecx, eax
mov eax, 0x30c30c31
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x15
sub ecx, eax
xor edx, edx
cmp ecx, 0x15
setl dl
lea eax, [ecx + ecx*2]
add eax, eax
add eax, eax
add eax, eax
dec edx
and edx, 0x17
lea ecx, [edx + 0x17]
push ecx
lea ecx, [eax + 0x18]
push ecx
push edx
push eax
push str.filepng_common_dev_icon.png_source_d__d__d__d
push esi
call fcn.0048d0b0
add esp, 0x18
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00470f4c
add esp, 0x28
ret
Function at 0x470f4c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d01d4]
jne 0x470f56
repz ret
jmp fcn.004759c7

Function at 0x471555
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x471586
call fcn.00472d13
mov dword [eax], esi
call fcn.00472d00
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00471964
add esp, 0x14
push 0x16
pop eax
jmp 0x4715db
test dword [ebp + 0xc], 0xfffffff9
jne 0x471562
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4715b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00472d26
pop ecx
call fcn.00472d00
mov eax, dword [eax]
jmp 0x4715db
test al, 0x10
jne 0x4715d9
test al, 1
je 0x4715d9
test byte [ebp + 0xc], 2
je 0x4715d9
call fcn.00472d13
mov dword [eax], 5
call fcn.00472d00
mov dword [eax], 0xd
jmp 0x4715aa
xor eax, eax
pop esi
pop ebp
ret

Function at 0x47325b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x47328c
call fcn.00472d13
mov dword [eax], esi
call fcn.00472d00
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00471964
add esp, 0x14
push 0x16
pop eax
jmp 0x4732e1
test dword [ebp + 0xc], 0xfffffff9
jne 0x473268
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4732b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00472d26
pop ecx
call fcn.00472d00
mov eax, dword [eax]
jmp 0x4732e1
test al, 0x10
jne 0x4732df
test al, 1
je 0x4732df
test byte [ebp + 0xc], 2
je 0x4732df
call fcn.00472d13
mov dword [eax], 5
call fcn.00472d00
mov dword [eax], 0xd
jmp 0x4732b0
xor eax, eax
pop esi
pop ebp
ret
Function at 0x482015
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.00475b3f
and dword [ebp - 4], 0
cmp dword [0x4e01e0], 0
mov ebx, eax
jne 0x4820c6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x482177
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x482177
push eax
call fcn.00475acd
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4e01e0], eax
call esi
push eax
call fcn.00475acd
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4e01e4], eax
call esi
push eax
call fcn.00475acd
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4e01e8], eax
call esi
push eax
call fcn.00475acd
pop ecx
mov dword [0x4e01f0], eax
test eax, eax
je 0x4820c6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00475acd
pop ecx
mov dword [0x4e01ec], eax
mov eax, dword [0x4e01ec]
cmp eax, ebx
je 0x48211e
cmp dword [0x4e01f0], ebx
je 0x48211e
push eax
call fcn.00475b48
push dword [0x4e01f0]
mov esi, eax
call fcn.00475b48
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x48211e
test edi, edi
je 0x48211e
call esi
test eax, eax
je 0x482115
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x482115
test byte [ebp - 0xc], 1
jne 0x48211e
or dword [ebp + 0x10], 0x200000
jmp 0x482157
mov eax, dword [0x4e01e4]
cmp eax, ebx
je 0x482157
push eax
call fcn.00475b48
pop ecx
test eax, eax
je 0x482157
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x482157
mov eax, dword [0x4e01e8]
cmp eax, ebx
je 0x482157
push eax
call fcn.00475b48
pop ecx
test eax, eax
je 0x482157
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4e01e0]
call fcn.00475b48
pop ecx
test eax, eax
je 0x482177
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x482179
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4885c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 4]
test ecx, ecx
je 0x4885dd
mov edx, dword [ebp - 8]
cmp dword [edx + 8], 0
jne 0x4885e1
xor eax, eax
jmp 0x48861a
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.00472906
add esp, 0x10
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
push edx
call fcn.00474be0
add esp, 4
test eax, eax
je 0x488617
or eax, 0xffffffff
jmp 0x48861a
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x488620
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 4]
test ecx, ecx
je 0x48863d
mov edx, dword [ebp - 8]
cmp dword [edx + 8], 0
jne 0x488641
xor eax, eax
jmp 0x48867a
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.004725e1
add esp, 0x10
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
push edx
call fcn.00474be0
add esp, 4
test eax, eax
je 0x488677
or eax, 0xffffffff
jmp 0x48867a
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x4893c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x4d01d4]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x240], 0
push 0x228
push 0
lea eax, [ebp - 0x23c]
push eax
call fcn.00473d50
add esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0xffffffff
cmp dword [ebp + 8], 0
jne 0x48940b
jmp 0x489479
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x489421
jmp 0x489479
mov dword [ebp - 0x240], 0x22c
lea ecx, [ebp - 0x240]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x489443
jmp 0x489479
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00471b5e
add esp, 8
test eax, eax
jne 0x489465
mov edx, dword [ebp - 0x238]
mov dword [ebp - 4], edx
jmp 0x489479
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x489443
cmp dword [ebp - 8], 0xffffffff
je 0x489490
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00470f4c
mov esp, ebp
pop ebp
ret