joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4027c9
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
lea eax, [ebp - 0x100]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str._s:_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
and byte [ebp + eax - 0xff], 0
and byte [ebp + eax - 0xfe], 0
and byte [ebp + eax - 0xfd], 0
mov dl, byte [ebp - 0x100]
mov ecx, dword [ebp + 8]
test dl, dl
je 0x402884
push ebx
push edi
lea edi, [ebp - 0xfe]
movzx esi, dl
mov edx, esi
and esi, 3
shr edx, 2
shl esi, 4
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
inc ecx
movzx edx, byte [edi - 1]
mov ebx, edx
and edx, 0xf
shr ebx, 4
or ebx, esi
movzx esi, byte [edi]
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
add edi, 3
mov byte [ecx], bl
mov ebx, esi
shl edx, 2
shr ebx, 6
or edx, ebx
inc ecx
and esi, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
mov dl, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], dl
mov dl, byte [edi - 2]
inc ecx
test dl, dl
jne 0x402828
pop edi
pop ebx
push 3
cdq
pop esi
idiv esi
pop esi
cmp edx, 2
jne 0x402894
mov byte [ecx], 0x3d
inc ecx
cmp edx, 1
jne 0x40289d
mov byte [ecx], 0x3d
inc ecx
and byte [ecx], 0
leave
ret

Function at 0x4028b0
Capabilities:
Hash data with crc32

Disassembly:
push 0x400
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [0x4086f8], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [0x4086f4], eax
and dword [eax], 0
push 1
pop eax
push 8
mov ecx, eax
pop edx
test cl, 1
je 0x4028e8
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x4028ea
shr ecx, 1
dec edx
jne 0x4028d9
mov edx, dword [0x4086f4]
mov dword [edx + eax*4], ecx
inc eax
cmp eax, 0x100
jl 0x4028d4
ret

Function at 0x402918
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x40292a
or eax, 0xffffffff
mov dword [0x4074c0], eax
jmp 0x402963
mov edx, dword [esp + 8]
mov eax, dword [0x4074c0]
push esi
mov esi, edx
dec edx
test esi, esi
je 0x40295d
push edi
inc edx
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
mov edi, dword [0x4086f4]
shr eax, 8
mov esi, dword [edi + esi*4]
xor eax, esi
inc ecx
dec edx
jne 0x40293d
pop edi
mov dword [0x4074c0], eax
pop esi
not eax
ret 8
Function at 0x404c46
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
cmp dword [0x4086e8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
jne 0x404cd8
lea eax, [ebp - 0x144]
push 0x100
push eax
push dword [0x4086e0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [ebp - 0x144], 0
je 0x404ccf
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x144]
lea ecx, [ebp - 0x144]
cmp eax, ecx
jbe 0x404cc7
cmp byte [eax], 0x5c
je 0x404ccc
dec eax
jmp 0x404cb5
cmp byte [eax], 0x5c
jne 0x404ccf
and byte [eax], 0
lea eax, [ebp - 0x144]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x24], 1
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x404d49
push ebx
push edi
call fcn.00404e59
cmp dword [ebp + 0x10], esi
je 0x404d35
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, 0x1f4
push ebx
push dword [ebp - 8]
call esi
mov edi, 0x102
cmp eax, edi
jne 0x404d35
call fcn.00404e59
cmp dword [0x4086cc], 0
jne 0x404d29
push ebx
push dword [ebp - 8]
call esi
jmp 0x404d0f
push 0
push dword [ebp + 0x14]
call fcn.0040530c
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
call fcn.00404e59
pop edi
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x404f3c
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
cmp edi, 3
jle 0x404f66
push ebx
mov ebx, edi
shr ebx, 2
mov eax, ebx
neg eax
lea edi, [edi + eax*4]
call fcn.00404f82
xor dword [esi], eax
add esi, 4
dec ebx
jne 0x404f58
pop ebx
test edi, edi
jle 0x404f7f
call fcn.00404f82
cdq
mov ecx, 0xff
idiv ecx
inc dl
xor byte [esi], dl
inc esi
dec edi
jne 0x404f6a
pop edi
pop esi
ret

Function at 0x40504d
Capabilities:
Create directory

Disassembly:
push esi
push 0x5c
push dword [esp + 0xc]
call fcn.00405096
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x405094
mov al, byte [esi]
test al, al
je 0x405094
cmp al, 0x5c
je 0x40507a
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov al, byte [esi]
test al, al
jne 0x405067
cmp byte [esi], 0x5c
jne 0x405061
and byte [esi], 0
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
inc esi
jmp 0x405061
pop esi
ret
Function at 0x4050f2
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
and byte [esi], 0
cmp dword [0x4086e8], 0
je 0x405173
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push 4
pop eax
xor edi, edi
cmp ebx, eax
jle 0x405121
movzx ecx, byte [eax + 0x408680]
add edi, ecx
inc eax
cmp eax, ebx
jl 0x405113
mov esi, dword [sym.imp.KERNEL32.dll__llseek]
push 1
push 0
push dword [0x408438]
call esi
mov dword [ebp + 0xc], eax
mov eax, dword [0x4086ec]
add eax, edi
push 0
push eax
push dword [0x408438]
call esi
movzx eax, byte [ebx + 0x408680]
push eax
push dword [ebp + 8]
push dword [0x408438]
call dword [sym.imp.KERNEL32.dll__lread]
push 0
push dword [ebp + 0xc]
push dword [0x408438]
call esi
mov esi, dword [ebp + 8]
pop edi
pop ebx
jmp 0x40518f
push dword [ebp + 0x10]
push 0x100
push esi
push 0x408010
push dword [ebp + 0x14]
push str.WiseInstaller
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esi], 0
jne 0x4051a9
push 0x100
push esi
push dword [ebp + 0x18]
push dword [0x4086e0]
call dword [sym.imp.USER32.dll_LoadStringA]
pop esi
pop ebp
ret

Function at 0x40530c
Capabilities:
Accept command line arguments
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionInstallerRunOnceEntries
push closesocket
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40537c
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
call fcn.004051ac
pop ecx
lea eax, [ebp + 8]
pop ecx
mov dword [ebp + 8], 0x400
push eax
push ebx
push ebx
lea eax, [ebp - 0x44]
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405373
cmp dword [ebp + 8], 1
jbe 0x405373
push 1
pop edi
push dword [ebp - 4]
call esi
cmp edi, ebx
jne 0x4053db
mov edi, dword [ebp + 0xc]
mov eax, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
cmp edi, ebx
je 0x40538d
mov eax, str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
lea ecx, [ebp - 4]
push ebx
push ecx
push ebx
push 0xf003f
push ebx
push 0x408010
push ebx
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4053db
cmp edi, ebx
jne 0x4053bb
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push ebx
push str.WiseStubReboot
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4053e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
lea eax, [ebp - 0x194]
mov dword [ebp - 0x194], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x184], 1
jne 0x405465
push esi
lea eax, [ebp - 0x100]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x101], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x405447
lea eax, [ebp - 0x100]
push 0x4079dc
push eax
call esi
lea eax, [ebp - 0x100]
push str.WININIT.INI
push eax
call esi
lea eax, [ebp - 0x100]
push eax
call fcn.00405469
pop ecx
pop esi
leave
ret
xor eax, eax
leave
ret
Function at 0x405b10
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebx
xor eax, eax
mov ebx, dword [esp + 8]
push esi
push edi
cmp byte [ebx], al
je 0x405b4f
push ebx
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x405b4f
mov edi, str.255.255.255.255
mov ecx, 0x10
mov esi, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x405b4f
push ebx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x405b4d
mov eax, dword [eax + 0xc]
pop edi
mov ecx, dword [eax]
pop esi
pop ebx
mov eax, dword [ecx]
ret
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x100102c0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0x18]
mov eax, 0x20
cmp esi, eax
cmova esi, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
mov eax, dword [ebp - 4]
and eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
and ebx, eax
xor ecx, ecx
mov eax, esi
test edi, edi
je 0x10010335
lea esp, [esp]
mov edx, 1
shl edx, cl
test ebx, edx
jne 0x10010330
test esi, esi
je 0x10010335
dec eax
inc ecx
cmp ecx, edi
jb 0x10010320
pop edi
pop esi
mov dword [0x10017e08], eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10010e80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push 1
xor edi, edi
push edi
push str.SOFTWAREAMDMFTVDecoder
push 0x80000002
mov dword [ebp - 8], 4
mov dword [ebp - 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10010f08
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push str.TranscodeThreshold
push dword [ebp - 4]
mov dword [ebp - 0xc], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.DecodeThreshold
push dword [ebp - 4]
mov ecx, 1
cmove edi, ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10010eff
inc edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10010f10
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x10018038]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push 0xff
push eax
call sub.MSVCR110.dll__vsnwprintf
add esp, 0x10
test eax, eax
js 0x10010f5e
cmp eax, 0xff
ja 0x10010f5e
jne 0x10010f51
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011c62
mov esp, ebp
pop ebp
ret
Function at 0x10010f70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 1
push 0
push str.SOFTWAREAMDMFTVDecoder
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10010fd9
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push str.DebugLevel
push dword [ebp - 0x10]
mov dword [ebp - 0xc], 4
mov dword [ebp - 4], 4
mov dword [ebp - 8], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10010fd9
mov eax, dword [0x1001804c]
cmp dword [ebp - 4], 4
cmove eax, dword [ebp - 8]
mov dword [0x1001804c], eax
mov esp, ebp
pop ebp
ret

Function at 0x100112a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x100112e2
mov ecx, 0x7fffffff
mov eax, esi
xor edx, edx
cmp word [eax], dx
je 0x100112c8
add eax, 2
dec ecx
jne 0x100112b4
mov edx, 0x80070057
xor eax, eax
jmp 0x100112dc
test ecx, ecx
jne 0x100112d5
mov edx, 0x80070057
xor eax, eax
jmp 0x100112dc
mov eax, 0x7fffffff
sub eax, ecx
test edx, edx
jns 0x100112ed
jmp 0x100112e7
mov edx, 0x80070057
xor eax, eax
test edx, edx
js 0x1001131e
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1001130f
pop esi
pop ebp
ret 0xc
jle 0x10011320
movzx eax, ax
or eax, 0x80070000
pop esi
pop ebp
ret 0xc
mov eax, edx
pop esi
pop ebp
ret 0xc

Function at 0x100113b0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x10018038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x27
lea ecx, [ebp - 0x54]
push ecx
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
js 0x10011428
lea eax, [ebp - 0x54]
push eax
push str.CLSID_ls
lea eax, [ebp - 0x25c]
push 0x104
push eax
call fcn.1000e550
add esp, 0x10
test eax, eax
js 0x10011428
lea eax, [ebp - 0x25c]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
jne 0x1001141e
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011c62
mov esp, ebp
pop ebp
ret 4
jle 0x10011428
movzx eax, ax
or eax, 0x80070000
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011c62
mov esp, ebp
pop ebp
ret 4
Function at 0x10011a10
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
call fcn.10010f70
push 0x10014608
call fcn.100113b0
movq xmm0, qword [0x10014608]
sub esp, 0x10
mov eax, esp
movq qword [eax], xmm0
movq xmm0, qword [0x10014610]
movq qword [eax + 8], xmm0
call sub.MFPlat.DLL_MFTUnregister
lea eax, [ebp - 4]
push eax
push 0x1000b
push 0
push str.SOFTWAREAMDMFTVDecoder
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10011a80
push str.DecodeThreshold
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.10010e80
cmp dword [0x1001804c], 1
mov esi, eax
jne 0x10011a9e
push esi
push str.AMDMFTDecoderDllUnregisterServer:_InstallCount_d
call fcn.10010f10
add esp, 8
test esi, esi
jne 0x10011b5d
lea eax, [ebp - 4]
push eax
push 3
push esi
push str.SOFTWAREMicrosoftWindows_Media_FoundationHardwareMFT
push 0x80000002
mov dword [ebp - 8], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10011b5d
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push str.EnableDecoders
push dword [ebp - 4]
mov dword [ebp - 0x10], 4
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0xc], 4
je 0x10011b12
push dword [ebp - 4]
mov dword [ebp - 8], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
cmp eax, 2
je 0x10011b1f
cmp eax, 3
jne 0x10011b54
cmp dword [0x1001804c], 1
mov dword [ebp - 0x14], 0
jne 0x10011b3c
push str.AMDMFTDecoderDllUnregisterServer:_EnableDecoders_set_back_to_0
call fcn.10010f10
add esp, 4
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push 0
push str.EnableDecoders
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1004f9c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2ac
mov eax, dword [0x100710c]
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 8
mov dword [ebp - 4], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
xor ebx, ebx
rep stosd dword es:[edi], eax
inc ebx
lea edi, [edx + 8]
mov dword [esi], ebx
mov dword [ebp - 0x2ac], esi
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
push edi
mov dword [ebp - 0x2a8], edx
call esi
cmp eax, 0x40
pop ecx
jae 0x10050af
mov eax, dword [ebp - 0x2a8]
add eax, 0x888
push eax
call esi
test eax, eax
pop ecx
jbe 0x10050af
push ebx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push edi
call esi
mov esi, eax
push esi
lea eax, [ebp - 0xa4]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0x10
lea eax, [esi + esi]
push 0x10
xor esi, esi
mov word [ebp - 0xa2], 0x5c
mov word [ebp + eax - 0xa4], 0x5c
mov word [ebp + eax - 0xa2], si
lea eax, [ebp - 0x24]
push eax
push esi
push esi
push esi
push 0x100
lea eax, [ebp - 0x2a4]
push eax
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
mov edi, dword [sym.imp.msvcrt.dll_wcscmp]
je 0x1005082
mov eax, dword [ebp - 0x2a8]
add eax, 0x888
push eax
lea eax, [ebp - 0x24]
push eax
call edi
test eax, eax
pop ecx
pop ecx
je 0x100508c
mov eax, dword [ebp - 0x2ac]
xor ebx, ebx
mov dword [eax], esi
mov eax, dword [ebp - 0x2a8]
add eax, 0x8a8
push eax
lea eax, [ebp - 0x2a4]
push eax
call edi
test eax, eax
pop ecx
pop ecx
je 0x10050af
mov eax, dword [ebp - 0x2ac]
mov dword [eax], esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.01005413
leave
ret 8

Function at 0x1005339
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
inc edi
xor esi, esi
cmp dword [0x100720c], esi
mov dword [0x1007200], edi
mov dword [0x1007204], edi
mov dword [0x1007208], esi
jne 0x1005368
call fcn.01004f5e
test eax, eax
je 0x1005387
push esi
push esi
push dword [ebp + 8]
push 0x1005179
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
je 0x1005387
cmp eax, 0xffffffff
je 0x1005387
mov eax, edi
jmp 0x1005395
mov dword [0x1007204], esi
mov dword [0x1007200], esi
xor eax, eax
pop edi
pop esi
pop ebp
ret 4

Function at 0x7af045
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x968d6e
jmp 0x968e4c
pop ebp
sub edx, 4
xor edx, dword [esp]
xor dword [esp], edx
xor edx, dword [esp]
jmp 0x968e43
pop esp
mov dword [esp], ebp
jmp fcn.00968ed7
push edx
mov edx, esp
push ebp
push 0x57ffb73f
pop ebp
and ebp, 0x6b6866d6
jp 0x968e31
jmp 0x968eca
xor ebp, 0x43682612
add edx, ebp
jmp 0x968e31
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x41067b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x41068a
pop dword [ebp - 0x1c]
mov eax, 0x629b4f70
sub eax, 0x625a48e6
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x7602b630
sub dword [ebp - 0x2c], 0x27b070e5
mov dword [ebp - 0x28], 0x46c176e
sub dword [ebp - 0x28], 0xd238cb29
mov dword [ebp - 0x24], 0x4ec399a7
add dword [ebp - 0x24], 0xfd88aa87
mov dword [ebp - 0x20], 0x4ccb2add
sub dword [ebp - 0x20], 0x4ccb2add
lea eax, [ebp - 0x2c]
push eax
mov eax, 0xac937f0a
sub eax, 0xac514e96
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xd0a53876
add dword [ebp - 0x2c], 0xa3cd30e0
mov dword [ebp - 0x28], 0xceec750
add dword [ebp - 0x28], 0x347d9a25
mov dword [ebp - 0x24], 0x4b0fde18
sub dword [ebp - 0x24], 0xe7a071ac
mov dword [ebp - 0x20], 0x7a84f6f9
add dword [ebp - 0x20], 0x857b0907
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x6695c05
sub eax, 0x6272ae1
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x3bd2b
push 0
call eax
mov ecx, 0xb909c7d5
sub ecx, 0xb9098776
mov edx, eax
mov ebx, 0x241b27fd
sub ebx, 0x23d7e3fd
add ebx, dword [ebp - 0x1c]
mov esi, 0xc2ba9841
add esi, 0x73bab3c1
xor dword [ebp - 0x18], 0x5f287cdb
mov edi, dword [ebx]
add dword [ebp - 0xc], 0x3c02a325
sub edi, esi
mov dword [ebp - 8], 0x9909698
mov dword [edx], edi
add edx, 0x461a2d66
add edx, 0xb9e5d29e
add ebx, 4
loop 0x4107ac
add eax, 0xf44f
mov ebx, eax
add eax, 0xc34858c0
add eax, 0x3cb7a745
mov ecx, 0x3ef136b6
add ecx, 0xc14ec94a
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x402c00
pop dword [ebp - 0x50]
mov eax, 0xd529bb3d
sub eax, 0xd4e98f3d
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xda1dffbd
add dword [ebp - 0x60], 0x7434458e
mov dword [ebp - 0x5c], 0x12e71c72
add dword [ebp - 0x5c], 0x1f4c2fd3
mov dword [ebp - 0x58], 0x5e065fac
add dword [ebp - 0x58], 0xee45e482
mov dword [ebp - 0x54], 0xc17a10ae
sub dword [ebp - 0x54], 0xc17a10ae
lea eax, [ebp - 0x60]
push eax
mov eax, 0x4ad1823
add eax, 0xfb936869
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x3097f768
add dword [ebp - 0x60], 0x43da71ee
mov dword [ebp - 0x5c], 0xeb4765f4
add dword [ebp - 0x5c], 0x5624fb81
mov dword [ebp - 0x58], 0x8828541e
add dword [ebp - 0x58], 0xdb47184e
mov dword [ebp - 0x54], 0x3ea49b34
add dword [ebp - 0x54], 0xc15b64cc
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x40637576
sub eax, 0x4022f4a2
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x36f7e
push 0
call eax
mov ecx, 0xd1bb6610
sub ecx, 0xd1bb1cf2
mov esi, eax
mov edi, 0xf860373d
sub edi, 0xf81f273d
add edi, dword [ebp - 0x50]
mov edx, 0x15f7502
add edx, 0xa95fb7
sub dword [ebp - 8], esi
mov ebx, dword [edi]
add dword [ebp - 0x30], edi
xor ebx, edx
add dword [ebp - 0x2c], 0x410ba1b6
mov dword [esi], ebx
mov dword [ebp - 0x38], 0x9fd74834
add esi, 0x291d46de
add esi, 0xd6e2b926
add edi, 4
loop 0x402d22
add eax, 0x43f3ac02
sub eax, 0x43f294b7
mov ebx, eax
add eax, 0x358e6e6f
sub eax, 0x358e6e6a
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret