joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403528
Capabilities:
Create directory

Disassembly:
push esi
push 0x104
mov esi, ecx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40355b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_obtain_module_filename_when_attempting_to_use_a_secure_updater_path.____d_
call fcn.00401034
push eax
call fcn.004049ba
add esp, 0xc
xor eax, eax
pop esi
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x403574
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Couldnt_remove_file_spec_when_attempting_to_use_a_secure_updater_path.____d_
jmp 0x403549
mov edx, str.update
mov ecx, esi
call fcn.00404dd1
test eax, eax
jne 0x403592
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Couldnt_append_file_spec_when_attempting_to_use_a_secure_updater_path.____d_
jmp 0x403549
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, str.updater.exe
mov ecx, esi
call fcn.00404dd1
test eax, eax
je 0x403584
xor eax, eax
inc eax
pop esi
ret

Function at 0x4035b0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x427014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
xor eax, eax
push esi
mov esi, eax
cmp word [ebx], ax
je 0x403672
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x40360a
call edi
cmp eax, 3
je 0x40360a
call edi
cmp eax, 2
je 0x40360a
push ebx
push str.Could_not_delete_service_updater_path:__ls.
call fcn.00401034
push eax
call fcn.004049ba
add esp, 0xc
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00406850
push str.updater.ini
mov edx, ebx
lea ecx, [ebp - 0x210]
call fcn.00404b2d
add esp, 0x10
test eax, eax
je 0x403671
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x403671
call edi
cmp eax, 3
je 0x403671
call edi
cmp eax, 2
je 0x403671
lea eax, [ebp - 0x210]
push eax
push str.Could_not_delete_service_updater_INI_path:__ls.
call fcn.00401034
push eax
call fcn.004049ba
add esp, 0xc
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004053c9
mov esp, ebp
pop ebp
ret
Function at 0x404080
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
xor eax, eax
push edi
push 0xf0000000
push 1
push eax
push eax
mov dword [ebp - 8], eax
mov edi, edx
mov dword [ebp - 4], eax
mov ebx, ecx
lea eax, [ebp - 8]
push eax
call esi
test eax, eax
jne 0x4040d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
je 0x4040c2
xor eax, eax
jmp 0x404171
push 0xf0000008
push 1
push 0
push 0
lea eax, [ebp - 8]
push eax
call esi
test eax, eax
je 0x4040bb
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push esi
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4040bb
push esi
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4040bb
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 4
pop ecx
push esi
push eax
push edi
push ecx
push dword [ebp - 4]
mov dword [ebp - 0xc], ecx
call ebx
test eax, eax
je 0x4040bb
push dword [edi]
call fcn.00405861
push dword [edi]
mov esi, eax
mov eax, dword [ebp + 8]
push 0
push esi
mov dword [eax], esi
call fcn.00406850
add esp, 0x10
push 0
push edi
push esi
push 2
push dword [ebp - 4]
call ebx
test eax, eax
je 0x4040bb
cmp dword [ebp - 4], 0
je 0x40415d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], 0
je 0x40416e
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40434c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push 0x424c9c
push ecx
call fcn.0040b31b
mov esi, eax
mov dword [ebp - 0x18], esi
pop ecx
pop ecx
test esi, esi
je 0x4044fa
push 2
push 0
push esi
call fcn.0040b23f
add esp, 0xc
test eax, eax
jne 0x4044fa
push esi
call fcn.0040ae84
mov ebx, eax
pop ecx
test ebx, ebx
jle 0x4044fa
lea ecx, [ebx + 1]
push edi
push ecx
call fcn.00405861
mov edi, eax
pop ecx
test edi, edi
jne 0x4043a9
push 0xa
jmp 0x4043cd
push 0
push 0
push esi
call fcn.0040b23f
add esp, 0xc
test eax, eax
jne 0x4043cb
push esi
push ebx
push 1
push edi
call fcn.0040b50c
add esp, 0x10
cmp eax, ebx
je 0x4043d3
push 6
pop ebx
jmp 0x4044f0
mov byte [edi + ebx], 0
lea edx, [ebp - 0x14]
xor ebx, ebx
mov dword [ebp - 0x14], edi
mov ecx, 0x424cb4
mov byte [ebp - 1], 0
mov dword [ebp - 0x10], ebx
call fcn.00404298
test eax, eax
je 0x4044e8
mov esi, dword [ebp + 0xc]
mov cl, byte [eax]
cmp cl, 0x23
je 0x4044d0
cmp cl, 0x3b
je 0x4044d0
mov edx, eax
mov ecx, 0x424cb0
call fcn.00404270
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov cl, byte [eax]
test cl, cl
je 0x4044d0
cmp cl, 0x5b
jne 0x404481
inc eax
lea edx, [ebp - 8]
mov ecx, 0x424cac
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call fcn.00404298
test eax, eax
je 0x40447b
lea edx, [ebp - 8]
mov ecx, 0x424cb0
call fcn.00404298
test eax, eax
jne 0x40447b
mov edx, dword [ebp - 0xc]
xor ecx, ecx
movzx eax, byte [edx + ecx]
mov ebx, str.Strings
cmp al, byte [ebx + ecx]
mov ebx, dword [ebp - 0x10]
jne 0x40447b
inc ecx
cmp ecx, 8
jne 0x40445e
mov byte [ebp - 1], 1
jmp 0x4044d0
mov byte [ebp - 1], 0
jmp 0x4044d0
cmp byte [ebp - 1], 0
je 0x4044d0
lea edx, [ebp - 8]
mov ecx, 0x424cb8
call fcn.00404298
test eax, eax
je 0x4044d0
mov edx, dword [ebp - 0xc]
call fcn.004042f2
test eax, eax
js 0x4044d0
cmp eax, 1
jae 0x4044d0
imul ebx, eax, 0x258
push 0x257
push dword [ebp - 8]
add ebx, esi
push ebx
call fcn.0040a010
mov byte [ebx + 0x257], 0
add esp, 0xc
mov ebx, dword [ebp - 0x10]
inc ebx
mov dword [ebp - 0x10], ebx
lea edx, [ebp - 0x14]
mov ecx, 0x424cb4
call fcn.00404298
test eax, eax
jne 0x4043fb
mov esi, dword [ebp - 0x18]
dec ebx
neg ebx
sbb ebx, ebx
and ebx, 5
push edi
call fcn.00405894
pop ecx
pop edi
jmp 0x4044fd
push 6
pop ebx
test esi, esi
je 0x404508
push esi
call fcn.0040af05
pop ecx
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4048da
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x40493e
push ebx
push dword [ebp + 0xc]
lea ebx, [esi + 0x20c]
push dword [ebp + 8]
push str._s__s
push 0x104
push ebx
call fcn.00402aa3
add esp, 0x14
dec eax
cmp eax, 0x102
ja 0x40493d
push edi
lea edi, [esi + 4]
push edi
push 0
push 0x425338
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x40493c
push 0x425340
push edi
call fcn.0040b31b
pop ecx
pop ecx
push ebx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop ebx
pop esi
pop ebp
ret 8

Function at 0x404943
Capabilities:
Delete file
Move file

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x404980
push edi
push dword [esi]
call fcn.0040af05
and dword [esi], 0
lea edi, [esi + 0x20c]
push 0
push edi
call fcn.0040b63d
add esp, 0xc
test eax, eax
lea eax, [esi + 4]
jne 0x404977
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40497f
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
pop edi
pop esi
ret
Function at 0x404bb6
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x514
mov eax, dword [0x427014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
xor edi, edi
mov dword [ebp - 0x4b4], ecx
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x404bee
xor eax, eax
jmp 0x404dc0
push 0xf01ff
push str.MozillaMaintenance
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
push esi
test ebx, ebx
jne 0x404c0e
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x404be7
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
lea eax, [ebp - 0x4ac]
push eax
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x404c3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x404c3a
push ebx
call esi
jmp 0x404be7
mov esi, dword [ebp - 0x4ac]
push esi
call fcn.00405861
push esi
mov esi, eax
mov dword [ebp - 0x4b0], eax
push edi
push esi
call fcn.00406850
add esp, 0x10
lea eax, [ebp - 0x4ac]
push eax
push dword [ebp - 0x4ac]
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
push ebx
test eax, eax
jne 0x404c7e
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x404db3
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [esi + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
mov ebx, 0x20a
lea eax, [ebp - 0x4a8]
push ebx
push edi
push eax
call fcn.00406850
mov edx, dword [esi + 0xc]
lea ecx, [ebp - 0x4a8]
push str.maintenanceservice_tmp.exe
call fcn.00404b2d
add esp, 0x10
test eax, eax
je 0x404db3
push ebx
lea eax, [ebp - 0x298]
push edi
push eax
call fcn.00406850
mov ebx, dword [ebp - 0x4b4]
lea eax, [ebp - 0x298]
push 0x104
push ebx
push eax
call fcn.00407187
add esp, 0x18
lea ecx, [ebp - 0x298]
mov edx, 0x4230b4
call fcn.00404dd1
push edi
lea eax, [ebp - 0x4a8]
push eax
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x404db3
push 0x40
lea eax, [ebp - 0x50c]
push edi
push eax
call fcn.00406850
push 0x80
lea eax, [ebp - 0x88]
mov dword [ebp - 0x510], 0x44
xorps xmm0, xmm0
mov dword [ebp - 0x508], 0x423c48
push edi
push eax
movups xmmword [ebp - 0x4c4], xmm0
call fcn.00406850
push 0x3f
lea eax, [ebp - 0x88]
push str.dummyparam.exe_upgrade
push eax
call fcn.00407187
add esp, 0x24
lea eax, [ebp - 0x4c4]
push eax
lea eax, [ebp - 0x510]
push eax
push ebx
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x4a8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x404db3
push dword [ebp - 0x4c4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x4c0]
call esi
mov esi, dword [ebp - 0x4b0]
test esi, esi
je 0x404dbe
push esi
call fcn.00405894
pop ecx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004053c9
mov esp, ebp
pop ebp
ret
Function at 0x404e25
Capabilities:
Get common file path
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov eax, dword [0x427014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x20a
xor edi, edi
lea eax, [ebp - 0x43c]
mov ebx, ecx
mov esi, edx
push edi
push eax
mov dword [ebp - 0x444], ebx
call fcn.00406850
add esp, 0xc
lea eax, [ebp - 0x43c]
push eax
push edi
push 0x425390
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x404f45
push edi
push edi
push 2
push edi
push edi
push 0x40000000
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404f45
push esi
lea eax, [ebp - 0x24]
push str.failed:__d
push eax
call fcn.00404afb
lea edi, [ebp - 0x24]
add esp, 0xc
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x404eb3
push 0
lea eax, [ebp - 0x440]
sub edi, ecx
push eax
push edi
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x404f45
cmp dword [ebp - 0x440], edi
jne 0x404f45
push 0x20a
lea eax, [ebp - 0x230]
push 0
push eax
call fcn.00406850
push 0x104
push dword [ebp - 0x444]
lea eax, [ebp - 0x230]
push eax
call fcn.00407187
add esp, 0x18
lea ecx, [ebp - 0x230]
mov edx, str.update.status
call fcn.00404dd1
test eax, eax
je 0x404f45
push 1
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
neg eax
sbb eax, eax
neg eax
jmp 0x404f47
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004053c9
mov esp, ebp
pop ebp
ret
Function at 0x404f58
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x427014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 5
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x404fa7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp ecx, 5
je 0x404f9d
xor eax, eax
cmp ecx, 0x429
setne al
add eax, 0xfe
jmp 0x405096
mov eax, 0xfd
jmp 0x405096
push esi
push 4
push str.MozillaMaintenance
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x405014
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
sub esi, 5
je 0x40500a
sub esi, 1
je 0x405000
sub esi, 0x75
je 0x404ff6
sub esi, 0x3a9
je 0x404fec
mov eax, 0xef
jmp 0x405095
mov eax, 0xee
jmp 0x405095
mov eax, 0xed
jmp 0x405095
mov eax, 0xec
jmp 0x405095
mov eax, 0xeb
jmp 0x405095
push edi
xor edi, edi
mov dword [ebp - 0x24], 0xcf
mov dword [ebp - 0x2c], edi
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x405062
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7c
jbe 0x4050b3
cmp eax, 0x41c
je 0x405058
cmp eax, 0x424
jbe 0x4050c9
cmp eax, 0x426
ja 0x4050a5
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x405075
mov edi, dword [ebp - 0x24]
cmp edi, 1
je 0x405086
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [ebp - 0x2c]
add edi, 0x32
mov dword [ebp - 0x2c], edi
cmp edi, 0x7530
jb 0x405021
mov edi, dword [ebp - 0x24]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004053c9
mov esp, ebp
pop ebp
ret
cmp eax, 0x45b
jne 0x4050c9
mov edi, 0xde
jmp 0x4050ce
je 0x4050ef
sub eax, 5
je 0x4050e8
sub eax, 1
je 0x4050e1
sub eax, 0x51
je 0x4050da
sub eax, 0x23
je 0x4050d3
mov edi, 0xdf
mov dword [ebp - 0x24], edi
jmp 0x405086
mov edi, 0xdb
jmp 0x4050ce
mov edi, 0xdc
jmp 0x4050ce
mov edi, 0xd9
jmp 0x4050ce
mov edi, 0xda
jmp 0x4050ce
mov edi, 0xdd
jmp 0x4050ce
Function at 0x4050f6
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x427014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405125
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x405182
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x40514b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x405179
lea eax, [ebp - 0x20c]
push eax
push 0x4230b4
call fcn.0040ce61
pop ecx
pop ecx
test eax, eax
je 0x405179
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40514b
mov edi, 0x490
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004053c9
mov esp, ebp
pop ebp
ret

Function at 0x41073b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041005e

Function at 0x410746
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004102a5

Function at 0x411c83
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00411b00
Function at 0x4022c0
Capabilities:
Create process on windows
Self delete
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x56c050]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
call fcn.0040cf2f
push 0
push dword [eax]
push 5
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
call fcn.0040cf2f
push dword [eax]
lea eax, [ebp - 0x114]
push str._c_del__q__s
push eax
call fcn.00401240
push 0x200
lea eax, [ebp - 0x314]
push 0
push eax
call fcn.00407a60
lea eax, [ebp - 0x114]
add esp, 0x18
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402340
push 0x100
sub eax, edx
lea ecx, [ebp - 0x314]
push ecx
inc eax
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
lea eax, [ebp - 0x314]
push eax
push str.cmd.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402dc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x402ea6
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x402e95
jg 0x402e00
test edx, edx
je 0x402e95
nop dword [eax]
call fcn.00404810
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x402e54
jg 0x402e17
test esi, esi
je 0x402e54
cmp ebx, eax
jg 0x402e27
jl 0x402e21
cmp edi, esi
jae 0x402e27
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.004074e0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x402e79
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x402e8f
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x402e00
jl 0x402e8f
test edi, edi
jne 0x402e00
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x402ec8
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x402eca
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x402f48
jg 0x402edd
test esi, esi
je 0x402f48
test eax, eax
jl 0x402f2c
jg 0x402ee7
test ebx, ebx
je 0x402f2c
cmp edi, eax
jg 0x402ef7
jl 0x402ef1
cmp esi, ebx
jae 0x402ef7
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.004074e0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x402f48
jg 0x402f2f
test esi, esi
je 0x402f48
jmp 0x402f2f
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x402f48
push eax
push esi
push 1
push edx
call fcn.0040c4c9
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4034a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x56c050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4034d0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040605c
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40350c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40350c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040605c
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4035f4
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x403534
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x403567
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0040a3b6
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040605c
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x4035c7
sub eax, 1
je 0x4035c7
sub eax, 2
jne 0x4035f4
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.0040a3b6
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040605c
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4035e4
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040c4c9
add esp, 0x10
cmp edi, eax
jne 0x4035f4
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x4034f7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040605c
mov esp, ebp
pop ebp
ret 4