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

Disassembly:
cmp byte [0x10036ee8], 0
push ebx
mov ebx, dword [sym.imp.MSVCR120.dll_sprintf]
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_OutputDebugStringA]
je 0x1001ed14
push str.PDFXTerm
push 0x10037330
call ebx
cmp byte [0x10036ee8], 0
pop ecx
pop ecx
je 0x1001ed14
push 0x10037330
call edi
mov eax, dword [0x10037310]
xor ecx, ecx
xor esi, esi
inc ecx
test eax, eax
je 0x1001edd7
jmp 0x1001eda2
mov esi, dword [eax]
xor eax, eax
cmp word [esi + 0x2c], ax
jne 0x1001ed6f
mov word [esi + 0x2c], cx
cmp byte [0x10036ee8], al
je 0x1001ed5e
push esi
push str.PDFX_0x_xl_.closing__true
push 0x10037330
call ebx
add esp, 0xc
cmp byte [0x10036ee8], 0
je 0x1001ed5e
push 0x10037330
call edi
mov eax, dword [0x10037310]
push 2
push dword [esi + 8]
call dword [eax + 0x20]
pop ecx
pop ecx
xor eax, eax
push esi
mov dword [esi + 8], eax
call fcn.1000303b
mov eax, dword [0x10037310]
mov ecx, dword [esi]
push 4
mov dword [eax], ecx
xor eax, eax
push eax
push esi
call sub.MSVCR120.dll_memset
mov eax, dword [0x10037310]
push esi
call dword [eax + 0x28]
mov eax, dword [0x10037310]
add esp, 0x14
xor esi, esi
push 1
pop ecx
cmp dword [eax], esi
jne 0x1001ed28
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x1001edb9
push ecx
call fcn.1000303b
mov eax, dword [0x10037310]
pop ecx
push 4
push esi
push eax
call sub.MSVCR120.dll_memset
mov eax, dword [0x10037310]
push eax
call dword [eax + 0x28]
xor ecx, ecx
mov dword [0x10037310], esi
add esp, 0x10
inc ecx
mov eax, dword [0x10037314]
test eax, eax
je 0x1001ee92
jmp 0x1001ee60
mov esi, dword [eax]
xor eax, eax
cmp word [esi + 0x2c], ax
jne 0x1001ee2d
mov word [esi + 0x2c], cx
cmp byte [0x10036ee8], al
je 0x1001ee1c
push esi
push str.PDFX_0x_xl_.closing__true
push 0x10037330
call ebx
add esp, 0xc
cmp byte [0x10036ee8], 0
je 0x1001ee1c
push 0x10037330
call edi
mov eax, dword [0x10037314]
push 2
push dword [esi + 8]
call dword [eax + 0x20]
pop ecx
pop ecx
xor eax, eax
push esi
mov dword [esi + 8], eax
call fcn.1000303b
mov eax, dword [0x10037314]
mov ecx, dword [esi]
push 4
mov dword [eax], ecx
xor eax, eax
push eax
push esi
call sub.MSVCR120.dll_memset
mov eax, dword [0x10037314]
push esi
call dword [eax + 0x28]
mov eax, dword [0x10037314]
add esp, 0x14
xor esi, esi
push 1
pop ecx
cmp dword [eax], esi
jne 0x1001ede6
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x1001ee77
push ecx
call fcn.1000303b
mov eax, dword [0x10037314]
pop ecx
push 4
push esi
push eax
call sub.MSVCR120.dll_memset
mov eax, dword [0x10037314]
push eax
call dword [eax + 0x28]
add esp, 0x10
mov dword [0x10037314], esi
pop edi
pop esi
pop ebx
ret
Function at 0x1001f440
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x10028d77
call fcn.100265df
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor esi, esi
push eax
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], esi
push dword [ebp + 8]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [edi], esi
call ebx
test eax, eax
jne 0x1001f586
cmp dword [ebp - 0x18], 1
jne 0x1001f586
mov eax, dword [ebp - 0x14]
xor ecx, ecx
shr eax, 1
inc eax
mov dword [ebp - 4], esi
push 2
pop edx
mov dword [ebp - 0x14], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000303b
mov esi, eax
mov dword [ebp - 0x1c], esi
pop ecx
test esi, esi
je 0x1001f586
push dword [ebp - 0x14]
push 0
push esi
call fcn.1000303b
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 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x1001f57b
cmp dword [ebp - 0x18], 1
jne 0x1001f57b
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.1000303b
mov dword [edi], eax
pop ecx
test eax, eax
je 0x1001f57b
mov ecx, dword [ebp - 0x14]
inc ecx
push ecx
push 0
push eax
call fcn.1000303b
lea eax, [ebp - 0x20]
push eax
push 0x1002df90
push esi
call dword [sym.imp.MSVCR120.dll_wcstok_s]
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x1001f55f
push ebx
call fcn.1000303b
pop ecx
test al, al
je 0x1001f55f
mov eax, dword [ebp - 0x14]
push ebx
inc eax
push eax
push dword [edi]
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
jmp 0x1001f57b
push dword [edi]
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
and dword [edi], 0
pop ecx
jmp 0x1001f57b
test esi, esi
je 0x1001f586
push esi
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
pop ecx
call fcn.10026544
ret

Function at 0x1001fc1b
Capabilities:
Print debug messages

Disassembly:
push esi
push 0x1002dcec
xor esi, esi
call fcn.1000303b
pop ecx
test eax, eax
jne 0x1001fc3c
push 0x1002dd04
call fcn.1000303b
pop ecx
test eax, eax
je 0x1001fc3f
xor esi, esi
inc esi
cmp byte [0x10036ee8], 0
je 0x1001fc6f
push edi
push esi
push str._BrowserIntegrationWin__IsLoadedInProcByAcrobat__d
mov edi, 0x10037748
push edi
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
cmp byte [0x10036ee8], 0
je 0x1001fc6e
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
pop edi
mov eax, esi
pop esi
ret
Function at 0x100209fc
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
cmp byte [0x10036ee8], 0
je 0x10020a21
push str.TabProcGrowth
call fcn.1000303b
mov dword [esp], str.TabShutdownDelay
call fcn.1000303b
pop ecx
jmp fcn.10020ba4
ret

Function at 0x10020ba4
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x100361bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x11
pop ecx
and dword [ebp - 0x8c], 0
lea edi, [ebp - 0x88]
mov esi, str.SoftwarePoliciesMicrosoftWindowsCurrentVersionInternet_Settings
lea eax, [ebp - 0x8c]
rep movsd dword es:[edi], dword [esi]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x88]
movsb byte es:[edi], byte [esi]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10020c56
and dword [ebp - 0x90], eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x90]
mov dword [ebp - 0x94], 4
push eax
lea eax, [ebp - 0x98]
push eax
push 0
push str.SecureProtocols
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x8c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10020c56
cmp byte [0x10036ee8], 0
je 0x10020cfe
push str._ACTWinBrowser__DumpTLSReg_GPO_settings_applied
jmp 0x10020ce0
push 0xf
pop ecx
lea eax, [ebp - 0x8c]
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push eax
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
push 0x20019
xor esi, esi
lea eax, [ebp - 0x40]
push esi
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10020d0a
lea eax, [ebp - 0x94]
mov dword [ebp - 0x90], esi
push eax
lea eax, [ebp - 0x90]
mov dword [ebp - 0x94], 4
push eax
lea eax, [ebp - 0x98]
push eax
push esi
push str.SecureProtocols
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x8c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10020d0a
cmp byte [0x10036ee8], 0
je 0x10020cfe
push str._ACTWinBrowser__IE_Internet_Options_applied
mov esi, 0x100382a0
push esi
call dword [sym.imp.MSVCR120.dll_sprintf]
cmp byte [0x10036ee8], 0
pop ecx
pop ecx
je 0x10020cfe
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push dword [ebp - 0x90]
call fcn.1000303b
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1002652e
mov esp, ebp
pop ebp
ret
Function at 0x10022a53
Capabilities:
Print debug messages

Disassembly:
push 0xac4
mov eax, 0x10028ecf
call fcn.100265a9
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0xad0], eax
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xac8]
call fcn.10022a36
test esi, esi
lea eax, [ebp - 0xac8]
cmovne eax, esi
mov dword [ebp - 0xacc], eax
test edi, edi
je 0x10022be6
cmp dword [edi + 0x400], ebx
jne 0x10022ad1
push ebx
push ebx
push ebx
push ebx
call fcn.1001fc73
add esp, 0x10
test eax, eax
je 0x10022be6
push dword [edi + 0x400]
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
push str.AcroSBL
push str._s__lu__lu
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_swprintf_s]
add esp, 0x18
test eax, eax
jle 0x10022be6
lea ecx, [ebp - 0x6bc]
call fcn.10022a16
push dword [ebp + 0x14]
lea eax, [ebp - 0x6bc]
push dword [ebp - 0xad0]
push 1
push 1
push dword [ebp + 0xc]
push eax
call fcn.1000303b
add esp, 0x18
test eax, eax
jne 0x10022bbc
push ebx
lea eax, [ebp - 0x218]
push eax
push 1
lea ecx, [ebp - 0x2ac]
call fcn.10025ba0
push dword [edi + 0x400]
mov esi, dword [ebp - 0xacc]
lea eax, [ebp - 0x6bc]
push 0x1388
push esi
push eax
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 4], ebx
call fcn.10025dd8
test eax, eax
jne 0x10022b7f
cmp dword [esi + 4], ebx
sete bl
jmp 0x10022bab
cmp byte [0x10036ee8], 0
je 0x10022bab
push str.IPC_Error:_AIPC_ERR
mov esi, 0x100382a0
push esi
call dword [sym.imp.MSVCR120.dll_sprintf]
cmp byte [0x10036ee8], 0
pop ecx
pop ecx
je 0x10022bab
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2ac]
call fcn.10025c9a
jmp 0x10022be6
cmp byte [0x10036ee8], bl
je 0x10022be6
push str.IPC_CreateMessage_Error:_CreateMessage_failed
mov esi, 0x100382a0
push esi
call dword [sym.imp.MSVCR120.dll_sprintf]
pop ecx
pop ecx
cmp byte [0x10036ee8], bl
je 0x10022be6
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov al, bl
call fcn.10026558
ret
Function at 0x10024586
Capabilities:
Print debug messages

Disassembly:
push ebx
push 8
call dword [sym.imp.MSVCR120.dll_malloc]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x100245a3
push 8
push 0
push ebx
call sub.MSVCR120.dll_memset
add esp, 0xc
cmp byte [0x10036ee8], 0
je 0x10024692
push esi
mov esi, dword [sym.imp.MSVCR120.dll_sprintf]
push edi
push 0x64
push str.sizeof__t_ASMBlock____d
mov edi, 0x100386f8
push edi
call esi
add esp, 0xc
cmp byte [0x10036ee8], 0
je 0x10024690
push edi
mov edi, dword [sym.imp.kernel32.dll_OutputDebugStringA]
call edi
cmp byte [0x10036ee8], 0
je 0x10024690
push 4
push str.sizeof_Uns32____d
push 0x100386f8
call esi
add esp, 0xc
cmp byte [0x10036ee8], 0
je 0x10024690
push 0x100386f8
call edi
cmp byte [0x10036ee8], 0
je 0x10024690
push 4
push str.sizeof_HANDLE____d
push 0x100386f8
call esi
add esp, 0xc
cmp byte [0x10036ee8], 0
je 0x10024690
push 0x100386f8
call edi
cmp byte [0x10036ee8], 0
je 0x10024690
push 4
push str.sizeof_Handle32____d
push 0x100386f8
call esi
add esp, 0xc
cmp byte [0x10036ee8], 0
je 0x10024690
push 0x100386f8
call edi
cmp byte [0x10036ee8], 0
je 0x10024690
push 4
push str.sizeof_void____d
push 0x100386f8
call esi
add esp, 0xc
cmp byte [0x10036ee8], 0
je 0x10024690
push 0x100386f8
call edi
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x10024713
Capabilities:
Print debug messages

Disassembly:
push 0x1c
mov eax, 0x10028feb
call fcn.100265a9
cmp byte [0x10036ee8], 0
mov esi, dword [ebp + 8]
je 0x10024753
lea eax, [esi + 4]
mov edi, 0x100386f8
push eax
push str.ASM_Release__s
push edi
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0xc
cmp byte [0x10036ee8], 0
je 0x10024753
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x28]
call fcn.1000303b
push dword [esi + 0x48]
lea eax, [ebp - 0x28]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.1000229e
pop ecx
pop ecx
test eax, eax
je 0x1002477e
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.1000303b
mov dword [esi + 0x4c], edi
mov dword [esi + 0x44], edi
call fcn.10026558
ret
Function at 0x10024795
Capabilities:
Print debug messages

Disassembly:
push 0x28
mov eax, 0x10029018
call fcn.100265a9
cmp byte [0x10036ee8], 0
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.MSVCR120.dll_sprintf]
mov dword [ebp - 0x30], esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x2c], esi
mov esi, dword [sym.imp.kernel32.dll_OutputDebugStringA]
je 0x100247f9
call fcn.1000303b
test al, al
mov edx, 0x1002a665
mov ecx, str._in_AppContaner
cmove ecx, edx
push ecx
push str.ASM_Retrieve_retrieving_shared_memory_in_Plug_in_s
push 0x100386f8
call edi
add esp, 0xc
cmp byte [0x10036ee8], 0
je 0x100247f9
push 0x100386f8
call esi
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
and dword [eax], 0
mov eax, dword [ebp - 0x30]
and dword [eax], 0
lea eax, [ebx + 4]
push eax
call fcn.1000303b
push dword [ebx + 0x48]
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.1000229e
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x34], eax
call fcn.1000303b
mov ecx, dword [ebp - 0x34]
test ecx, ecx
jne 0x10024862
cmp byte [0x10036ee8], cl
je 0x100248ae
push str.ASM_Retrieve_ERROR__finding_memory_mapped_file_
mov ebx, 0x100386f8
push ebx
call edi
cmp byte [0x10036ee8], 0
pop ecx
pop ecx
je 0x100248ae
push ebx
call esi
jmp 0x100248ae
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dword [ebx + 0x44], eax
test eax, eax
jne 0x1002487d
cmp byte [0x10036ee8], al
je 0x100248ae
push str.ASM_Retrieve_ERROR__getting_memory_mapped_file_handle_
jmp 0x1002484a
mov ecx, dword [ebp - 0x34]
push dword [ebx + 0x48]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebx + 0x4c], eax
test eax, eax
jne 0x1002489e
cmp byte [0x10036ee8], al
je 0x100248ae
push str.ASM_Retrieve_ERROR__mapping_for_writing_
jmp 0x1002484a
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebx + 0x48]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebx + 0x4c]
mov dword [ecx], eax
call fcn.10026558
ret
Function at 0x10003001
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, dword [esi + 0x3c]
add ebx, esi
push 0x40
lea eax, [ebx + 0x18]
push 0x3000
push dword [eax + 0x38]
mov dword [ebp - 4], ecx
push 0
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], eax
call dword [0x745070]
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x1000316b
push 0x40
mov edx, esi
mov ecx, edi
call 0x10005240
mov esi, dword [edi + 0x3c]
movzx eax, word [ebx + 0x14]
add esi, edi
push eax
mov edx, ebx
mov ecx, esi
call 0x10005240
mov eax, dword [ebp - 8]
lea ebx, [esi + 0x18]
movzx ecx, word [eax + 0x14]
movzx esi, word [esi + 0x14]
lea edx, [eax + 0x18]
movzx eax, word [eax + 6]
add ecx, edx
add esi, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x100030c9
mov ebx, ecx
sub ebx, esi
mov edi, eax
push 0x28
lea edx, [ebx + esi]
mov ecx, esi
call 0x10005240
add esi, 0x28
dec edi
jne 0x10003087
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
test eax, eax
je 0x100030c9
lea esi, [ecx + 0x14]
mov ebx, eax
mov edx, dword [esi]
mov ecx, dword [esi - 8]
push dword [esi - 4]
add edx, dword [ebp + 8]
add ecx, edi
call 0x10005240
lea esi, [esi + 0x28]
dec ebx
jne 0x100030ae
mov ebx, dword [ebp - 0xc]
push ebx
mov edx, edi
mov ecx, edi
call fcn.10001f85
push dword [ebp - 0x18]
mov ecx, dword [0x746438]
mov edx, edi
call fcn.10001ee1
mov edx, dword [ebx + 0x60]
test edx, edx
je 0x10003168
cmp dword [ebx + 0x64], 0
je 0x10003168
xor eax, eax
lea ecx, [edx + edi]
inc eax
sub eax, dword [ecx + 0x10]
cmp eax, dword [ecx + 0x14]
jae 0x10003110
push eax
push ecx
push dword [ebx + 0x64]
mov ecx, edi
call fcn.10001eb3
mov ecx, eax
xor eax, eax
jmp 0x10003114
xor eax, eax
mov ecx, eax
mov edx, dword [ebp - 4]
push 2
mov dword [edx + 4], ecx
mov edx, dword [ebx + 0x60]
pop ecx
lea esi, [edx + edi]
sub ecx, dword [esi + 0x10]
cmp ecx, dword [esi + 0x14]
jae 0x1000313d
push ecx
push esi
push dword [ebx + 0x64]
mov ecx, edi
call fcn.10001eb3
mov ecx, eax
xor eax, eax
jmp 0x1000313f
mov ecx, eax
mov edx, dword [ebp - 4]
push 3
mov dword [edx + 8], ecx
mov edx, dword [ebx + 0x60]
pop ecx
lea esi, [edx + edi]
sub ecx, dword [esi + 0x10]
cmp ecx, dword [esi + 0x14]
jae 0x10003162
push ecx
push esi
push dword [ebx + 0x64]
mov ecx, edi
call fcn.10001eb3
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x401000
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
mov esi, dword [ebp + 0xc]
xor edx, edx
or eax, 0xffffffff
mov ecx, dword [ebp + 8]
lea esp, [esp]
lea esp, [esp]
nop
mov dl, byte [esi]
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x401040]
add esi, 1
sub ecx, 1
jne 0x401020
not eax
pop edx
pop ecx
pop esi
leave
ret 8

Function at 0x401478
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov dword [ebp - 4], 0
push 0xa
push dword [ebp + 8]
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x401498
jmp 0x4014b8
push eax
push eax
push 0
call sub.kernel32.dll_SizeofResource
mov dword [0x404280], eax
pop eax
push eax
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
jne 0x4014b5
jmp 0x4014b8
mov dword [ebp - 4], eax
popal
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x40151f
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
mov byte [ebp - 0x401], 0
pushal
mov esi, dword [ebp + 0xc]
lea ebx, [ebp - 0x400]
push esi
push ebx
call sub.kernel32.dll_lstrcpyA
xor ecx, ecx
jmp 0x401545
inc ecx
cmp byte [ecx + ebx], 0x5c
jne 0x401544
mov byte [ecx + ebx], 0
lea esi, [ecx + esi + 1]
push ebx
call fcn.00401631
or eax, eax
je 0x4015ac
mov byte [ebx], 0
test dword [ebp + 0x14], 8
je 0x401570
mov edx, 1
jmp 0x401572
xor edx, edx
push edx
push dword [ebp + 0x10]
push esi
push eax
push ebx
call fcn.00402aa0
push section..data
push ebx
call fcn.004015e1
test dword [ebp + 0x14], 1
je 0x401598
push ebx
call fcn.004015b8
cmp byte [ebx], 0
je 0x4015ac
push ebx
push dword [ebp + 8]
call sub.kernel32.dll_SetEnvironmentVariableA
mov byte [ebp - 0x401], al
popal
movzx eax, byte [ebp - 0x401]
leave
ret 0x10

Function at 0x40172b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call sub.kernel32.dll_CreateThread
push eax
call sub.kernel32.dll_CloseHandle
popal
leave
ret 8
Function at 0x401b1f
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf8
push esi
push edi
push ebx
lea eax, [ebp - 0x400]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
push str._regpatch.reg
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
mov esi, dword [ebp + 8]
test dword [esi + 5], 1
je 0x401b99
mov eax, dword [esi + 1]
add eax, 0x100000
mov dword [ebp - 0x408], eax
push 4
push 0x1000
push eax
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 0x404], eax
lea eax, [esi + 9]
push dword [ebp - 0x408]
push dword [ebp - 0x404]
push eax
call fcn.00401c2b
mov ecx, dword [ebp - 0x404]
jmp 0x401b9f
mov eax, dword [esi + 1]
lea ecx, [esi + 9]
push eax
push ecx
lea eax, [ebp - 0x400]
push eax
call fcn.00402974
test eax, eax
je 0x401bef
mov edi, 0x404a8c
push str._s__
push edi
call sub.kernel32.dll_lstrcpyA
lea eax, [ebp - 0x400]
push eax
push edi
call sub.kernel32.dll_lstrcatA
push 0x4040d8
push edi
call sub.kernel32.dll_lstrcatA
push 5
push 0
push edi
push str.regedit.exe
push str.open
push 0
call sub.shell32.dll_ShellExecuteA
push 0x1f4
call sub.kernel32.dll_Sleep
test dword [esi + 5], 1
je 0x401c18
push 0x4000
push dword [ebp - 0x408]
push dword [ebp - 0x404]
call sub.kernel32.dll_VirtualFree
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_DeleteFileA
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x401c2b
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push esi
push edi
mov eax, dword [ebp + 0x10]
add eax, 0x100000
mov dword [ebp - 8], eax
push 4
push 0x1000
push eax
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
push esi
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov esi, dword [ebp - 4]
or eax, eax
je 0x401cb7
push dword [ebp + 8]
push esi
call sub.kernel32.dll_lstrcmpA
or eax, eax
je 0x401cac
mov bl, 0
jmp 0x401ca2
lodsb al, byte [esi]
cmp word [esi], 0x5b0a
jne 0x401c84
mov bl, 1
cmp al, 0x5c
jne 0x401c98
or bl, bl
jne 0x401c98
cmp byte [esi], 0x5c
je 0x401c98
cmp byte [esi - 2], 0x5c
je 0x401c98
stosb byte es:[edi], al
stosb byte es:[edi], al
cmp word [esi], 0xd5d
jne 0x401ca2
mov bl, 0
cmp byte [esi], 0
jne 0x401c7a
mov byte [edi], 0
jmp 0x401cb7
push dword [ebp + 8]
push dword [ebp + 0xc]
call sub.kernel32.dll_lstrcpyA
push 0x4000
push dword [ebp - 8]
push dword [ebp - 4]
call sub.kernel32.dll_VirtualFree
push dword [ebp + 0xc]
call sub.kernel32.dll_lstrlenA
pop edi
pop esi
leave
ret 0xc
Function at 0x40212c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ecx
push edx
push esi
push edi
push dword [ebp + 8]
call fcn.00402940
cmp eax, 0xffffffff
je 0x4021ae
mov dword [ebp - 4], eax
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x4021aa
mov dword [ebp - 0xc], eax
push 4
push 0x1000
push dword [ebp - 4]
push 0
call sub.kernel32.dll_VirtualAlloc
mov esi, eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push esi
push dword [ebp - 0xc]
call sub.kernel32.dll_ReadFile
add esi, dword [esi + 0x3c]
mov eax, dword [esi + 0x50]
push eax
push dword [ebp - 0xc]
call sub.kernel32.dll_CloseHandle
push 0x4000
push dword [ebp - 4]
push esi
call sub.kernel32.dll_VirtualFree
pop eax
jmp 0x4021b0
xor eax, eax
jmp 0x4021b0
xor eax, eax
pop edi
pop esi
pop edx
pop ecx
leave
ret 4