joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x419782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419778
nop
push 1
nop
pop eax
add ebx, ebx
jne 0x41979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419790
jne 0x4197ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419790
sub ecx, ecx
sub eax, 3
jb 0x4197c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419832
mov ebp, eax
add ebx, ebx
jne 0x4197cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197fc
inc ecx
add ebx, ebx
jne 0x4197e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197dd
jne 0x4197f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41980d
jmp 0x41977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41981c
add edi, ecx
jmp 0x41977e
pop esi
push esi
pop edi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41983a
cmp byte [edi], 5
jne 0x41983a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41983f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4198b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41986c
push edi
pop ecx
jns 0x41989b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19090]
or eax, eax
je 0x4198b1
mov dword [ebx], eax
add ebx, 4
jmp 0x419889
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4198eb
sub esp, 0xffffff80
jmp 0x404c20

Function at 0x4015a0
Capabilities:
Terminate process

Disassembly:
call fcn.00401940
jmp fcn.004012d0

Function at 0x4015b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403008]
jne 0x4015ba
repz ret
jmp fcn.004019f0
Function at 0x401040
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push ebx
push esi
push edi
push 0x3ff
lea eax, [ebp - 0x3ff]
mov byte [ebp - 0x400], 0
push 0
push eax
call fcn.00405ad0
mov esi, dword [ebp + 8]
add esp, 0xc
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
test esi, esi
jne 0x401093
push ebx
push edi
push str.Failed_to_move_file_from___s__to___s_.
lea eax, [ebp - 0x400]
push 0x400
push eax
call fcn.00405aa7
add esp, 0x14
jmp 0x4010b2
cmp esi, 1
jne 0x4010b2
push edi
push str.Failed_to_unpack_file___s_.
lea eax, [ebp - 0x400]
push 0x400
push eax
call fcn.00405aa7
add esp, 0x10
push 0x3ff
lea eax, [ebp - 0x7ff]
mov byte [ebp - 0x800], 0
push 0
push eax
call fcn.00405ad0
lea eax, [ebp - 0x400]
push eax
push str.join.me_could_not_be_updated._n_nTo_resolve_this_problem__follow_these_instructions:_nhttp:__help.join.me_knowledgebase_articles_421298_n_nClick_OK_to_open_the_Help_article._n_n_s
lea eax, [ebp - 0x800]
push 0x400
push eax
call fcn.00405aa7
add esp, 0x1c
lea eax, [ebp - 0x800]
push 0x11
push str.join.me_Update
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne 0x401125
push eax
push 0
push 0
push str.http:__help.join.me_knowledgebase_articles_421298
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push str.ErrorDialog:_Help_article_page_has_been_opened
jmp 0x40112a
push str.ErrorDialog:_Dialog_has_been_canceled
call fcn.004045b0
add esp, 4
mov ecx, str.NULL
mov eax, ecx
test ebx, ebx
cmovne eax, ebx
test edi, edi
push eax
cmovne ecx, edi
mov eax, str.MoveFileErrorDialog
push ecx
mov ecx, str.UnpackFileErrorDialog
test esi, esi
cmovne eax, ecx
push eax
push str.ErrorDialog:_Update_error_dialog_has_been_shown._Type:__s__SrcPath:__s__DstPath:__s
call fcn.004045b0
add esp, 0x10
test esi, esi
pop edi
pop esi
pop ebx
je 0x40116d
mov esp, ebp
pop ebp
ret
push 1
call fcn.00405a93
int3

Function at 0x401d00
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x1000
mov esi, eax
push esi
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
dec eax
cmp eax, 0xffe
ja 0x401d60
push 0x417698
push 0x1000
push esi
call fcn.00405d41
push dword [ebp + 8]
push 0x1000
push esi
call fcn.00405d41
add esp, 0x18
push esi
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebp
ret
Function at 0x401df0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416091
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x238
push ebx
push esi
mov dword [ebp - 0x38], 0
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 4], 0
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00403280
mov dword [edi], eax
mov ebx, 0x61
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], 0x1a
jmp 0x401e60
push 0x104
lea eax, [ebp - 0x140]
push 0
push eax
call fcn.00405ad0
push ebx
lea eax, [ebp - 0x140]
push 0x417550
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x104
lea eax, [ebp - 0x244]
push 0
push eax
call fcn.00405ad0
add esp, 0x24
lea eax, [ebp - 0x244]
push 0x104
push eax
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
lea eax, [ebp - 0x244]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401ec0
sub eax, edx
cmp eax, 1
jbe 0x401fd9
mov byte [ebp - 0x34], cl
xor ecx, ecx
cmp byte [ebp - 0x244], cl
mov dword [ebp - 0x20], 0xf
cmove eax, ecx
mov dword [ebp - 0x24], 0
push eax
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x34]
call fcn.00403820
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 1
push eax
mov ecx, edi
call fcn.00403520
mov esi, eax
cmp esi, dword [edi]
je 0x401f64
cmp dword [esi + 0x24], 0x10
lea edx, [esi + 0x10]
mov edi, dword [edx + 0x10]
jb 0x401f24
mov edx, dword [edx]
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x34]
mov ebx, dword [ebp - 0x24]
mov eax, edi
cmovae ecx, dword [ebp - 0x34]
cmp ebx, edi
cmovb eax, ebx
push eax
push edx
push ecx
call fcn.00403990
add esp, 0xc
test eax, eax
jne 0x401f5a
cmp ebx, edi
jae 0x401f51
or eax, 0xffffffff
jmp 0x401f58
xor eax, eax
cmp ebx, edi
setne al
test eax, eax
mov edi, dword [ebp + 8]
sets al
test al, al
je 0x401f92
lea eax, [ebp - 0x34]
mov ecx, edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x11]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x420533
call fcn.004012c0
push eax
add eax, 0x10
mov ecx, edi
push eax
push esi
lea eax, [ebp - 0x3c]
push eax
call fcn.00401650
mov esi, dword [ebp - 0x3c]
cmp byte [ebp - 0x140], 0
jne 0x401f9f
xor ecx, ecx
jmp 0x401fb1
lea ecx, [ebp - 0x140]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401fa8
sub ecx, edx
push ecx
lea eax, [ebp - 0x140]
push eax
lea ecx, [esi + 0x28]
call fcn.00403820
cmp dword [ebp - 0x20], 0x10
mov byte [ebp - 4], 0
jb 0x401fd6
push dword [ebp - 0x34]
call fcn.00405bfc
add esp, 4
mov ebx, dword [ebp - 0x10]
inc ebx
dec dword [ebp - 0x18]
mov dword [ebp - 0x10], ebx
jne 0x401e60
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x402000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
lea eax, [ebp - 0x30c]
push dword [ebp + 8]
push 0x41769a
push str._s__c_rd__s__q___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x30c]
push 0
push 0
push eax
push str.cmd.exe
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esp, ebp
pop ebp
ret
Function at 0x4020e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], 0
test esi, esi
je 0x402109
cmp dword [ebp + 0x10], ebx
je 0x402109
push str.backup
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x402122
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4021a7
lea eax, [ebp - 0xc]
mov dword [ebp + 0xc], ebx
push eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], ebx
push eax
push 0x417600
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4021a7
mov ebx, 1
test esi, esi
je 0x4021a7
cmp dword [ebp + 0x10], 0
je 0x4021a7
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
test edx, edx
jne 0x402185
cmp dword [ecx + 0xc], edx
je 0x4021a7
mov ecx, dword [ecx + 0xc]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
push edx
push str._d._d._d._d
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push dword [ebp - 8]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4024d0
Capabilities:
Create directory
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallJoinMe
push 0x80000001
mov dword [ebp - 4], 0
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40253b
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push str.InstallLocation
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esi], 0
je 0x402548
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push str.GetInstallDirectory:_Couldnt_find_uninstall_path_in_Registry
call fcn.004045b0
add esp, 4
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push edi
push esi
push 0
push 0
push 0x1c
push 0
call ebx
mov edi, eax
test edi, edi
je 0x402572
push esi
push 0
push 0
push 0x1a
push 0
call ebx
mov edi, eax
test edi, edi
jne 0x4025b4
push str.join.me
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4025b4
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x4025b4
call ebx
push eax
push esi
push str.GetInstallDirectory:_Failed_to_create_application_folder:__s._Error:__d
call fcn.004045b0
add esp, 0xc
xor eax, eax
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
test edi, edi
pop edi
pop ebx
sete al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4028a0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
push edi
push dword [ebp + 8]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40291c
push 0x104
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.00405ad0
add esp, 0xc
lea eax, [ebp - 0x10c]
push 0x104
push eax
push edi
call sub.PSAPI.DLL_GetProcessImageFileNameA
sub esp, 8
lea eax, [ebp - 1]
mov ecx, esp
push eax
push 0x420534
call fcn.00401aa0
lea eax, [ebp - 0x10c]
push eax
call fcn.004025d0
add esp, 0xc
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcessPathByPID:_cant_open_process__GetLastError:__d
call fcn.004045b0
add esp, 8
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402f30
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x208]
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push str.config.json
push dword [ebp + 0xc]
push str._s_s
push eax
call edi
push str.config.json
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push str._s_s
push eax
call edi
add esp, 0x20
lea eax, [ebp - 0x104]
push 1
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x402fb1
call ebx
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
push str.RevertUpdate:_Move__s____s__failed__error:__d
call fcn.004045b0
add esp, 0x10
jmp 0x402fcc
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
push str.RevertUpdate:_Move__s____s_
call fcn.004045b0
add esp, 0xc
xor esi, esi
mov edi, edi
mov eax, dword [esi + section..data]
test eax, eax
je 0x40306b
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push str._s_s
push eax
call edi
push dword [esi + section..data]
lea eax, [ebp - 0x104]
push dword [ebp + 8]
push str._s_s
push eax
call edi
add esp, 0x20
lea eax, [ebp - 0x104]
push 1
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x403044
call ebx
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
push str.RevertUpdate:_Move__s____s__failed__error:__d
call fcn.004045b0
add esp, 0x10
jmp 0x40305f
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
push str.RevertUpdate:_Move__s____s_
call fcn.004045b0
add esp, 0xc
add esi, 4
cmp esi, 0x3c
jb 0x402fd0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403080
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
call fcn.00402940
add esp, 4
test eax, eax
jne 0x4030a3
mov eax, str.Failed_to_locate_application_resource.
pop edi
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0x8000080
push 2
push 0
push 1
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4030e1
push 0
lea eax, [ebp - 4]
push eax
push dword [0x42052c]
push dword [0x420528]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
test esi, esi
je 0x4030fd
cmp esi, 0xffffffff
je 0x4030fd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ecx, ecx
mov eax, str.Failed_to_decompress_application_files.
test edi, edi
pop esi
cmovne eax, ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x403120
Capabilities:
Create directory
Delete file
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
test ebx, ebx
je 0x403187
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, eax
test edi, edi
je 0x403273
cmp edi, 0x103
ja 0x403273
cmp byte [edi + esi - 1], 0x5c
je 0x40315f
mov word [edi + esi], 0x5c
mov edi, dword [ebp + 0x10]
push edi
push 0
push 0x4176a4
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4031d9
test ebx, ebx
je 0x403273
push str.Failed_to_create_temporary_folder.
jmp 0x403264
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, eax
test edi, edi
je 0x40325f
cmp edi, 0x104
ja 0x40325f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x403152
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x403152
push str.Temporary_folder_missing._Ask_your_administrator_to_solve_this_problem.
push 0
call fcn.00402050
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40321b
test ebx, ebx
je 0x40320d
push str.Failed_to_create_temporary_folder.
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00402050
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x403255
test ebx, ebx
je 0x40323e
push str.Failed_to_use_temporary_folder.
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00402050
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push edi
call fcn.00402000
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
push str.Failed_to_resolve_temporary_folder_path.
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00402050
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4045b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x420540
sub esp, 0x814
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4045c1
sub eax, edx
cmp eax, 1
jb 0x4046b9
push esi
push 0
push 0x80000080
push 4
push 0
push 7
push 4
push 0x420540
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4046b8
push 0x3ff
lea eax, [ebp - 0x413]
mov byte [ebp - 0x414], 0
push 0
push eax
call fcn.00405ad0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x414]
push 0x400
push eax
call fcn.0040766a
add esp, 0x1c
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x3ff
lea eax, [ebp - 0x813]
mov byte [ebp - 0x814], 0
push 0
push eax
call fcn.00405ad0
lea eax, [ebp - 0x414]
push eax
movzx eax, word [ebp - 2]
push eax
movzx eax, word [ebp - 4]
push eax
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x10]
push eax
push str._04d__02d__02d__02d:_02d:_02d._03d___Packer______Packer____s_r_n
lea eax, [ebp - 0x814]
push 0x400
push eax
call fcn.00405aa7
add esp, 0x38
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push 0
push ecx
push eax
lea eax, [ebp - 0x814]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405110
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00407710
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea ebx, [esi + 0x10]
cmp edi, 0x1c
jb 0x4052d0
cmp dword [esi], 0x80000001
jne 0x4052d0
cmp dword [esi + 4], 0
mov dword [ebp + 0xc], 0
jbe 0x40525c
nop
mov ecx, dword [ebx]
mov dword [ebp + 8], ecx
cmp edi, ecx
jbe 0x40516e
lea esp, [esp]
cmp byte [ecx + esi], 0
je 0x40516e
inc ecx
mov dword [ebp + 8], ecx
cmp edi, ecx
ja 0x405160
mov eax, dword [ebx + 4]
add eax, dword [ebx + 8]
cmp edi, eax
jb 0x4052d0
cmp edi, ecx
je 0x4052d0
mov eax, dword [ebp + 0x10]
mov byte [ebp - 0x1004], 0
test eax, eax
je 0x4051cd
cmp byte [eax], 0
je 0x4051cd
push eax
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x1004]
cmp byte [eax + ecx - 1], 0x5c
je 0x4051cd
push 0x417600
mov eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebx]
add eax, esi
push eax
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x1004]
push eax
push str.WriteFiles_V1:_Unpacking_file:__s
call fcn.004045b0
add esp, 8
lea eax, [ebp - 0x1004]
push 0
push 0x8000080
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x4052b3
push 0
lea ecx, [ebp + 8]
push ecx
push dword [ebx + 8]
mov ecx, dword [ebx + 4]
add ecx, esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405268
mov eax, dword [ebp + 8]
cmp eax, dword [ebx + 8]
jne 0x405268
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
add ebx, 0xc
inc eax
mov dword [ebp + 0xc], eax
cmp eax, dword [esi + 4]
jb 0x405150
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1004]
push eax
push str.WriteFiles_V1:_WriteFile__s__failed._Error:__d
call fcn.004045b0
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x41769a
lea eax, [ebp - 0x1004]
push eax
push 1
call fcn.00401040
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1004]
push eax
push str.WriteFiles_V1:_CreateFile__s__failed._Error:__d
call fcn.004045b0
add esp, 0xc
jmp 0x40528c
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret