joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100021f0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10009008]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
push 0x20006
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10002278
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push 0
push 0x100062d0
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004c4e
mov esp, ebp
pop ebp
ret

Function at 0x10002f70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x10002f9c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x10002fbe
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x10002fc0
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x10003045
jg 0x10002fd5
test esi, esi
je 0x10003045
test ecx, ecx
jl 0x10003028
jg 0x10002fdf
test eax, eax
je 0x10003028
cmp edi, ecx
jg 0x10002ff3
jl 0x10002fe9
cmp esi, eax
jae 0x10002ff3
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
mov edx, dword [ebp + 8]
sbb edi, dword [esp + 0x10]
add edx, ecx
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x10003045
jg 0x1000302b
test esi, esi
je 0x10003045
jmp 0x1000302b
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10003045
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10003060
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x1000308c
jl 0x10003080
test esi, esi
jne 0x1000308c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x100030a5
push eax
push esi
push ecx
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, esi
mov edx, dword [eax]
test edx, edx
je 0x100030df
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x100030df
mov edi, dword [ebp + 0xc]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0xc]
cmp dword [ebx + 0x4c], 0
mov edx, edi
je 0x10003160
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10003108
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, edi
mov ecx, dword [ebp - 4]
cmp edi, 0xfff
jbe 0x1000314c
nop word [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push ecx
call eax
mov ecx, dword [ebp - 4]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x10003173
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10003120
test edx, edx
je 0x10003160
push dword [ebx + 0x4c]
push edi
push 1
push ecx
call eax
mov edx, edi
add esp, 0x10
sub edx, eax
sub esi, edx
mov edx, dword [ebp + 0x10]
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
sub esi, edi
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100034d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10009008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10003500
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004c4e
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10003530
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10003530
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004c4e
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x10003606
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10003559
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10003565
movsx eax, bl
jmp 0x1000359d
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x100035c7
sub eax, 1
je 0x100035c7
sub eax, 2
jne 0x10003606
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004c4e
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100035e5
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10003606
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x10003606
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004c4e
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10004c4e
mov esp, ebp
pop ebp
ret 4
Function at 0x10003f30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10009008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10003fec
cmp byte [esi + 0x3d], 0
je 0x10003fec
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10003fda
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x10003fa1
sub eax, 1
je 0x10003fa5
sub eax, 2
jne 0x10003fda
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004c4e
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10003fc3
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10003fda
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004c4e
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004c4e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10004c4e
mov esp, ebp
pop ebp
ret
Function at 0x401390
Capabilities:
Get file attributes
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebp
push esi
lea eax, [esp + 8]
push edi
xor esi, esi
push eax
push 0xf003f
push esi
push str.SOFTWARELenovoLiveUpdate
push 0x80000002
mov dword [esp + 0x24], 0x64
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, dword [esp + 0x18]
test eax, eax
jne 0x4013f9
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push ebp
push edx
push 0
push str.UpdatesDir
push esi
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test esi, esi
je 0x4013f9
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + ebp - 1], 0x5c
jne 0x40141c
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ecx + ebp - 1], al
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0x10
cmp al, 0x10
jne 0x401443
test esi, esi
je 0x401435
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 8
ret 4
test esi, esi
je 0x40144e
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 8
ret 4

Function at 0x401460
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
and ecx, 0xffff
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40148a
pop edi
pop esi
pop ebx
ret 0x10
mov edx, dword [esp + 0x1c]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4014b6
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10
push ebp
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
lea eax, [esp + 0x1c]
push 0
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
ret 0x10
Function at 0x401500
Capabilities:
Create directory

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x21c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
lea ecx, [esp + 0x14]
push ecx
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x4015e1
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, esi
lea eax, [esp + 0x10]
sub edx, eax
lea ecx, [esp + 0x10]
push edx
lea edx, [esp + 0x118]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea eax, [esp + 0x114]
push 0
push eax
call ebx
mov ebp, esi
inc esi
push 0x5c
push esi
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x401580
mov eax, dword [esp + 0x220]
test eax, eax
je 0x4015e1
lea edi, [ebp + 1]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4015e1
mov ecx, dword [esp + 0x21c]
push eax
push ecx
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x4015f0
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0xc0
push ebp
push esi
push edi
mov ecx, 9
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov ecx, 0x27
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 0x30]
push eax
xor esi, esi
mov dword [esp + 0x34], 0x9c
call edi
mov ebp, eax
test ebp, ebp
jne 0x40164b
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], 0x94
push ecx
call edi
test eax, eax
jne 0x40164b
pop edi
pop esi
pop ebp
add esp, 0xc0
ret
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40166f
lea edx, [esp + 0xc]
push edx
call eax
jmp 0x40167a
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x40]
dec eax
je 0x4017d6
dec eax
je 0x401696
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0xc0
ret
mov ecx, dword [esp + 0x34]
mov di, word [esp + 0xc]
mov dl, byte [esp + 0xca]
cmp ecx, 6
jne 0x4016c4
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x40170c
xor eax, eax
cmp dl, 1
setne al
add eax, 0x6000
mov esi, eax
jmp 0x40170c
cmp ecx, 5
jne 0x401702
mov eax, dword [esp + 0x38]
cmp eax, 2
jne 0x4016eb
cmp dl, 1
jne 0x4016e4
cmp di, 9
jne 0x4016e4
mov esi, 0x5202
jmp 0x40170c
mov esi, reloc.GDI32.dll_CreateSolidBrush
jmp 0x40170c
cmp eax, 1
jne 0x4016f7
mov esi, 0x5100
jmp 0x40170c
test eax, eax
jne 0x40170c
mov esi, 0x5000
jmp 0x40170c
cmp ecx, 4
ja 0x40170c
mov esi, 0x4000
test ebp, ebp
je 0x401816
cmp dl, 1
jne 0x401816
cmp di, 9
je 0x401816
cmp ecx, 4
jne 0x401762
cmp esi, 0x5100
jne 0x401745
mov esi, 0x5101
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0xc0
ret
cmp esi, 0x5000
jne 0x401816
mov esi, 0x5001
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0xc0
ret
mov eax, dword [esp + 0xc8]
test ah, 2
je 0x4017a4
cmp esi, 0x5100
jne 0x401787
mov esi, 0x5102
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0xc0
ret
cmp esi, 0x5000
jne 0x401816
mov esi, 0x5002
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0xc0
ret
cmp esi, 0x5100
jne 0x4017bd
mov esi, 0x5103
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0xc0
ret
cmp esi, 0x5000
jne 0x401816
mov esi, 0x5003
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0xc0
ret
cmp dword [esp + 0x34], 4
jne 0x401816
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x4017f6
mov esi, 0x4001
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0xc0
ret
cmp eax, 0xa
jne 0x40180c
mov esi, 0x4100
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0xc0
ret
cmp eax, 0x5a
jne 0x401816
mov esi, 0x4900
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0xc0
ret
Function at 0x401fe0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11d]
mov byte [esp + 0x11c], bl
mov byte [esp + 0x18], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x14], 0x104
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x224]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0xf003f
lea ecx, [esp + 0x20]
push ebx
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4020f1
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
lea eax, [esp + 0x11c]
push edx
push eax
push ebx
push ebx
push str.UninstallString
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4020e6
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, 1
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x228]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x210
ret 8
Function at 0x402e70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
call sub.MFC42.DLL_AfxGetModuleState
mov edi, dword [eax + 8]
push 0x406324
push 0x86
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x402eff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
jbe 0x402eff
push ebp
lea eax, [esi + 0xd8c]
push 0x4063fc
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, esi
push 0
call sub.MFC42.DLL_CWnd::UpdateData
push 0
push 0x3e9
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
push 0
push 0x3e8
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
pop edi
pop esi
pop ebp
pop ebx
ret
push 0
push 0x3f3
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::ShowWindow
push 0
push 0x3f4
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::ShowWindow
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x403270
Capabilities:
Identify system language via api

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
cmp ax, 0x804
mov eax, dword [esp + 4]
lea eax, [eax + eax*2]
jne 0x40329e
mov ecx, dword [esp + 8]
lea eax, [eax + eax*4]
shl eax, 4
add eax, 0x406400
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
ret
lea edx, [eax + eax*4]
mov eax, dword [esp + 8]
shl edx, 4
add edx, 0x406c70
push edx
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
ret
Function at 0x10026d1
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
call fcn.010026e0
jmp fcn.01002638

Function at 0x1002918
Capabilities:
Check os version
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100400c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x21c], eax
xor eax, eax
cmp dword [0x1004010], eax
push esi
push edi
mov dword [ebp - 0x218], eax
je 0x1002972
push 0x1004020
mov dword [0x1004010], eax
mov dword [0x1004020], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1002972
mov dword [0x1004030], 1
cmp dword [0x1004030], 2
jne 0x1002a87
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, 0x104
push esi
lea eax, [ebp - 0x110]
push eax
push 0x1001ef0
call edi
test eax, eax
je 0x10029bb
push 0x1001ee0
lea eax, [ebp - 0x110]
push eax
push ebx
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.0100286b
test eax, eax
jne 0x1002a26
cmp dword [0x1004024], 5
jb 0x10029f5
push esi
lea eax, [ebp - 0x110]
push eax
push 0x1001e94
call edi
test eax, eax
je 0x10029f5
push 0x1001ed0
lea eax, [ebp - 0x110]
push eax
push ebx
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.0100286b
test eax, eax
jne 0x1002a26
push esi
lea eax, [ebp - 0x110]
push eax
push 0x1001ec4
call edi
test eax, eax
je 0x1002a5b
push 0x1001eb4
lea eax, [ebp - 0x110]
push eax
push ebx
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.0100286b
test eax, eax
je 0x1002a5b
mov dword [ebp - 0x218], 1
lea ebx, [ebp - 0x214]
push dword [ebp + 0x10]
push ebx
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
pop edi
pop esi
pop ebx
call fcn.01002753
leave
ret 0xc
push 5
lea eax, [ebp - 0xc]
push eax
push 0x1001e88
call edi
test eax, eax
je 0x1002a87
push 0x1001ea4
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.0100286b
test eax, eax
jne 0x1002a26
cmp dword [ebp - 0x21c], ebx
je 0x1002a46
jmp 0x1002a36

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..idata
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x390e0a89
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x2e5957e6
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401350
Capabilities:
Get disk information

Disassembly:
sub esp, 0x200
lea eax, [esp]
push ebx
mov bl, byte [esp + 0x208]
push esi
movsx esi, bl
push esi
push str._c:_
push eax
call fcn.0040ab1e
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KeRNeL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x4013be
mov edx, dword [0x425248]
lea eax, [esp + 0x108]
push edx
push esi
push str._c:_s
push eax
call fcn.0040ab1e
lea ecx, [esp + 0x118]
push ecx
call fcn.004011d0
add esp, 0x14
test eax, eax
je 0x4013be
mov al, bl
pop esi
pop ebx
add esp, 0x200
ret
pop esi
xor al, al
pop ebx
add esp, 0x200
ret

Function at 0x401ef0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x41c6ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x423d4c]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x14], 0
mov dword [esp + 8], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
push ecx
mov ecx, esi
call fcn.00403840
mov edi, eax
lea edx, [esp + 0xc]
mov ecx, esi
push edx
mov byte [esp + 0x24], 2
call fcn.00403860
mov ecx, dword [edi]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x10]
push str._s___s_
push eax
mov byte [esp + 0x30], 3
call fcn.00414945
add esp, 0x10
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 2
call fcn.00415831
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 1
call fcn.00415831
mov esi, dword [esp + 0x28]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.004155a6
mov dword [esp + 0x14], 1
lea ecx, [esp + 8]
mov byte [esp + 0x20], 0
call fcn.00415831
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 4