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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
nop
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jne 0x469855
mov dword [ebp - 0x14], 0
jmp 0x4697e0
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x1e
jge 0x469855
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
cmp dword [eax*4 + 0x49d09c], ecx
jne 0x469853
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx*4 + 0x49d1aa]
cmp dword [eax*4 + 0x49d132], ecx
jb 0x469842
mov eax, dword [ebp - 0xc]
cmp dword [0x49d098], eax
je 0x469830
mov eax, dword [ebp - 0x14]
mov al, byte [eax + 0x49d114]
push eax
call fcn.0046d92f
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [0x49d098], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.0046d486
add esp, 8
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
add dword [ecx*4 + 0x49d132], eax
jmp 0x469855
jmp 0x4697dd
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 0x10]
leave
ret 0x14

Function at 0x469866
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
jmp 0x4698ae
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x1e
jge 0x469903
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
cmp dword [eax*4 + 0x49d09c], ecx
jne 0x469901
mov eax, dword [ebp - 8]
cmp dword [0x49d098], eax
je 0x4698e8
mov eax, dword [ebp - 0x14]
mov al, byte [eax + 0x49d114]
push eax
call fcn.0046d92f
add esp, 4
mov eax, dword [ebp - 8]
mov dword [0x49d098], eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.0046d4d2
add esp, 8
mov dword [ebp - 0xc], 1
jmp 0x469903
jmp 0x4698ab
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
je 0x469931
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.0046d486
add esp, 8
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 0x10]
leave
ret 0x14
Function at 0x46d566
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 8], 0xffffffff
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], eax
push 0
push 0
push 0x1e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0xc], 0
jmp 0x46d5a5
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 3
jge 0x46d67b
push 0
lea eax, [ebp - 0x14]
push eax
push 0xa
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
mov al, byte [ebp - 0x20]
cmp eax, 0x54
jne 0x46d676
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x44
je 0x46d5f5
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x64
je 0x46d5f5
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x53
jne 0x46d676
mov al, byte [ebp - 0x17]
mov ecx, dword [ebp + 0x10]
mov byte [ecx], al
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
push eax
call fcn.0046d92f
add esp, 4
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x64
jne 0x46d648
mov dword [0x49d2ca], 1
mov dword [ebp - 0x10], 0
jmp 0x46d62b
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 7
jge 0x46d646
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax + ebp - 0x1e]
xor cl, byte [ebp - 0x17]
mov eax, dword [ebp - 0x10]
mov byte [eax + ebp - 0x1e], cl
jmp 0x46d628
jmp 0x46d652
mov dword [0x49d2ca], 0
mov eax, dword [ebp - 0x1e]
xor eax, 0x19611225
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1a]
xor eax, 0x198931
and eax, 0xffffff
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx]
mov dword [ebp - 8], eax
jmp 0x46d67b
jmp 0x46d5a2
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 8]
jmp 0x46d692
pop edi
pop esi
pop ebx
leave
ret

Function at 0x46d7bc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 4], 0xffffffff
push 0
lea eax, [ebp - 0xc]
push eax
push 0xa
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], 0
jmp 0x46d7ee
inc dword [ebp - 8]
cmp dword [ebp - 8], 9
jge 0x46d809
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cl, byte [eax + ebp - 0x18]
xor cl, byte [ebp - 0xf]
mov eax, dword [ebp - 8]
mov byte [eax + ebp - 0x18], cl
jmp 0x46d7eb
cmp dword [ebp - 0x18], 0x646c6f47
jne 0x46d853
cmp dword [ebp - 0x14], 0x6f736e65
jne 0x46d853
xor eax, eax
mov al, byte [ebp - 0x10]
cmp eax, 0x66
jne 0x46d853
mov al, byte [ebp - 0xf]
mov ecx, dword [ebp + 0x10]
mov byte [ecx], al
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
push eax
call fcn.0046d92f
add esp, 4
cmp dword [ebp + 0xc], 0
je 0x46d84a
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov dword [ebp - 4], 0xa
jmp 0x46d863
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 4]
jmp 0x46d868
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46dbff
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call fcn.0046d287
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.0046d30f
add esp, 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.0046de2f
add esp, 8
cmp eax, 0xffffffff
je 0x46dc64
mov dword [ebp - 0x14], 1
jmp 0x46dc6b
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 0xc], 2
jne 0x46dc9b
cmp dword [ebp - 8], 0
je 0x46dc9b
cmp dword [ebp - 0x14], 0
je 0x46dc9b
push 0x49d630
mov eax, dword [ebp - 4]
push eax
call fcn.0046dcac
add esp, 8
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 8]
leave
ret 4

Function at 0x46de7d
Capabilities:
Contain obfuscated stackstrings
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], eax
push 2
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x46df52
cmp dword [ebp - 8], 0
jne 0x46df52
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov al, byte [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
push eax
call fcn.0046d92f
add esp, 4
mov dword [ebp - 0x41c], 0x646c6f47
mov dword [ebp - 0x418], 0x6f736e65
mov byte [ebp - 0x414], 0x66
mov dword [ebp - 0x1c], 0
jmp 0x46df0a
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 9
jge 0x46df2c
mov eax, dword [ebp - 0x1c]
movsx eax, byte [eax + ebp - 0x41c]
mov ecx, dword [ebp + 0xc]
xor al, byte [ecx]
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + ebp - 0x41c], al
jmp 0x46df07
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
mov byte [ebp - 0x413], al
push 0
lea eax, [ebp - 0x1c]
push eax
push 0xa
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x46df64
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x470ba8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0x14], esi
jle 0x470bda
push ebx
push edi
mov edi, dword [ebp + 8]
sub edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
push 4
pop ebx
lea ecx, [eax + esi]
mov eax, esi
cdq
idiv ebx
mov al, byte [edx + ebp + 0x10]
xor al, byte [ecx + edi]
inc esi
cmp esi, dword [ebp + 0x14]
mov byte [ecx], al
jl 0x470bbb
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x4019f7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push 7
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x2f]
mov byte [ebp - 0x30], bl
push 7
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x4f]
mov byte [ebp - 0x50], bl
rep stosd dword es:[edi], eax
push ebx
push ebx
stosw word es:[edi], ax
push ebx
push ebx
push str.Testing
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 1], bl
stosb byte es:[edi], al
call dword [0x40c674]
push ebx
push 0x80000000
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
push eax
call dword [0x40c628]
mov esi, eax
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x30]
push eax
push 0x13
push esi
call dword [0x40c650]
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x30]
push eax
push 0x13
push esi
call dword [0x40c650]
test eax, eax
je 0x401b4b
push 3
lea eax, [ebp - 0x30]
push 0x409ad8
push eax
call fcn.00403060
add esp, 0xc
test eax, eax
jne 0x401b46
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x50]
push eax
push 5
push esi
call dword [0x40c650]
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x50]
push eax
push 5
push esi
call dword [0x40c650]
test eax, eax
je 0x401b46
lea eax, [ebp - 0x50]
push eax
call fcn.00403051
pop ecx
push ebx
push 0x80
push 2
push ebx
push 1
push 0xc0000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401b46
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 1]
push 1
push eax
push esi
call dword [0x40c68c]
test eax, eax
je 0x401b1c
cmp dword [ebp - 8], ebx
je 0x401b1c
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 1]
push 1
push eax
push edi
call dword [0x40c62c]
jmp 0x401aee
push esi
call dword [0x40c630]
push dword [ebp - 0xc]
call dword [0x40c630]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 5
push dword [ebp + 0xc]
call dword [0x40c670]
pop edi
pop esi
pop ebx
leave
ret
push esi
call dword [0x40c630]
push dword [ebp - 0xc]
call dword [0x40c630]
push ebx
call fcn.00402ef1
Function at 0x401b61
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
push ebx
push esi
mov esi, 0x104
lea eax, [ebp - 0x158]
push esi
xor ebx, ebx
push eax
push ebx
call dword [0x40c66c]
test eax, eax
je 0x401cb3
lea eax, [ebp - 0x158]
push esi
push eax
lea eax, [ebp - 0x158]
push eax
call dword [0x40c634]
test eax, eax
je 0x401cb3
push edi
lea eax, [ebp - 0x360]
push esi
push eax
call dword [0x40c654]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x360]
push str.cmd.exe
push eax
call esi
lea eax, [ebp - 0x25c]
push str.__c__del
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x25c]
push eax
call esi
lea eax, [ebp - 0x25c]
push str.___nul
push eax
call esi
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x360]
push eax
call esi
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
stosd dword es:[edi], eax
push 1
mov dword [ebp - 0x54], 0x44
stosd dword es:[edi], eax
pop esi
mov word [ebp - 0x24], bx
push 0x100
mov dword [ebp - 0x28], esi
stosd dword es:[edi], eax
call dword [0x40c684]
push eax
call dword [0x40c658]
push 0xf
call dword [0x40c664]
push eax
call dword [0x40c63c]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push 0xc
push ebx
push ebx
lea eax, [ebp - 0x360]
push ebx
push eax
push ebx
call dword [0x40c680]
test eax, eax
pop edi
je 0x401c96
push 0x40
push dword [ebp - 0x10]
call dword [0x40c658]
push 0xfffffffffffffff1
push dword [ebp - 0xc]
call dword [0x40c63c]
push dword [ebp - 0xc]
call dword [0x40c640]
mov eax, esi
pop esi
pop ebx
leave
ret
push 0x20
call dword [0x40c684]
push eax
call dword [0x40c658]
push ebx
call dword [0x40c664]
push eax
call dword [0x40c63c]
push ebx
call fcn.00402ef1

Function at 0x401e32
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push edi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401e9c
push 2
push edi
push 0xffffffffffffffda
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp + 8]
push edi
push eax
push 0x26
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401e9c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call fcn.00402d30
cmp eax, 0x26
pop ecx
je 0x401e9c
push 0x26
push edi
push dword [ebp + 0xc]
call fcn.00402db0
add esp, 0xc
pop edi
pop esi
pop ebp
ret
Function at 0x401ea0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push esi
push 0x10000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401ef3
push 2
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x401ef3
lea eax, [ebp + 8]
push esi
push eax
push dword [ebp + 0xc]
call fcn.00402d30
pop ecx
push eax
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401ef7
xor eax, eax
jmp 0x401f01
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebp
ret

Function at 0x4021fd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and byte [ebp - 0x208], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x207]
and byte [ebp - 0x104], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, 0x104
lea eax, [ebp - 0x208]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x208]
push str.V3Medic.exe
push eax
call fcn.004030d0
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.00401e32
add esp, 0x10
lea eax, [ebp - 0x208]
push 0
push eax
push 0x40c694
call dword [0x40c678]
test eax, eax
je 0x4022f5
lea eax, [ebp - 0x104]
push eax
call fcn.00402d30
cmp eax, 0x26
pop ecx
jne 0x4022a7
lea eax, [ebp - 0x104]
push eax
call fcn.004020d4
pop ecx
push esi
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00402db0
lea eax, [ebp - 0x104]
push eax
call fcn.00401d03
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.00401ea0
lea eax, [ebp - 0x104]
push eax
call fcn.00401f05
add esp, 0x1c
test eax, eax
je 0x4022f5
lea eax, [ebp - 0x104]
push eax
call fcn.00401fdd
pop ecx
pop edi
pop esi
leave
ret
Function at 0x4024ee
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5710
call fcn.00402e10
and byte [ebp - 0x108], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
and byte [ebp - 0x20c], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x20b]
and byte [ebp - 0x5710], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x11ff
xor eax, eax
lea edi, [ebp - 0x570f]
and byte [ebp - 0xf10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x2ff
xor eax, eax
lea edi, [ebp - 0xf0f]
mov ebx, 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x20c]
push 5
push eax
call fcn.00401cb9
lea eax, [ebp - 0x108]
push eax
call fcn.00402d30
add esp, 0xc
cmp byte [ebp + eax - 0x108], 0x5c
je 0x4025ad
lea eax, [ebp - 0x108]
push eax
call fcn.00402d30
pop ecx
mov byte [ebp + eax - 0x107], 0x5c
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004030d0
lea eax, [ebp - 0x108]
push str..exe
push eax
call fcn.004030d0
xor esi, esi
push ebx
lea eax, [ebp - 0x310]
push esi
push eax
mov dword [ebp - 4], esi
call fcn.00402db0
mov edi, 0x4800
lea eax, [ebp - 0x5710]
push edi
push esi
push eax
call fcn.00402db0
mov eax, dword [0x40c65c]
add esp, 0x28
cmp dword [eax], esi
je 0x4026dc
push 9
push 2
call fcn.0040101d
push eax
lea eax, [ebp - 0x310]
push eax
mov eax, dword [0x40c65c]
push dword [esi + eax]
call fcn.00401074
lea eax, [ebp - 0x5710]
push edi
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.0040194a
add esp, 0x20
test eax, eax
je 0x4026a1
cmp dword [ebp - 4], 0
jne 0x402654
lea eax, [ebp - 0x5710]
push eax
call fcn.00402439
jmp 0x40266c
cmp dword [ebp - 4], 1
je 0x402660
cmp dword [ebp - 4], 2
jne 0x402671
lea eax, [ebp - 0x5710]
push eax
call fcn.004023a5
test eax, eax
pop ecx
je 0x4026a1
push 9
push 2
call fcn.0040101d
push eax
lea eax, [ebp - 0xf10]
push eax
lea eax, [ebp - 0x5710]
push eax
call fcn.00401074
lea eax, [ebp - 0xf10]
push eax
call fcn.004024cb
add esp, 0x18
test eax, eax
jne 0x4026dc
inc dword [ebp - 4]
push ebx
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.00402db0
push edi
lea eax, [ebp - 0x5710]
push 0
push eax
call fcn.00402db0
mov eax, dword [ebp - 4]
add esp, 0x18
mov esi, eax
mov eax, dword [0x40c65c]
shl esi, 2
cmp dword [esi + eax], 0
jne 0x402607
call fcn.0040233d
mov edi, eax
lea eax, [ebp - 0x5710]
push eax
call fcn.00402d30
cmp eax, 0x15
pop ecx
jb 0x402747
lea eax, [ebp - 0x5710]
push eax
call fcn.004023a1
test eax, eax
pop ecx
je 0x402747
lea eax, [ebp - 0xf10]
push 0x3a
push eax
call fcn.00403240
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x402747
and byte [esi], 0
lea eax, [ebp - 0xf10]
push eax
call fcn.00403051
cmp edi, eax
pop ecx
je 0x402747
push eax
call fcn.004022f9
lea eax, [ebp - 0x108]
inc esi
push eax
push esi
call fcn.004019f7
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40274c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5710
call fcn.00402e10
and byte [ebp - 0x108], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
and byte [ebp - 0x20c], 0
push 0x40
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x20b]
and byte [ebp - 0x5710], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x11ff
xor eax, eax
lea edi, [ebp - 0x570f]
and byte [ebp - 0xf10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x2ff
xor eax, eax
lea edi, [ebp - 0xf0f]
mov ebx, 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x20c]
push 5
push eax
call fcn.00401cb9
lea eax, [ebp - 0x108]
push eax
call fcn.00402d30
add esp, 0xc
cmp byte [ebp + eax - 0x108], 0x5c
je 0x40280b
lea eax, [ebp - 0x108]
push eax
call fcn.00402d30
pop ecx
mov byte [ebp + eax - 0x107], 0x5c
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004030d0
lea eax, [ebp - 0x108]
push str..exe
push eax
call fcn.004030d0
xor esi, esi
push ebx
lea eax, [ebp - 0x310]
push esi
push eax
mov dword [ebp - 4], esi
call fcn.00402db0
mov edi, 0x4800
lea eax, [ebp - 0x5710]
push edi
push esi
push eax
call fcn.00402db0
add esp, 0x28
cmp dword [str.AC0B0B03C96D6DA4A0ADA1680EA6A8AF68AEADAA68AEA86D0E6DA4A0ADA18DA4C3C2A7AECEC6A2C3CFC3CFC702A4A668AC0BAAA0], esi
je 0x402939
mov esi, 0x409130
push 9
push 2
call fcn.0040101d
push eax
lea eax, [ebp - 0x310]
push eax
push dword [esi]
call fcn.00401074
lea eax, [ebp - 0x5710]
push edi
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.0040194a
add esp, 0x20
test eax, eax
je 0x4028fd
cmp dword [ebp - 4], 0
jne 0x4028b0
lea eax, [ebp - 0x5710]
push eax
call fcn.00402439
jmp 0x4028c8
cmp dword [ebp - 4], 1
je 0x4028bc
cmp dword [ebp - 4], 2
jne 0x4028cd
lea eax, [ebp - 0x5710]
push eax
call fcn.004023a5
test eax, eax
pop ecx
je 0x4028fd
push 9
push 2
call fcn.0040101d
push eax
lea eax, [ebp - 0xf10]
push eax
lea eax, [ebp - 0x5710]
push eax
call fcn.00401074
lea eax, [ebp - 0xf10]
push eax
call fcn.004024cb
add esp, 0x18
test eax, eax
jne 0x402939
inc dword [ebp - 4]
push ebx
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.00402db0
push edi
lea eax, [ebp - 0x5710]
push 0
push eax
call fcn.00402db0
mov eax, dword [ebp - 4]
add esp, 0x18
cmp dword [eax*4 + 0x409130], 0
lea esi, [eax*4 + 0x409130]
jne 0x402869
call fcn.0040233d
mov edi, eax
lea eax, [ebp - 0x5710]
push eax
call fcn.00402d30
cmp eax, 0x15
pop ecx
jb 0x4029a4
lea eax, [ebp - 0x5710]
push eax
call fcn.004023a1
test eax, eax
pop ecx
je 0x4029a4
lea eax, [ebp - 0xf10]
push 0x3a
push eax
call fcn.00403240
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x4029a4
and byte [esi], 0
lea eax, [ebp - 0xf10]
push eax
call fcn.00403051
cmp edi, eax
pop ecx
je 0x4029a4
push eax
call fcn.004022f9
lea eax, [ebp - 0x108]
inc esi
push eax
push esi
call fcn.004019f7
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402ad9
Capabilities:
Create process on windows
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
call fcn.00401141
call fcn.00402a32
call fcn.00402a6a
test eax, eax
mov dword [0x40c65c], 0x409030
jne 0x402b09
mov dword [0x40c65c], 0x4090b0
lea eax, [ebp - 0x25c]
push ebx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x360]
push str._s_ver.exe
push eax
call fcn.004032fc
add esp, 0xc
xor ebx, ebx
lea eax, [ebp - 0x360]
push 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
call fcn.00401e1a
test eax, eax
jne 0x402b68
call fcn.004021fd
call fcn.004029a9
call fcn.00401b61
xor eax, eax
jmp 0x402c27
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x402be1
push str.start
push dword [ebp + 0x10]
call fcn.004031b0
pop ecx
test eax, eax
pop ecx
je 0x402be1
push edi
call fcn.00402a0a
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x157]
mov byte [ebp - 0x158], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x158]
push eax
push 0x40c694
call fcn.00401e32
lea eax, [ebp - 0x158]
push eax
call fcn.00402d30
add esp, 0xc
cmp eax, 0x26
pop edi
jne 0x402bd7
lea eax, [ebp - 0x158]
push eax
call fcn.00401fdd
pop ecx
call fcn.004029a9
push 1
pop eax
jmp 0x402c27
push esi
push 0x44
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.00402db0
mov esi, 0x40c694
push str.__start
push esi
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], 5
call fcn.004030d0
add esp, 0x14
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
xor eax, eax
pop esi
pop ebx
leave
ret 0x10