joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406ef0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x406f37
cmp byte [esi + 1], 0
je 0x406f3f
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x406f52
cmp byte [esi + 1], 0
je 0x406f46
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov dword [ebp - 4], ebx
jmp 0x406f5a
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x406f11
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x406f5a
mov eax, dword [esi + 0x1c]
mov dword [ebp - 4], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x406f6c
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.0040ad38
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x406f89
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0xffffffff
cmp edi, eax
jbe 0x40709d
jmp 0x406fa9
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x406fb8
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x406fcf
mov ebx, 0x404
cmp byte [esi], 0
je 0x406ff4
cmp byte [esi + 1], 0
je 0x40709d
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x406ff7
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebx
je 0x407020
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40701b
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x407049
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x407031
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.0040e3d0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x40709d
lea eax, [ebx - 3]
test eax, eax
js 0x40708b
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x40707f
cmp byte [eax + ecx + 1], 0x4b
jne 0x40707f
cmp byte [eax + ecx + 2], 5
jne 0x40707f
cmp byte [eax + ecx + 3], 6
je 0x407085
test eax, eax
jns 0x407060
jmp 0x40708b
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40709d
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x406fa0
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040adcc
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407f70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi], 0
push edi
jne 0x40801f
cmp dword [esi + 4], 0xffffffff
jne 0x40801f
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407fa0
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp eax, 0x5c
je 0x407fd7
cmp eax, 0x2f
je 0x407fd7
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x407fc4
mov eax, dword [0x41c29c]
mov dword [edi], eax
push 0x20
call fcn.0040a901
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add esp, 4
mov word [eax], 0x100
mov byte [eax + 0x10], 0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], 0
mov dword [eax + 0xc], 0
call fcn.004070c0
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ecx
pop ebp
ret 8
mov eax, 0x1000000
pop edi
pop ecx
pop ebp
ret 8
Function at 0x408a00
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x418
mov eax, dword [0x420044]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x422c88
push 0x67
push esi
call edi
push 0x64
push 0x422bc0
push 0x6d
push esi
call edi
mov eax, esi
call fcn.00408bf0
mov eax, dword [ebp + 0x10]
mov edx, 0x423620
sub edx, eax
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x408a50
call fcn.00401720
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
mov dword [0x420f30], eax
call edi
call fcn.00409440
test eax, eax
je 0x408a8c
call fcn.00404470
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
call fcn.00408c70
add esp, 4
test eax, eax
jne 0x408aaf
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
xor ecx, esp
call fcn.0040a7df
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00411f00
mov eax, dword [0x423268]
add esp, 0xc
test eax, eax
je 0x408af8
cmp word [0x42326c], 0
jbe 0x408af8
push eax
mov esi, str.218.54.31.226
call fcn.004016b0
mov dx, word [0x42326c]
add esp, 4
mov word [0x420f2c], dx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov eax, edx
xor edx, edx
shr eax, 6
mov ecx, 0x3e8
div ecx
push edx
push 0x41e4ac
mov edx, 0x422d58
call fcn.00404610
add esp, 8
call fcn.00409f20
push 0x104
lea edx, [esp + 0x214]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x210]
push 0x5c
push eax
call fcn.0040a851
lea edx, [esp + 0x218]
xor ecx, ecx
push edx
mov word [eax], cx
lea eax, [esp + 0x14]
push 0x104
push eax
call fcn.0040a7ee
add esp, 0x14
push 0x41c29c
lea ecx, [esp + 0xc]
push 0x104
push ecx
call fcn.0040b275
add esp, 0xc
push 0x422d58
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.0040b275
add esp, 0xc
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408bcd
push 0x1f4
call edi
push 1
push 0
push 0x41c428
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call edi
call fcn.0040a3e0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x409350
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x41c308
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], 0
call fcn.0040aa3f
add esp, 0xc
test eax, eax
je 0x409379
xor eax, eax
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push ebx
push esi
push edi
push 2
push 0
push edx
call fcn.0040b767
mov eax, dword [ebp - 4]
push eax
call fcn.0040b977
mov ecx, dword [ebp - 4]
push 0
push 0
push ecx
mov esi, eax
call fcn.0040b767
lea eax, [esi + 0x32]
push eax
mov dword [ebp - 8], eax
call fcn.0040ad38
mov edx, dword [ebp - 4]
push edx
push 1
mov ebx, eax
push esi
push ebx
call fcn.0040bc26
mov eax, dword [ebp - 4]
push eax
call fcn.0040acc4
push 0x32
lea edi, [ebx + esi]
push 0
push edi
call fcn.00411f00
add esp, 0x40
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0040a87f
add esp, 4
xor esi, esi
call fcn.0040a891
mov dword [edi + esi*4], eax
inc esi
cmp esi, 0xc
jl 0x4093e6
mov ecx, dword [ebp + 8]
push 0x41c26c
push ecx
lea edx, [ebp - 4]
push edx
call fcn.0040aa3f
add esp, 0xc
test eax, eax
je 0x409416
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
push eax
push 1
push ecx
push ebx
call fcn.0040abdd
mov edx, dword [ebp - 4]
push edx
call fcn.0040acc4
add esp, 0x14
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a020
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x640
mov eax, dword [0x420044]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
mov dword [ebp - 0x63c], ecx
call fcn.00403b70
add esp, 4
mov dword [ebp - 0x638], eax
test eax, eax
jne 0x40a217
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x222]
push edx
mov word [ebp - 0x224], cx
call fcn.00411f00
add esp, 0xc
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x42a]
push ecx
mov word [ebp - 0x42c], ax
call fcn.00411f00
add esp, 0xc
push 0x104
lea edx, [ebp - 0x634]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x634]
push 0x5c
push eax
call fcn.0040a851
lea edx, [ebp - 0x634]
xor ecx, ecx
push edx
mov word [eax], cx
lea eax, [ebp - 0x224]
push 0x104
push eax
call fcn.0040a7ee
add esp, 0x14
push 0x41c29c
lea ecx, [ebp - 0x224]
push 0x104
push ecx
call fcn.0040b275
xor eax, eax
lea ebx, [ebp - 0x1c]
add esp, 0xc
mov byte [ebp - 0x1c], 0
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov word [ebp - 0xb], ax
mov byte [ebp - 9], al
mov esi, 0x422648
sub ebx, 0x42274c
cmp word [esi], 0
je 0x40a187
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x42c]
push 0x104
push eax
call fcn.0040a7ee
add esp, 0xc
push esi
lea ecx, [ebp - 0x42c]
push 0x104
push ecx
call fcn.0040b275
lea edx, [ebp - 0x42c]
add esp, 0xc
push edx
lea edi, [ebp - 0x1c]
call fcn.00403120
add esp, 4
test eax, eax
je 0x40a187
mov ecx, 0x14
lea eax, [esi + 0x104]
jmp 0x40a170
mov edx, dword [ebx + eax]
cmp edx, dword [eax]
jne 0x40a187
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x40a170
xor eax, eax
mov word [esi], ax
add esi, 0x118
sub ebx, 0x118
cmp esi, 0x422bc0
jl 0x40a114
mov ebx, dword [ebp - 0x63c]
mov edi, dword [ebp + 8]
mov esi, 0x422648
lea ecx, [ecx]
cmp word [esi], 0
je 0x40a1ce
mov ecx, dword [esi + 0x100]
mov dword [0x422d54], ecx
push edi
push ebx
mov ecx, esi
call fcn.00403db0
add esp, 8
add esi, 0x118
cmp esi, 0x422bc0
jl 0x40a1b0
push 0x422d58
lea edx, [ebp - 0x224]
push 0x104
push edx
call fcn.0040b275
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40a211
mov dword [ebp - 0x638], 2
mov eax, dword [ebp - 0x638]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a7df
mov esp, ebp
pop ebp
ret
Function at 0x40a690
Capabilities:
Get file attributes
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or edi, 0xffffffff
cmp eax, edi
je 0x40a705
push 0
push 0
push 3
push 0
push 3
push connect
push esi
mov ebx, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, edi
jne 0x40a6d4
mov dword [ebp - 8], edi
jmp 0x40a6f4
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x40a6ea
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], ebx
cmp edi, dword [ebp + 0x10]
jne 0x40a705
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x200000
call fcn.0040ad38
mov ecx, dword [ebp + 0xc]
add esp, 4
mov edi, eax
push edi
push ecx
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 8]
mov dword [ebp - 8], 0x200000
call fcn.00404630
add esp, 8
test eax, eax
je 0x40a7cc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0040a87f
add esp, 4
call fcn.0040a891
mov dword [ebp + 0x10], eax
fild dword [ebp + 0x10]
fmul qword [0x41e600]
fmul qword [0x41e628]
fadd qword [0x41e620]
call fcn.00415c10
mov ebx, dword [ebp - 8]
lea ebx, [ebx + edi]
mov esi, eax
call fcn.004019a0
mov eax, dword [ebp - 8]
lea ebx, [esi + eax]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], 0
call fcn.00404400
mov esi, eax
cmp esi, 0xffffffff
je 0x40a7c5
push 0
lea ecx, [ebp + 0x10]
push ecx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, dword [ebp + 0x10]
cmp eax, ebx
mov ebx, 1
je 0x40a7b2
mov ebx, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], 1
cmp ebx, 1
je 0x40a7cc
mov dword [ebp - 0x10], 0
push edi
call fcn.0040adcc
mov eax, dword [ebp - 0x10]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a7df
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420044]
jne 0x40a7e9
repz ret
jmp fcn.0040c514
Function at 0x4144de
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x420044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040c83f
and dword [ebp - 0x14], 0
cmp dword [0x4225d8], 0
mov dword [ebp - 0x18], eax
jne 0x414591
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x414639
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x414639
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4225d8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4225dc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4225e0], eax
call edi
push eax
call esi
mov dword [0x4225e8], eax
test eax, eax
je 0x414591
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4225e4], eax
mov eax, dword [0x4225e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4145ea
cmp dword [0x4225e8], ecx
je 0x4145ea
push eax
call esi
push dword [0x4225e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4145ea
test ebx, ebx
je 0x4145ea
call edi
test eax, eax
je 0x4145e1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4145e1
test byte [ebp - 8], 1
jne 0x4145ea
or dword [ebp + 0x10], 0x200000
jmp 0x41461d
mov eax, dword [0x4225dc]
cmp eax, dword [ebp - 0x18]
je 0x41461d
push eax
call esi
test eax, eax
je 0x41461d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41461d
mov eax, dword [0x4225e0]
cmp eax, dword [ebp - 0x18]
je 0x41461d
push eax
call esi
test eax, eax
je 0x41461d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4225d8]
call esi
test eax, eax
je 0x414639
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41463b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a7df
leave
ret
Function at 0x4031b1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x407568
cmp edx, dword [eax]
je 0x4031d3
add eax, 8
inc ecx
cmp eax, 0x4075f8
jl 0x4031c4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x407568]
jne 0x403301
mov eax, dword [0x407b08]
cmp eax, 1
je 0x4032db
test eax, eax
jne 0x403204
cmp dword [0x4074b4], 1
je 0x4032db
cmp edx, 0xfc
je 0x403301
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40323b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404300
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00401460
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40327e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00401460
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x406424
push edi
call fcn.00404b90
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404300
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404310
lea eax, [ebp - 0xa0]
push 0x406404
push eax
call fcn.00404310
push dword [esi + 0x40756c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404310
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00404b05
add esp, 0x2c
pop edi
jmp 0x403301
lea eax, [ebp + 8]
lea esi, [esi + 0x40756c]
push 0
push eax
push dword [esi]
call fcn.00401460
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401270
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x130
mov eax, dword [0x4382d4]
push esi
push 0
push 2
mov dword [esp + 0x138], eax
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0xc], esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401312
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
jmp 0x4012c0
mov edi, str.ME4583.exe
lea esi, [esp + 0x38]
mov ecx, 0xb
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x4012e8
mov edi, str.ME4584.exe
lea esi, [esp + 0x38]
mov ecx, 0xb
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4012f8
mov ecx, dword [esp + 0x1c]
push ecx
push 0
push 1
call ebx
push 0
push eax
call ebp
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4012c0
mov esi, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x130]
pop esi
call fcn.0040e2cf
add esp, 0x130
ret

Function at 0x4013d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4013e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4013fd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40141e
cmp esi, eax
jae 0x4013f7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401410
cmp esi, eax
jae 0x4013f7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x403320
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429d50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x25c]
xor ebx, ebx
cmp ecx, ebx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov dword [esi + 0x244], ebx
mov dword [esi + 0x248], ebx
mov byte [esi + 0x10], bl
je 0x403394
mov eax, dword [ecx]
call dword [eax + 0x4c]
mov ecx, dword [esi + 0x25c]
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x403387
mov edx, dword [ecx]
push 1
call dword [edx + 4]
jmp 0x403387
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x25c], ebx
mov ecx, dword [esi + 0x260]
cmp ecx, ebx
je 0x4033d5
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [esi + 0x260]
cmp ecx, ebx
mov dword [ebp - 4], 2
je 0x4033c8
mov edx, dword [ecx]
push 1
call dword [edx + 4]
jmp 0x4033c8
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x260], ebx
cmp dword [esi + 0x250], 0xffffffff
je 0x4033ed
mov eax, dword [esi + 0x24c]
lea ecx, [esi + 0x24c]
call dword [eax + 0x4c]
mov cl, byte [esi + 0x18]
cmp cl, bl
lea eax, [esi + 0x18]
je 0x4033fe
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4035a0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x18]
mov dword [ebx + 0x74], ecx
push edi
lea ebp, [ebx + 0x78]
mov dword [ebx + 0x70], eax
mov ecx, 0x1a2
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x1fd]
movsw word es:[edi], word [esi]
cmp byte [eax], 0
jne 0x4035dd
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, dword [ebx + 0x7f8]
lea ecx, [ebx + 0x7f8]
call dword [edx + 4]
call fcn.0041b920
test eax, eax
je 0x4035fe
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x403600
xor eax, eax
mov edx, dword [ebx]
push eax
push 0x81
mov ecx, ebx
call dword [edx + 0x130]
cmp byte [ebp], 1
jne 0x40361f
push 5
mov ecx, ebx
call fcn.00420385
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0xc
Function at 0x404a02
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x404a55
call fcn.004270bc
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x404a55
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x404a4b
xor eax, eax
jmp 0x404b6e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x404a85
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x404a85
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x404b6b
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x404ab2
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004045fb
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x404b6b
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x404afb
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x404afb
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x404af5
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004045fb
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x404b5b
and dword [ebp + 0xc], 0
jmp 0x404b5b
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x404b5b
push 0xc
call fcn.0041cd62
mov esi, eax
test esi, esi
pop ecx
je 0x404b3d
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x404b3f
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x404b56
push dword [ebp - 8]
call fcn.0041b1a7
jmp 0x404b5b
call fcn.0041b17e
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x404ac0
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc