joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402cf0
Capabilities:
Access peb ldr_data
Get number of processors
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x419a48
mov eax, dword fs:[0]
push eax
sub esp, 0x4e4
mov eax, dword [0x425028]
xor eax, esp
mov dword [esp + 0x4e0], eax
push ebx
mov eax, dword [0x425028]
xor eax, esp
push eax
lea eax, [esp + 0x4ec]
mov dword fs:[0], eax
push 0x200
lea ebx, [esp + 0xec]
call fcn.00401580
push str.program_config.ini
mov eax, ebx
push 0x200
push eax
call dword [sym.imp.MSVCR80.dll_wcscat_s]
mov ecx, dword [str.none]
mov edx, dword [0x41b804]
mov ax, word [0x41b808]
push 0xbe
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x3a]
push 0
push ecx
mov dword [esp + 0x3c], edx
mov word [esp + 0x40], ax
call sub.MSVCR80.dll_memset
add esp, 0x18
push str.none
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
mov edx, ebx
push edx
push 0x64
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x500], 0
mov ecx, dword [esp + 0x18]
push ecx
push str.date
push str.zbshareware
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.kernel32.dll_GetSystemTime]
lea ecx, [esp + 8]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
mov byte [esp + 0x4f4], 1
movzx eax, word [esp + 0x16]
push eax
lea ecx, [esp + 0xc]
push 0x41bcb0
push ecx
call dword [sym.imp.MFC80U.DLL_Ordinal_2311]
add esp, 0xc
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC80U.DLL_Ordinal_1472]
test eax, eax
je 0x402e19
mov ecx, dword [esp + 8]
mov eax, ebx
push eax
push ecx
push str.date
push str.zbshareware
call dword [sym.imp.kernel32.dll_WritePrivateProfileStringW]
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC80U.DLL_Ordinal_1476]
test eax, eax
jne 0x402e44
lea ecx, [esp + 8]
call dword [sym.imp.MFC80U.DLL_Ordinal_575]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC80U.DLL_Ordinal_575]
mov al, 1
jmp 0x402e7b
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.MSVCR80.dll__wtoi]
mov ecx, eax
movzx eax, word [esp + 0x1a]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add esp, 4
cmp eax, 7
lea ecx, [esp + 8]
jg 0x402e30
call dword [sym.imp.MFC80U.DLL_Ordinal_575]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC80U.DLL_Ordinal_575]
xor al, al
mov ecx, dword [esp + 0x4ec]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x4e0]
xor ecx, esp
call fcn.00417909
add esp, 0x4f0
ret
Function at 0x403a60
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4188c0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x425028]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x40
mov byte [esi + 0xa9], bl
mov byte [esi + 0xa8], 1
mov byte [esi + 0x1ea], bl
mov dword [ebp - 4], ebx
call sub.MFC80U.DLL_Ordinal_265
add esp, 4
mov dword [esi + 0x94], eax
jmp 0x403ae7
mov eax, dword [esi + 0x94]
mov dword [esi + 0x90], eax
mov dword [esi + 0x1b0], ebx
mov dword [esi + 0x1b4], ebx
mov dword [esi + 0x98], 0x67452301
mov dword [esi + 0x9c], 0xefcdab89
mov dword [esi + 0xa0], 0x98badcfe
mov dword [esi + 0xa4], 0x10325476
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x404720
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x10
mov eax, dword [0x425028]
xor eax, esp
mov dword [esp + 0xc], eax
mov edx, dword [0x41b804]
mov eax, dword [esp + 0x14]
mov ecx, dword [str.none]
mov dword [esp + 4], edx
lea edx, [eax + 0xf8]
push edx
mov dword [esp + 4], ecx
mov cx, word [0x41b808]
push 0x32
push esi
mov word [esp + 0x14], cx
lea ecx, [esp + 0xc]
push ecx
lea edx, [eax + 0x55c]
push edx
add eax, 0x4f8
push eax
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringW]
lea ecx, [esp]
mov eax, esi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4047a6
test dx, dx
je 0x4047a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4047a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x404780
xor eax, eax
jmp 0x4047ab
sbb eax, eax
sbb eax, 0xffffffff
mov ecx, dword [esp + 0xc]
test eax, eax
setne al
xor ecx, esp
call fcn.00417909
add esp, 0x10
ret 4

Function at 0x404a40
Capabilities:
Identify system language via api

Disassembly:
call dword [sym.imp.kernel32.dll_GetSystemDefaultUILanguage]
and ax, 0x3ff
mov word [0x425814], ax
movzx eax, ax
add eax, 0xffffffff
cmp eax, 0x18
ja case.0x404a66.1
movzx eax, byte [eax + 0x404b9c]
jmp dword [eax*4 + 0x404b6c]
mov ecx, dword [esi + 0xf0]
lea eax, [esp + 4]
call fcn.00404e90
mov al, 1
ret 4
mov ecx, dword [esi + 0xec]
lea eax, [esp + 4]
call fcn.00404e90
mov al, 1
ret 4
mov ecx, dword [esi + 0xe8]
lea eax, [esp + 4]
call fcn.00404e90
mov al, 1
ret 4
mov ecx, dword [esi + 0xe0]
lea eax, [esp + 4]
call fcn.00404e90
mov al, 1
ret 4
mov ecx, dword [esi + 0xd0]
lea eax, [esp + 4]
call fcn.00404e90
mov al, 1
ret 4
mov ecx, dword [esi + 0xdc]
lea eax, [esp + 4]
call fcn.00404e90
mov al, 1
ret 4
mov ecx, dword [esi + 0xf4]
lea eax, [esp + 4]
call fcn.00404e90
mov al, 1
ret 4
mov ecx, dword [esi + 0xd8]
lea eax, [esp + 4]
call fcn.00404e90
mov al, 1
ret 4
mov ecx, dword [esi + 0xe4]
lea eax, [esp + 4]
call fcn.00404e90
mov al, 1
ret 4
mov ecx, dword [esi + 0xd4]
lea eax, [esp + 4]
call fcn.00404e90
mov al, 1
ret 4
mov ecx, dword [esi + 0xcc]
lea eax, [esp + 4]
call fcn.00404e90
mov al, 1
ret 4
mov ecx, dword [esi + 0xc8]
mov edx, dword [esp + 4]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x404b53
xor al, al
ret 4
Function at 0x404bc0
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x668
mov eax, dword [0x425028]
xor eax, esp
mov dword [esp + 0x664], eax
push ebx
push ebp
mov ebp, dword [esp + 0x674]
push esi
push edi
xor edi, edi
push 0x62
lea eax, [esp + 0x16]
push edi
push eax
mov word [esp + 0x1c], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push ebp
lea esi, [esp + 0x14]
call fcn.00404720
push 0x1fe
lea ecx, [esp + 0x7a]
push edi
push ecx
mov bl, al
mov word [esp + 0x80], di
call sub.MSVCR80.dll_memset
push 0x3fe
lea edx, [esp + 0x286]
push edi
push edx
mov word [esp + 0x28c], di
call sub.MSVCR80.dll_memset
push 0x200
lea esi, [esp + 0x290]
call fcn.004068f0
push ebp
mov eax, esi
push 0x200
push eax
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0x28
test bl, bl
je 0x404c70
lea ecx, [esp + 0x74]
push ecx
lea edi, [esp + 0x14]
mov eax, ebp
call fcn.004047d0
xor edi, edi
jmp 0x404c7c
lea edx, [esp + 0x74]
push edx
mov esi, ebp
call fcn.00404a40
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x278]
push 0x200
push ecx
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0xc
lea esi, [esp + 0x274]
call fcn.00406e10
test al, al
je 0x404cc3
mov edx, esi
push edx
call dword [sym.imp.kernel32.dll_LoadLibraryW]
cmp eax, edi
mov dword [ebp + 0x5f4], eax
je 0x404cc3
mov byte [ebp + 0x5f0], 1
jmp 0x404cd3
mov eax, dword [esp + 0x680]
mov word [0x425814], 9
mov ecx, dword [esp + 0x674]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00417909
add esp, 0x668
ret 8

Function at 0x405b20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41871c
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x425028]
xor eax, esp
mov dword [esp + 0x224], eax
push ebp
push edi
mov eax, dword [0x425028]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x244]
push 0
mov edi, ecx
push 1
lea ecx, [esp + 0x14]
call dword [sym.imp.BCGCBPRO1500u80.dll_public:_void___thiscall_CBCGPRegistry::constructor_int__int_]
push edi
lea eax, [esp + 0x34]
push 0x100
push eax
mov dword [esp + 0x248], 0
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
mov edi, dword [sym.imp.MSVCR80.dll_wcscat_s]
push 0x41b84c
lea ecx, [esp + 0x40]
push 0x100
push ecx
call edi
push esi
lea edx, [esp + 0x4c]
push 0x100
push edx
call edi
add esp, 0x24
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.BCGCBPRO1500u80.dll_public_virtual:_int___thiscall_CBCGPRegistry::CreateKey_wchar_t_const__]
test eax, eax
lea ecx, [esp + 0xc]
je 0x405bf2
push ebp
push ebx
call dword [sym.imp.BCGCBPRO1500u80.dll_public_virtual:_int___thiscall_CBCGPRegistry::Write_wchar_t_const___wchar_t_const__]
test eax, eax
mov dword [esp + 0x23c], 0xffffffff
lea ecx, [esp + 0xc]
je 0x405bfd
call dword [sym.imp.BCGCBPRO1500u80.dll_public_virtual:_void___thiscall_CBCGPRegistry::destructor_void_]
mov eax, 1
jmp 0x405c05
mov dword [esp + 0x23c], 0xffffffff
call dword [sym.imp.BCGCBPRO1500u80.dll_public_virtual:_void___thiscall_CBCGPRegistry::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00417909
add esp, 0x234
ret 4
Function at 0x405f80
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x38
push edi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x405ff7
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x28]
push ecx
push eax
call edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
lea edx, [esp + 0x18]
push edx
push eax
call edi
mov ecx, dword [esi + 0x20]
lea eax, [esp + 8]
push eax
push ecx
call edi
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 8]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
sub ecx, dword [esp + 0xc]
sub edx, eax
mov dword [esi + 0x90c], eax
mov eax, dword [esp + 0x2c]
sub eax, ecx
mov dword [esi + 0x908], eax
mov dword [esi + 0x910], ecx
mov dword [esi + 0x904], edx
mov al, 1
pop edi
add esp, 0x38
ret
xor al, al
pop edi
add esp, 0x38
ret

Function at 0x406b30
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x418598
mov eax, dword fs:[0]
push eax
sub esp, 0x80c
mov eax, dword [0x425028]
xor eax, esp
mov dword [esp + 0x808], eax
push edi
mov eax, dword [0x425028]
xor eax, esp
push eax
lea eax, [esp + 0x814]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 8]
call dword [sym.imp.MFC80U.DLL_Ordinal_293]
push 0
lea eax, [esp + 0x14]
push eax
push 0x400
push 0
push edi
push esi
mov dword [esp + 0x834], 0
call dword [sym.imp.kernel32.dll_SearchPathW]
test eax, eax
lea ecx, [esp + 8]
je 0x406ba7
call dword [sym.imp.MFC80U.DLL_Ordinal_575]
mov al, 1
jmp 0x406bfa
push esi
call dword [sym.imp.MFC80U.DLL_Ordinal_768]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.004071f0
add esp, 8
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x820], 1
call dword [sym.imp.MFC80U.DLL_Ordinal_774]
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC80U.DLL_Ordinal_575]
mov eax, dword [esp + 8]
push 0
push eax
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
lea ecx, [esp + 8]
jne 0x406b9d
call dword [sym.imp.MFC80U.DLL_Ordinal_575]
xor al, al
mov ecx, dword [esp + 0x814]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.00417909
add esp, 0x818
ret

Function at 0x406e10
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x404
mov eax, dword [0x425028]
xor eax, esp
mov dword [esp + 0x400], eax
test esi, esi
je 0x406e66
push 0
lea eax, [esp + 4]
push eax
push 0x200
push 0
push esi
push 0
call dword [sym.imp.kernel32.dll_SearchPathW]
test eax, eax
je 0x406e66
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
shr al, 4
not al
and al, 1
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.00417909
add esp, 0x404
ret
mov ecx, dword [esp + 0x400]
xor ecx, esp
xor al, al
call fcn.00417909
add esp, 0x404
ret
Function at 0x406e80
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x404
mov eax, dword [0x425028]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
push 0x3fe
lea eax, [esp + 0xa]
push 0
push eax
mov word [esp + 0x10], 0
call sub.MSVCR80.dll_memset
push 0x200
lea esi, [esp + 0x14]
call fcn.004068f0
push str.USBGuard.chm
mov ecx, esi
push 0x200
push ecx
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0x1c
push 5
push 0
push 0
mov edx, esi
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x404]
cmp eax, 0x20
seta al
pop esi
xor ecx, esp
call fcn.00417909
add esp, 0x404
ret

Function at 0x406fb0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x90
mov eax, dword [0x425028]
xor eax, esp
mov dword [esp + 0x8c], eax
push esi
xor esi, esi
push 0x3a
lea eax, [esp + 0x1e]
push esi
push eax
mov word [esp + 0x24], si
call sub.MSVCR80.dll_memset
push 0x3a
lea ecx, [esp + 0x66]
push esi
push ecx
mov word [esp + 0x6c], si
call sub.MSVCR80.dll_memset
xor eax, eax
add esp, 0x18
cmp word [0x4257d0], si
mov word [esp + 4], si
mov dword [esp + 6], eax
mov dword [esp + 0xa], eax
mov dword [esp + 0xe], eax
mov dword [esp + 0x12], eax
mov word [esp + 0x16], ax
je 0x4070a8
push 0x4257d0
lea edx, [esp + 0x1c]
push 0x1e
push edx
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
lea eax, [esp + 0x24]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x407033
sub eax, edx
sar eax, 1
push ebx
mov ebx, eax
cmp ebx, esi
jle 0x407092
push ebp
push edi
mov edi, dword [sym.imp.kernel32.dll_GetDriveTypeW]
lea ebp, [esp + 0x60]
movzx eax, word [esp + esi*2 + 0x24]
push eax
push 0x41b79c
lea edx, [esp + 0x18]
call fcn.004071d0
add esp, 8
lea ecx, [esp + 0x10]
push ecx
call edi
cmp eax, 2
je 0x40707d
cmp eax, 3
jne 0x407089
mov dx, word [esp + esi*2 + 0x24]
mov word [ebp], dx
add ebp, 2
add esi, 1
cmp esi, ebx
jl 0x407055
pop edi
pop ebp
lea eax, [esp + 0x58]
push eax
push 0x1e
push 0x4257d0
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
pop ebx
mov ecx, dword [esp + 0x90]
pop esi
xor ecx, esp
call fcn.00417909
add esp, 0x90
ret
Function at 0x407870
Capabilities:
Delete file
Set file attributes

Disassembly:
mov eax, 0x1a04
call fcn.00418140
mov eax, dword [0x425028]
xor eax, esp
mov dword [esp + 0x1a00], eax
push ebp
push esi
mov esi, edx
xor ebp, ebp
cmp esi, ebp
push edi
mov edi, ecx
jne 0x4078af
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x1a00]
xor ecx, esp
call fcn.00417909
add esp, 0x1a04
ret
push ebx
push 0x7fe
lea eax, [esp + 0x216]
push ebp
push eax
mov word [esp + 0x21c], bp
call sub.MSVCR80.dll_memset
mov ebx, dword [sym.imp.MSVCR80.dll_wcscpy_s]
push esi
lea ecx, [esp + 0x220]
push 0x400
push ecx
call ebx
add esp, 0x18
push edi
lea edi, [esp + 0x214]
call fcn.00407d70
test al, al
jne 0x4078fc
mov al, 1
jmp 0x4079f0
push 0x7fe
lea edx, [esp + 0x1216]
push ebp
push edx
mov word [esp + 0x121c], bp
call sub.MSVCR80.dll_memset
add esp, 0xc
mov edi, 0x400
lea ecx, [esp + 0x1210]
call fcn.00407790
test al, al
je 0x4079f0
push 0x1fe
lea eax, [esp + 0x16]
push ebp
push eax
mov word [esp + 0x1c], bp
call sub.MSVCR80.dll_memset
push 0x7fe
lea ecx, [esp + 0xa22]
push ebp
push ecx
mov word [esp + 0xa28], bp
call sub.MSVCR80.dll_memset
lea edi, [esp + 0x28]
lea ecx, [esp + 0x228]
call fcn.00406a10
mov esi, dword [sym.imp.MSVCR80.dll_wcscat_s]
push 0x41c6e4
mov edx, edi
push 0x100
push edx
call esi
lea eax, [esp + 0x1234]
push eax
lea ecx, [esp + 0xa38]
push 0x400
push ecx
call ebx
mov edx, edi
push edx
lea eax, [esp + 0xa44]
push 0x400
push eax
call esi
add esp, 0x3c
push 1
lea ecx, [esp + 0xa14]
push ecx
lea ecx, [esp + 0x218]
call fcn.00407290
push 0x80
lea edx, [esp + 0x214]
push edx
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
lea eax, [esp + 0x210]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
setne al
mov ecx, dword [esp + 0x1a10]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00417909
add esp, 0x1a04
ret
Function at 0x407a10
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xd0
mov eax, dword [0x425028]
xor eax, esp
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0xd4]
test eax, eax
push ebp
mov ebp, dword [esp + 0xdc]
je 0x407ba8
test ebp, ebp
je 0x407ba8
push ebx
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x407a6f
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
xor al, al
jmp 0x407b2e
push esi
push edi
push 0x62
lea eax, [esp + 0x1a]
push 0
push eax
mov dword [esp + 0x1c], 1
mov word [esp + 0x20], 0
call sub.MSVCR80.dll_memset
mov ecx, 8
mov esi, str.zbsharewarecrypt
lea edi, [esp + 0x84]
rep movsd dword es:[edi], dword [esi]
push 0x42
lea ecx, [esp + 0xaa]
push 0
push ecx
movsw word es:[edi], word [esi]
call sub.MSVCR80.dll_memset
lea eax, [esp + 0x90]
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407ac1
mov edi, dword [sym.imp.kernel32.dll_ReadFile]
sub eax, edx
push 0
sar eax, 1
lea edx, [esp + 0x14]
push edx
add eax, eax
push eax
lea ecx, [esp + 0x20]
push ecx
push ebx
call edi
test eax, eax
je 0x407b23
lea edx, [esp + 0x78]
lea ecx, [esp + 0x14]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x407b1a
test ax, ax
je 0x407b16
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x407b1a
add ecx, 4
add edx, 4
test ax, ax
jne 0x407af4
xor eax, eax
jmp 0x407b1f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407b47
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
pop ebp
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.00417909
add esp, 0xd0
ret 8
xor ax, ax
mov dword [esp + 0x10], 2
mov word [esp + 0x14], ax
xor esi, esi
lea esp, [esp]
cmp ax, 0xd
je 0x407b96
push 0
lea edx, [esp + 0x14]
push edx
push 2
lea eax, [esp + 0x20]
push eax
push ebx
call edi
mov ax, word [esp + 0x14]
cmp ax, 0xd
mov ecx, dword [esp + 0x10]
je 0x407b92
test ecx, ecx
jbe 0x407b96
mov word [ebp + esi*2], ax
add esi, 1
test ecx, ecx
ja 0x407b60
push ebx
mov word [ebp + esi*2], 0
call dword [sym.imp.kernel32.dll_CloseHandle]
mov al, 1
jmp 0x407b2c
mov ecx, dword [esp + 0xd0]
pop ebp
xor ecx, esp
xor al, al
call fcn.00417909
add esp, 0xd0
ret 8
Function at 0x407bd0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1a04
call fcn.00418140
mov eax, dword [0x425028]
xor eax, esp
mov dword [esp + 0x1a00], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
jne 0x407c0b
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1a00]
xor ecx, esp
call fcn.00417909
add esp, 0x1a04
ret
push 0x7fe
lea eax, [esp + 0x20e]
push ebx
push eax
mov word [esp + 0x214], bx
call sub.MSVCR80.dll_memset
push 0x7fe
lea ecx, [esp + 0x121a]
push ebx
push ecx
mov word [esp + 0x1220], bx
call sub.MSVCR80.dll_memset
push esi
lea edx, [esp + 0x224]
push 0x400
push edx
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0x24
lea eax, [esp + 0x1208]
push eax
lea ecx, [esp + 0x20c]
push ecx
call fcn.00407a10
test al, al
je 0x407bf2
push ebx
lea edx, [esp + 0x20c]
push edx
lea ecx, [esp + 0x1210]
call fcn.00407290
cmp eax, 1
jne 0x407ca2
pop esi
pop ebx
mov ecx, dword [esp + 0x1a00]
xor ecx, esp
call fcn.00417909
add esp, 0x1a04
ret
push edi
push 0x1fe
lea eax, [esp + 0x12]
push ebx
push eax
mov word [esp + 0x18], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edi, [esp + 0xc]
lea ecx, [esp + 0x120c]
call fcn.00406a10
test al, al
pop edi
je 0x407bf2
push 0x7fe
lea ecx, [esp + 0xa0e]
push ebx
push ecx
mov word [esp + 0xa14], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
push ebx
push 0x10
lea edx, [esp + 0xa10]
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.MSVCR80.dll_wcscat_s]
push 0x41b84c
lea eax, [esp + 0xa0c]
push 0x400
push eax
call esi
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xa18]
push 0x400
push edx
call esi
add esp, 0x18
push ebx
lea eax, [esp + 0x20c]
push eax
lea ecx, [esp + 0xa10]
call fcn.00407290
mov ecx, dword [esp + 0x1a08]
sub eax, 1
neg eax
sbb eax, eax
pop esi
and eax, 0xfffffffe
pop ebx
xor ecx, esp
add eax, 2
call fcn.00417909
add esp, 0x1a04
ret
Function at 0x4086d0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe9c
mov eax, dword [0x425028]
xor eax, esp
mov dword [esp + 0xe98], eax
push ebx
mov ebx, dword [sym.imp.MSVCR80.dll_wcscpy_s]
push esi
push edi
push str..ren
lea eax, [esp + 0x2a]
push 0x14
push eax
mov esi, ecx
call ebx
add esp, 0xc
mov edi, 0x200
lea ecx, [esp + 0xaa0]
call fcn.00407790
lea ecx, [esi + 0xe38]
xor edi, edi
push edi
mov dword [esp + 0x20], ecx
call sub.MFC80U.DLL_Ordinal_2155
lea ecx, [esi + 0x15a8]
push edi
mov dword [esp + 0x1c], ecx
call sub.MFC80U.DLL_Ordinal_2155
lea ecx, [esi + 0x1d18]
push edi
mov dword [esp + 0x18], ecx
call sub.MFC80U.DLL_Ordinal_2155
mov ecx, dword [esi + 0xd60]
push edi
push edi
push 0x1009
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x3fe
lea edx, [esp + 0x2a6]
push edi
push edx
mov word [esp + 0x2ac], di
call sub.MSVCR80.dll_memset
push 0x3fe
lea eax, [esp + 0x6b2]
push edi
push eax
mov word [esp + 0x6b8], di
call sub.MSVCR80.dll_memset
lea ecx, [esp + 0xab8]
push ecx
lea edx, [esp + 0x2bc]
push 0x200
push edx
mov dword [esp + 0x34], 1
call ebx
push str..qua
lea eax, [esp + 0x2c8]
push 0x200
push eax
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0x30
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x2a4]
push edx
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x20], ebx
je 0x40889b
nop
cmp dword [esp + 0x10], 0
je 0x40889b
lea eax, [esp + 0xaa0]
push eax
lea ecx, [esp + 0x2a4]
push 0x200
push ecx
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
lea edx, [esp + 0x88]
push edx
lea eax, [esp + 0x2b0]
push 0x200
push eax
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0x18
lea ecx, [esp + 0x6a0]
push ecx
lea edx, [esp + 0x2a4]
push edx
call fcn.00407a10
test al, al
je 0x408886
push 0
push 0
push 0
push 0
lea eax, [esp + 0x6b0]
push eax
push edi
lea ebx, [esi + 0xd40]
push 3
mov ecx, ebx
call sub.MFC80U.DLL_Ordinal_3873
lea ecx, [esp + 0x2a0]
push ecx
push 1
push edi
mov ecx, ebx
call sub.MFC80U.DLL_Ordinal_5869
mov ebx, dword [esp + 0x20]
add edi, 1
lea edx, [esp + 0x50]
push edx
push ebx
call dword [sym.imp.kernel32.dll_FindNextFileW]
mov dword [esp + 0x10], eax
jmp 0x4087f0
push ebx
call dword [sym.imp.kernel32.dll_FindClose]
mov ecx, dword [esp + 0x1c]
push 1
call sub.MFC80U.DLL_Ordinal_2155
mov ecx, dword [esp + 0x18]
push 1
call sub.MFC80U.DLL_Ordinal_2155
mov ecx, dword [esp + 0x14]
push 1
call sub.MFC80U.DLL_Ordinal_2155
mov ecx, dword [esp + 0xea4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00417909
mov esp, ebp
pop ebp
ret
Function at 0x409390
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x41a0e6
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x425028]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push ebp
push esi
mov eax, dword [0x425028]
xor eax, esp
push eax
lea eax, [esp + 0x24c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x25c]
push 0xa
lea ecx, [esp + 0x14]
xor ebx, ebx
xor esi, esi
call sub.MFC80U.DLL_Ordinal_558
push 0xa
lea ecx, [esp + 0x30]
mov dword [esp + 0x258], ebx
call sub.MFC80U.DLL_Ordinal_558
push ebx
lea eax, [esp + 0x4c]
push eax
push 0x100
push ebx
push edi
push ebx
mov byte [esp + 0x26c], 1
call dword [sym.imp.kernel32.dll_SearchPathW]
test eax, eax
jne 0x40943d
lea ecx, [esp + 0x2c]
mov byte [esp + 0x254], bl
call sub.MFC80U.DLL_Ordinal_746
lea ecx, [esp + 0x10]
mov dword [esp + 0x254], 0xffffffff
call sub.MFC80U.DLL_Ordinal_746
xor eax, eax
jmp 0x409517
push edi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
test al, 0x10
jne 0x409412
lea ecx, [esp + 0x10]
push ecx
mov ebx, edi
mov ecx, str.open
call fcn.004096d0
test al, al
je 0x409462
mov esi, 1
lea edx, [esp + 0x10]
push edx
mov ebx, edi
mov ecx, str.shellexecute
call fcn.004096d0
test al, al
je 0x40947a
add esi, 1
lea eax, [esp + 0x10]
push eax
mov ebx, edi
mov ecx, str.shell
call fcn.004096d0
test al, al
je 0x409492
add esi, 1
lea ecx, [esp + 0x10]
push ecx
mov ebx, edi
mov ecx, str.shellopencommand
call fcn.004096d0
test al, al
je 0x4094aa
add esi, 1
lea edx, [esp + 0x10]
push edx
mov ebx, edi
mov ecx, str.shellexplorecommand
call fcn.004096d0
test al, al
je 0x4094c2
add esi, 1
lea eax, [esp + 0x10]
push eax
mov ebx, edi
mov ecx, str.shell_autoplaycommand
call fcn.004096d0
test al, al
je 0x4094da
add esi, 1
lea ecx, [esp + 0x10]
lea ebx, [esp + 0x2c]
call fcn.00409950
mov ecx, ebx
mov ebx, ebp
call fcn.00409950
lea ecx, [esp + 0x2c]
mov byte [esp + 0x254], 0
call sub.MFC80U.DLL_Ordinal_746
lea ecx, [esp + 0x10]
mov dword [esp + 0x254], 0xffffffff
call sub.MFC80U.DLL_Ordinal_746
mov eax, esi
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.00417909
add esp, 0x248
ret 4