joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b3092
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x2c], edi
mov ebx, eax
je 0x4b30a9
call fcn.004b31b9
cmp ebx, edi
je 0x4b316f
cmp dword [ebx], 0x18
jne 0x4b316f
push dword [ebx + 8]
lea edi, [ebp - 4]
call fcn.00402e10
mov ecx, dword [ebx + 4]
mov edi, dword [ebp - 4]
xor eax, eax
cmp ecx, eax
jne 0x4b30dc
push 0x10000000
push eax
push eax
push 1
jmp 0x4b3150
cmp ecx, 1
je 0x4b3148
cmp dword [edi - 8], eax
je 0x4b3148
push dword [ebx + 0x10]
lea eax, [esi + 0x24]
call fcn.00402ec3
push dword [ebx + 0x14]
lea eax, [esi + 0x28]
call fcn.00402ec3
push dword [ebx + 0xc]
mov eax, dword [0x4e9150]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push str.httphttp:___s:_d
push eax
call fcn.00405c38
mov ebx, dword [ebp - 4]
add esp, 0x10
push 0x10000000
push str._local_
push ebx
push 3
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 0x2c], eax
lea eax, [ebx - 0xc]
cmp eax, dword [0x4e9154]
je 0x4b315c
push eax
call fcn.004013aa
jmp 0x4b315c
push 0x10000000
push eax
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 0x2c], eax
lea eax, [edi - 0xc]
cmp eax, dword [0x4e9154]
je 0x4b3183
push eax
call fcn.004013aa
jmp 0x4b3183
push 0x10000000
push edi
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x4b318e
push 0xfffffffffffffffd
jmp 0x4b31a1
push 0x4b4b2c
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
cmp eax, 0xffffffff
jne 0x4b31af
push 0xfffffffffffffff9
add esi, 0x3c
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
xor eax, eax
jmp 0x4b31b2
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4b4275
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x4b429c
mov eax, dword [esi + 0x74]
mov eax, dword [eax + 8]
cmp eax, edi
je 0x4b428d
mov dword [eax], edi
mov eax, dword [esi + 0x74]
mov dword [eax + 0xc], 2
xor eax, eax
inc eax
jmp 0x4b42e7
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov eax, dword [esi + 0x74]
mov dword [ebp - 4], edi
push dword [eax]
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x4b42d2
mov ecx, dword [ebp - 4]
add dword [esi + 0x5c], ecx
mov ecx, dword [esi + 0x5c]
cmp ecx, dword [esi + 0x54]
mov edx, dword [esi + 0x74]
sbb ecx, ecx
add ecx, 3
mov dword [edx + 0xc], ecx
jmp 0x4b42d8
mov ecx, dword [esi + 0x74]
mov dword [ecx + 0xc], edi
mov ecx, dword [esi + 0x74]
mov ecx, dword [ecx + 8]
cmp ecx, edi
je 0x4b42e7
mov edx, dword [ebp - 4]
mov dword [ecx], edx
pop edi
leave
ret 4

Function at 0x4b811a
Capabilities:
Read data from internet
Receive data

Disassembly:
test eax, eax
jne 0x4b811f
ret
push 0
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
push 1
lea eax, [esi + 0x78]
push eax
push dword [esi + 0xa0]
mov dword [esi + 0x8c], ecx
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x4b816e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4b816a
push 0xffffffffffffffff
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 0x90], 0
jne 0x4b816e
or eax, 0xffffffff
ret
mov eax, dword [esi + 0x90]
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
cmp word [0x4ea8c8], ax
push esi
mov esi, 0x4ea8c8
jne 0x4b9070
lea ecx, [ebp - 4]
push ecx
push esi
push 0x104
push eax
push str.mp3PRO.dll
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x4b9089
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4b9089
and al, 0x10
xor ecx, ecx
cmp al, 0x10
setne cl
mov eax, ecx
jmp 0x4b908b
xor eax, eax
pop esi
leave
ret

Function at 0x4ba695
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [edi]
mov cx, word [eax + 0x10]
push ebx
push esi
movzx esi, cx
add esi, 0x12
cmp esi, 0x12
jne 0x4ba6bc
cmp word [eax], 1
jne 0x4ba6bc
test cx, cx
jne 0x4ba6bc
push 0x10
pop esi
mov eax, dword [edi + 0x1c]
lea eax, [esi + eax + 0x14]
mov dword [ebp - 0x10], eax
xor eax, eax
push eax
push eax
lea ebx, [edi + 4]
push eax
mov ecx, ebx
mov dword [ebp - 0x14], 0x46464952
mov dword [ebp - 0xc], 0x45564157
call fcn.004a1fe9
push 0xc
lea eax, [ebp - 0x14]
push eax
mov eax, ebx
call fcn.004a86b4
mov eax, dword [edi + 0x1c]
push 1
push 0
add esi, 8
push esi
mov ecx, ebx
mov dword [ebp - 8], 0x61746164
mov dword [ebp - 4], eax
call fcn.004a1fe9
push 8
lea eax, [ebp - 8]
push eax
mov eax, ebx
call fcn.004a86b4
pop esi
pop ebx
leave
ret
Function at 0x4bc772
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x1e8]
sub esp, 0x268
mov eax, dword [0x4e7384]
push ebx
xor ebx, ebx
cmp dword [0x4eaadc], ebx
mov dword [ebp + 0x1e4], eax
push edi
je 0x4bc90f
mov eax, dword [0x4eaad8]
cmp eax, ebx
je 0x4bc90f
call eax
movzx ecx, ah
cmp ecx, 1
je 0x4bc7ba
cmp ecx, 0xe8
jne 0x4bc7c4
movzx edi, al
cmp edi, ebx
mov dword [ebp - 0x80], edi
jne 0x4bc7cb
xor eax, eax
jmp 0x4bc921
mov dword [ebp - 0x70], ebx
push esi
lea esi, [ebx + 0x41]
movzx eax, si
push eax
lea eax, [ebp - 0x60]
push 0x4d7340
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x4bc80b
mov eax, dword [ebp + 0x1f0]
or esi, 0x20
or eax, 0x20
cmp si, ax
je 0x4bc811
inc dword [ebp - 0x70]
inc ebx
cmp ebx, 0x1a
jl 0x4bc7cf
and dword [ebp - 0x6c], 0
and dword [ebp - 0x64], 0
test edi, edi
jle 0x4bc8f4
push 8
pop edi
push 0x3c
lea eax, [ebp + 0x1a8]
push 0
push eax
call sub.MSVCRT.dll_memset
mov al, byte [ebp - 0x64]
mov byte [ebp + 0x1aa], al
lea eax, [ebp + 0x1a8]
push eax
mov byte [ebp + 0x1a8], 0
call dword [0x4eaadc]
add esp, 0x10
cmp byte [ebp + 0x1a9], 1
jne 0x4bc8e5
movzx esi, byte [ebp + 0x1d5]
test esi, esi
jne 0x4bc86e
mov esi, edi
and dword [ebp - 0x68], 0
test esi, esi
jle 0x4bc8e5
xor ebx, ebx
push 0xc
lea eax, [ebp - 0x7c]
push 0
push eax
call sub.MSVCRT.dll_memset
mov al, byte [ebp - 0x64]
mov byte [ebp - 0x7a], al
mov al, byte [ebp - 0x68]
mov byte [ebp - 0x74], al
lea eax, [ebp - 0x7c]
push eax
mov byte [ebp - 0x7c], 1
mov byte [ebp - 0x73], bl
call dword [0x4eaadc]
add esp, 0x10
cmp byte [ebp - 0x7b], 1
jne 0x4bc8bc
cmp byte [ebp - 0x72], 5
jne 0x4bc8bc
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0x70]
je 0x4bc8c3
inc dword [ebp - 0x6c]
inc ebx
cmp ebx, edi
jl 0x4bc878
jmp 0x4bc8dd
mov eax, dword [ebp + 0x1f4]
mov cl, byte [ebp - 0x7a]
mov byte [eax + 4], cl
mov cl, byte [ebp - 0x74]
mov byte [eax + 6], cl
mov cl, byte [ebp - 0x73]
mov dword [eax], edi
mov byte [eax + 7], cl
inc dword [ebp - 0x68]
cmp dword [ebp - 0x68], esi
jl 0x4bc876
inc dword [ebp - 0x64]
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp - 0x80]
jl 0x4bc824
mov eax, dword [ebp + 0x1f4]
mov cx, word [ebp + 0x1f0]
or dword [eax + 0xc], 0xffffffff
mov word [eax + 8], cx
xor eax, eax
inc eax
pop esi
jmp 0x4bc921
push dword [ebp + 0x1f0]
mov ebx, dword [ebp + 0x1f4]
call fcn.004bc4de
pop ecx
mov ecx, dword [ebp + 0x1e4]
pop edi
pop ebx
call fcn.004c2215
add ebp, 0x1e8
leave
ret
Function at 0x4c22d6
Capabilities:
Terminate process

Disassembly:
push 0x11c
push 0x4cbfd8
call fcn.004c2224
mov eax, dword [0x4e7384]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x4ea874]
test eax, eax
je 0x4c2316
and dword [ebp - 4], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
jmp 0x4c2420
mov eax, dword [ebp + 8]
dec eax
je 0x4c2332
mov ebx, str.Unknown_security_failure_detected_
mov dword [ebp - 0x12c], str.A_security_error_of_unknown_cause_has_been_detected_which_has_ncorrupted_the_programs_internal_state.__The_program_cannot_safely_ncontinue_execution_and_must_now_be_terminated._n
mov edi, 0xd4
jmp 0x4c2346
mov ebx, str.Buffer_overrun_detected_
mov dword [ebp - 0x12c], str.A_buffer_overrun_has_been_detected_which_has_corrupted_the_programs_ninternal_state.__The_program_cannot_safely_continue_execution_and_must_nnow_be_terminated._n
mov edi, 0xb9
mov byte [ebp - 0x20], 0
push 0x104
lea eax, [ebp - 0x124]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c2375
push str._program_name_unknown_
lea eax, [ebp - 0x124]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0x124]
mov dword [ebp - 0x128], eax
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
add eax, 0xb
cmp eax, 0x3c
jbe 0x4c23bc
lea eax, [ebp - 0x124]
push eax
call esi
lea ecx, [ebp - 0x124]
sub ecx, 0x31
add eax, ecx
mov dword [ebp - 0x128], eax
push 3
push 0x4cbe24
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp - 0x128]
call esi
lea eax, [eax + edi + 0xc]
add eax, 3
and eax, 0xfffffffc
call fcn.004c2440
mov dword [ebp - 0x18], esp
mov edi, esp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, 0x4cbe20
push ebx
push edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call esi
push str.Program:
push edi
call esi
push dword [ebp - 0x128]
push edi
call esi
push ebx
push edi
call esi
push dword [ebp - 0x12c]
push edi
call esi
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 3
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4019c0
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411d60
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
push str._stater.log_
lea eax, [ebp - 0x70]
push eax
call fcn.00401870
add esp, 4
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x9c], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x9c]
push edx
push str..____
lea eax, [ebp + 8]
push eax
push str.echo__date___time___
lea ecx, [ebp - 0x88]
push ecx
call fcn.00404730
add esp, 0xc
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x98], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x98]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.004045f0
add esp, 0xc
mov dword [ebp - 0xa0], eax
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0xa8], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.00404540
add esp, 0xc
mov dword [ebp - 0x8c], eax
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0xa4], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.004045f0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.00404f80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.00404f80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.00404f80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00404f80
lea ecx, [ebp - 0x28]
call fcn.00406040
push eax
call dword [sym.imp.MSVCR120.dll_system]
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.00404f80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404f80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004113d0
mov esp, ebp
pop ebp
ret

Function at 0x401b30
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 4], esp
push 0x414494
call fcn.00404d30
mov dword [ebp - 8], eax
call fcn.004019c0
add esp, 0x18
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.shutdown__r__f__t_0
call dword [sym.imp.MSVCR120.dll_system]
add esp, 4
mov eax, 1
test eax, eax
je 0x401ba3
push 0x404aa0
push str.System_is_Restarting__Please_Wait_...
mov ecx, dword [sym.imp.MSVCP120.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push ecx
call fcn.004040f0
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401b6c
mov esp, ebp
pop ebp
ret
Function at 0x402300
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], 0x128
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x130]
push ecx
call sub.KERNEL32.dll_Process32First
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0
je 0x4023c2
lea ecx, [ebp + 8]
call fcn.00406040
push eax
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.MSVCR120.dll__stricmp]
add esp, 8
test eax, eax
jne 0x4023a7
mov eax, dword [ebp - 0x124]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
je 0x4023a7
push 9
mov ecx, dword [ebp - 0x134]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x130]
push ecx
call sub.KERNEL32.dll_Process32Next
mov dword [ebp - 0x138], eax
jmp 0x402345
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 8]
call fcn.00404f80
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004113d0
mov esp, ebp
pop ebp
ret
Function at 0x407340
Capabilities:
Execute command
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41217b
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x90], esp
push str.AbcdefghInstaller::install
call fcn.00404d30
mov dword [ebp - 0x80], eax
call fcn.004019c0
add esp, 0x18
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x60]
call fcn.00407520
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00406360
movzx ecx, al
test ecx, ecx
je 0x4073cb
mov byte [ebp - 0x5a], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00404f80
mov al, byte [ebp - 0x5a]
jmp 0x407500
lea edx, [ebp - 0x58]
push edx
mov ecx, dword [ebp - 0x60]
call fcn.004078c0
mov byte [ebp - 4], 1
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x88], esp
lea eax, [ebp - 0x58]
push eax
call fcn.00404c90
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], ecx
mov byte [ebp - 4], 2
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x74], esp
lea edx, [ebp - 0x28]
push edx
call fcn.00404c90
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x60]
call fcn.00407a80
mov byte [ebp - 0x5b], al
mov al, byte [ebp - 0x5b]
mov byte [ebp - 0x61], al
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x7c], esp
lea edx, [ebp - 0x28]
push edx
call fcn.00404c90
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x60]
call fcn.00407ee0
push 0x80
push 0x415744
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x407471
push 9
push str.C:Program_FilesAbcdefghconfigsDefaultConfig.ini
push str.C:Program_FilesYASSArm_DefaultConfig.ini
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x4074e5
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x70], esp
push 0x4156fb
call fcn.00404d30
mov dword [ebp - 0x78], eax
call fcn.004019c0
add esp, 0x18
push str.xcopy__C:Program_FilesYASSArm_DefaultConfig.ini___C:Program_FilesAbcdefghconfigsDefaultConfig.ini___c__y__h__i____.log_stater.log_2_1
lea ecx, [ebp - 0x40]
call fcn.00404d30
lea ecx, [ebp - 0x40]
call fcn.00406040
push eax
call dword [sym.imp.MSVCR120.dll_system]
add esp, 4
test eax, eax
je 0x4074dd
mov byte [ebp - 0x59], 0
lea ecx, [ebp - 0x40]
call fcn.00404f80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00404f80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00404f80
mov al, byte [ebp - 0x59]
jmp 0x407500
lea ecx, [ebp - 0x40]
call fcn.00404f80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00404f80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00404f80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004113d0
mov esp, ebp
pop ebp
ret
Function at 0x407d30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412309
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 0
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0xa0], 0
push 0x40
push 0
lea ecx, [ebp - 0x9c]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0xa0], 0x44
lea ecx, [ebp + 8]
call fcn.00406970
add eax, 0x32
mov dword [ebp - 0x58], eax
lea ecx, [ebp + 8]
call fcn.00406040
mov dword [ebp - 0x4c], eax
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0xa0]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
mov ecx, dword [ebp - 0x4c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x407e48
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x54], eax
push 0
push 0
lea edx, [ebp - 0x30]
push edx
push 0x400
mov eax, dword [ebp - 0x54]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00404d30
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x28]
call fcn.00404f80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404f80
mov eax, dword [ebp - 0x50]
jmp 0x407ec4
push 0xffffffffffffffff
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], 0
jne 0x407e9a
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404f80
mov eax, dword [ebp - 0x44]
jmp 0x407ec4
mov dword [ebp - 0x48], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404f80
mov eax, dword [ebp - 0x48]
jmp 0x407ec4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004113d0
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x407ee0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp + 8]
call fcn.00406040
push eax
call dword [sym.imp.MSVCR120.dll_remove]
add esp, 4
lea ecx, [ebp + 8]
call fcn.00404f80
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4088d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412458
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x40], 0
je 0x408910
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x40891c
mov al, 1
jmp 0x408ac1
mov dword [ebp - 0x54], 8
call fcn.004063c0
push eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x3c], eax
call fcn.004063c0
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.004063d0
add esp, 8
movzx eax, al
test eax, eax
je 0x40895f
xor al, al
jmp 0x408ac1
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.004084d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x28]
call fcn.00406010
mov ecx, eax
call fcn.00405380
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.00407180
add esi, eax
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406010
mov ecx, eax
call fcn.00405380
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x48
push ecx
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 0x40]
call dword [sym.imp.MSVCP120.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x4089db
cmp dword [ebp - 0x38], 1
je 0x4089e2
cmp dword [ebp - 0x38], 3
je 0x408a7d
jmp 0x408a95
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x45], 0
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00406010
mov ecx, eax
call fcn.00405380
mov edx, dword [ebp - 0x44]
sub edx, eax
mov dword [ebp - 0x34], edx
je 0x408a46
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x28]
call fcn.00406010
mov ecx, eax
call fcn.00405380
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x408a46
mov byte [ebp - 0x2f], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00404f80
mov al, byte [ebp - 0x2f]
jmp 0x408ac1
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x408a69
mov byte [ebp - 0x30], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00404f80
mov al, byte [ebp - 0x30]
jmp 0x408ac1
cmp dword [ebp - 0x34], 0
jne 0x408a7b
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.00405cf0
jmp 0x408aad
mov byte [ebp - 0x2e], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00404f80
mov al, byte [ebp - 0x2e]
jmp 0x408ac1
mov byte [ebp - 0x2d], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00404f80
mov al, byte [ebp - 0x2d]
jmp 0x408ac1
jmp 0x408972
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004113d0
mov esp, ebp
pop ebp
ret
Function at 0x409d60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412581
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x158], ecx
push 0x105
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x130]
call fcn.00404d30
mov dword [ebp - 4], 0
push str._Explorer.exe
lea edx, [ebp - 0x130]
push edx
lea eax, [ebp - 0x148]
push eax
call fcn.00404630
add esp, 0xc
mov byte [ebp - 4], 1
push 0
push 0x80
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x154], esp
lea edx, [ebp - 0x130]
push edx
call fcn.00404c90
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x15c], eax
mov byte [ebp - 4], 2
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x164], esp
lea edx, [ebp - 0x148]
push edx
call fcn.00404c90
mov dword [ebp - 0x160], eax
mov byte [ebp - 4], 1
call fcn.0040fa30
add esp, 0x38
mov byte [ebp - 0x14a], al
mov al, byte [ebp - 0x14a]
mov byte [ebp - 0x14b], al
mov cl, byte [ebp - 0x14b]
mov byte [ebp - 0x149], cl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x148]
call fcn.00404f80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.00404f80
mov al, byte [ebp - 0x149]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004113d0
mov esp, ebp
pop ebp
ret