joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ffd0
Capabilities:
Check os version

Disassembly:
sub esp, 0x148
mov eax, dword [0x453140]
xor eax, esp
mov dword [esp + 0x144], eax
push ebx
push ebp
mov ebp, dword [esp + 0x154]
push esi
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
cmp eax, ebx
push edi
je 0x430000
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x114
lea eax, [esp + 0x44]
push ebx
push eax
xor edi, edi
call fcn.00431940
add esp, 0xc
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x44], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x44], 6
jb 0x4300db
xor eax, eax
push 1
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x30], bl
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov word [esp + 0x41], ax
mov byte [esp + 0x43], al
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push ebx
push ebx
push 1
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push ebx
lea edx, [esp + 0x24]
push edx
xor eax, eax
push 1
lea ecx, [esp + 0x34]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push str.S:_ML__NW___LW_
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ecx
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x4c], ebx
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorSacl]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push ebx
push ecx
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorSacl]
lea edi, [esp + 0x14]
push ebp
push ebx
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [esp + 0x154]
pop edi
mov dword [esi], eax
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004320c7
add esp, 0x148
ret 4
Function at 0x4320c7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x453140]
jne 0x4320d1
repz ret
jmp fcn.0043659c
Function at 0x4334b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4334ed
cmp dword [ebp + 0x14], edi
je 0x4334ed
cmp ecx, edi
jne 0x4334f4
call fcn.00434224
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00431ccc
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x433508
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x433529
cmp ebx, 0xffffffff
je 0x433518
push ebx
push edi
push ecx
call fcn.00431940
add esp, 0xc
cmp esi, edi
je 0x4334d5
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4334d5
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x433545
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x43354c
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x43363d
test word [esi + 0xc], 0x10c
je 0x4335a0
mov eax, dword [esi + 4]
test eax, eax
je 0x4335a0
jl 0x43369e
cmp ebx, eax
mov edi, ebx
jb 0x433571
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x433645
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004317a9
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x433635
cmp ebx, dword [ebp - 0xc]
jb 0x43360d
cmp dword [ebp - 0xc], 0
je 0x4335ca
mov ecx, SHChangeNotifyRegister
xor edx, edx
cmp ebx, ecx
jbe 0x4335bf
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4335c6
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4335d5
mov eax, SHChangeNotifyRegister
cmp ebx, eax
ja 0x4335d5
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x433671
push eax
push dword [ebp - 8]
push esi
call fcn.00439632
pop ecx
push eax
call fcn.0043a6e2
add esp, 0xc
test eax, eax
je 0x4336b0
cmp eax, 0xffffffff
je 0x43369e
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x433635
push esi
call fcn.00439973
cmp eax, 0xffffffff
pop ecx
je 0x4336a2
cmp dword [ebp - 4], 0
je 0x433671
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x433554
mov eax, dword [ebp + 0x14]
jmp 0x4334ef
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x43365c
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00431940
add esp, 0xc
call fcn.00434224
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4334e5
cmp dword [ebp + 0xc], 0xffffffff
je 0x433687
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00431940
add esp, 0xc
call fcn.00434224
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4334e5
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4334ef
or dword [esi + 0xc], 0x10
jmp 0x4336a2
Function at 0x4389a7
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x453ad8]
je 0x4389c2
inc edi
cmp edi, 0x17
jb 0x4389b3
cmp edi, 0x17
jae 0x438b42
push ebp
push 3
call fcn.0043d42b
cmp eax, 1
pop ecx
je 0x438b0e
push 3
call fcn.0043d42b
test eax, eax
pop ecx
jne 0x4389f6
cmp dword [0x453170], 1
je 0x438b0e
cmp ebx, 0xfc
je 0x438b41
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x454ea0
push ebp
call fcn.00434184
add esp, 0xc
test eax, eax
je 0x438a2c
push esi
push esi
push esi
push esi
push esi
call fcn.00431bd0
add esp, 0x14
push 0x104
mov esi, 0x454eb9
push esi
push 0
mov byte [0x454fbd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x438a70
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00434184
add esp, 0xc
test eax, eax
je 0x438a70
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00431bd0
add esp, 0x14
push esi
call fcn.00434090
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x438ab5
push esi
call fcn.00434090
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4551b4
push 0x44a65c
sub ecx, eax
push ecx
push eax
call fcn.0043c326
add esp, 0x14
test eax, eax
je 0x438ab5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00431bd0
add esp, 0x14
jmp 0x438ab7
xor esi, esi
push 0x44a658
push ebx
push ebp
call fcn.0043c26f
add esp, 0xc
test eax, eax
je 0x438ad7
push esi
push esi
push esi
push esi
push esi
call fcn.00431bd0
add esp, 0x14
push dword [edi*8 + 0x453adc]
push ebx
push ebp
call fcn.0043c26f
add esp, 0xc
test eax, eax
je 0x438af9
push esi
push esi
push esi
push esi
push esi
call fcn.00431bd0
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043d26e
add esp, 0xc
jmp 0x438b41
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x438b41
cmp ebp, 0xffffffff
je 0x438b41
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x453adc]
push dword [esi]
call fcn.00434090
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x43d26e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0043516c
xor ebx, ebx
cmp dword [0x45544c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43d344
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43d424
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x43d424
push eax
call fcn.004350fe
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45544c], eax
call esi
push eax
call fcn.004350fe
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x455450], eax
call esi
push eax
call fcn.004350fe
mov dword [0x455454], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004368bf
test eax, eax
pop ecx
pop ecx
je 0x43d312
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00431bd0
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43d344
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004350fe
cmp eax, ebx
pop ecx
mov dword [0x45545c], eax
je 0x43d344
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004350fe
pop ecx
mov dword [0x455458], eax
mov eax, dword [0x455458]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43d3c9
cmp dword [0x45545c], ecx
je 0x43d3c9
push eax
call fcn.00435175
push dword [0x45545c]
mov esi, eax
call fcn.00435175
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43d3c9
cmp edi, ebx
je 0x43d3c9
call esi
cmp eax, ebx
je 0x43d396
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43d396
test byte [ebp - 0x18], 1
jne 0x43d3c9
lea eax, [ebp - 0x10]
push eax
call fcn.004368f6
test eax, eax
pop ecx
je 0x43d3b1
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00431bd0
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43d3c0
or dword [ebp + 0x10], 0x200000
jmp 0x43d404
or dword [ebp + 0x10], 0x40000
jmp 0x43d404
mov eax, dword [0x455450]
cmp eax, dword [ebp - 8]
je 0x43d404
push eax
call fcn.00435175
cmp eax, ebx
pop ecx
je 0x43d404
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43d404
mov eax, dword [0x455454]
cmp eax, dword [ebp - 8]
je 0x43d404
push eax
call fcn.00435175
cmp eax, ebx
pop ecx
je 0x43d404
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45544c]
call fcn.00435175
cmp eax, ebx
pop ecx
je 0x43d424
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43d426
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401540
Capabilities:
Accept command line arguments

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push str._360safe
push eax
call dword [sym.imp.MSVCRT.dll__mbsstr]
add esp, 8
test eax, eax
jne 0x40155a
ret
push 0x44
push 0x41a0e0
push 0x41a058
mov dword [0x41eb08], 1
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor ecx, ecx
cmp eax, 6
setne cl
inc ecx
mov eax, ecx
ret

Function at 0x4015f0
Capabilities:
Terminate process

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x41ea70], eax
call fcn.004015e0
jmp fcn.00415806
Function at 0x401f30
Capabilities:
Create process on windows
Download url
Get common file path
Receive data

Disassembly:
sub esp, 0x104
call fcn.0040ed30
call fcn.00406200
call fcn.00411e80
call fcn.00408f70
call fcn.00409190
call fcn.00409830
call fcn.00411d20
push 1
call fcn.004115f0
add esp, 4
call fcn.004115c0
call fcn.00410cd0
mov eax, dword [0x41ed1c]
test eax, eax
je 0x401f85
call fcn.004071c0
mov dword [0x41ed1c], 0
push ebx
push esi
call fcn.0040ff50
call fcn.0040fe60
push 1
call fcn.0040fcf0
push 1
call fcn.0040fba0
call fcn.00409fb0
push 1
call fcn.0040f9e0
push 1
mov esi, eax
call fcn.0040f190
push 1
or esi, eax
call fcn.0040ce50
push 1
or esi, eax
call fcn.0040c4d0
push 1
or esi, eax
call fcn.0040d6e0
push 1
or esi, eax
call fcn.0040cf80
push 1
or esi, eax
call fcn.0040d8c0
push 1
or esi, eax
call fcn.0040db00
push 1
or esi, eax
call fcn.0040ef60
push 1
or esi, eax
call fcn.0040d4e0
push 1
or esi, eax
call fcn.0040bdf0
push 1
or esi, eax
call fcn.0040e2e0
push 1
or esi, eax
call fcn.0040e090
push 1
or esi, eax
call fcn.0040e190
add esp, 0x40
or esi, eax
push 1
call fcn.0040d190
push 1
or esi, eax
call fcn.0040d240
push 1
or esi, eax
call fcn.0040dcc0
push 1
or esi, eax
call fcn.0040d9c0
push 1
or esi, eax
call fcn.0040d820
push 1
or esi, eax
call fcn.0040d2d0
push 1
or esi, eax
call fcn.0040cde0
push 1
or esi, eax
call fcn.0040c840
push 1
or esi, eax
call fcn.0040c600
push 1
or esi, eax
call fcn.0040c070
push 1
or esi, eax
call fcn.0040bd60
push 1
or esi, eax
call fcn.0040bb10
push 1
or esi, eax
call fcn.0040b870
push 1
or esi, eax
call fcn.0040b5a0
push 1
or esi, eax
call fcn.0040b1d0
push 1
or esi, eax
call fcn.0040abb0
add esp, 0x40
or esi, eax
push 1
call fcn.0040acf0
or esi, eax
call fcn.0040aa70
or esi, eax
push 1
mov dword [0x41ed20], esi
call fcn.0040a510
mov ebx, dword [sym.imp.USER32.dll_MessageBoxA]
add esp, 8
test eax, eax
je 0x402169
push 0x44
push 0x41a0e0
push 0x41a26c
push 0
call ebx
cmp eax, 6
jne 0x402169
push ebp
lea eax, [esp + 0xc]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, str.killer_dummycom.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, ebp
lea eax, [esp + 0x18]
and ecx, 3
push eax
push str.http:__dl.360safe.com_killer_dummycom.exe
rep movsb byte es:[edi], byte [esi]
push 0
call sub.urlmon.dll_URLDownloadToFileA
pop edi
pop ebp
test eax, eax
jne 0x402169
push 5
push eax
lea ecx, [esp + 0x10]
push eax
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 1
call fcn.0040a380
add esp, 4
test eax, eax
je 0x402191
push 0x40
push 0x41a0e0
push 0x41a1f4
push 0
call ebx
mov dword [0x41ed20], 1
call fcn.00408b40
test eax, eax
je 0x40219f
call fcn.00408ce0
mov eax, dword [0x41eb24]
test eax, eax
jne 0x4021c7
mov eax, dword [0x41ed20]
test eax, eax
mov eax, 0x41a1ac
jne 0x4021bb
mov eax, 0x41a184
push 0x10
push 0x41a0e0
push eax
push 0
call ebx
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x402ab0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x415b08
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
mov esi, ecx
xor ebp, ebp
cmp dword [esi + 0x40], ebp
je 0x402aed
push 5
push ebp
push ebp
push str.http:__360safe.qihoo.com_download.html
push str.open
push ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x402bd4
mov eax, dword [0x41a180]
mov ecx, eax
dec eax
test ecx, ecx
mov dword [0x41a180], eax
jne 0x402bcf
mov edx, dword [esi + 4]
push 0x34
push 0x41a394
push 0x41a344
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x402bcf
mov eax, dword [esi + 4]
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push ebp
push eax
call edi
mov cl, byte [esp + 0x13]
push 0xc
mov byte [esp + 0x18], cl
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
lea edx, [esp + 0x18]
mov dword [esp + 0x2c], ebp
push edx
call fcn.004055c0
lea eax, [esp + 0x1c]
push eax
push str.fixtoolexe
call fcn.00405890
mov ecx, dword [esi + 4]
add esp, 0x10
push 5
push ecx
call edi
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
mov edi, dword [ebx]
cmp edi, ebx
je 0x402bb8
mov esi, edi
mov edi, dword [edi]
push ebp
mov edx, dword [esi + 4]
mov eax, dword [esi]
mov dword [edx], eax
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [ecx + 4], edx
lea ecx, [esi + 8]
call fcn.004032e0
push esi
call fcn.00414a60
mov ecx, dword [esp + 0x20]
add esp, 4
dec ecx
cmp edi, ebx
mov dword [esp + 0x1c], ecx
jne 0x402b86
mov eax, dword [esp + 0x18]
push eax
call fcn.00414a60
add esp, 4
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
pop edi
pop ebx
call fcn.00401f30
mov ecx, dword [esp + 0x18]
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
Function at 0x4038d0
Capabilities:
Get common file path
Query or enumerate registry value
Set current directory

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [0x41ea80]
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
mov esi, ecx
push 0xc
call edi
push eax
push 0xb
call edi
push eax
push 1
push 0x80
push ebx
mov ebx, dword [sym.imp.USER32.dll_LoadImageA]
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push eax
mov eax, dword [esi + 4]
push 1
push 0x80
push eax
call ebp
mov ecx, dword [0x41ea80]
push 0
push 0x32
mov dword [esp + 0x18], ecx
call edi
push eax
push 0x31
call edi
mov edx, dword [esp + 0x18]
push eax
push 1
push 0x80
push edx
call ebx
push eax
mov eax, dword [esi + 4]
push 0
push 0x80
push eax
call ebp
lea ecx, [esi + 0x4c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push 0x80000002
mov dword [esp + 0x28], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esi + 4]
push 0x3ee
push eax
mov dword [esi + 0x40], 0
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret 8
Function at 0x403a40
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x415b48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x40]
test eax, eax
je 0x403a85
mov ecx, dword [esi + 0x24]
call fcn.00405350
mov eax, dword [esi + 0x1c]
lea ecx, [esi + 0x1c]
call dword [eax + 8]
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x403a71
mov ecx, dword [esi + 4]
push ebp
push edi
push 0x3eb
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor edi, edi
mov eax, dword [esi + 0x30]
test eax, eax
je 0x403b9f
mov edx, dword [esi + 0x34]
sub edx, eax
sar edx, 2
cmp edi, edx
jae 0x403b9f
mov eax, dword [0x41a030]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x30]
lea edx, [esp + 0xc]
mov dword [esp + 0x18], 0
mov ecx, dword [eax + edi*4]
push ecx
push 0x41a4bc
push edx
call fcn.004044f0
mov eax, dword [esi + 0x30]
add esp, 0xc
mov eax, dword [eax + edi*4]
push eax
call ebp
test eax, eax
je 0x403b1e
mov eax, 0x41a4b4
test eax, eax
jne 0x403b0c
push eax
jmp 0x403b4c
push 0x41a4b4
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x41a4b4
jmp 0x403b4c
mov eax, dword [esi + 0x30]
push 4
push 0
mov eax, dword [eax + edi*4]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov ecx, 0x41a4a0
test ecx, ecx
jne 0x403b3c
xor eax, eax
jmp 0x403b47
push 0x41a4a0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x41a4a0
push eax
lea ecx, [esp + 0x14]
call fcn.00404c80
mov edx, dword [esp + 0xc]
mov ecx, esi
push edx
call fcn.004039c0
mov eax, dword [esp + 0xc]
mov edx, dword [0x41a034]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x403b99
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x403b99
mov edx, dword [esp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.00414a60
add esp, 4
inc edi
jmp 0x403aae
mov eax, dword [esi + 4]
push 0x3ee
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [esp + 0x10]
pop edi
pop ebp
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x4053c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x5c
push esi
push edi
push 0x1000
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
je 0x405405
mov eax, dword [esp + 0x68]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40540d
push esi
call fcn.00414a60
add esp, 4
pop edi
xor eax, eax
pop esi
add esp, 0x5c
ret
push ebx
lea ecx, [esp + 0x10]
push ebp
push ecx
call fcn.004127e0
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 4
xor ebp, ebp
lea edx, [esp + 0x10]
push ebp
push edx
push 0x1000
push esi
push edi
mov dword [esp + 0x24], 0x1000
call ebx
test eax, eax
je 0x405494
mov eax, dword [esp + 0x10]
test eax, eax
je 0x405494
test ebp, ebp
jne 0x405465
mov eax, dword [esp + 0x78]
test eax, eax
je 0x405460
push esi
call fcn.004054d0
add esp, 4
test eax, eax
je 0x405494
mov ebp, 1
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push esi
push ecx
call fcn.00411ed0
add esp, 0xc
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0x1000
push 0
push edx
push 0x1000
push esi
push edi
call ebx
test eax, eax
jne 0x40543f
push esi
call fcn.00414a60
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
pop ebp
pop ebx
je 0x405405
mov ecx, dword [esp + 0x6c]
lea eax, [esp + 0xc]
push eax
push ecx
call fcn.00411fcf
add esp, 8
mov eax, 1
pop edi
pop esi
add esp, 0x5c
ret

Function at 0x4054d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416490
push 0x4159e4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
cmp word [ecx], 0x5a4d
jne 0x405547
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x405547
cmp word [eax + 6], 0
je 0x405547
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405890
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x474
lea eax, [esp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x208]
lea edx, [esp]
push ecx
push edx
call fcn.00405930
add esp, 8
test eax, eax
je 0x405927
mov eax, dword [esp + 0x47c]
mov edx, dword [esp + 0x478]
lea ecx, [esp + 0x104]
push eax
push ecx
lea eax, [esp + 8]
push edx
push eax
call fcn.00405b70
add esp, 0x10
test eax, eax
je 0x405927
lea ecx, [esp + 0x104]
lea edx, [esp + 0x30c]
push ecx
push str._files:_s
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x30c]
lea ecx, [esp + 0x208]
push 5
push 0
push eax
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
add esp, 0x474
ret