joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009f63
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x100468a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
or dword [ebp - 0x244], 0xffffffff
push ebx
mov ebx, dword [ebp + 8]
push edi
push 0xf
pop eax
mov word [ebp - 0x250], ax
xor edi, edi
xor eax, eax
mov dword [ebp - 0x24c], edi
inc eax
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x240], eax
test ecx, ecx
je 0x1000a1ad
mov eax, dword [ecx]
lea edx, [ebp - 0x23c]
push edx
lea edx, [ebp - 0x250]
push edx
push ecx
call dword [eax + 0xc]
test eax, eax
js 0x1000a1ad
push esi
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push edi
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x230], eax
mov esi, 0x80004005
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov edi, eax
cmp edi, 1
jl 0x1000a17a
mov ecx, 0x1004708c
call fcn.1000d07c
xor esi, esi
test edi, edi
jle 0x1000a178
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
push dword [ebp - 0x238]
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1000a16f
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x22c]
call fcn.10007f40
push 0x2e
push dword [ebp - 0x22c]
call sub.msvcrt.dll_wcsrchr
pop ecx
pop ecx
test eax, eax
jne 0x1000a07a
or eax, 0xffffffff
jmp 0x1000a082
sub eax, dword [ebp - 0x22c]
sar eax, 1
inc eax
lea ecx, [ebp - 0x22c]
push eax
push 0
call fcn.10008d5c
push 0x10033364
push dword [ebp - 0x22c]
call sub.msvcrt.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
jne 0x1000a12d
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.10009b20
pop ecx
pop ecx
push dword [ebp - 0x228]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000a11f
mov eax, dword [ebp - 0x228]
lea ecx, [ebp - 0x228]
push dword [eax - 0xc]
call fcn.1000b87d
push eax
lea ecx, [ebp - 0x224]
call fcn.10007fa8
lea eax, [ebp - 0x224]
mov ecx, 0x1004708c
push eax
push dword [0x1004708c]
call fcn.100068e8
lea ecx, [ebp - 0x224]
call fcn.1000cdd6
push 0xffffffffffffffff
lea ecx, [ebp - 0x228]
call fcn.1000bd1c
mov ecx, dword [ebp - 0x228]
lea ecx, [ecx - 0x10]
call fcn.10004e6b
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x224]
call fcn.10007fa8
lea eax, [ebp - 0x224]
mov ecx, 0x1004708c
push eax
push dword [0x1004708c]
call fcn.100068e8
lea ecx, [ebp - 0x224]
call fcn.1000cdd6
mov ecx, dword [ebp - 0x22c]
lea ecx, [ecx - 0x10]
call fcn.10004e6b
inc esi
cmp esi, edi
jl 0x1000a00c
xor esi, esi
lea eax, [ebx + 0x5a8]
push eax
push dword [ebp - 0x230]
lea ecx, [ebx - 8]
call fcn.10008e4a
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.ole32.dll_ReleaseStgMedium]
mov eax, esi
pop esi
jmp 0x1000a1b2
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1002e36c
leave
ret 0x10
Function at 0x1000b87d
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push edi
mov edi, ecx
jl fcn.1000b8ae
mov edx, dword [edi]
xor ecx, ecx
inc ecx
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, dword [ebp + 8]
or ecx, eax
jge 0x1000b8a7
push dword [ebp + 8]
mov ecx, edi
call fcn.1000b826
mov edx, dword [edi]
mov eax, edx
pop edi
pop ebp
ret 4

Function at 0x1000bcae
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
mov esi, dword [ebp + 8]
push eax
mov eax, dword [esi + 0xc]
or eax, 1
push eax
push 0
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000bcfe
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push dword [esi + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
neg eax
sbb esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi + 1]
jmp 0x1000bd00
xor eax, eax
pop esi
leave
ret
Function at 0x1000beb1
Capabilities:
Create process on windows

Disassembly:
push 0x54
mov eax, 0x10030f5a
call fcn.100134d0
xor edi, edi
mov ebx, edi
cmp dword [ebp + 0x20], ebx
je 0x1000bf62
call fcn.1000b526
cmp dword [eax + 4], 6
jb 0x1000bf62
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x50], eax
inc esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x58], 0x3c
mov dword [ebp - 0x54], 0x1040
mov dword [ebp - 0x4c], str.runas
mov dword [ebp - 0x3c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1000c021
push dword [ebp + 0x18]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x1000bf52
push eax
push dword [ebp - 0x20]
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, esi
jmp 0x1000c021
call fcn.100038ff
push eax
lea ecx, [ebp + 0x20]
call fcn.10001c63
cmp dword [ebp + 0x10], 0
lea eax, [ebp + 0x20]
mov dword [ebp - 4], edi
je 0x1000bf92
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.__s___s
push eax
call fcn.10009666
add esp, 0x10
jmp 0x1000bfa3
push dword [ebp + 0xc]
push str.__s_
push eax
call fcn.10009666
add esp, 0xc
push 0x44
pop esi
push esi
lea eax, [ebp - 0x60]
push edi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x60], esi
add esp, 0xc
mov esi, dword [ebp + 0x20]
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
push 5
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop eax
mov word [ebp - 0x30], ax
xor edi, edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp + 0x14]
push edi
push edi
push edi
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test ebx, ebx
je 0x1000c019
push dword [ebp + 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x1000c009
push ecx
push dword [ebp - 0x1c]
mov dword [ecx], edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x1c]
call edi
lea ecx, [esi - 0x10]
call fcn.10004e6b
mov eax, ebx
call fcn.10013470
ret 0x1c
Function at 0x1000cd1c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x54]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x54], esi
add esp, 0xc
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
push 5
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop eax
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x1000cd79
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1000d5db
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp word [0x10047480], 0
push ebx
mov ebx, 0x10047480
jne 0x1000d649
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsQHSafeMain.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000d649
cmp dword [ebp - 4], eax
je 0x1000d649
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 1
push eax
push ebx
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0x410
push eax
push 0
push str.Path
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000c2a1
cmp dword [ebp + 0x10], 0
pop ebx
je 0x1000d66a
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
leave
ret
xor eax, eax
inc eax
leave
ret

Function at 0x1000da99
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x100468a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x10046894]
test ecx, ecx
js 0x1000dac2
xor eax, eax
test ecx, ecx
setne al
jmp 0x1000db66
and dword [0x10046894], 0
lea eax, [ebp - 0x144]
push esi
push 0x24
push 0
push eax
call sub.msvcrt.dll_memset
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x120]
push eax
call esi
test eax, eax
jne 0x1000db21
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call esi
test eax, eax
je 0x1000db63
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000db63
lea ecx, [ebp - 0x144]
push ecx
call eax
cmp word [ebp - 0x144], 9
je 0x1000db59
cmp word [ebp - 0x144], 6
jne 0x1000db63
xor eax, eax
inc eax
mov dword [0x10046894], eax
jmp 0x1000db65
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002e36c
leave
ret
Function at 0x100129a0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
add eax, 0x18
add eax, ecx
movzx ecx, word [ecx + 6]
lea ecx, [ecx + ecx*4]
lea edi, [eax + ecx*8]
cmp eax, edi
je 0x100129de
mov esi, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
cmp esi, edx
jb 0x100129d7
mov ecx, dword [eax + 8]
add ecx, edx
cmp esi, ecx
jb 0x100129e0
add eax, 0x28
cmp eax, edi
jne 0x100129c7
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x10013390
Capabilities:
Get process heap force flags

Disassembly:
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
mov eax, dword [ecx + 0xa4]
shl eax, 0x10
or eax, dword [ecx + 0xa8]
ret

Function at 0x10014870
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x100468a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x10014897
mov ecx, 5
int 0x29
push 2
call fcn.10013f80
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x100149a2
test esi, esi
jne 0x100149a2
push 2
call fcn.10013f80
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1002e36c
mov esp, ebp
pop ebp
ret
Function at 0x100152f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
test bl, bl
jns 0x100153ba
mov ecx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [ecx + 0x20]
cmp edi, eax
je 0x1001531f
lea eax, [ecx + 0x40]
cmp edi, eax
jne 0x100153ba
push edi
call fcn.10016660
mov eax, dword [sym.imp.msvcrt.dll__iob]
add esp, 4
add eax, 0x20
cmp edi, eax
jne 0x10015340
mov esi, 0x10047d20
mov eax, 0x10047d24
jmp 0x1001534a
mov esi, 0x10047d21
mov eax, 0x10047d28
cmp byte [esi], 0
mov dword [ebp + 8], eax
mov dword [ebp - 4], esi
je 0x1001539a
push edi
mov byte [eax + 1], bl
call fcn.1002a4c0
push edi
push 2
mov byte [ebp - 8], al
mov eax, dword [ebp + 8]
push 1
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
push edi
push dword [ebp - 8]
mov esi, eax
call fcn.1002a570
push edi
call fcn.10016c60
mov eax, dword [ebp - 4]
add esp, 0x20
mov byte [eax], 0
test esi, esi
jne 0x10015391
or ebx, 0xffffffff
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
call sub.msvcrt.dll___pctype_func
movzx ecx, bl
cmp word [eax + ecx*2], 0
jge 0x100153ba
mov eax, dword [ebp + 8]
pop edi
mov byte [esi], 1
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push ebx
call dword [sym.imp.msvcrt.dll_fputc]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100278f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10031270
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x100468a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
cmp ebx, edx
je 0x10027abd
mov edi, 0x5c
jmp 0x10027940
mov eax, dword [ebx]
mov esi, dword [eax*4 + 0x10047d38]
lea ecx, [eax*4 + 0x10047d38]
mov dword [ebp - 0x414], ecx
test esi, esi
je 0x10027968
cmp esi, 0xffffffff
je 0x10027ab2
jmp 0x10027aae
mov esi, dword [eax*4 + 0x1003f3a8]
cmp byte [0x10047d30], 0
mov dword [ebp - 4], 0
je 0x1002799d
push 0x800
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, dword [ebp - 0x414]
mov esi, eax
mov edx, dword [ebp + 0xc]
jmp 0x10027a8a
test esi, esi
je 0x10027a88
cmp word [esi], 0
je 0x10027a88
push 0x200
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10027a7f
cmp eax, 0x200
jae 0x10027a7f
mov word [ebp + eax*2 - 0x410], di
inc eax
cmp eax, 0x200
jae 0x10027a7f
movzx ecx, word [esi]
test cx, cx
je 0x10027a10
mov edx, ecx
mov word [ebp + eax*2 - 0x410], dx
inc eax
cmp eax, 0x200
jae 0x10027a7f
movzx ecx, word [esi + 2]
add esi, 2
mov edx, ecx
test cx, cx
jne 0x100279f2
add eax, eax
cmp eax, 0x400
jae 0x10027adf
mov edi, dword [0x100468a4]
xor ecx, ecx
mov word [ebp + eax - 0x410], cx
mov ecx, edi
xor edi, dword [0x10047d34]
and ecx, 0x1f
ror edi, cl
test edi, edi
je 0x10027a49
lea eax, [ebp - 0x418]
push eax
push 0
call edi
push 8
push 0
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test edi, edi
je 0x10027a6f
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x418]
call edi
mov ecx, dword [ebp - 0x414]
mov edi, 0x5c
mov edx, dword [ebp + 0xc]
jmp 0x10027a8a
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x414]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x10027a9c
or eax, 0xffffffff
xchg dword [ecx], eax
jmp 0x10027ab2
mov eax, esi
xchg dword [ecx], eax
test eax, eax
je 0x10027aab
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp + 0xc]
test esi, esi
jne 0x10027adb
add ebx, 4
cmp ebx, edx
jne 0x10027940
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002e36c
mov esp, ebp
pop ebp
ret
mov eax, esi
jmp 0x10027abf
call fcn.10012fc0
int3
Function at 0x10027a1d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10031270
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x100468a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
cmp ebx, edx
je 0x10027abd
mov edi, 0x5c
jmp 0x10027940
mov eax, dword [ebx]
mov esi, dword [eax*4 + 0x10047d38]
lea ecx, [eax*4 + 0x10047d38]
mov dword [ebp - 0x414], ecx
test esi, esi
je 0x10027968
cmp esi, 0xffffffff
je 0x10027ab2
jmp 0x10027aae
mov esi, dword [eax*4 + 0x1003f3a8]
cmp byte [0x10047d30], 0
mov dword [ebp - 4], 0
je 0x1002799d
push 0x800
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, dword [ebp - 0x414]
mov esi, eax
mov edx, dword [ebp + 0xc]
jmp 0x10027a8a
test esi, esi
je 0x10027a88
cmp word [esi], 0
je 0x10027a88
push 0x200
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10027a7f
cmp eax, 0x200
jae 0x10027a7f
mov word [ebp + eax*2 - 0x410], di
inc eax
cmp eax, 0x200
jae 0x10027a7f
movzx ecx, word [esi]
test cx, cx
je 0x10027a10
mov edx, ecx
mov word [ebp + eax*2 - 0x410], dx
inc eax
cmp eax, 0x200
jae 0x10027a7f
movzx ecx, word [esi + 2]
add esi, 2
mov edx, ecx
test cx, cx
jne 0x100279f2
add eax, eax
cmp eax, 0x400
jae 0x10027adf
mov edi, dword [0x100468a4]
xor ecx, ecx
mov word [ebp + eax - 0x410], cx
mov ecx, edi
xor edi, dword [0x10047d34]
and ecx, 0x1f
ror edi, cl
test edi, edi
je 0x10027a49
lea eax, [ebp - 0x418]
push eax
push 0
call edi
push 8
push 0
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test edi, edi
je 0x10027a6f
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x418]
call edi
mov ecx, dword [ebp - 0x414]
mov edi, 0x5c
mov edx, dword [ebp + 0xc]
jmp 0x10027a8a
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x414]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test esi, esi
jne 0x10027a9c
or eax, 0xffffffff
xchg dword [ecx], eax
jmp 0x10027ab2
mov eax, esi
xchg dword [ecx], eax
test eax, eax
je 0x10027aab
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp + 0xc]
test esi, esi
jne 0x10027adb
add ebx, 4
cmp ebx, edx
jne 0x10027940
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002e36c
mov esp, ebp
pop ebp
ret
mov eax, esi
jmp 0x10027abf
call fcn.10012fc0
int3
Function at 0x1002fca0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100468a4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push 0x10040828
push edi
mov dword [ebp - 0x210], edi
call sub.msvcrt.dll_wcspbrk
add esp, 8
test eax, eax
jne 0x1002fce0
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002e36c
mov esp, ebp
pop ebp
ret
push ebx
push esi
xor esi, esi
call sub.msvcrt.dll__errno
mov ebx, dword [eax]
call sub.msvcrt.dll__errno
push 0x104
push edi
mov dword [eax], esi
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll__wfullpath
add esp, 0xc
mov edi, eax
call sub.msvcrt.dll__errno
test edi, edi
je 0x1002fd1c
mov dword [eax], ebx
mov ebx, dword [ebp - 0x210]
jmp 0x1002fd43
cmp dword [eax], 0x22
jne 0x1002fe5a
call sub.msvcrt.dll__errno
push 0
mov dword [eax], ebx
mov ebx, dword [ebp - 0x210]
push ebx
push 0
call sub.msvcrt.dll__wfullpath
mov esi, eax
add esp, 0xc
mov edi, esi
test edi, edi
je 0x1002fe5a
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002fd50
sub ecx, edx
sar ecx, 1
cmp ecx, 3
je 0x1002fe32
mov ecx, edi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002fd70
sub ecx, edx
sar ecx, 1
cmp ecx, 5
jb 0x1002fe5a
movzx eax, word [edi]
cmp eax, 0x5c
je 0x1002fd99
cmp eax, 0x2f
jne 0x1002fe5a
movzx eax, word [edi + 2]
cmp eax, 0x5c
je 0x1002fdab
cmp eax, 0x2f
jne 0x1002fe5a
movzx eax, word [edi + 4]
cmp eax, 0x5c
je 0x1002fe5a
cmp eax, 0x2f
je 0x1002fe5a
movzx eax, word [edi + 6]
lea edx, [edi + 6]
mov edi, eax
test ax, ax
je 0x1002fdf2
mov ecx, eax
cmp cx, 0x5c
je 0x1002fdef
cmp cx, 0x2f
je 0x1002fdef
movzx eax, word [edx + 2]
add edx, 2
mov ecx, eax
mov edi, eax
test ax, ax
jne 0x1002fdd1
jmp 0x1002fdf2
movzx edi, cx
test di, di
je 0x1002fe5a
movzx eax, word [edx + 2]
add edx, 2
mov ecx, eax
test ax, ax
je 0x1002fe5a
cmp cx, 0x5c
je 0x1002fe23
cmp cx, 0x2f
je 0x1002fe23
movzx eax, word [edx + 2]
add edx, 2
mov ecx, eax
mov edi, eax
test ax, ax
jne 0x1002fe05
jmp 0x1002fe26
movzx edi, cx
test di, di
je 0x1002fe32
cmp word [edx + 2], 0
jne 0x1002fe5a
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push esi
cmp eax, 1
jbe 0x1002fe5b
call sub.msvcrt.dll_free
add esp, 4
mov al, 1
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002e36c
mov esp, ebp
pop ebp
ret
push esi
call sub.msvcrt.dll_free
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor al, al
pop esi
pop ebx
pop edi
call fcn.1002e36c
mov esp, ebp
pop ebp
ret
Function at 0x403930
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5bb278]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x410], eax
mov eax, dword [ebp + 0x10]
push 0x400
mov dword [ebp - 0x414], eax
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.00513860
movaps xmm1, xmmword [0x56eab0]
lea edx, [ebp - 0x3f4]
add esp, 0xc
mov dword [ebp - 0x40c], 0
mov dword [ebp - 0x408], 0
mov ecx, 8
lea eax, [ecx - 8]
movd xmm0, eax
lea edx, [edx + 0x40]
pshufd xmm0, xmm0, 0
lea eax, [ecx - 4]
paddd xmm0, xmm1
movups xmmword [edx - 0x50], xmm0
movd xmm0, eax
lea eax, [ecx + 4]
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [edx - 0x40], xmm0
movd xmm0, ecx
add ecx, 0x10
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [edx - 0x30], xmm0
movd xmm0, eax
lea eax, [ecx - 8]
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [edx - 0x20], xmm0
cmp eax, 0x100
jl 0x403991
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor edx, edx
xor ebx, ebx
xor esi, esi
nop word [eax + eax]
mov eax, dword [ebp - 0x410]
mov ecx, dword [ebp + esi*4 - 0x404]
mov al, byte [edx + eax]
add al, bl
add al, cl
movzx ebx, al
mov eax, dword [ebp + ebx*4 - 0x404]
mov dword [ebp + esi*4 - 0x404], eax
lea eax, [edx + 1]
xor edx, edx
mov dword [ebp + ebx*4 - 0x404], ecx
inc esi
cmp eax, edi
cmovl edx, eax
cmp esi, 0x100
jl 0x403a00
mov edi, dword [ebp + 0x14]
xor esi, esi
mov edx, dword [ebp - 0x40c]
mov ebx, dword [ebp - 0x408]
test edi, edi
jle 0x403a95
inc dl
movzx edx, dl
mov ecx, dword [ebp + edx*4 - 0x404]
lea eax, [ebx + ecx]
movzx ebx, al
mov eax, dword [ebp + ebx*4 - 0x404]
mov dword [ebp + edx*4 - 0x404], eax
mov dword [ebp + ebx*4 - 0x404], ecx
add cl, al
movzx eax, cl
mov ecx, dword [ebp - 0x414]
mov al, byte [ebp + eax*4 - 0x404]
xor byte [esi + ecx], al
inc esi
cmp esi, edi
jl 0x403a54
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046975d
mov esp, ebp
pop ebp
ret