joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406fb9
Capabilities:
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x87c
mov eax, dword [0x43c4b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [sym.imp.MSVCR100.dll_wcscat_s]
mov ebx, 0x433118
push ebx
mov esi, 0x104
push esi
push eax
mov dword [ebp - 0x87c], eax
mov dword [ebp - 0x878], ecx
mov dword [ebp - 0x870], 1
call edi
push ebx
push esi
push dword [ebp - 0x878]
call edi
push dword [ebp - 0x87c]
mov ebx, dword [sym.imp.MSVCR100.dll_wcscpy_s]
lea eax, [ebp - 0x61c]
push esi
push eax
call ebx
push 0x433110
lea eax, [ebp - 0x61c]
push esi
push eax
call edi
add esp, 0x30
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x874], eax
cmp eax, 0xffffffff
jne 0x407058
xor eax, eax
jmp 0x4071da
test eax, eax
je 0x4071c8
lea eax, [ebp - 0x86c]
push eax
push dword [ebp - 0x874]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4071c8
push dword [ebp - 0x87c]
lea eax, [ebp - 0x414]
push esi
push eax
call ebx
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x414]
push esi
push eax
call edi
push dword [ebp - 0x878]
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x20c]
push esi
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
call fcn.00406f8f
add esp, 0x34
test byte [ebp - 0x86c], 0x10
jne 0x4070f0
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x4071b5
mov ecx, 0x43310c
lea eax, [ebp - 0x840]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407121
test dx, dx
je 0x40711d
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407121
add eax, 4
add ecx, 4
test dx, dx
jne 0x4070fb
xor eax, eax
jmp 0x407126
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407060
mov ecx, 0x433104
lea eax, [ebp - 0x840]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40715f
test dx, dx
je 0x40715b
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40715f
add eax, 4
add ecx, 4
test dx, dx
jne 0x407139
xor eax, eax
jmp 0x407164
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x407060
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x870], eax
test eax, eax
jne 0x4071a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x407060
mov dword [ebp - 0x870], 1
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00406fb9
pop ecx
pop ecx
test eax, eax
jne 0x407060
and dword [ebp - 0x870], eax
jmp 0x407060
push dword [ebp - 0x874]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x870]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e764
leave
ret
Function at 0x4090b9
Capabilities:
Link many functions at runtime

Disassembly:
push 0
mov eax, 0x430847
call fcn.0042e77a
mov esi, ecx
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 8], 0
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x30], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x34], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x40], eax
mov eax, dword [ebp + 0x24]
mov dword [esi + 0x44], eax
mov eax, dword [ebp + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0x2c]
mov dword [esi + 0x2c], eax
setne al
push str.MAPI32.DLL
mov byte [esi + 0x20], al
call fcn.00409031
mov dword [esi + 0x18], eax
test eax, eax
je 0x4091cb
push 0xc
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
pop ecx
mov dword [ebp + 0x10], ebx
and dword [ebp - 4], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test ebx, ebx
je 0x409163
push str.MAPIFreeBuffer
push dword [esi + 0x18]
call edi
push str.MAPIAllocateBuffer
push dword [esi + 0x18]
mov dword [ebp + 0xc], eax
call edi
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 8], eax
mov dword [ebx], vtable.MapiAllocator.0
mov eax, ebx
xor ebx, ebx
jmp 0x409167
xor ebx, ebx
xor eax, eax
or dword [ebp - 4], 0xffffffff
push str.MAPIInitialize
push dword [esi + 0x18]
mov dword [esi + 0x14], eax
call edi
push str.MAPIUninitialize
push dword [esi + 0x18]
mov dword [esi + 4], eax
call edi
push str.MAPILogonEx
push dword [esi + 0x18]
mov dword [esi + 8], eax
call edi
push str.HrQueryAllRows
push dword [esi + 0x18]
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4091cb
cmp dword [esi + 8], ebx
je 0x4091cb
cmp dword [esi + 0xc], ebx
je 0x4091cb
push ebx
call eax
mov dword [esi + 0x1c], eax
cmp eax, ebx
jl 0x4091d2
push esi
push 0x63
push ebx
push ebx
push ebx
call dword [esi + 0xc]
mov dword [esi + 0x1c], eax
jmp 0x4091d2
mov dword [esi + 0x1c], 0x80040102
mov eax, esi
call fcn.0042e852
ret 0x28
Function at 0x40b1e4
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call fcn.0040c980
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x40b2af
push ebx
push 0x40cbb0
push dword [edi]
call fcn.0040cab0
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x40b2af
push ebx
push 0x4383e4
push dword [edi]
call fcn.0040cb00
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x40b2af
push 0x10
pop eax
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.MSVCR100.dll_malloc]
pop ecx
xor ecx, ecx
cmp eax, ebx
sete cl
mov dword [ebp - 4], eax
mov esi, ecx
cmp esi, ebx
jne 0x40b2af
push 0x10
push ebx
push eax
call fcn.0040b140
add esp, 0xc
push 0xf0000000
push 1
push ebx
push ebx
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40b2b6
push dword [ebp - 4]
push 0x10
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x40b2b6
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ebx
push 0x10
push dword [ebp - 4]
push dword [edi]
call fcn.0040cb30
mov esi, eax
add esp, 0x10
cmp esi, ebx
je 0x40b2b6
push edi
call fcn.0040ca70
pop ecx
push dword [ebp - 0xc]
push ebx
push dword [ebp - 4]
call fcn.0040b140
push dword [ebp - 4]
call fcn.0040b1b2
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40b67b
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x43c4b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.MSVCR100.dll_vsprintf]
add esp, 0xc
lea eax, [ebp - 0x60c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.AcroBroker.log
lea eax, [ebp - 0x60c]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_wcscat_s]
lea eax, [ebp - 0x60c]
push 0x433424
push eax
call dword [sym.imp.MSVCR100.dll__wfopen]
mov edi, eax
add esp, 0x14
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x40b701
xor eax, eax
jmp 0x40b71b
lea eax, [esi + esi]
call fcn.0042ea70
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x404]
push ecx
push eax
call fcn.00408eaa
push eax
push edi
call dword [sym.imp.MSVCR100.dll_fwprintf]
push edi
call dword [sym.imp.MSVCR100.dll_fclose]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
and dword [ebp - 0x614], 0
add esp, 0xc
lea eax, [ebp - 0x610]
push eax
mov ebx, 0x20019
push ebx
push 0
push str.SoftwareAdobeAdobe_Acrobat11.0Private
mov edi, SysReAllocString
push edi
mov dword [ebp - 0x618], 0x400
call esi
test eax, eax
jne 0x40b7f3
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x614]
push eax
push 0
push 0
push str.bAlertOnUnexpectedWrites
push dword [ebp - 0x610]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b7e7
cmp dword [ebp - 0x614], eax
je 0x40b7e7
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp - 0x61c], eax
cmp eax, 0x3fffffff
jle 0x40b7b6
xor eax, eax
jmp 0x40b7d4
add eax, eax
call fcn.0042ea70
mov eax, esp
push 3
push dword [ebp - 0x61c]
lea ecx, [ebp - 0x404]
push ecx
push eax
call fcn.00408eaa
push 0x10000
push str.AcroBroker:_Unexpected_Write_Warning__
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0x610]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x614], 0
jne 0x40b89d
lea eax, [ebp - 0x610]
push eax
push ebx
push 0
push str.SoftwareAdobeAcrobat_Reader11.0Private
push edi
call esi
test eax, eax
jne 0x40b89d
lea eax, [ebp - 0x618]
push eax
lea eax, [ebp - 0x614]
push eax
xor edi, edi
push edi
push edi
push str.bAlertOnUnexpectedWrites
push dword [ebp - 0x610]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b891
cmp dword [ebp - 0x614], edi
je 0x40b891
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
cmp esi, 0x3fffffff
jle 0x40b865
xor eax, eax
jmp 0x40b87f
lea eax, [esi + esi]
call fcn.0042ea70
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x404]
push ecx
push eax
call fcn.00408eaa
push 0x10000
push str.AcroBroker:_Unexpected_Write_Warning__
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0x610]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0x628]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e764
leave
ret
Function at 0x40c051
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x43c4b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
mov dword [ebp - 0x81c], ecx
lea ecx, [ebp - 0x810]
push ecx
mov esi, 0x20019
push esi
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x40c1f2
push edi
lea eax, [ebp - 0x814]
push eax
push esi
push 0
push 0x433518
push dword [ebp - 0x810]
mov dword [ebp - 0x808], 0x400
call ebx
mov esi, dword [sym.imp.MSVCR100.dll_wcstok_s]
mov edi, 0x433514
test eax, eax
jne 0x40c13f
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x804]
push eax
push 0
push 0
push str.tWhiteList
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c133
mov ecx, dword [ebp - 0x808]
and dword [ebp - 0x80c], eax
mov word [ebp + ecx*2 - 0x804], ax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push edi
push eax
call esi
add esp, 0xc
mov ecx, dword [ebp - 0x81c]
push eax
call fcn.0040bf35
lea eax, [ebp - 0x80c]
push eax
push edi
push 0
call esi
add esp, 0xc
test eax, eax
jne 0x40c114
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x818]
push eax
push 0x20019
push 0
push str.cAllowedFolderPaths
push dword [ebp - 0x810]
call ebx
test eax, eax
jne 0x40c1e5
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x804]
push eax
xor ebx, ebx
push ebx
push ebx
push str.tWhiteList
push dword [ebp - 0x818]
mov dword [ebp - 0x808], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c1d9
mov ecx, dword [ebp - 0x808]
mov word [ebp + ecx*2 - 0x804], ax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push edi
push eax
mov dword [ebp - 0x80c], ebx
call esi
add esp, 0xc
mov ecx, dword [ebp - 0x81c]
push eax
call fcn.0040bfd2
lea eax, [ebp - 0x80c]
push eax
push edi
push ebx
call esi
add esp, 0xc
cmp eax, ebx
jne 0x40c1bb
push dword [ebp - 0x818]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e764
leave
ret 4
Function at 0x40c202
Capabilities:
Get common file path

Disassembly:
push 0x214
mov eax, 0x43091b
call fcn.0042e7e3
push ecx
mov esi, ecx
mov dword [ebp - 0x21c], esp
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], esp
call fcn.0040bada
lea ecx, [esi + 0xc]
push ecx
xor edi, edi
mov dword [ebp - 0x21c], esp
mov dword [ebp - 4], edi
mov dword [ebp - 0x21c], esp
call fcn.0040bada
push str.HKEY_CURRENT_USERSoftwareAdobeAdobe_Acrobat11.0
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040bf35
push str.HKEY_CURRENT_USERSoftwareAdobeAcrobat_Reader11.0
mov ecx, esi
call fcn.0040bf35
push str.HKEY_CURRENT_USERSoftwareAdobeAdobe_Synchronizer11.0
mov ecx, esi
call fcn.0040bf35
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push edi
push 0x1a
lea eax, [ebp - 0x218]
push eax
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call edi
mov ebx, dword [sym.imp.MSVCR100.dll_wcscat_s]
test eax, eax
je 0x40c2cc
push str.AdobeAcrobat11.0
lea eax, [ebp - 0x218]
push 0x104
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.0040bfd2
push 0
push 0x1c
lea eax, [ebp - 0x218]
push eax
push 0
call edi
test eax, eax
je 0x40c303
push str.AdobeAcrobat11.0
lea eax, [ebp - 0x218]
push 0x104
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.0040bfd2
push 0
push 0x1a
lea eax, [ebp - 0x218]
push eax
push 0
call edi
test eax, eax
je 0x40c33a
push str.AdobeLinguisticsDictionaries
lea eax, [ebp - 0x218]
push 0x104
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.0040bfd2
push str.SOFTWAREPoliciesAdobeAdobe_Acrobat11.0FeatureLockDown
mov ecx, esi
call fcn.0040c051
push str.SOFTWAREPoliciesAdobeAcrobat_Reader11.0FeatureLockDown
mov ecx, esi
call fcn.0040c051
mov eax, esi
call fcn.0042e866
ret

Function at 0x40c39e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp + 8]
push eax
mov edi, 0x20019
push edi
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x40c406
lea eax, [ebp + 0xc]
push eax
push edi
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40c401
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push dword [ebp + 0x14]
mov dword [ebp + 0x10], 4
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0xc]
call esi
push dword [ebp + 8]
call esi
xor eax, eax
cmp dword [ebp - 4], ebx
pop edi
pop esi
setne al
pop ebx
leave
ret 0x10
Function at 0x42e764
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43c4b0]
jne 0x42e76e
repz ret
jmp fcn.0042f000

Function at 0x42fe44
Capabilities:
Get disk information

Disassembly:
push edi
mov ecx, esi
xor edi, edi
call fcn.0042a440
cmp dword [esi + 4], edi
jne 0x42fe57
xor eax, eax
pop edi
ret
mov ecx, esi
call fcn.0042a440
cmp dword [esi + 4], 1
jne 0x42fe81
push edi
mov ecx, esi
call fcn.0042b301
movzx eax, ax
push eax
call fcn.0042fe2a
add esp, 4
test al, al
je 0x42fe81
xor eax, eax
inc eax
pop edi
ret
mov ecx, esi
call fcn.0042a440
cmp dword [esi + 4], 3
jne 0x42fee6
push edi
mov ecx, esi
call fcn.0042b301
movzx eax, ax
push eax
call dword [sym.imp.MSVCR100.dll_iswalpha]
pop ecx
test eax, eax
je 0x42fee6
push 1
mov ecx, esi
call fcn.0042b301
cmp ax, 0x3a
jne 0x42fee6
push 2
mov ecx, esi
call fcn.0042b301
movzx eax, ax
push eax
call fcn.0042fe2a
add esp, 4
test al, al
je 0x42fee6
mov ecx, esi
call fcn.0042a440
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
cmp ecx, eax
sbb eax, eax
neg eax
pop edi
ret
mov ecx, esi
call fcn.0042a440
cmp dword [esi + 4], 2
jbe 0x43001c
push 0
mov ecx, esi
call fcn.0042b301
movzx eax, ax
push eax
call fcn.0042fe2a
add esp, 4
test al, al
je 0x43001c
push 1
mov ecx, esi
call fcn.0042b301
movzx eax, ax
push eax
call fcn.0042fe2a
add esp, 4
test al, al
je 0x43001c
push 2
pop edi
push edi
mov ecx, esi
call fcn.0042b301
movzx eax, ax
push eax
call fcn.0042fe2a
add esp, 4
test al, al
jne 0x42fe53
mov ecx, esi
inc edi
call fcn.0042a440
cmp edi, dword [esi + 4]
jae 0x42ff75
push edi
mov ecx, esi
call fcn.0042b301
movzx eax, ax
push eax
call fcn.0042fe2a
add esp, 4
test al, al
je 0x42ff50
mov ecx, esi
call fcn.0042a440
cmp dword [esi + 4], edi
je 0x42fe53
mov ecx, esi
inc edi
call fcn.0042a440
cmp dword [esi + 4], edi
je 0x42fe53
push edi
mov ecx, esi
call fcn.0042b301
movzx eax, ax
push eax
call fcn.0042fe2a
add esp, 4
test al, al
jne 0x42fe53
mov ecx, esi
inc edi
call fcn.0042a440
cmp edi, dword [esi + 4]
jae 0x42ffd7
push edi
mov ecx, esi
call fcn.0042b301
movzx eax, ax
push eax
call fcn.0042fe2a
add esp, 4
test al, al
je 0x42ffb2
mov ecx, esi
call fcn.0042a440
lea eax, [edi + 1]
cmp dword [esi + 4], eax
ja 0x42fe53
mov ecx, esi
call fcn.0042a440
cmp dword [esi + 4], edi
jne 0x430005
movzx eax, word [0x43c4d0]
push eax
mov ecx, esi
call fcn.0042a7d6
mov ecx, esi
call fcn.0042a440
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
cmp ecx, eax
sbb edi, edi
neg edi
mov eax, edi
pop edi
ret
Function at 0x43006f
Capabilities:
Check if file exists

Disassembly:
push 0x49c
mov eax, 0x4311d4
call fcn.0042e7e3
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0042a440
xor ebx, ebx
cmp dword [esi + 4], ebx
jne 0x43009c
mov eax, 0xffffe89d
jmp 0x4302c7
push ebx
push 0xffffffffffffffff
push 0x434240
lea ecx, [ebp - 0x488]
call fcn.0042abfe
push ebx
lea eax, [ebp - 0x488]
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0042b3a7
cmp eax, 0xffffffff
setne bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x478]
call fcn.004076dd
lea ecx, [ebp - 0x480]
call fcn.004076dd
test bl, bl
je 0x4300ef
mov eax, 0xffffe8c2
jmp 0x4302c7
mov ecx, esi
call fcn.0042a440
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp - 0x46c]
push ecx
push eax
call ebx
mov dword [ebp - 0x470], eax
cmp eax, 0xffffffff
jne 0x430227
mov ecx, esi
call fcn.0042a440
lea ecx, [ebp - 0x48c]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
mov esi, 0x105
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov dword [ebp - 0x470], eax
test eax, eax
jne 0x430147
inc eax
jmp 0x4302c7
cmp eax, esi
jbe 0x430155
mov eax, 0xffffe8c1
jmp 0x4302c7
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x488]
call fcn.0042a71a
lea esi, [ebp - 0x488]
mov dword [ebp - 4], 1
call fcn.0042fe44
test eax, eax
je 0x4301b4
xor eax, eax
mov dword [edi], 2
mov dword [edi + 4], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
xor esi, esi
lea ecx, [ebp - 0x478]
call fcn.004076dd
lea ecx, [ebp - 0x480]
call fcn.004076dd
mov eax, esi
jmp 0x4302c7
mov ecx, dword [ebp - 0x470]
lea ecx, [ebp + ecx*2 - 0x21e]
movzx eax, word [ecx]
push eax
call fcn.0042fe2a
add esp, 4
test al, al
jne 0x4301ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4301e6
cmp eax, 3
je 0x4301e6
xor esi, esi
inc esi
jmp 0x430197
mov esi, 0xffffe8c2
jmp 0x430197
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x21c]
push eax
call ebx
mov dword [ebp - 0x470], eax
cmp eax, 0xffffffff
je 0x4301d1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x478]
call fcn.004076dd
lea ecx, [ebp - 0x480]
call fcn.004076dd
push dword [ebp - 0x470]
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x46c], 0x10
push 0
pop eax
setne al
xor ebx, ebx
inc eax
mov dword [edi], eax
cmp dword [ebp - 0x450], ebx
je 0x43027b
push ebx
push 0xffffffffffffffff
push str.file_size_larger_than_4GB_encountered
lea ecx, [ebp - 0x4a4]
mov dword [ebp - method.RSException.virtual_0], vtable.RSException.0
call fcn.0042abfe
push 0x435834
lea eax, [ebp - 0x4a8]
push eax
call sub.MSVCR100.dll__CxxThrowException
mov eax, dword [ebp - 0x44c]
mov dword [edi + 4], eax
lea esi, [edi + 0x10]
lea eax, [ebp - 0x458]
push esi
push eax
call fcn.00430020
pop ecx
pop ecx
cmp dword [ebp - 0x468], ebx
jne 0x4302b3
cmp dword [ebp - 0x464], ebx
jne 0x4302b3
mov eax, dword [esi]
mov dword [edi + 8], eax
mov eax, dword [esi + 4]
mov dword [edi + 0xc], eax
jmp 0x4302c5
add edi, 8
lea eax, [ebp - 0x468]
push edi
push eax
call fcn.00430020
pop ecx
pop ecx
xor eax, eax
call fcn.0042e866
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43101e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x1004d473
Capabilities:
Get number of processors

Disassembly:
jmp 0x10041794
call fcn.1004177f
salc
arpl word [ebp - 0x79], cx
loop 0x1004178a
adc eax, 0x24748b56
add al, 0x8d
mov dh, 0xd4
adc byte [edx], al
add byte [ecx + 0x5e042474], cl
push edx
mov dword [esp], ebp
push esp
pop ebp
push ebp
mov ebp, esp
add ebp, 4
sub ebp, 0x80
xchg dword [esp], ebp
pop esp
sub esp, 4
mov dword [esp], ebx
push edi
mov dword [esp], esi
push 0x188b
mov dword [esp], edi
jmp 0x100673b3
push ebx
mov ebx, 8
add ebx, ebp
mov eax, dword [ebx]
pop ebx
sub esp, 4
mov dword [esp], eax
jmp 0x100601dd
jmp 0x1004c476
push 0
push 0x41797261
push 0x7262694c
push 0x64616f4c
lea ecx, [ebp - 0x2c]
sub esp, 4
mov dword [esp], ecx
jmp 0x1005b856
push ecx
mov ecx, dword [esp + 4]
lea ecx, [ecx + 0x1983f]
mov dword [esp + 4], ecx
pop ecx
jmp 0x10063e32
jmp 0x1005b86d
call fcn.1005b858
adc byte [eax - 0x77], dl
loopne 0x1005b87c
add al, 0
add byte [eax], al
add eax, 4
xchg dword [esp], eax
pop esp
rol byte [edi + eax*4], 4
and al, 0x5c
push eax
pop dword [ebp - 4]
push ecx
mov ecx, 0xc
add ecx, ebp
mov eax, dword [ecx]
pop ecx
push esi
mov dword [esp], eax
push dword [ebp - 4]
sub dword [esp], 0x3f8325ed
pop ecx
add ecx, 0x3f8325ed
push esi
mov dword [esp], ecx
push eax
mov eax, 8
add eax, ebp
mov edx, dword [eax]
pop eax
push eax
mov eax, 0x64
add edx, eax
pop eax
push ebx
mov dword [esp], edx
jmp 0x1004177d
jmp 0x100601f4
call fcn.100601df
or eax, dword [ebp + 0x68]
mov byte [eax], 0
jmp 0x10041bce
push esi
mov esi, 0x6114390f
xor esi, 0x61143917
mov eax, esi
pop esi
mov eax, dword fs:[eax]
push eax
pop dword [ebp - 4]
push dword [ebp - 4]
pop eax
push dword [eax + 0x30]
sub dword [esp], 0x63f80c4b
pop ecx
add ecx, 0x63f80c4b
push eax
mov eax, 0xfffffff8
add eax, ebp
mov dword [eax], ecx
pop eax
push dword [ebp - 8]
pop edx
push ecx
mov ecx, 8
add ecx, edx
mov eax, dword [ecx]
pop ecx
push edx
mov edx, 0xffffffec
add edx, ebp
mov dword [edx], eax
pop edx
push ebx
mov ebx, 0
mov dword [ebp - 0x10], ebx
pop ebx
cmp dword [ebp - 0x10], 0
je 0x10042698
jmp 0x10043265

Function at 0x1006c6f2
Capabilities:
Access peb ldr_data

Disassembly:
push eax
mov eax, dword [esp + 4]
lea eax, [eax - 0x4e23]
mov dword [esp + 4], eax
pop eax
jmp 0x1005ba70

Function at 0x1024cd62
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], ecx
cmp eax, 0x1000
lea ecx, [esp + 8]
jb 0x1024cdc0
jmp 0x1024cd7f
push ebx
mov ebx, 0x1000
sub ecx, ebx
pop ebx
push esi
mov esi, 0x42603735
add esi, 0x62b848ad
not esi
xor esi, 0xa3b2af6
xor esi, 0x5731f4a
shr esi, 4
xor esi, 0x55aeb5a
sub eax, esi
pop esi
test dword [ecx], eax
cmp eax, 0x1000
jae 0x1024cd7f
jmp 0x1024cdc0
sub ecx, 0x42861a21
sub ecx, eax
add ecx, 0x42861a21
push esp
pop eax
test dword [ecx], eax
mov esp, ecx
push dword [eax]
pop ecx
push dword [eax + 4]
xor dword [esp], 0x1d9f7243
pop eax
xor eax, 0x1d9f7243
push ecx
mov dword [esp], eax
ret