joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4015d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x68
mov eax, dword [0x42d028]
xor eax, esp
mov dword [esp + 0x64], eax
push ebp
push esi
push edi
push 0x4218f0
push 0x200
push ebx
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
push 1
push 0x23
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ebp, dword [sym.imp.MSVCR80.dll_wcscat_s]
push 0x4218ec
push 0x200
push ebx
call ebp
push 0x44
lea eax, [esp + 0x3c]
push 0
mov ecx, 8
mov esi, str.Zbshareware_Lab
lea edi, [esp + 0x20]
push eax
rep movsd dword es:[edi], dword [esi]
call sub.MSVCR80.dll_memset
add esp, 0x18
lea ecx, [esp + 0xc]
mov esi, ebx
call fcn.00409080
test al, al
je 0x401676
lea ecx, [esp + 0xc]
push ecx
push 0x200
push ebx
call ebp
push 0x4218ec
push 0x200
push ebx
call ebp
add esp, 0x18
pop edi
pop esi
mov al, 1
pop ebp
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0041d7b2
add esp, 0x68
ret
push 0x4218f0
push 0x200
push ebx
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
mov ecx, dword [esp + 0x7c]
add esp, 0xc
pop edi
pop esi
pop ebp
xor ecx, esp
xor al, al
call fcn.0041d7b2
add esp, 0x68
ret

Function at 0x402c50
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x234
mov eax, dword [0x42d028]
xor eax, esp
mov dword [esp + 0x230], eax
push esi
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x402cdc
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 8]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
push str.USBGuardUpdate.exe
lea ecx, [esp + 8]
call dword [sym.imp.MFC80U.DLL_Ordinal_1476]
test eax, eax
je 0x402cf4
push str.UpdateUSBGuard.exe
lea ecx, [esp + 8]
call dword [sym.imp.MFC80U.DLL_Ordinal_1476]
test eax, eax
je 0x402cf4
lea ecx, [esp + 4]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x402c87
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0041d7b2
add esp, 0x234
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 4]
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov ecx, dword [esp + 0x234]
pop esi
xor ecx, esp
mov al, 1
call fcn.0041d7b2
add esp, 0x234
ret
Function at 0x4046c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e900
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x42d028]
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 0x404747
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 0x4054c0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x10
mov eax, dword [0x42d028]
xor eax, esp
mov dword [esp + 0xc], eax
mov edx, dword [0x4218a4]
mov eax, dword [esp + 0x14]
mov ecx, dword [str.none]
mov dword [esp + 4], edx
lea edx, [eax + 0x114]
push edx
mov dword [esp + 4], ecx
mov cx, word [0x4218a8]
push 0x32
push esi
mov word [esp + 0x14], cx
lea ecx, [esp + 0xc]
push ecx
lea edx, [eax + 0x578]
push edx
add eax, 0x514
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 0x405546
test dx, dx
je 0x405542
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405546
add eax, 4
add ecx, 4
test dx, dx
jne 0x405520
xor eax, eax
jmp 0x40554b
sbb eax, eax
sbb eax, 0xffffffff
mov ecx, dword [esp + 0xc]
test eax, eax
setne al
xor ecx, esp
call fcn.0041d7b2
add esp, 0x10
ret 4
Function at 0x405930
Capabilities:
Identify system language via api

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
and ax, 0x3ff
mov word [0x42d9b4], ax
movzx eax, ax
add eax, 0xffffffff
cmp eax, 0x29
ja case.0x405956.1
movzx eax, byte [eax + 0x405b34]
jmp dword [eax*4 + 0x405ae8]
mov ecx, dword [esi + 0xf0]
lea eax, [esp + 4]
call fcn.00406020
mov al, 1
ret 4
mov ecx, dword [esi + 0xec]
lea eax, [esp + 4]
call fcn.00406020
mov al, 1
ret 4
mov ecx, dword [esi + 0xe8]
lea eax, [esp + 4]
call fcn.00406020
mov al, 1
ret 4
mov ecx, dword [esi + 0xe0]
lea eax, [esp + 4]
call fcn.00406020
mov al, 1
ret 4
mov ecx, dword [esi + 0xd0]
lea eax, [esp + 4]
call fcn.00406020
mov al, 1
ret 4
mov ecx, dword [esi + 0xdc]
lea eax, [esp + 4]
call fcn.00406020
mov al, 1
ret 4
mov ecx, dword [esi + 0xf4]
lea eax, [esp + 4]
call fcn.00406020
mov al, 1
ret 4
mov ecx, dword [esi + 0xd8]
lea eax, [esp + 4]
call fcn.00406020
mov al, 1
ret 4
mov ecx, dword [esi + 0xe4]
lea eax, [esp + 4]
call fcn.00406020
mov al, 1
ret 4
mov ecx, dword [esi + 0xd4]
lea eax, [esp + 4]
call fcn.00406020
mov al, 1
ret 4
mov ecx, dword [esi + 0xcc]
lea eax, [esp + 4]
call fcn.00406020
mov al, 1
ret 4
mov ecx, dword [esi + 0x100]
lea eax, [esp + 4]
call fcn.00406020
mov al, 1
ret 4
mov ecx, dword [esi + 0xf8]
lea eax, [esp + 4]
call fcn.00406020
mov al, 1
ret 4
mov ecx, dword [esi + 0x104]
lea eax, [esp + 4]
call fcn.00406020
mov al, 1
ret 4
mov ecx, dword [esi + 0xfc]
lea eax, [esp + 4]
call fcn.00406020
mov al, 1
ret 4
mov ecx, dword [esi + 0x108]
lea eax, [esp + 4]
call fcn.00406020
mov al, 1
ret 4
mov ecx, dword [esi + 0x10c]
lea eax, [esp + 4]
call fcn.00406020
mov al, 1
ret 4
mov ecx, dword [esi + 0x110]
lea eax, [esp + 4]
call fcn.00406020
mov al, 1
ret 4
mov ecx, dword [esi + 0xc8]
mov edx, dword [esp + 4]
nop
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x405ad0
xor al, al
ret 4
Function at 0x405b60
Capabilities:
Identify system language via api

Disassembly:
push 0xffffffffffffffff
push 0x41fd8c
mov eax, dword fs:[0]
push eax
sub esp, 0x86c
mov eax, dword [0x42d028]
xor eax, esp
mov dword [esp + 0x868], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42d028]
xor eax, esp
push eax
lea eax, [esp + 0x880]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x890]
xor edi, edi
push 0x62
lea eax, [esp + 0x1e]
push edi
push eax
mov word [esp + 0x24], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push ebp
lea esi, [esp + 0x1c]
call fcn.004054c0
push 0x1fe
lea ecx, [esp + 0x82]
push edi
push ecx
mov bl, al
mov word [esp + 0x88], di
call sub.MSVCR80.dll_memset
push 0x3fe
lea edx, [esp + 0x48e]
push edi
push edx
mov word [esp + 0x494], di
call sub.MSVCR80.dll_memset
push 0x200
lea esi, [esp + 0x498]
call fcn.00408e40
push ebp
mov eax, esi
push 0x200
push eax
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0x28
test bl, bl
je 0x405c36
lea ecx, [esp + 0x7c]
push ecx
lea edi, [esp + 0x1c]
mov eax, ebp
call fcn.00405570
xor edi, edi
jmp 0x405c42
lea edx, [esp + 0x7c]
push edx
mov esi, ebp
call fcn.00405930
lea eax, [esp + 0x47c]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_283]
push 0x1fe
lea ecx, [esp + 0x282]
push edi
mov dword [esp + 0x890], edi
push ecx
mov word [esp + 0x288], di
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [esp + 0x7c]
push edx
lea ecx, [ebp + 0xf0]
call dword [sym.imp.MFC80U.DLL_Ordinal_1476]
test eax, eax
jne 0x405cb2
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
and ax, 0xfc00
cmp ax, 0x800
jne 0x405cb2
push str.chinese.dll
push 0x100
lea eax, [esp + 0x284]
push eax
jmp 0x405cc4
lea ecx, [esp + 0x7c]
push ecx
push 0x100
lea edx, [esp + 0x284]
push edx
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
lea eax, [esp + 0x27c]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80U.DLL_Ordinal_899]
mov esi, dword [esp + 0x14]
call fcn.00409360
test al, al
je 0x405d03
lea ecx, [esp + 0x27c]
push ecx
push 0x200
lea edx, [esp + 0x484]
push edx
jmp 0x405d15
lea eax, [esp + 0x7c]
push eax
push 0x200
lea ecx, [esp + 0x484]
push ecx
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0xc
lea esi, [esp + 0x47c]
call fcn.00409360
test al, al
je 0x405d58
mov edx, esi
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, edi
mov dword [ebp + 0x62c], esi
lea ecx, [esp + 0x14]
je 0x405d5c
mov byte [ebp + 0x628], 1
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, esi
jmp 0x405d72
lea ecx, [esp + 0x14]
mov word [0x42d9b4], 9
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov eax, dword [esp + 0x894]
mov ecx, dword [esp + 0x880]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x868]
xor ecx, esp
call fcn.0041d7b2
add esp, 0x878
ret 8
Function at 0x407110
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 0x407187
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 + 0x114c], eax
mov eax, dword [esp + 0x2c]
sub eax, ecx
mov dword [esi + 0x1148], eax
mov dword [esi + 0x1150], ecx
mov dword [esi + 0x1144], edx
mov al, 1
pop edi
add esp, 0x38
ret
xor al, al
pop edi
add esp, 0x38
ret
Function at 0x407550
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x41fd08
mov eax, dword fs:[0]
push eax
sub esp, 0x62c
mov eax, dword [0x42d028]
xor eax, esp
mov dword [esp + 0x628], eax
push ebx
push esi
mov eax, dword [0x42d028]
xor eax, esp
push eax
lea eax, [esp + 0x638]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x640], eax
mov ecx, dword [0x422b20]
mov edx, dword [0x422b24]
mov esi, dword [edi + 4]
mov dword [esp + 0xc], ecx
mov ecx, dword [0x422b28]
mov dword [esp + 0x10], edx
mov edx, dword [0x422b2c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov edx, dword [edi]
push str.GoodSecure
lea ebx, [esp + 0x438]
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call fcn.00407740
test eax, eax
lea ecx, [esp + 0x64c]
jne 0x407705
push eax
call dword [sym.imp.MSVCP80.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
cmp word [eax], 0
je 0x4076fe
mov edx, dword [edi]
mov esi, dword [edi + 4]
push str.NotifyGoodSecure
lea ebx, [esp + 0x38]
lea ecx, [esp + 0x10]
call fcn.00407740
test eax, eax
jne 0x407649
lea ecx, [esp + 0x64c]
mov dword [esp + 0x640], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, 1
jmp 0x407718
lea ecx, [esp + 0x34]
mov eax, 0x422b6c
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407678
test dx, dx
je 0x407674
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407678
add eax, 4
add ecx, 4
test dx, dx
jne 0x407652
xor eax, eax
jmp 0x40767d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x407627
cmp byte [esp + 0x668], al
je 0x4076fe
mov edx, dword [edi]
mov esi, dword [edi + 4]
push str.LastNotifyVersion
lea ebx, [esp + 0x238]
lea ecx, [esp + 0x10]
call fcn.00407740
mov ecx, dword [esp + 0x648]
mov eax, ebx
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4076d6
test dx, dx
je 0x4076d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4076d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4076b0
xor eax, eax
jmp 0x4076db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov dword [esp + 0x640], 0xffffffff
lea ecx, [esp + 0x64c]
je 0x407710
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, 1
jmp 0x407718
lea ecx, [esp + 0x64c]
mov dword [esp + 0x640], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0x638]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x628]
xor ecx, esp
call fcn.0041d7b2
add esp, 0x638
ret 0x24
Function at 0x4078b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41fc7c
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x42d028]
xor eax, esp
mov dword [esp + 0x224], eax
push ebp
push edi
mov eax, dword [0x42d028]
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 0
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 0x4218ec
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 0x407982
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 0x40798d
call dword [sym.imp.BCGCBPRO1500u80.dll_public_virtual:_void___thiscall_CBCGPRegistry::destructor_void_]
mov eax, 1
jmp 0x407995
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.0041d7b2
add esp, 0x234
ret 4

Function at 0x407e80
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 0x407ef7
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 + 0x198], eax
mov eax, dword [esp + 0x2c]
sub eax, ecx
mov dword [esi + 0x194], eax
mov dword [esi + 0x19c], ecx
mov dword [esi + 0x190], edx
mov al, 1
pop edi
add esp, 0x38
ret
xor al, al
pop edi
add esp, 0x38
ret
Function at 0x4080c0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x62c
mov eax, dword [0x42d028]
xor eax, esp
mov dword [esp + 0x628], eax
push esi
push 0x206
lea eax, [esp + 0x222]
push 0
push eax
mov esi, ecx
mov dword [esp + 0x10], edi
mov word [esp + 0x228], 0
call sub.MSVCR80.dll_memset
push 0x206
lea ecx, [esp + 0x436]
push 0
push ecx
mov word [esp + 0x43c], 0
call sub.MSVCR80.dll_memset
add esp, 0x18
test esi, esi
je 0x408231
test edi, edi
je 0x408231
movzx eax, word [esi]
cmp ax, 0x41
jb 0x408231
cmp ax, 0x5a
ja 0x408231
cmp word [esi + 2], 0x3a
jne 0x408231
cmp word [esi + 4], 0x5c
jne 0x408231
push 0x104
lea edx, [esp + 0x428]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push 0x104
lea eax, [esp + 0x234]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x408231
push 0x422c68
lea ecx, [esp + 0x18]
push 0x104
push ecx
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
mov eax, esi
lea esi, [esp + 0x20]
call fcn.004086e0
push 0x422e00
mov edx, esi
mov esi, dword [sym.imp.MSVCR80.dll_wcscat_s]
push 0x104
push edx
call esi
push 0x422c40
lea eax, [esp + 0x30]
push 0x104
push eax
call esi
lea ecx, [esp + 0x240]
push ecx
lea edx, [esp + 0x3c]
push 0x104
push edx
call esi
lea eax, [esp + 0x44]
add esp, 0x30
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4081f3
sub eax, edx
sar eax, 1
cmp eax, 0x104
jae 0x408231
lea ecx, [esp + 0x14]
lea eax, [esp + 4]
call fcn.00406020
mov eax, 1
pop esi
mov ecx, dword [esp + 0x628]
xor ecx, esp
call fcn.0041d7b2
add esp, 0x62c
ret
mov ecx, dword [esp + 0x62c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0041d7b2
add esp, 0x62c
ret

Function at 0x409080
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x41e5f8
mov eax, dword fs:[0]
push eax
sub esp, 0x80c
mov eax, dword [0x42d028]
xor eax, esp
mov dword [esp + 0x808], eax
push edi
mov eax, dword [0x42d028]
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 0x4090f7
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
mov al, 1
jmp 0x40914a
push esi
call dword [sym.imp.MFC80U.DLL_Ordinal_776]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.0040aa90
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_577]
mov eax, dword [esp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
lea ecx, [esp + 8]
jne 0x4090ed
call dword [sym.imp.MFC80U.DLL_Ordinal_577]
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.0041d7b2
add esp, 0x818
ret
Function at 0x409360
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x404
mov eax, dword [0x42d028]
xor eax, esp
mov dword [esp + 0x400], eax
test esi, esi
je 0x4093b6
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 0x4093b6
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.0041d7b2
add esp, 0x404
ret
mov ecx, dword [esp + 0x400]
xor ecx, esp
xor al, al
call fcn.0041d7b2
add esp, 0x404
ret

Function at 0x409410
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x404
mov eax, dword [0x42d028]
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.00408e40
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.0041d7b2
add esp, 0x404
ret

Function at 0x409560
Capabilities:
Get disk information

Disassembly:
sub esp, 0x90
mov eax, dword [0x42d028]
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 [0x42d8a0], 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 0x409658
push 0x42d8a0
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 0x4095e3
sub eax, edx
sar eax, 1
push ebx
mov ebx, eax
cmp ebx, esi
jle 0x409642
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 0x42183c
lea edx, [esp + 0x18]
call fcn.0040a960
add esp, 8
lea ecx, [esp + 0x10]
push ecx
call edi
cmp eax, 2
je 0x40962d
cmp eax, 3
jne 0x409639
mov dx, word [esp + esi*2 + 0x24]
mov word [ebp], dx
add ebp, 2
add esi, 1
cmp esi, ebx
jl 0x409605
pop edi
pop ebp
lea eax, [esp + 0x58]
push eax
push 0x1e
push 0x42d8a0
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.0041d7b2
add esp, 0x90
ret
Function at 0x40b110
Capabilities:
Delete file
Set file attributes

Disassembly:
mov eax, 0x1a04
call fcn.0041e070
mov eax, dword [0x42d028]
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 0x40b14f
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x1a00]
xor ecx, esp
call fcn.0041d7b2
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.0040b610
test al, al
jne 0x40b19c
mov al, 1
jmp 0x40b290
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.0040b030
test al, al
je 0x40b290
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.00408f60
mov esi, dword [sym.imp.MSVCR80.dll_wcscat_s]
push 0x422fd0
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.0040ab30
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.0041d7b2
add esp, 0x1a04
ret