joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4036dd
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
lea ecx, [ebp - 0x18]
mov ebx, eax
mov dword [ebp - 4], eax
call fcn.0040275d
xor esi, esi
cmp dword [ebp - 0x10], esi
jg 0x40370e
push esi
lea ecx, [ebp - 0x18]
call fcn.0040115e
movzx eax, word [edi + ebx*2 - 2]
cmp ax, 0x5c
mov edi, dword [ebp - 0x18]
je 0x403722
cmp ax, 0x2f
jne 0x40372b
mov word [edi + ebx*2 - 2], si
dec ebx
mov dword [ebp - 4], ebx
mov esi, ebx
jmp 0x403751
movzx eax, word [edi + esi*2]
cmp ax, 0x2f
je 0x403744
cmp ax, 0x5c
je 0x403744
dec esi
test esi, esi
jg 0x40372f
test esi, esi
je 0x403800
and word [edi + esi*2], 0
push edi
call fcn.00401b61
test eax, eax
pop ecx
je 0x403740
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x403788
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.00403373
test eax, eax
pop ecx
pop ecx
je 0x403788
xor esi, esi
jmp 0x403825
push edi
call fcn.00401b61
test eax, eax
pop ecx
jne 0x4037a2
push edi
push 0xc
push 1
call fcn.00408da7
add esp, 0xc
jmp 0x403781
cmp esi, ebx
jge 0x4037f4
mov eax, dword [ebp - 4]
sub eax, esi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + esi*2]
push eax
lea ebx, [edi + esi*2]
push ebx
call sub.MSVCRT.dll_memcpy
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x4037da
jmp 0x4037d9
movzx eax, word [edi + esi*2]
cmp ax, 0x5c
je 0x4037e0
cmp ax, 0x2f
je 0x4037e0
inc esi
cmp word [edi + esi*2], cx
jne 0x4037c9
push edi
mov word [edi + esi*2], cx
call fcn.00401b61
test eax, eax
pop ecx
je 0x403793
cmp esi, dword [ebp - 4]
jl 0x4037a6
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x403845
cmp ebx, 2
mov ecx, dword [ebp + 8]
jne 0x403830
mov ax, word [ecx]
or ax, 0x20
cmp ax, 0x61
jb 0x403830
cmp ax, 0x7a
ja 0x403830
cmp word [ecx + 2], 0x3a
jne 0x403830
xor esi, esi
inc esi
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x403845
push ecx
push 0xc
push 1
call fcn.00408da7
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40452e
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.00401444
push 2
mov ecx, esi
call fcn.00402796
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push 1
call edi
mov ecx, dword [esi]
and word [ecx], 0
and dword [esi + 4], 0
test eax, eax
jbe 0x404581
lea ebx, [eax + 1]
push ebx
mov ecx, esi
call fcn.00402796
push eax
push ebx
call edi
mov edi, dword [esi]
push edi
call fcn.0040114a
and word [edi + eax*2], 0
pop ecx
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
and dword [ebp + 8], 0
lea ecx, [eax + 0xf]
mov dword [ebp - 4], ecx
lea ebx, [eax + eax]
push dword [ebp - 4]
mov ecx, esi
call fcn.00402796
push dword [ebp + 8]
add eax, ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [esi]
push edi
call fcn.0040114a
and word [edi + eax*2], 0
add esp, 0x10
push dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4045d6
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xfff
jl 0x404591
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4045dd
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x41c3b4], esi
jle 0x404631
mov eax, dword [0x41c3b8]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.0040132a
lea eax, [ebp - 0xc]
push eax
call fcn.004041e4
mov eax, dword [0x41c3b8]
mov eax, dword [eax + esi*4]
pop ecx
push dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
inc esi
cmp esi, dword [0x41c3b4]
pop ecx
jl 0x4045ee
pop esi
leave
ret
Function at 0x4048ef
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
push ebx
push esi
push edi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.00416410
call fcn.0040211d
push 3
call fcn.00402173
push 0x28
mov dword [0x41c828], eax
call fcn.00402173
push 2
mov dword [0x41c824], eax
call fcn.00402173
push 5
mov dword [0x41c820], eax
call fcn.00402173
push 0x15
mov dword [0x41c81c], eax
call fcn.00402173
push 0x16
mov dword [0x41c818], eax
call fcn.00402173
push 0x17
mov dword [0x41c814], eax
call fcn.00402173
add esp, 0x1c
xor ebx, ebx
mov dword [0x41c810], eax
mov dword [0x41c808], ebx
mov dword [0x41c80c], ebx
mov edi, 0x41c3ac
xor esi, esi
push esi
push ebx
lea eax, [ebp - 0x2a4]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x404a1e
push ebx
lea eax, [ebp - 0x98]
push 0x4196a8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.00401444
lea ecx, [ebp - 0xc]
call fcn.00401444
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040135c
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040135c
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.004032c5
cmp dword [esi + 0x41c384], ebx
jne 0x404a0e
push dword [esi + 0x41c388]
lea ecx, [ebp - 0x18]
call fcn.0040135c
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040135c
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.004032c5
add esi, 8
cmp esi, 0x28
jb 0x4049de
lea ecx, [ebp - 0x18]
call fcn.00402686
inc ebx
cmp ebx, 0x40
jl 0x404975
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404f53
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
lea ecx, [ebp - 0xc]
call fcn.00401444
lea ecx, [ebp - 0x18]
call fcn.00401444
push 0x3c
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x54]
push edi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0x10]
xor ebx, ebx
inc ebx
add esp, 0xc
test byte [ebp + 0xc], bl
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], 0x740
mov dword [ebp - 0x38], ebx
je 0x404fa4
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x50], 0x8740
test byte [ebp + 0xc], 2
je 0x404fb1
mov dword [ebp - 0x48], str.runas
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.00404a83
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.0040135c
cmp dword [ebp - 8], edi
jne 0x404fe6
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x405026
test dword [ebp + 0xc], 0x10000
jne 0x405014
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push esi
jmp 0x404fd8
xor ebx, ebx
jmp 0x40501d
Function at 0x4052f0
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
cmp word [esi + 2], 0x3a
jne 0x4054a2
movzx eax, word [esi + 4]
cmp ax, 0x5c
je 0x40531a
cmp ax, 0x2f
jne 0x4054a2
mov ax, word [esi]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0x5c
mov word [ebp - 0xa], bx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4054a2
lea eax, [ebp - 0x28]
push str.7ZSfx_03x.cmd
push eax
call fcn.0040452e
pop ecx
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40546c
push edi
lea ecx, [ebp - 0x1c]
call fcn.00401444
push str.:Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.0040135c
mov edi, str.del__
push edi
lea ecx, [ebp - 0x1c]
call fcn.004027ae
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401415
mov esi, 0x4197ac
push esi
lea ecx, [ebp - 0x1c]
call fcn.004027ae
push str.if_exist__
lea ecx, [ebp - 0x1c]
call fcn.004027ae
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401415
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.004027ae
push edi
lea ecx, [ebp - 0x1c]
call fcn.004027ae
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401415
push esi
lea ecx, [ebp - 0x1c]
call fcn.004027ae
mov esi, dword [ebp - 0x18]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00402b0c
mov eax, dword [eax]
add esp, 0xc
push ebx
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x34]
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
pop edi
je 0x40547d
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jne 0x40547d
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push ebx
push dword [ebp - 0x28]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov esi, dword [ebp + 8]
pop ecx
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x4054a8
push dword [ebp - 0x28]
call fcn.00402fdf
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x4054a9
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x406ded
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.00406da0
add esp, 0x1c
leave
ret
Function at 0x408a04
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov edi, 0x4b6
push edi
mov esi, ecx
call fcn.004071a5
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push 1
inc eax
inc eax
push edi
mov ecx, esi
mov dword [esi + 0x58], eax
call fcn.004071c2
push 1
inc edi
push edi
mov ecx, esi
call fcn.004071c2
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea eax, [ebp - 0x4d0]
push eax
push 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x4d0]
push edi
push dword [esi + 4]
mov dword [esi + 0x50], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x40780b
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.004086d3
mov ecx, esi
mov edi, eax
call fcn.00407b78
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x40f93a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f960
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40f960
xor al, al
jmp 0x40f980
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00416830
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x416410
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x41cb20], ecx
add edx, 1
cmp edx, 0x100
jb 0x416412
cmp edx, 0x800
jae 0x4164fb
mov edi, edi
mov eax, dword [edx*4 + str..PAX]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x41cb20]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x41cb1c], eax
jb 0x4164d0
mov dword [0x41caf4], 0x416b50
call fcn.00416640
test eax, eax
jne 0x416518
mov dword [0x41caf4], 0x416a70
ret
Function at 0x4013bf
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x403b60
call sub.MSVCRT.dll__EH_prolog
push ecx
push ecx
push ebx
push esi
push edi
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
push 0x10000
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
jne 0x4013ec
xor bl, bl
jmp 0x40146a
mov esi, dword [sym.imp.MSVCRT.dll_fopen]
push 0x40603c
push dword [ebp + 8]
call esi
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
je 0x4013e8
push 0x406038
push dword [ebp + 0xc]
call esi
pop ecx
mov dword [ebp - 0x14], eax
test eax, eax
pop ecx
je 0x4013e8
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push ebx
push 4
push 1
push edi
call esi
add esp, 0x10
test eax, eax
je 0x4013e8
push dword [ebp - 0x14]
push eax
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
add dword [ebp - 0x10], eax
push ebx
push 4
push 1
push edi
call esi
add esp, 0x20
test eax, eax
jne 0x40142c
cmp dword [ebp - 0x10], eax
je 0x4013e8
push dword [ebp - 0x14]
mov esi, dword [sym.imp.MSVCRT.dll_fclose]
call esi
push ebx
call esi
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0xc
mov bl, 1
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00403464
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00403464
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x4017dc
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x403bd0
call sub.MSVCRT.dll__EH_prolog
push esi
push edi
mov esi, ecx
push 0x406038
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
pop ecx
test edi, edi
pop ecx
je 0x40181f
push edi
push dword [esi + 0x180]
push 1
push dword [esi + 0x17c]
call dword [sym.imp.MSVCRT.dll_fwrite]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00403464
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x40183b
Capabilities:
Get disk information

Disassembly:
mov eax, 0x403be4
call sub.MSVCRT.dll__EH_prolog
push ecx
push ecx
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
and dword [ebp - 4], 0
and dword [0x4074f0], 0
push 0x43
pop esi
cmp esi, 0x5a
jge 0x4018a6
push esi
lea eax, [ebp - 0x10]
push str._c:_
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edi, eax
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, ebx
call fcn.00401495
inc dword [0x4074f0]
inc esi
cmp edi, 1
jne 0x401862
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00403464
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40251b
Capabilities:
Create process on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
push 0x44
xor esi, esi
pop edi
lea eax, [ebp - 0x54]
push edi
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], edi
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x20
push esi
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp dword [ebp + 0xc], esi
mov edi, dword [ebp - 0x10]
jne 0x402578
push 6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__unlink]
pop ecx
pop edi
pop esi
leave
ret 8
Function at 0x40257e
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xc
and dword [esp], 0
push ebx
push ebp
push esi
push edi
mov esi, ecx
push dword [0x406034]
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, dword [sym.imp.MSVCRT.dll_fopen]
mov dword [esi + 0x16c], eax
lea eax, [esi + 0x64]
mov dword [esp], 0x40603c
push eax
call edi
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
je 0x4026f4
push 0x406038
push dword [esp + 0x24]
call edi
pop ecx
mov dword [esp + 0x18], eax
test eax, eax
pop ecx
je 0x4026f4
push 0
push dword [0x406034]
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push ebx
lea ebp, [esi + 0x60]
push 1
push 4
push ebp
call edi
add esp, 0x1c
test eax, eax
je 0x4026f4
push ebx
push 1
lea eax, [esp + 0x20]
push 4
push eax
call edi
add esp, 0x10
test eax, eax
je 0x4026f4
push ebx
push 4
push 1
push dword [esi + 0x16c]
call edi
add esp, 0x10
test eax, eax
je 0x402668
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp]
add edx, eax
cmp edx, ecx
jle 0x40263f
sub ecx, dword [esp + 0x10]
mov eax, ecx
push dword [esp + 0x14]
push eax
push 1
push dword [esi + 0x16c]
call dword [sym.imp.MSVCRT.dll_fwrite]
add dword [esp + 0x20], eax
push ebx
push 4
push 1
push dword [esi + 0x16c]
call edi
add esp, 0x20
jmp 0x402628
push dword [esp + 0x14]
call dword [sym.imp.MSVCRT.dll_fclose]
and dword [esp + 0x14], 0
mov dword [esp], 0x406038
push dword [esp + 0x28]
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
mov dword [esp + 0x18], eax
test eax, eax
pop ecx
je 0x40270f
mov eax, dword [ebp]
mov ecx, dword [0x406034]
push 0
lea eax, [eax + ecx + 8]
push eax
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
push ebx
push 4
push 1
pop ebp
push ebp
push dword [esi + 0x16c]
call edi
add esp, 0x1c
push dword [esp + 0x14]
test eax, eax
je 0x4026e6
push eax
push ebp
push dword [esi + 0x16c]
call dword [sym.imp.MSVCRT.dll_fwrite]
add dword [esp + 0x20], eax
push ebx
push 4
push ebp
push dword [esi + 0x16c]
call edi
add esp, 0x20
jmp 0x4026bb
call dword [sym.imp.MSVCRT.dll_fclose]
cmp dword [esp + 0x14], 0
pop ecx
jne 0x402703
push dword [esi + 0x16c]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
jmp 0x402731
push ebp
mov ecx, esi
push dword [esp + 0x28]
call fcn.0040251b
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
push dword [esi + 0x16c]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
pop ecx
push 0
mov ecx, esi
push dword [esp + 0x24]
call fcn.0040251b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x430002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
mov eax, section..idata
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x30ea0539
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x741c46b9
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4013c4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a004]
jne 0x4013ce
repz ret
jmp fcn.00401584

Function at 0x403653
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402532
and dword [ebp - 4], 0
cmp dword [0x40b568], 0
mov ebx, eax
jne 0x403704
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4037b5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4088bc
push edi
call esi
test eax, eax
je 0x4037b5
push eax
call fcn.004024c0
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b568], eax
call esi
push eax
call fcn.004024c0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b56c], eax
call esi
push eax
call fcn.004024c0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b570], eax
call esi
push eax
call fcn.004024c0
pop ecx
mov dword [0x40b578], eax
test eax, eax
je 0x403704
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004024c0
pop ecx
mov dword [0x40b574], eax
mov eax, dword [0x40b574]
cmp eax, ebx
je 0x40375c
cmp dword [0x40b578], ebx
je 0x40375c
push eax
call fcn.0040253b
push dword [0x40b578]
mov esi, eax
call fcn.0040253b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40375c
test edi, edi
je 0x40375c
call esi
test eax, eax
je 0x403753
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x403753
test byte [ebp - 0xc], 1
jne 0x40375c
or dword [ebp + 0x10], 0x200000
jmp 0x403795
mov eax, dword [0x40b56c]
cmp eax, ebx
je 0x403795
push eax
call fcn.0040253b
pop ecx
test eax, eax
je 0x403795
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x403795
mov eax, dword [0x40b570]
cmp eax, ebx
je 0x403795
push eax
call fcn.0040253b
pop ecx
test eax, eax
je 0x403795
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b568]
call fcn.0040253b
pop ecx
test eax, eax
je 0x4037b5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4037b7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret