joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449559
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00422030
mov eax, dword [0x475114]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00442085
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x44959b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4496f7
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004219f0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x47ac48]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0044a556
mov ecx, dword [esi*4 + 0x47ac48]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4496f0
cmp eax, dword [ecx + edi + 0x24]
jne 0x4496f0
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4496f0
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0044a556
add esp, 0x14
test edx, edx
jl 0x4496f0
jg 0x449666
test eax, eax
jb 0x4496f0
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4496f0
jl 0x449680
cmp dword [ebp - 0x1008], eax
ja 0x4496f0
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x44969e
test ebx, ebx
je 0x4496d7
cmp ecx, edi
jae 0x4496d7
mov al, byte [ecx]
cmp al, 0xd
jne 0x4496b8
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4496c4
cmp byte [ecx + 1], 0xa
jne 0x4496c4
inc ecx
jmp 0x4496c4
movzx eax, al
movsx eax, byte [eax + 0x475438]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x44969e
cmp edx, ebx
jne 0x44969e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4496f5
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004218c2
leave
ret
Function at 0x4499ee
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47ac48]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x449a2e
cmp byte [ebx], 0xa
jne 0x449a2e
or byte [edi + eax + 0x28], 4
jmp 0x449a33
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x449b32
mov dl, byte [eax]
cmp dl, 0x1a
je 0x449b15
inc eax
cmp dl, 0xd
je 0x449a5f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x449a85
cmp eax, ecx
jae 0x449a93
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x449a47
jmp 0x449b32
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x449b10
cmp dword [ebp - 0x10], 0
je 0x449b10
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x47ac48]
test byte [eax + edi + 0x28], 0x48
je 0x449aea
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x449ad5
mov byte [esi], dl
jmp 0x449ae6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47ac48]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x449b32
cmp byte [ebp - 1], 0xa
jne 0x449af9
cmp esi, ebx
jne 0x449af9
mov byte [esi], 0xa
jmp 0x449b31
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0044a574
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x449b32
mov byte [esi], 0xd
jmp 0x449b31
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x47ac48]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x449b2f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x449b32
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x449b3b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x47ac48]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x449b81
cmp word [ebx], dx
jne 0x449b81
or byte [eax + edi + 0x28], 4
jmp 0x449b86
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x449ce9
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x449cc9
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x449bc7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x449bfd
cmp eax, edx
jae 0x449c0b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x449ba2
jmp 0x449ce9
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x449cc4
cmp dword [ebp - 0x18], 0
je 0x449cc4
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x47ac48]
test byte [eax + edi + 0x28], 0x48
je 0x449c9a
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x449c5e
mov word [esi], cx
jmp 0x449c95
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x47ac48]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x47ac48]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x47ac48]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x449ce9
pop eax
cmp word [ebp - 4], ax
jne 0x449caa
cmp esi, ebx
jne 0x449caa
mov word [esi], ax
jmp 0x449ce6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0044a574
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x449ce9
push 0xd
pop eax
jmp 0x449ca5
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x47ac48]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x449ce3
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x449ce9
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x44beea
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x475114]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x44bf2d
call fcn.004413d4
mov dword [eax], 0xf
call fcn.004413e7
mov dword [eax], 0xd
call fcn.0043cfcf
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004218c2
leave
ret
test eax, eax
jne 0x44bf34
inc eax
jmp 0x44bf21
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x44bf1f
xor eax, eax
cmp ecx, 1
setne al
jmp 0x44bf21

Function at 0x44ff25
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x475114]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x44ff70
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004500c0
test al, al
jne 0x44ff6a
sub edx, 2
cmp edx, edi
jne 0x44ff50
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x44ff92
lea eax, [edi + 2]
cmp edx, eax
je 0x44ff92
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0044fe71
add esp, 0x10
jmp 0x45008c
push esi
lea ecx, [ebp - 0x255]
call fcn.004500c0
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44ffd5
push dword [ebp - 0x25c]
jmp 0x44ff82
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x450012
cmp word [ebp - 0x226], 0
je 0x450033
cmp word [ebp - 0x226], ax
jne 0x450012
cmp word [ebp - 0x224], 0
je 0x450033
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0044fe71
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x45007f
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x44ffec
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x450067
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x45008c
push 0x44fca1
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00456980
add esp, 0x10
jmp 0x45005c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004218c2
leave
ret
Function at 0x450989
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x45099a
pop esi
ret
push ebx
push edi
push esi
call fcn.00450952
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0044a755
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4509c2
push ebx
push esi
push edi
call fcn.0043a0b0
add esp, 0xc
push 0
call fcn.00447531
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x450d92
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004509d7

Function at 0x451df9
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x451e34
Function at 0x457855
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004577d1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4579c4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4579c4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x457979
jg 0x4578b1
test eax, eax
je 0x45796f
push 1
push 0x1000
call fcn.0044756b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4578d4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x457966
push 0x8000
push ebx
call fcn.00444bb3
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4578fd
jg 0x4578f8
cmp ecx, 0x1000
jb 0x4578fd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00448da8
add esp, 0x10
cmp eax, 0xffffffff
je 0x457942
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4578f8
jl 0x457929
test ecx, ecx
jne 0x4578ea
push dword [ebp - 0xc]
push ebx
call fcn.00444bb3
push esi
call fcn.00447531
add esp, 0xc
xor ebx, ebx
jmp 0x4579d2
cmp byte [edi + 0x24], 0
je 0x457959
cmp dword [edi + 0x20], 5
jne 0x457959
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x457964
mov ebx, dword [edi + 0x18]
jmp 0x457966
xor ebx, ebx
push esi
call fcn.00447531
pop ecx
jmp 0x4579d2
test ecx, ecx
jg 0x45793b
jl 0x457979
test eax, eax
jae 0x45793b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0044a574
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x457999
cmp byte [edi + 0x1c], 0
je 0x45793b
jmp 0x4579ca
push ebx
call fcn.00442476
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x45793b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4579d2
cmp byte [edi + 0x1c], 0
je 0x4579cf
mov ebx, dword [edi + 0x18]
jmp 0x4579d2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0044a574
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4019be
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa7c
push ebx
push esi
push edi
push 0x10
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
mov dword [ebp - 0x54], 0x44
rep stosd dword es:[edi], eax
mov eax, dword [0x406d10]
test eax, eax
je 0x4019fe
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x406b00
push dword [0x406d10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
mov ebx, str.IDM1.tmp
mov esi, 0x406b08
push ebx
push esi
lea eax, [ebp - 0xa7c]
push str._s_s
push eax
call edi
lea eax, [ebp - 0xa7c]
push eax
call fcn.00401b50
add esp, 0x14
cmp dword [0x406f20], 0
je 0x401a8f
lea eax, [ebp - 0x25c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x401a7f
cmp dword [0x406f24], 0
mov eax, str.__skdlgs
jne 0x401a61
mov eax, 0x406f28
lea ecx, [ebp - 0x25c]
push ecx
push eax
push esi
push ebx
push esi
lea eax, [ebp - 0xa7c]
push str.__s_s___d___s__s__rmsetup___s_
push eax
call edi
add esp, 0x1c
jmp 0x401a86
and dword [0x406f20], 0
cmp dword [0x406f20], 0
jne 0x401ab7
cmp dword [0x406f24], 0
mov eax, str.__skdlgs
jne 0x401aa2
mov eax, 0x406f28
push eax
push esi
push ebx
push esi
lea eax, [ebp - 0xa7c]
push str.__s_s___d___s__s
push eax
call edi
add esp, 0x18
xor edi, edi
push 0x10
lea eax, [ebp - 0x10]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [0x406b00], 0xfffffc18
mov dword [ebp - 0x54], 0x44
jae 0x401b38
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push edi
push 0x20
push edi
push edi
lea eax, [ebp - 0xa7c]
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401b15
push 0x405110
push 1
push 1
push edi
push str.Could_not_create_process_in_unpacker
call fcn.00401cb8
add esp, 0x14
jmp 0x401b4b
cmp dword [ebp - 0xc], edi
je 0x401b4b
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
push dword [0x406afc]
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x401b4b
push 0x40
push str.IDM_Setup
push str.Install_process_has_been_stopped_because_of_errors_in_unpacker_procedure
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401b50
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
push esi
push edi
call fcn.00401c7a
mov esi, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
neg esi
sbb esi, esi
lea eax, [ebp - 4]
and esi, 0x100
push eax
add esi, 0xf003f
mov ebx, str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push esi
push 0
push ebx
push 0x80000002
call edi
test eax, eax
jne 0x401bfa
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x800
push eax
lea eax, [ebp - 0x808]
push eax
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401bf1
lea eax, [ebp - 0x808]
push 0x40548c
push eax
call sub.MSVCRT.dll_wcsstr
pop ecx
test eax, eax
pop ecx
jne 0x401be5
lea eax, [ebp - 0x808]
push 0x405484
push eax
call sub.MSVCRT.dll_wcsstr
pop ecx
test eax, eax
pop ecx
je 0x401bf1
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push esi
xor esi, esi
push esi
push ebx
push 0x80000001
call edi
test eax, eax
jne 0x401c75
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x800
push eax
lea eax, [ebp - 0x808]
push eax
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401c6c
lea eax, [ebp - 0x808]
push 0x40548c
push eax
call sub.MSVCRT.dll_wcsstr
pop ecx
test eax, eax
pop ecx
jne 0x401c60
lea eax, [ebp - 0x808]
push 0x405484
push eax
call sub.MSVCRT.dll_wcsstr
pop ecx
test eax, eax
pop ecx
je 0x401c6c
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401cb8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
lea eax, [ebp - 4]
push esi
push eax
push 0x400
call edi
push eax
push esi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea eax, [ebp - 0x18]
push 0xa
push eax
call edi
push eax
call sub.MSVCRT.dll__itoa
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp dword [ebp + 0x10], esi
je 0x401dd4
cmp dword [ebp + 0xc], esi
jne 0x401d25
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x400]
push dword [ebp + 8]
push str._s._Error_ID_s
push eax
call edi
add esp, 0x10
jmp 0x401d50
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strlen
cmp eax, 0x104
pop ecx
ja 0x401d50
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x400]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s.__s_Error_ID_s
push eax
call edi
add esp, 0x14
push esi
push esi
push 4
push esi
push 1
push 0xc0000000
push 0x406d14
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp + 0xc], ebx
jne 0x401d86
push 0x10
push str.IDM_Setup
push str.Could_not_create_open_error_log_file
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401dd4
push 2
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x400]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x400]
push eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
call ebx
lea eax, [ebp - 0xc]
push esi
push eax
push dword [ebp + 0x18]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0xc]
call ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x14], esi
je 0x401e2d
cmp dword [ebp - 4], esi
je 0x401e2d
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
pop ecx
mov ebx, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebx + eax + 0xff]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
pop ecx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
push str._s_r_n_s_r_nError_ID:__s
push ebx
call edi
add esp, 0x14
push 0x10
push str.IDM_Setup
push ebx
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
pop edi
pop esi
add eax, ecx
pop ebx
leave
ret
Function at 0x40220b
Capabilities:
Get file size
Timestomp file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x401180
push 0x40431e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor esi, esi
mov dword [ebp - 4], esi
push esi
push esi
push dword [ebp + 0x14]
push esi
push 1
push dword [ebp + 0x10]
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call edi
mov ebx, eax
mov dword [ebp - 0x20], ebx
cmp ebx, 0xffffffff
jne 0x4022a6
push dword [ebp + 8]
lea eax, [ebp - 0x234]
push eax
call sub.MSVCRT.dll_wcscpy
push 0x4056e4
push dword [ebp + 8]
call sub.MSVCRT.dll_wcscat
add esp, 0x10
push esi
push esi
push dword [ebp + 0x14]
push esi
push 1
push dword [ebp + 0x10]
push dword [ebp + 8]
call edi
mov ebx, eax
mov dword [ebp - 0x20], ebx
cmp ebx, 0xffffffff
jne 0x4022a6
push 0x405110
push 1
push 1
push esi
push str.Could_not_create_file_in_GetViewFile
jmp 0x40234a
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0xc]
add dword [ecx], eax
mov ecx, dword [ecx]
cmp dword [ebp + 0x10], 0x80000000
jne 0x4022ce
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x2c], 4
jmp 0x4022e5
cmp dword [ebp + 0x10], 0xc0000000
jne 0x4022e5
mov dword [ebp - 0x28], 4
mov dword [ebp - 0x2c], 2
push esi
push ecx
push esi
push dword [ebp - 0x28]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], esi
je 0x402313
push 0x406f30
push 0x406f40
push 0x406f38
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp dword [ebp + 0x1c], esi
je 0x40232e
push 0x406f30
push 0x406f40
push 0x406f38
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
cmp edi, esi
jne 0x40235a
push 0x405110
push 1
push 1
push esi
push str.Could_not_create_map_file_in_GetViewFile
call fcn.00401cb8
add esp, 0x14
or dword [ebp - 4], 0xffffffff
xor eax, eax
jmp 0x4023b8
push esi
push esi
push esi
push dword [ebp - 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x1c], eax
cmp eax, esi
jne 0x402385
push 0x405110
push 1
push 1
push esi
push str.Could_not_create_map_view_file_in_GetViewFile
call fcn.00401cb8
add esp, 0x14
push edi
call ebx
jmp 0x4023b1
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret