joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439d20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov edi, dword [ebp + 8]
movzx eax, word [edi]
mov dword [esp + 0x28], 0xb04fbf5
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xb
ja 0x439db1
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x28]
mov esi, ecx
and esi, 0xd70c3d5
xor ecx, 0x8d70c3d5
lea ecx, [ecx + esi*2]
lea esi, [ecx + edx]
and ecx, edx
add ecx, ecx
sub esi, ecx
mov dword [esp + 0x18], esi
mov ecx, dword [esp + 0x18]
mov edx, ecx
xor edx, 0x2c
and ecx, 0x2c
lea ecx, [edx + ecx*2]
inc cl
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x28], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0xc
jb 0x439d60
xor ecx, ecx
cmp dword [esp + 0x28], eax
setne cl
xor eax, eax
jmp dword [ecx*4 + 0x445968]
mov ebx, dword [edi + 0x3c]
mov ecx, dword [edi + ebx]
mov dword [esp + 0x28], 0xd3d09e66
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov word [esp + 0x34], 0
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
cmp edx, 0xd
ja 0x439e47
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp + 4]
mov esi, dword [esp + 4]
movzx esi, byte [esp + esi + 0x28]
mov edi, edx
and edi, 0xde137f63
xor edx, 0xde137f63
lea edx, [edx + edi*2]
lea edi, [edx + esi]
and edx, esi
add edx, edx
sub edi, edx
mov dword [esp + 0x18], edi
mov edx, dword [esp + 0x18]
add dl, 0x4b
mov esi, dword [esp + 4]
mov byte [esp + esi + 0x28], dl
inc dword [esp + 4]
mov edx, dword [esp + 4]
cmp edx, 0xe
jb 0x439e00
xor edx, edx
cmp ecx, dword [esp + 0x28]
setne dl
xor eax, eax
mov esi, dword [ebp + 8]
jmp dword [edx*4 + 0x445970]
mov ecx, dword [case.0x439e55.5]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp ecx
xor ecx, ecx
cmp dword [esi + ebx + 0x7c], 0
sete cl
xor eax, eax
jmp dword [ecx*4 + 0x445988]
mov ecx, dword [esi + ebx + 0x78]
xor edx, edx
test ecx, ecx
sete dl
xor eax, eax
jmp dword [edx*4 + 0x445990]
mov eax, dword [esi + ecx + 0x20]
add eax, esi
mov dword [esp + 0x48], eax
mov eax, dword [esi + ecx + 0x24]
add eax, esi
mov dword [esp + 0x20], eax
mov eax, dword [esi + ecx + 0x1c]
add eax, esi
mov dword [esp + 0x1c], eax
mov edx, esi
mov ebx, dword [0x44776c]
xor eax, eax
test ebx, ebx
sete al
jmp dword [eax*4 + 0x445998]
mov edi, dword [0x447768]
mov dword [esp + 0xc], ecx
mov eax, dword [edx + ecx + 0x18]
add eax, edi
mov ecx, 0xffffffff
cmp eax, 0x20000000
jae 0x439eee
shl eax, 3
mov ecx, eax
push ecx
call fcn.00408f00
add esp, 4
mov esi, eax
mov eax, dword [0x4459ac]
nop
nop
jmp eax
mov ebx, ecx
mov eax, dword [edx + ecx + 0x18]
mov ecx, 0xffffffff
cmp eax, 0x20000000
mov edi, edx
jae 0x439fb8
shl eax, 3
mov ecx, eax
push ecx
call fcn.00408f00
add esp, 4
mov esi, eax
mov ecx, ebx
mov dword [0x44776c], esi
mov eax, dword [0x4459c0]
jmp eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401c31
Capabilities:
Clear file content
Get common file path

Disassembly:
sub esp, 0x400
push esi
xor esi, esi
cmp dword [0x2457374], 0x400
push edi
jne 0x401c84
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_DrawStateW]
push esi
call fcn.004041a1
push esi
call fcn.00404928
push esi
push esi
call fcn.00404773
push esi
call fcn.004049de
push esi
push esi
call fcn.004041db
add esp, 0x1c
xor edi, edi
cmp edi, 0x16c76
jge 0x401c96
push esi
push esi
call dword [sym.imp.USER32.dll_SetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp edi, 0x12e5c52
jg 0x401cbc
inc edi
cmp edi, 0x3003f
jl 0x401c86
mov eax, dword [0x439b7c]
mov dword [0x2457374], eax
call fcn.0040192c
mov edi, 0x3078f
cmp dword [0x2457374], 0x51f
jne 0x401ce8
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
dec edi
jne 0x401cd0
pop edi
xor eax, eax
pop esi
add esp, 0x400
ret 0x10

Function at 0x4027bb
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x4326fd
call fcn.00432580
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00403491
xor edi, edi
push 4
mov dword [ebp - 4], edi
call fcn.004049ed
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x402803
call fcn.00403245
mov dword [ebx], eax
call fcn.00403004
mov ecx, eax
call fcn.004011a5
mov eax, ebx
jmp 0x402805
xor eax, eax
mov dword [esi + 0x38], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x24], ecx
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x2c]
mov dword [esi + 0x34], ecx
mov dword [eax], edi
mov eax, dword [esi + 0x24]
mov dword [eax], edi
mov eax, dword [esi + 0x34]
mov dword [eax], edi
mov eax, dword [esi + 0x10]
mov dword [eax], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov eax, dword [esi + 0x30]
mov dword [eax], edi
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
pop edi
mov dword [esi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x405075
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43899c]
jne 0x40507f
repz ret
jmp fcn.0040b92c
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
nop
mov ecx, 0x11524e7c
nop
nop
nop
nop
test eax, eax
je 0x43104e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x7ce66531
nop
nop
nop
test eax, eax
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x1013680
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
or ebp, 0xffffffff
jmp 0x10136a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10136a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1013698
mov eax, 1
add ebx, ebx
jne 0x10136bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10136b0
jne 0x10136cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10136b0
xor ecx, ecx
sub eax, 3
jb 0x10136e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1013752
mov ebp, eax
add ebx, ebx
jne 0x10136eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10136f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x101371c
inc ecx
add ebx, ebx
jne 0x1013708
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10136fd
jne 0x1013719
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10136fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x101373c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x101372d
jmp 0x101369e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x101373c
add edi, ecx
jmp 0x101369e
pop esi
mov edi, esi
mov ecx, 0x1fc
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x101375a
cmp byte [edi], 7
jne 0x101375a
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 al, bl
loop 0x101375f
lea edi, [esi + 0x11000]
mov eax, dword [edi]
or eax, eax
je 0x10137d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x13510]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1359c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x101378c
mov ecx, edi
jns 0x10137bb
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 + 0x135a0]
or eax, eax
je 0x10137d1
mov dword [ebx], eax
add ebx, 4
jmp 0x10137a9
call dword [esi + 0x135b0]
mov ebp, dword [esi + 0x135a4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x101380b
sub esp, 0xffffff80
jmp 0x100645c
Function at 0x40184c
Capabilities:
Read .ini file

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x401268
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x401910
push edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ebp
mov ebp, dword [esp + 0x14]
push ebx
push ebp
mov edi, 0x401128
push eax
mov ebx, 0x401118
push edi
push ebx
call esi
push eax
push edi
mov edi, 0x40110c
push edi
push dword [esp + 0x1c]
call fcn.00402f64
push ebp
push 0
push 0x401134
push ebx
call esi
push eax
push 0x401134
push edi
push dword [esp + 0x1c]
call fcn.00402f64
push ebp
push 0
push 0x40113c
push ebx
call esi
push eax
push 0x40113c
push edi
push dword [esp + 0x1c]
call fcn.00402f64
push ebp
push 0
push 0x401144
push ebx
call esi
push eax
push 0x401144
push edi
push dword [esp + 0x1c]
call fcn.00402f64
push ebp
mov ebp, 0x401154
push 0
push ebp
push ebx
call esi
push eax
push ebp
push edi
push dword [esp + 0x1c]
call fcn.00402f64
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop ebp
pop esi
pop edi
pop ecx
ret 4

Function at 0x40198c
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
cmp byte [eax], 0x2a
jne 0x4019a4
push 1
inc eax
pop esi
lea ecx, [ebp - 0x104]
push 0x104
push ecx
push 1
push eax
call dword [sym.imp.SHELL32.dll_Ordinal_58]
cmp byte [ebp - 0x104], 0
je 0x4019f2
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x208]
test esi, esi
push eax
je 0x4019ec
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4019f2
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
leave
ret 8
Function at 0x4019f7
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
cmp dword [ebp + 0x14], 0
push ebx
push esi
mov esi, dword [sym.imp.SHELL32.dll_Ordinal_58]
push edi
mov edi, 0x104
je 0x401aac
lea eax, [ebp - 0x208]
push edi
push eax
push 1
push dword [ebp + 0x10]
call esi
cmp byte [ebp - 0x208], 0
je 0x401aac
push dword [ebp + 0xc]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x30c]
push dword [ebp + 8]
push eax
call ebx
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push dword [ebp + 8]
push eax
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileA]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x30c]
push eax
call ebx
test eax, eax
jne 0x401abf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401abf
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x401abf
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x30c]
push eax
call ebx
test eax, eax
jne 0x401abf
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401abf
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x208]
push edi
push eax
push 2
push dword [ebp + 0x10]
call esi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.COMCTL32.dll_Ordinal_357]
test eax, eax
je 0x401aed
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x401af4
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401c79
and dword [ebp - 0x18], eax
push esi
mov esi, 0x104
lea eax, [ebp - 0x340]
push esi
push eax
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x401c61
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push ebx
push 0xd
pop ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x340]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401c40
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], esi
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x340]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x401c37
cmp byte [ebp - 0x138], al
je 0x401c37
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.SHELL32.dll_IsLFNDrive]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], eax
push ecx
lea ecx, [ebp - 0x23c]
push ecx
lea ecx, [ebp - 0x1c]
xor eax, eax
push ecx
lea ecx, [ebp - 8]
push eax
push ecx
lea ecx, [ebp - 0x34]
push ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], esi
push eax
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x401c37
cmp byte [ebp - 0x34], al
je 0x401c10
cmp dword [ebp - 0x1c], 1
jne 0x401c10
cmp dword [ebp + 0xc], eax
je 0x401bf6
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.0040198c
jmp 0x401c10
push dword [ebp - 0x24]
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.004019f7
lea eax, [ebp - 0x14]
inc dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push 0
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 8], ebx
push eax
mov dword [ebp - 0x14], esi
push dword [ebp - 0xc]
jmp 0x401bc8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0x18]
lea eax, [ebp - 0x340]
push esi
push eax
push dword [ebp - 0x18]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x401b46
pop ebx
pop edi
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 8
Function at 0x401c99
Capabilities:
Delete registry key
Get common file path
Move file
Persist via lnk shortcut
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push 0x618
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 4], eax
je 0x401e25
add eax, 0x104
push edi
push esi
push ebx
lea esi, [eax + 0x104]
push 1
push 2
push esi
lea edi, [esi + 0x104]
push 0
mov dword [ebp - 8], eax
mov dword [ebp - 0x28], esi
lea ebx, [edi + 0x104]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push esi
call dword [sym.imp.SHELL32.dll_IsLFNDrive]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x20]
push eax
push 0x401210
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401e19
lea ecx, [ebp - 0x10]
mov esi, 0x104
push ecx
lea ecx, [ebp - 0x24]
push ebx
push ecx
lea ecx, [ebp - 0x14]
push eax
push ecx
push edi
push eax
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x20]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0x208
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x401e00
mov edi, dword [sym.imp.SHELL32.dll_Ordinal_58]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov eax, dword [ebp - 0x18]
cmp byte [eax], 0
je 0x401dcb
cmp dword [ebp - 0x24], 1
jne 0x401dcb
push dword [ebp - 0x28]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
push dword [ebp - 4]
push 1
push dword [ebp - 0xc]
call edi
push dword [ebp - 4]
push dword [ebp - 8]
call ebx
cmp dword [ebp - 0x2c], 0
je 0x401da5
push dword [ebp - 0x18]
push dword [ebp - 8]
call ebx
push 0x40129c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
push dword [ebp - 4]
push 2
push dword [ebp - 0xc]
call edi
jmp 0x401dbf
push esi
push dword [ebp - 4]
push 2
push dword [ebp - 0xc]
call edi
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
push dword [ebp - 8]
call ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea eax, [ebp - 0x10]
inc dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push dword [ebp - 0xc]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0x208
push eax
lea eax, [ebp - 0x14]
push 0
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x401d4f
push 0x401210
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x401e27
Capabilities:
Check if file exists
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.SHELL32.dll_ILCombine]
mov ebx, eax
test ebx, ebx
je 0x401f64
mov esi, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [ebp - 0x104]
push eax
push ebx
call esi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x18]
call esi
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ecx]
dec eax
je 0x401e8c
dec eax
jne 0x401f64
add ecx, 4
push 0x100
push ecx
jmp 0x401e98
mov eax, dword [ecx + 4]
push 0x100
add eax, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x208]
push 0x40129c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.SHELL32.dll_PathCleanupSpec
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
test eax, eax
je 0x401f5d
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x401f5d
mov esi, dword [ebp + 8]
push ebx
push esi
mov eax, dword [esi]
call dword [eax + 0x14]
mov eax, dword [esi]
mov edi, 0x401044
push edi
push esi
call dword [eax + 0x2c]
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0x24]
mov eax, dword [esi]
push 0
push edi
push esi
call dword [eax + 0x44]
mov eax, dword [esi]
push 0
push esi
call dword [eax + 0x34]
mov eax, dword [esi]
push 1
push esi
call dword [eax + 0x3c]
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0x1c]
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.SHELL32.dll_Ordinal_163]
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x410]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
push ebx
call dword [sym.imp.SHELL32.dll_ILFree]
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x402450
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x304
push ebx
push esi
push edi
mov edi, 0x104
lea eax, [ebp - 0x104]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov ebx, dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x401360
push ebx
call esi
test eax, eax
je 0x40261a
push 0x40135c
push ebx
call esi
test eax, eax
je 0x40261a
push 0x401358
push ebx
call esi
test eax, eax
je 0x4025dc
push 0x401354
push ebx
call esi
test eax, eax
je 0x4025dc
push 0x401350
push ebx
call esi
test eax, eax
je 0x4025aa
push 0x40134c
push ebx
call esi
test eax, eax
je 0x4025aa
push 0x401348
push ebx
call esi
test eax, eax
je 0x402596
push 0x401344
push ebx
call esi
test eax, eax
je 0x402596
push 0x401340
push ebx
call esi
test eax, eax
je 0x40256a
push 0x40133c
push ebx
call esi
test eax, eax
je 0x40256a
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp byte [esi], bl
je 0x402540
call fcn.004027db
push 6
push esi
push ebx
call fcn.00404372
call fcn.004027e6
pop edi
pop esi
pop ebx
leave
ret 8
push 0x7f02
push ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov esi, dword [sym.imp.USER32.dll_SetCursor]
push eax
call esi
push 0x4011d0
mov edi, eax
call fcn.00401c7d
push 1
call fcn.00401924
jmp 0x402592
xor ebx, ebx
push 0x7f02
push ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov esi, dword [sym.imp.USER32.dll_SetCursor]
push eax
call esi
push 0x4011d0
mov edi, eax
call fcn.00401c7d
call fcn.004056f9
push ebx
push ebx
jmp 0x40260d
call fcn.0040196c
push 1
push 0x401084
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x402539
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov esi, dword [sym.imp.USER32.dll_SetCursor]
push eax
call esi
push 0x4011d0
mov edi, eax
call fcn.00401c7d
push 1
call fcn.00401924
call fcn.004056f9
push 1
jmp 0x40260b
xor ebx, ebx
push 0x7f02
push ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov esi, dword [sym.imp.USER32.dll_SetCursor]
push eax
call esi
push 0x4011d0
mov edi, eax
call fcn.00401c7d
push ebx
call fcn.00401924
call fcn.004056f9
push ebx
push 1
call fcn.004023b8
push edi
call esi
jmp 0x402539
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
mov ebx, 0x100
lea eax, [ebp - 0x204]
push ebx
push eax
push 0xc8
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x204]
push eax
call fcn.00402cb0
lea eax, [ebp - 0x304]
push ebx
push eax
push 0xc9
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x304]
mov esi, dword [sym.imp.SHELL32.dll_GetFileNameFromBrowse]
push eax
lea eax, [ebp - 0x204]
push eax
xor ebx, ebx
push section..text
push ebx
lea eax, [ebp - 0x104]
push edi
push eax
push ebx
call esi
test eax, eax
je 0x402539
call fcn.004027db
lea eax, [ebp - 0x104]
push 7
push eax
push ebx
call fcn.00404372
call fcn.004027e6
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x204]
push eax
push section..text
push ebx
lea eax, [ebp - 0x104]
push edi
push eax
push ebx
jmp 0x40267a