joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401800
Capabilities:
Set registry value

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
mov dword [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push eax
push str.CLSID374D56F7_D077_4189_B04C_628913046E55InProcServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x401841
xor eax, eax
pop edi
add esp, 0x54
ret
mov ecx, dword [esp + 4]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
push 1
push 0x406834
push 1
push 0
push 0x406834
push ecx
call ebp
mov edi, 0x406834
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0xc]
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]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x14]
push ecx
push 1
push eax
push str.ThreadingModel
push edx
call ebp
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop esi
pop ebp
sete al
pop edi
add esp, 0x54
ret

Function at 0x4018d0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
mov dword [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push eax
push 0x4061ac
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x401911
xor eax, eax
pop edi
add esp, 0x54
ret
mov edi, 0x406834
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 8]
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]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
push 0x406834
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
je 0x401975
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
add esp, 0x54
ret
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
add esp, 0x54
ret
Function at 0x401990
Capabilities:
Set registry value

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
mov dword [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push eax
push str.ShellexContextMenuHandlers_
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4019d1
xor eax, eax
pop edi
add esp, 0x54
ret
mov edi, 0x406834
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 8]
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]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
push 0x406834
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
je 0x401a35
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
add esp, 0x54
ret
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
add esp, 0x54
ret

Function at 0x401a50
Capabilities:
Set registry value

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
mov dword [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push eax
push 0x406200
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x401a91
xor eax, eax
pop edi
add esp, 0x54
ret
mov edi, 0x406834
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 8]
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]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
push 0x406834
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
je 0x401af5
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
add esp, 0x54
ret
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
add esp, 0x54
ret
Function at 0x401b10
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x20
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x1c]
push ecx
push eax
call edi
mov esi, dword [esp + 0x30]
lea edx, [esp + 0xc]
push edx
push esi
call edi
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov ebx, dword [esp + 0xc]
mov edx, ecx
push 0
sub edx, eax
sub eax, ecx
push edx
mov edx, edi
sub edx, ebx
push edx
mov edx, dword [esp + 0x34]
add eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x30]
sar eax, 1
push eax
mov eax, ebx
sub eax, edi
add eax, edx
cdq
sub eax, edx
sar eax, 1
push eax
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebx
add esp, 0x20
ret

Function at 0x401b90
Capabilities:
Set registry value

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
mov dword [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push eax
push str.CLSID374D56F7_D077_4189_B04C_628913046E55SaveInProcServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x401c21
mov edi, 0x406834
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea edx, [esp + 0xc]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov edx, dword [esp + 8]
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
push 0x406834
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
add esp, 0x54
ret

Function at 0x401c30
Capabilities:
Set registry value

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
mov dword [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push eax
push 0x40628c
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x401cc1
mov edi, 0x406834
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea edx, [esp + 0xc]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov edx, dword [esp + 8]
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
push 0x406834
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
add esp, 0x54
ret
Function at 0x401cd0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
mov dword [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push eax
push 0x4062b8
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x401d61
mov edi, 0x406834
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea edx, [esp + 0xc]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov edx, dword [esp + 8]
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
push 0x406834
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
add esp, 0x54
ret

Function at 0x401d70
Capabilities:
Set registry value

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
mov dword [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push eax
push str.SOFTWAREClasses_shellexContextMenuHandlersSave
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x401e01
mov edi, 0x406834
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea edx, [esp + 0xc]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov edx, dword [esp + 8]
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
push 0x406834
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
add esp, 0x54
ret

Function at 0x401e10
Capabilities:
Set registry value

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
mov dword [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push eax
push str.SOFTWAREClassesCLSIDSave374D56F7_D077_4189_B04C_628913046E55
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x401ea1
mov edi, 0x406834
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea edx, [esp + 0xc]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov edx, dword [esp + 8]
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
push 0x406834
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
add esp, 0x54
ret
Function at 0x401eb0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
mov dword [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push eax
push str._shellexContextMenuHandlersSave
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x401f41
mov edi, 0x406834
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea edx, [esp + 0xc]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov edx, dword [esp + 8]
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
push 0x406834
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
add esp, 0x54
ret

Function at 0x401f50
Capabilities:
Set registry value

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
mov dword [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push eax
push str.CLSIDSave374D56F7_D077_4189_B04C_628913046E55
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x401fe1
mov edi, 0x406834
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea edx, [esp + 0xc]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov edx, dword [esp + 8]
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
push 0x406834
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
add esp, 0x54
ret
Function at 0x402c35
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x406480
cmp edx, dword [eax]
je 0x402c57
add eax, 8
inc ecx
cmp eax, 0x406510
jl 0x402c48
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x406480]
jne 0x402d85
mov eax, dword [0x406840]
cmp eax, 1
je 0x402d5f
test eax, eax
jne 0x402c88
cmp dword [0x4063d0], 1
je 0x402d5f
cmp edx, 0xfc
je 0x402d85
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402cbf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004031e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403350
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402d02
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403350
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4053e0
push edi
call fcn.00403fe0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004031e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004031f0
lea eax, [ebp - 0xa0]
push 0x4053c0
push eax
call fcn.004031f0
push dword [esi + 0x406484]
lea eax, [ebp - 0xa0]
push eax
call fcn.004031f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00403f4e
add esp, 0x2c
pop edi
jmp 0x402d85
lea eax, [ebp + 8]
lea esi, [esi + 0x406484]
push 0
push eax
push dword [esi]
call fcn.00403350
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x406135
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x406144
pop dword [ebp - 0x4c]
mov eax, 0x406144
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x5e08210e
add dword [ebp - 0x5c], 0xf04a243d
mov dword [ebp - 0x58], 0x65c3d0cb
sub dword [ebp - 0x58], 0x33908486
mov dword [ebp - 0x54], 0xe025547f
sub dword [ebp - 0x54], 0x93d91051
mov dword [ebp - 0x50], 0xd671de43
add dword [ebp - 0x50], 0x298e21bd
lea eax, [ebp - 0x5c]
push eax
mov eax, 0xee10fa6f
add eax, 0x122f15bd
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x9b74609a
add dword [ebp - 0x5c], 0xd8fe08bc
mov dword [ebp - 0x58], 0x18011cc9
sub dword [ebp - 0x58], 0xd694bb54
mov dword [ebp - 0x54], 0xdf0e4805
add dword [ebp - 0x54], 0x84612467
mov dword [ebp - 0x50], 0x747c2d76
add dword [ebp - 0x50], 0x8b83d28a
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x37f75
push 0
call eax
mov ecx, 0x3ba1
mov ebx, eax
mov edx, 0x9c608db5
add edx, 0x63e09c4b
add edx, dword [ebp - 0x4c]
mov edi, 0x1008a89b
sub edi, 0x8b53764a
add dword [ebp - 0x1c], esi
mov esi, dword [edx]
xor esi, edi
add dword [ebp - 0x28], edi
mov dword [ebx], esi
xor dword [ebp - 0x2c], eax
add ebx, 0x3874c1f9
sub ebx, 0x3874c1f5
add edx, 4
loop 0x406256
add eax, 0xe157
xor ebx, ebx
add ebx, eax
add eax, 0xf6bb1b50
add eax, 0x944e4b5
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x40d442
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403050]
jne 0x40dfdd
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x410948], eax
mov dword [0x410944], ecx
mov dword [0x410940], edx
mov dword [0x41093c], ebx
mov dword [0x410938], esi
mov dword [0x410934], edi
mov word [0x410960], ss
mov word [0x410954], cs
mov word [0x410930], ds
mov word [0x41092c], es
mov word [0x410928], fs
mov word [0x410924], gs
pushfd
pop dword [0x410958]
mov eax, dword [ebp]
mov dword [0x41094c], eax
mov eax, dword [ebp + 4]
mov dword [0x410950], eax
lea eax, [ebp + 8]
mov dword [0x41095c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x410898], 0x10001
mov eax, dword [0x410950]
mov dword [0x41084c], eax
mov dword [0x410840], 0xc0000409
mov dword [0x410844], 1
mov eax, dword [0x403050]
mov dword [ebp - 0x328], eax
mov eax, dword [0x410124]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x410890], eax
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x403210
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x410890], 0
jne 0x40e0c9
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x401360
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Write file on windows

Disassembly:
push ebp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x5c
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], 0x500
call dword [sym.imp.kernel32.dll_FormatMessageW]
sub esp, 0x1c
mov ebx, eax
test eax, eax
jne 0x401410
mov edi, dword fs:[0x18]
cmp dword [edi + 0x34], 0xeb
je 0x401410
test byte [0x404000], 1
je 0x40145e
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x34]
mov dword [esp + 0xc], str.Could_not_format_string:_le_lu__fmt_s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.output_formatstring
mov dword [esp + 4], global___dbch
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esp + 0x48]
mov dword [esp], 0xfffffff5
mov ebp, dword [sym.imp.kernel32.dll_GetStdHandle]
call ebp
sub esp, 4
lea esi, [esp + 0x4c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteConsoleW]
sub esp, 0x14
test eax, eax
je 0x401470
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LocalFree]
sub esp, 4
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [sym.imp.kernel32.dll_GetOEMCP]
mov dword [esp + 0x38], ecx
call ecx
mov dword [esp + 0x1c], 0
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp + 0x30], eax
call eax
sub esp, 0x20
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov dword [esp + 0x28], eax
mov eax, dword [edx + 0x30]
mov dword [esp + 0x34], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov dword [esp + 0x2c], eax
test eax, eax
je 0x40144e
mov ecx, dword [esp + 0x38]
call ecx
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call edi
sub esp, 0x20
mov dword [esp], 0xfffffff5
call ebp
sub esp, 4
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov edx, dword [esp + 0x34]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x40144e
Function at 0x4021b0
Capabilities:
Get process heap flags

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov eax, dword [0x407004]
mov dword [section..bss], 0
test eax, eax
je 0x4022a8
lea edi, [esp + 0x2c]
mov dword [esp + 0xc], 0x20019
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyExW]
xor ebx, ebx
mov dword [esp + 0x10], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionUninstall
mov dword [esp], 0x80000002
call esi
sub esp, 0x14
test eax, eax
je 0x402268
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionUninstall
mov dword [esp], 0x80000001
call esi
sub esp, 0x14
test eax, eax
je 0x402288
mov eax, dword [section..bss]
mov dword [esp + 0xc], dbg.cmp_by_name
mov dword [esp + 8], 0x14
mov dword [esp + 4], eax
mov eax, dword [0x407004]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_qsort]
add esp, 0x30
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x2c]
call dbg.FetchFromRootKey
mov ebx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x402205
mov eax, dword [esp + 0x2c]
call dbg.FetchFromRootKey
or ebx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x402231
mov dword [esp + 8], 0x14
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [0x407004], eax
sub esp, 0xc
jmp 0x4021cd
Function at 0x402f10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x402f6b
cmp byte [esi + ebx - 1], 0xa
je 0x402f3f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4070a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret