joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6e03dcc0
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x28], edi
je 0x6e03dd3c
cmp byte [0x6e07047b], 0
jne 0x6e03dcdd
cmp byte [0x6e07047a], 0
je 0x6e03dd1e
lea eax, [esi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x6e03dce8
mov eax, dword [eax]
push ebx
push eax
push str.CMemMappedFile__s__unmap
mov ebx, 0x6e070068
push ebx
call fcn.6e03a98a
add esp, 0xc
cmp byte [0x6e07047a], 0
je 0x6e03dd0d
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x6e07047b], 0
je 0x6e03dd1d
push ebx
call fcn.6e003fc0
pop ecx
pop ebx
cmp dword [esi + 0x2c], edi
jbe 0x6e03dd30
push dword [esi + 0x2c]
push edi
call dword [sym.imp.kernel32.dll_FlushViewOfFile]
mov dword [esi + 0x2c], edi
push dword [esi + 0x28]
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov dword [esi + 0x28], edi
pop edi
pop esi
ret

Function at 0x6e03dd40
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x6e07047b], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
mov esi, 0x6e070068
jne 0x6e03dd62
cmp byte [0x6e07047a], 0
je 0x6e03dda0
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x6e03dd6d
mov eax, dword [eax]
push ebx
push dword [ebp + 0xc]
push eax
push str.CMemMappedFile__s__writeBytes_offset_u__length_u_
push esi
call fcn.6e03a98a
add esp, 0x14
cmp byte [0x6e07047a], 0
je 0x6e03dd90
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x6e07047b], 0
je 0x6e03dda0
push esi
call fcn.6e003fc0
pop ecx
mov ecx, dword [edi]
mov eax, dword [ebp + 0xc]
add eax, ebx
push eax
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x6e050848]
mov ecx, edi
call esi
mov ecx, eax
test ecx, ecx
je 0x6e03dde4
mov eax, dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
add eax, ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [edi]
add esp, 0xc
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x6e050848]
mov ecx, edi
call esi
mov al, 1
jmp 0x6e03de3b
cmp byte [0x6e07047b], 0
jne 0x6e03ddf6
cmp byte [0x6e07047a], 0
je 0x6e03de39
lea eax, [edi + 4]
cmp dword [eax + 0x14], 0x10
jb 0x6e03de01
mov eax, dword [eax]
push ebx
push dword [ebp + 0xc]
mov esi, 0x6e070068
push eax
push str.CMemMappedFile__s__ERROR_WRITING__NO_MEMORY_MAPPED_FILE_
push esi
call fcn.6e03a98a
add esp, 0x14
cmp byte [0x6e07047a], 0
je 0x6e03de29
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x6e07047b], 0
je 0x6e03de39
push esi
call fcn.6e003fc0
pop ecx
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x6e03edf4
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x6e07088c], 0
jne 0x6e03ee63
push ebx
call fcn.6e03a98a
xor ebx, ebx
mov byte [0x6e07088d], al
inc ebx
test al, al
jne 0x6e03ee5c
call fcn.6e047b14
cmp eax, 0x6b
jl 0x6e03ee5c
xor eax, eax
mov byte [ebp - 2], al
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 2]
push eax
call fcn.6e03a98a
add esp, 0x10
test al, al
je 0x6e03ee5c
movzx eax, byte [0x6e07088d]
cmp byte [ebp - 1], 0
cmovne eax, ebx
mov byte [0x6e07088d], al
mov byte [0x6e07088c], bl
pop ebx
cmp byte [0x6e07047b], 0
jne 0x6e03ee75
cmp byte [0x6e07047a], 0
je 0x6e03eeaf
cmp byte [0x6e07088d], 0
mov ecx, str.FALSE
push esi
mov eax, str.TRUE
mov esi, 0x6e070480
cmove eax, ecx
push eax
push str.IsRunningInAppContainer___s
push esi
call fcn.6e03a98a
add esp, 0xc
cmp byte [0x6e07047a], 0
je 0x6e03eeae
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
pop esi
mov al, byte [0x6e07088d]
leave
ret
Function at 0x6e040737
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x440
mov eax, 0x6e04df3f
call fcn.6e0493da
mov eax, dword [ebp + 8]
mov esi, 0x208
mov dword [ebp - 0x438], eax
xor edi, edi
mov dword [ebp - 0x440], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x444], eax
lea eax, [ebp - 0x424]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
push esi
lea eax, [ebp - 0x21c]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0x434], 0x104
lea eax, [ebp - 0x428]
xorps xmm0, xmm0
movsd qword [ebp - 0x430], xmm0
push eax
push 0x20019
push edi
push 0x6e05c800
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6e040956
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x434]
mov ebx, edi
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
jmp 0x6e040843
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtof]
fstp qword [ebp - 0x44c]
movsd xmm0, qword [ebp - 0x44c]
comisd xmm0, xmmword [0x6e05cac0]
pop ecx
jbe 0x6e04082f
comisd xmm0, xmmword [ebp - 0x430]
jbe 0x6e04082f
lea eax, [ebp - 0x21c]
movsd qword [ebp - 0x430], xmm0
push eax
lea eax, [ebp - 0x424]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x434]
inc ebx
push eax
lea eax, [ebp - 0x21c]
push eax
push ebx
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
test esi, esi
je 0x6e0407db
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
jne 0x6e040956
push str.ClientUserInterface
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov esi, eax
mov dword [esp], str.SoftwareMicrosoftSoftGrid_
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
xor ecx, ecx
mov dword [ebp - 0x42c], edi
push 2
pop edx
lea ebx, [eax + 0x105]
mov dword [ebp - 4], edi
add ebx, esi
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.6e03a98a
mov esi, eax
mov dword [ebp - 0x42c], esi
pop ecx
pop ecx
test esi, esi
je 0x6e040956
push ebx
push edi
push esi
call fcn.6e03a98a
push str.SoftwareMicrosoftSoftGrid_
push ebx
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea eax, [ebp - 0x424]
push eax
push ebx
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
push str.ClientUserInterface
push ebx
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0x30
lea eax, [ebp - 0x428]
push eax
push 0x20019
push edi
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x6e04094f
push dword [ebp - 0x438]
push str.LaunchCommand
push dword [ebp - 0x428]
call fcn.6e040989
add esp, 0xc
push dword [ebp - 0x43c]
push str.DDELaunchCommand
push dword [ebp - 0x428]
call fcn.6e040989
add esp, 0xc
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.6e04977e
pop ecx
call fcn.6e049327
ret
Function at 0x6e040989
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x6e04df67
call fcn.6e0493a3
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
push dword [ebp + 8]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x6e040ace
cmp dword [ebp - 0x18], 1
jne 0x6e040ace
mov eax, dword [ebp - 0x14]
xor ecx, ecx
shr eax, 1
inc eax
mov dword [ebp - 4], ebx
push 2
pop edx
mov dword [ebp - 0x14], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.6e03a98a
mov esi, eax
mov dword [ebp - 0x1c], esi
pop ecx
test esi, esi
je 0x6e040ace
push dword [ebp - 0x14]
push ebx
push esi
call fcn.6e03a98a
mov eax, dword [ebp - 0x14]
add esp, 0xc
lea eax, [eax*2 - 2]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x6e040ac3
cmp dword [ebp - 0x18], 1
jne 0x6e040ac3
mov eax, dword [ebp - 0x14]
xor ecx, ecx
shr eax, 1
mov dword [ebp - 0x14], eax
inc eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.6e03a98a
mov dword [edi], eax
pop ecx
test eax, eax
je 0x6e040ac3
mov ecx, dword [ebp - 0x14]
inc ecx
push ecx
push ebx
push eax
call fcn.6e03a98a
lea eax, [ebp - 0x20]
push eax
push 0x6e05c7fc
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x6e040aa7
push ebx
call fcn.6e03a98a
pop ecx
test al, al
je 0x6e040aa7
mov eax, dword [ebp - 0x14]
push ebx
inc eax
push eax
push dword [edi]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
jmp 0x6e040ac3
push dword [edi]
call fcn.6e04977e
and dword [edi], 0
pop ecx
jmp 0x6e040ac3
test esi, esi
je 0x6e040ace
push esi
call fcn.6e04977e
pop ecx
call fcn.6e049301
ret

Function at 0x6e0411f3
Capabilities:
Print debug messages

Disassembly:
push esi
push 0x6e05c544
xor esi, esi
call fcn.6e03a98a
pop ecx
test eax, eax
jne 0x6e041214
push 0x6e05c55c
call fcn.6e03a98a
pop ecx
test eax, eax
je 0x6e041217
xor esi, esi
inc esi
cmp byte [0x6e07047b], 0
jne 0x6e041229
cmp byte [0x6e07047a], 0
je 0x6e04125f
push edi
push esi
push str._BrowserIntegrationWin__IsLoadedInProcByAcrobat__d
mov edi, 0x6e070898
push edi
call fcn.6e03a98a
add esp, 0xc
cmp byte [0x6e07047a], 0
je 0x6e04124e
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x6e07047b], 0
je 0x6e04125e
push edi
call fcn.6e003fc0
pop ecx
pop edi
mov eax, esi
pop esi
ret
Function at 0x6e0435b8
Capabilities:
Print debug messages

Disassembly:
push esi
push str.sftldr.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
test eax, eax
jne 0x6e043636
push str.sftldr_wow64.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
test eax, eax
jne 0x6e043636
push ebx
push str.AppVEntSubsystems32.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
test eax, eax
setne bl
cmp byte [0x6e07047b], 0
jne 0x6e0435fa
cmp byte [0x6e07047a], 0
je 0x6e043631
movzx eax, bl
mov esi, 0x6e071400
push eax
push str._ACTWinBrowser__IsRunningInAppV_isAppV5___d
push esi
call fcn.6e03a98a
add esp, 0xc
cmp byte [0x6e07047a], 0
je 0x6e043621
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x6e07047b], 0
je 0x6e043631
push esi
call fcn.6e003fc0
pop ecx
mov al, bl
pop ebx
pop esi
ret
cmp byte [0x6e07047b], 0
jne 0x6e043648
cmp byte [0x6e07047a], 0
je 0x6e04367a
push str._ACTWinBrowser__IsRunningInAppV_isAppV4OrEarlier
mov esi, 0x6e071400
push esi
call fcn.6e03a98a
cmp byte [0x6e07047a], 0
pop ecx
pop ecx
je 0x6e04366a
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x6e07047b], 0
je 0x6e04367a
push esi
call fcn.6e003fc0
pop ecx
mov al, 1
pop esi
ret
Function at 0x6e047ca3
Capabilities:
Print debug messages

Disassembly:
push esi
push 8
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x6e047cc0
push 8
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp byte [0x6e07047b], 0
jne 0x6e047cd6
cmp byte [0x6e07047a], 0
je 0x6e047e15
push edi
push 0x64
push str.sizeof__t_ASMBlock____d
mov edi, 0x6e071858
push edi
call fcn.6e03a98a
add esp, 0xc
cmp byte [0x6e07047a], 0
je 0x6e047cfc
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x6e07047b], 0
je 0x6e047d15
push edi
call fcn.6e003fc0
cmp byte [0x6e07047b], 0
pop ecx
jne 0x6e047d1e
cmp byte [0x6e07047a], 0
je 0x6e047d3e
push 4
push str.sizeof_Uns32____d
push edi
call fcn.6e03a98a
add esp, 0xc
cmp byte [0x6e07047a], 0
je 0x6e047d3e
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x6e07047b], 0
je 0x6e047d57
push edi
call fcn.6e003fc0
cmp byte [0x6e07047b], 0
pop ecx
jne 0x6e047d60
cmp byte [0x6e07047a], 0
je 0x6e047d80
push 4
push str.sizeof_HANDLE____d
push edi
call fcn.6e03a98a
add esp, 0xc
cmp byte [0x6e07047a], 0
je 0x6e047d80
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x6e07047b], 0
je 0x6e047d99
push edi
call fcn.6e003fc0
cmp byte [0x6e07047b], 0
pop ecx
jne 0x6e047da2
cmp byte [0x6e07047a], 0
je 0x6e047dc2
push 4
push str.sizeof_Handle32____d
push edi
call fcn.6e03a98a
add esp, 0xc
cmp byte [0x6e07047a], 0
je 0x6e047dc2
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x6e07047b], 0
je 0x6e047ddb
push edi
call fcn.6e003fc0
cmp byte [0x6e07047b], 0
pop ecx
jne 0x6e047de4
cmp byte [0x6e07047a], 0
je 0x6e047e04
push 4
push str.sizeof_void____d
push edi
call fcn.6e03a98a
add esp, 0xc
cmp byte [0x6e07047a], 0
je 0x6e047e04
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x6e07047b], 0
je 0x6e047e14
push edi
call fcn.6e003fc0
pop ecx
pop edi
mov eax, esi
pop esi
ret

Function at 0x6e047eae
Capabilities:
Print debug messages

Disassembly:
push 0x1c
mov eax, 0x6e04ca0e
call fcn.6e04936c
cmp byte [0x6e07047b], 0
mov ebx, 0x6e071858
mov edi, dword [ebp + 8]
jne 0x6e047ed9
mov al, byte [0x6e07047a]
test al, al
jne 0x6e047ed9
lea esi, [edi + 4]
jmp 0x6e047ef0
lea esi, [edi + 4]
push esi
push str.ASM_Release__s
push ebx
call fcn.6e03a98a
mov al, byte [0x6e07047a]
add esp, 0xc
test al, al
je 0x6e047efb
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x6e07047b], 0
je 0x6e047f0b
push ebx
call fcn.6e003fc0
pop ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.6e03a98a
push dword [edi + 0x48]
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.6e03d080
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x6e047f3e
mov ecx, dword [ebx]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x6e050848]
mov ecx, ebx
call esi
lea ecx, [ebp - 0x28]
call fcn.6e0108ff
and dword [edi + 0x4c], 0
and dword [edi + 0x44], 0
call fcn.6e049316
ret
Function at 0x6e047f54
Capabilities:
Print debug messages

Disassembly:
push 0x24
mov eax, 0x6e04e1e0
call fcn.6e04936c
cmp byte [0x6e07047b], 0
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], esi
jne 0x6e047f81
cmp byte [0x6e07047a], 0
je 0x6e047fd0
call fcn.6e03a98a
test al, al
mov edx, 0x6e051790
mov ecx, str._in_AppContaner
cmove ecx, edx
push ecx
push str.ASM_Retrieve_retrieving_shared_memory_in_Plug_in_s
push 0x6e071858
call fcn.6e03a98a
add esp, 0xc
cmp byte [0x6e07047a], 0
je 0x6e047fbc
push 0x6e071858
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x6e07047b], 0
je 0x6e047fd0
push 0x6e071858
call fcn.6e003fc0
pop ecx
and dword [esi], 0
lea eax, [edi + 4]
and dword [ebx], 0
lea ecx, [ebp - 0x28]
push eax
call fcn.6e03a98a
push dword [edi + 0x48]
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.6e03d080
or dword [ebp - 4], 0xffffffff
mov ebx, eax
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
call fcn.6e0108ff
test ebx, ebx
jne 0x6e04804e
cmp byte [0x6e07047b], bl
jne 0x6e04801a
cmp byte [0x6e07047a], bl
je 0x6e0480c2
push str.ASM_Retrieve_ERROR__finding_memory_mapped_file_
mov ebx, 0x6e071858
push ebx
call fcn.6e03a98a
cmp byte [0x6e07047a], 0
pop ecx
pop ecx
je 0x6e04803c
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x6e07047b], 0
je 0x6e0480c2
push ebx
call fcn.6e003fc0
pop ecx
jmp 0x6e0480c2
mov eax, dword [ebx]
mov esi, dword [eax + 0x20]
mov ecx, esi
call dword [0x6e050848]
mov ecx, ebx
call esi
mov dword [edi + 0x44], eax
test eax, eax
jne 0x6e04807d
cmp byte [0x6e07047b], al
jne 0x6e048076
cmp byte [0x6e07047a], al
je 0x6e0480c2
push str.ASM_Retrieve_ERROR__getting_memory_mapped_file_handle_
jmp 0x6e04801f
mov eax, dword [ebx]
push dword [edi + 0x48]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x6e050848]
mov ecx, ebx
call esi
mov dword [edi + 0x4c], eax
test eax, eax
jne 0x6e0480b2
cmp byte [0x6e07047b], al
jne 0x6e0480a8
cmp byte [0x6e07047a], al
je 0x6e0480c2
push str.ASM_Retrieve_ERROR__mapping_for_writing_
jmp 0x6e04801f
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edi + 0x48]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x30]
mov eax, dword [edi + 0x4c]
mov dword [ecx], eax
call fcn.6e049316
ret
Function at 0x812c47
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00812cc6
jae 0x812c53
xor ecx, ecx
call fcn.00812cc6
jae 0x812c7d
xor eax, eax
call fcn.00812cc6
jae 0x812c8e
mov al, 0x10
call fcn.00812cc6
adc al, al
jae 0x812c6f
jne 0x812cbb
stosb byte es:[edi], al
jmp 0x812c54
call fcn.00812cd2
dec ecx
loop 0x812c9a
mov eax, ebp
call fcn.00812cd0
jmp 0x812cbc
lodsb al, byte [esi]
shr eax, 1
je 0x812ce2
adc ecx, 2
mov ebp, eax
jmp 0x812cbc
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00812cd0
cmp eax, 0x7d00
jae 0x812cba
cmp eax, 0x500
jae 0x812cbb
cmp eax, 0x7f
ja 0x812cbc
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x812c54
pop ebp
ret 8
Function at 0x493370
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x49cfeb
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x4b6640]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b6640]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x2ac]
mov eax, dword [esp + 0x2a8]
mov edx, dword [esp + 0x2b0]
mov ebp, dword [esp + 0x2a0]
mov ebx, dword [esp + 0x2a4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x2b4]
xor esi, esi
push 0xffffffffffffffff
push esi
mov dword [esp + 0x20], ecx
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], esi
mov word [esp + 0x30], si
call fcn.00409950
mov eax, dword [esp + 0x34]
cmp eax, esi
mov dword [esp + 0x298], esi
je 0x493437
lea edi, [eax - 1]
cmp edi, eax
jbe 0x49341c
call fcn.00462e47
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x49342b
lea eax, [esp + 0x24]
cmp word [eax + edi*2], 0x5c
mov edx, 0x4a6468
je 0x49343c
mov edx, 0x4a6460
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x493441
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.00409b50
mov eax, dword [esp + 0x24]
mov edi, 8
cmp dword [esp + 0x38], edi
jae 0x49346e
lea eax, [esp + 0x24]
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebx], eax
jne 0x4934b1
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], esi
call edi
cmp eax, 2
je 0x493494
call edi
mov esi, eax
call fcn.00491450
cmp dword [esp + 0x38], 8
mov dword [ebp], esi
mov dword [ebp + 4], eax
jb 0x493533
mov eax, dword [esp + 0x24]
push eax
jmp 0x49352b
lea eax, [esp + 0x68]
lea edx, [eax + 2]
jmp 0x4934c0
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4934c0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00409a40
test byte [esp + 0x3c], 0x10
je 0x4934fb
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [edx], 3
mov dword [eax], 3
jmp 0x49350f
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ecx], 2
mov dword [edx], 2
cmp dword [esp + 0x38], edi
mov eax, dword [0x4b9da0]
mov dword [ebp], eax
mov ecx, dword [0x4b9da4]
mov dword [ebp + 4], ecx
jb 0x493533
mov edx, dword [esp + 0x24]
push edx
call fcn.004629d9
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.004629a0
add esp, 0x288
ret
Function at 0x4012b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4012c7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4012f8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4012f4
cmp esi, eax
jae 0x4012f8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x4012e4
cmp esi, eax
jb 0x4012fe
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x4032f0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x38c
mov eax, dword [0x41201c]
xor eax, esp
mov dword [esp + 0x384], eax
push ebx
mov ebx, dword [esp + 0x394]
push ebp
mov ebp, dword [esp + 0x39c]
push esi
push edi
push 0x104
lea eax, [esp + 0x28c]
push ebx
push eax
call dword [sym.imp.MSVCR80.dll_strncpy]
lea eax, [esp + 0x294]
add esp, 0xc
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x403337
mov cx, word [0x40f698]
mov dl, byte [0x40f69a]
mov word [eax], cx
mov byte [eax + 2], dl
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x28c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea edx, [esp + 0x18]
mov edi, eax
push edx
push edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40348e
mov esi, dword [sym.imp.MSVCR80.dll_strncmp]
push 1
lea eax, [esp + 0x48]
push 0x40f69c
push eax
call esi
add esp, 0xc
test eax, eax
je 0x40347a
push 2
lea ecx, [esp + 0x48]
push 0x40f6a0
push ecx
call esi
add esp, 0xc
test eax, eax
je 0x40347a
test byte [esp + 0x18], 0x10
je 0x403456
add dword [ebp], 1
push 0x104
lea edx, [esp + 0x15c]
push ebx
push edx
call dword [sym.imp.MSVCR80.dll_strncpy]
lea edi, [esp + 0x164]
add esp, 0xc
add edi, 0xffffffff
lea esp, [esp]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4033f0
mov ax, word [0x40f6a4]
mov word [edi], ax
lea eax, [esp + 0x44]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403410
lea edi, [esp + 0x158]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x403425
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x158]
push ebp
push ecx
call fcn.004032f0
mov edi, dword [esp + 0x1c]
add esp, 8
jmp 0x40347a
mov eax, dword [esp + 0x34]
add dword [ebp + 4], 1
test eax, eax
jbe 0x403470
mov edx, dword [esp + 0x38]
shl eax, 0x16
shr edx, 0xa
add eax, edx
jmp 0x403477
mov eax, dword [esp + 0x38]
shr eax, 0xa
add dword [ebp + 8], eax
lea ecx, [esp + 0x18]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403381
mov ecx, dword [esp + 0x394]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040e2e2
add esp, 0x38c
ret
Function at 0x404df0
Capabilities:
Create thread
Get disk information

Disassembly:
sub esp, 0x404
mov eax, dword [0x41201c]
xor eax, esp
mov dword [esp + 0x400], eax
push ebx
push edi
lea eax, [esp + 0x200]
push eax
xor edi, edi
push 0x104
mov dword [0x412528], edi
mov dword [0x41252c], edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0x104
lea ecx, [esp + 0x100]
push edi
push ecx
mov ebx, eax
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp ebx, edi
jbe 0x404f1e
push ebp
push esi
lea esi, [esp + 0x18]
lea ecx, [ecx]
mov cl, byte [esp + edi + 0x209]
mov eax, edi
cdq
and edx, 3
add eax, edx
mov dl, byte [esp + edi + 0x208]
sar eax, 2
lea eax, [eax + eax*2]
lea ebp, [esp + eax + 0x104]
mov byte [ebp], dl
mov byte [esp + eax + 0x105], cl
push 0x104
lea edx, [esp + 0x108]
mov byte [esp + eax + 0x10a], 0
push edx
lea eax, [esp + 0x314]
push eax
call dword [sym.imp.MSVCR80.dll_strncpy]
lea eax, [esp + 0x318]
add esp, 0xc
add eax, 0xffffffff
lea ecx, [ecx]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x404eb0
mov cx, word [0x40f698]
mov dl, byte [0x40f69a]
mov word [eax], cx
mov ecx, dword [esp + 0x418]
mov byte [eax + 2], dl
mov edx, dword [esp + 0x41c]
lea eax, [esi - 4]
mov dword [eax], ecx
mov ecx, 0x40f568
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
lea ecx, [esp + 0x10]
push ecx
push 0
push eax
push 0x404d20
push 0
push 0
mov dword [esi + 4], ebp
mov dword [esi], 0
mov dword [esi + 0x10], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
add edi, 4
add esi, 0x18
cmp edi, ebx
jb 0x404e50
pop esi
pop ebp
mov ecx, dword [esp + 0x408]
pop edi
pop ebx
xor ecx, esp
call fcn.0040e2e2
add esp, 0x404
ret