joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4018d0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d0feb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b4
mov eax, dword [esp + 0x1cc]
mov ecx, dword [esp + 0x1c8]
push ebp
mov ebp, dword [esp + 0x1c8]
push esi
push edi
push 1
push eax
push ecx
push ebp
lea ecx, [esp + 0x70]
call fcn.00444ad0
mov eax, dword [esp + 0x64]
mov dword [esp + 0x1c8], 0
cmp eax, 1
jne 0x4019b9
mov eax, dword [esp + 0x1dc]
test eax, eax
je 0x4019b9
mov esi, dword [sym.imp.USER32.dll_LoadCursorA]
push ebx
push 0x7f02
push 0
call esi
mov ebx, dword [sym.imp.USER32.dll_SetCursor]
push eax
call ebx
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x20]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
mov eax, 0x80000000
push edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x24]
lea ecx, [esp + 0x70]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0x7f00
push 0
mov edi, eax
call esi
push eax
call ebx
test edi, edi
pop ebx
jne 0x4019b9
push 0x1fe
push ebp
push 0xfffffffffffffffa
push ebp
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
call fcn.00471660
add esp, 0xc
mov eax, dword [esp + 0x1b4]
mov dword [esp + 0x1c8], 0xffffffff
test eax, eax
mov dword [esp + method.Table_struct_OpenWith::Item_.virtual_0], vtable.Table_struct_OpenWith::Item_.0
je 0x401a19
mov eax, dword [esp + 0x1ac]
xor edi, edi
test eax, eax
jle 0x401a19
cmp edi, eax
jge 0x401a14
test edi, edi
jl 0x401a14
mov edx, dword [esp + 0x1a8]
mov esi, dword [edx + edi*4]
test esi, esi
je 0x401a14
mov ecx, esi
call fcn.00444ab0
push esi
call fcn.004bd4c4
mov eax, dword [esp + 0x1b0]
add esp, 4
inc edi
cmp edi, eax
jl 0x4019eb
mov eax, dword [esp + 0x1a8]
push eax
call fcn.004bd4c4
mov ecx, dword [esp + 0x1c4]
add esp, 4
mov eax, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x1c0
ret

Function at 0x401ac0
Capabilities:
Create process on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov edi, dword [sym.imp.USER32.dll_SetCursor]
push eax
call edi
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov ebx, eax
mov eax, dword [esp + 0x1c]
push 5
push eax
push 0
push ebp
push ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push ebx
mov esi, eax
call edi
cmp esi, 0x1b
je 0x401b18
cmp esi, 0x1f
je 0x401b18
xor eax, eax
cmp esi, 0x20
pop edi
pop esi
pop ebp
pop ebx
setg al
ret
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push 1
push edx
push ebp
push eax
call fcn.004018d0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x402600
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x148
mov ecx, dword [esp + 0x150]
push ebp
lea eax, [esp + 8]
push esi
push eax
push ecx
mov dword [esp + 0x14], 0
call fcn.004743b0
mov ebp, eax
add esp, 8
test ebp, ebp
mov dword [esp + 0x20], ebp
je 0x4027e8
push ebp
call fcn.004746d0
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x14], esi
je 0x4027e8
mov edx, dword [esi]
push ebx
mov ebx, dword [esp + 0x158]
lea eax, [esp + 0xc]
push edi
push eax
push 0
lea ecx, [esp + 0x1c]
push 0x4deb40
push ecx
push 1
push ebx
push esi
call dword [edx + 0x28]
mov edi, eax
test edi, edi
jl 0x4027bd
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x18], ebp
je 0x4027af
mov eax, dword [esp + 0x10]
push 4
push 0x7fff
push 1
mov edx, dword [eax]
push 0
push ebp
push eax
call dword [edx + 0xc]
mov edi, eax
test edi, edi
jl 0x4027a8
mov eax, dword [0x4f5e08]
push 0
push eax
push 0
push ebx
push 0
push 0
push 0
push 0
push 0x40000000
push 0x4f55a8
push str.STATIC
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ecx, dword [esp + 0x10]
mov esi, eax
push 0xfffffffffffffffc
push esi
mov dword [esp + 0x28], ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ebp, dword [sym.imp.USER32.dll_SetWindowLongA]
lea edx, [esp + 0x20]
push edx
push 0xffffffffffffffeb
push esi
mov dword [esp + 0x30], eax
call ebp
push 0x402150
push 0xfffffffffffffffc
push esi
call ebp
mov eax, dword [esp + 0x168]
mov ecx, dword [esp + 0x164]
mov edx, dword [esp + 0x18]
push 0
push esi
push 0
push eax
push ecx
push 0x102
push edx
call dword [sym.imp.USER32.dll_TrackPopupMenu]
xor ecx, ecx
cmp eax, ecx
je 0x40278f
dec eax
mov dword [esp + 0x2c], 0x24
and eax, 0xffff
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], eax
lea eax, [esp + 0x50]
push eax
push 0x105
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], 1
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov edi, eax
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x24]
push ecx
push 0xfffffffffffffffc
push esi
call ebp
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
push ebp
call dword [sym.imp.USER32.dll_DestroyMenu]
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov ebp, dword [esp + 0x28]
mov eax, dword [esi]
push esi
call dword [eax + 8]
push ebp
call fcn.00474360
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00474360
add esp, 8
xor eax, eax
test edi, edi
pop edi
pop ebx
pop esi
pop ebp
setge al
add esp, 0x148
ret
pop esi
xor eax, eax
pop ebp
add esp, 0x148
ret
Function at 0x403050
Capabilities:
Set registry value

Disassembly:
sub esp, 0x5c
mov edx, dword [esp + 0x60]
lea eax, [esp + 8]
lea ecx, [esp + 0x60]
push eax
push ecx
push 0
push 0x20006
push 0
push 0x4f55a8
push 0
push edx
push DrawStatusTextA
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x403087
xor eax, eax
add esp, 0x5c
ret
mov eax, dword [esp + 0x68]
push ebx
push ebp
push esi
push edi
push 0
push 0
push 0x40c
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ebp, eax
lea ecx, [ebp + ebp*2]
lea eax, [ecx*4 + 4]
push eax
mov dword [esp + 0x18], eax
call fcn.004bd49b
mov edi, eax
add esp, 4
xor ebx, ebx
mov dword [esp + 0x10], edi
test ebp, ebp
mov dword [edi], ebp
lea esi, [edi + 4]
jle 0x40311d
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x78]
push edx
push ebx
push 0x41d
push eax
mov dword [esp + 0x2c], 0x50
mov dword [esp + 0x30], 0x141
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x24]
mov dword [esi], ecx
mov dword [esi + 8], edx
mov dword [esi + 4], eax
add esi, 0xc
inc ebx
cmp ebx, ebp
jl 0x4030ca
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
push ecx
push edi
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
mov esi, eax
call fcn.004bd4c4
mov ecx, dword [esp + 0x74]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebp
setge al
pop ebx
add esp, 0x5c
ret
Function at 0x403160
Capabilities:
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x68
lea eax, [esp]
push ebp
xor ebp, ebp
push eax
push 0x20019
push ebp
push ecx
push DrawStatusTextA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4032f1
mov ecx, dword [esp + 4]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x78]
push esi
mov esi, dword [esp + 0x7c]
push edx
lea eax, [esp + 0x1c]
push ebp
push eax
push ebp
push esi
push ecx
call ebx
test eax, eax
jne 0x4032dd
mov edx, dword [esp + 0x7c]
push edi
push edx
call fcn.004bd49b
mov edx, dword [esp + 0x14]
add esp, 4
mov edi, eax
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x20]
push edi
push ecx
push ebp
push esi
push edx
mov dword [esp + 0x38], edi
call ebx
test eax, eax
jne 0x4032d3
mov eax, dword [edi]
lea ecx, [eax + eax*2]
lea edx, [ecx*4 + 4]
mov ecx, dword [esp + 0x80]
cmp ecx, edx
jne 0x4032d3
lea ecx, [edi + 4]
cmp eax, ebp
mov dword [esp + 0x24], 1
mov dword [esp + 0x14], ebp
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x18], ebp
jle 0x4032cf
mov ebx, dword [esp + 0x84]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esp + 0x7c]
push 0
mov eax, dword [edx]
push eax
push 0x410
push ebx
call ebp
mov esi, eax
test esi, esi
jl 0x4032b1
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0x50
push ecx
push esi
push 0x41d
push ebx
mov dword [esp + 0x3c], 0x41
call ebp
mov eax, dword [esp + 0x7c]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x54], edx
xor ecx, eax
lea edx, [esp + 0x28]
and ecx, 1
push edx
push esi
xor eax, ecx
push 0x406
push ebx
mov dword [esp + 0x40], eax
call ebp
mov ecx, dword [esp + 0x14]
mov eax, ecx
inc ecx
push eax
push esi
push 0x427
push ebx
mov dword [esp + 0x24], ecx
call ebp
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x7c]
mov eax, dword [esp + 0x18]
mov ecx, dword [edi]
add esi, 0xc
inc eax
mov dword [esp + 0x7c], esi
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x40322b
mov ebp, dword [esp + 0x24]
push edi
call fcn.004bd4c4
add esp, 4
pop edi
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, ebp
pop ebx
pop ebp
add esp, 0x68
ret
mov eax, ebp
pop ebp
add esp, 0x68
ret
Function at 0x403300
Capabilities:
Enumerate network shares

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [esp + 0x20]
movsx eax, byte [esi]
push eax
call fcn.004a7da5
add esp, 4
cmp al, 0x41
mov byte [esp + 0x20], al
jl 0x403474
cmp al, 0x5a
jg 0x403474
cmp byte [esi + 1], 0x3a
jne 0x403474
mov al, byte [esi + 2]
add esi, 2
cmp al, 0x5c
mov dword [esp + 0x14], esi
jne 0x403474
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 1
push 1
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
jne 0x403474
push ebx
push ebp
mov ebx, 0x640
push edi
push ebx
call fcn.004a85fa
add esp, 4
mov ebp, eax
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push ebp
push eax
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], 0xffffffff
call sub.MPR.dll_WNetEnumResourceA
cmp eax, 0xea
jne 0x4033b5
mov eax, dword [esp + 0x14]
push eax
push ebp
mov ebx, eax
call fcn.004a82cb
add esp, 8
mov ebp, eax
jmp 0x403379
test eax, eax
jne 0x403455
mov eax, dword [esp + 0x10]
xor esi, esi
test eax, eax
jle 0x403379
lea edi, [ebp + 0x10]
mov eax, dword [edi]
test eax, eax
je 0x4033e5
movsx edx, byte [eax]
push edx
call fcn.004a7da5
movsx ecx, byte [esp + 0x30]
add esp, 4
cmp ecx, eax
je 0x4033f3
mov eax, dword [esp + 0x10]
inc esi
add edi, 0x20
cmp esi, eax
jl 0x4033ca
jmp 0x403379
shl esi, 5
or ecx, 0xffffffff
xor eax, eax
mov edi, dword [esi + ebp + 0x14]
mov edx, dword [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x20], 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x24]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004a8197
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
call sub.MPR.dll_WNetCloseEnum
push ebp
call fcn.004a80ae
mov eax, dword [esp + 0x20]
add esp, 4
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x14
ret
xor eax, eax
pop esi
add esp, 0x14
ret
Function at 0x403836
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d10b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
push 0x80
mov dword [esp + 0xc], esi
mov dword [esi], vtable.Table_class_PhotoEditor_.0
call fcn.004bd49b
xor edi, edi
mov dword [esi + 4], eax
mov dword [esi + 8], edi
mov dword [esi + 0xc], 0x1f
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 0x40
mov dword [esi], vtable.STable_class_PhotoEditor_.0
push 0x80
mov dword [esp + 0x1c], edi
mov dword [esi + 0x1c], vtable.Table_class_CCoolMenuManager_.0
call fcn.004bd49b
mov ecx, dword [esp + 0x14]
add esp, 8
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], 0x1f
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], 0x40
mov dword [esi + 0x3c], vtable.CMenu.0
mov dword [esi + 0x40], edi
mov dword [esi + 0x38], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x405fa0
Capabilities:
Delete directory
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4d130b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
mov ebx, ecx
push esi
mov dword [esp + 0x14], ebx
mov dword [ebx], vtable.AFolder.0
mov eax, dword [ebx + 0x14c]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x124], esi
je 0x40616e
mov eax, dword [ebx + 0x13c]
push ebp
cmp eax, esi
push edi
je 0x406087
mov eax, dword [ebx + 0x138]
cmp eax, esi
je 0x406078
cmp dword [eax + 8], esi
jle 0x406078
mov ebp, dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [ebx + 0x13c]
cmp byte [eax + esi], 1
jne 0x40606c
mov cl, byte [0x4f55a8]
xor eax, eax
mov byte [esp + 0x20], cl
mov ecx, 0x40
lea edi, [esp + 0x21]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
push 0x104
stosb byte es:[edi], al
call ebp
mov eax, dword [ebx + 0x138]
cmp esi, dword [eax + 8]
jge 0x40604e
test esi, esi
jl 0x40604e
mov eax, dword [eax + 4]
mov eax, dword [eax + esi*4]
jmp 0x406050
xor eax, eax
add eax, 0x40
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.00471050
add esp, 8
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebx + 0x138]
inc esi
cmp esi, dword [eax + 8]
jl 0x406005
mov eax, dword [ebx + 0x13c]
push eax
call fcn.004bd4c4
add esp, 4
mov eax, dword [ebx + 0x150]
test eax, eax
je 0x406116
mov ebp, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, dword [ebx + 0x150]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x406106
mov edx, dword [eax + 4]
mov eax, dword [edx + ecx*4 - 4]
test eax, eax
je 0x406106
push eax
call ebp
mov esi, dword [ebx + 0x150]
mov eax, dword [esi + 8]
test eax, eax
jle 0x40609b
lea edi, [eax - 1]
test edi, edi
jl 0x40609b
cmp edi, eax
jge 0x40609b
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4060e4
mov eax, dword [esi + 4]
mov ecx, dword [eax + edi*4]
push ecx
call fcn.004bd4c4
add esp, 4
mov edx, dword [esi + 8]
mov eax, edi
dec edx
cmp edi, edx
jge 0x406101
mov ecx, dword [esi + 4]
inc eax
mov edx, dword [ecx + eax*4]
mov dword [ecx + eax*4 - 4], edx
mov ecx, dword [esi + 8]
dec ecx
cmp eax, ecx
jl 0x4060ee
dec dword [esi + 8]
jmp 0x40609b
mov ecx, dword [ebx + 0x150]
test ecx, ecx
je 0x406116
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [ebx + 0x138]
pop edi
test ecx, ecx
pop ebp
je 0x406128
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebx + 0x134]
test ecx, ecx
je 0x40615f
mov eax, dword [ebx + 0x148]
test eax, eax
je 0x40615f
lea edx, [esp + 8]
mov dword [esp + 8], 0
push edx
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.0048da10
mov eax, dword [ebx + 0x144]
push eax
call fcn.004bd4c4
add esp, 4
mov eax, dword [ebx + 0x140]
push eax
call fcn.004bd4c4
add esp, 4
mov ecx, ebx
mov dword [esp + 0x124], 0xffffffff
call fcn.0045f750
mov ecx, dword [esp + 0x11c]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x120
ret
Function at 0x40bc00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x234
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x14c]
test ecx, ecx
je 0x40bce8
mov esi, dword [ecx + 8]
test esi, esi
je 0x40bce8
mov eax, dword [ecx]
lea edx, [esp + 0x138]
push edx
call dword [eax + 0x24]
push 0
lea eax, [esp + 0x13c]
push 1
push eax
push esi
mov ecx, edi
call fcn.004137e0
test eax, eax
jne 0x40bcc2
mov ebp, dword [esi + 0x28]
test ebp, ebp
je 0x40bce8
push ebx
push 0x105
call fcn.004bd49b
add esp, 4
mov ebx, eax
push ebx
push ebp
call dword [sym.imp.USER32.dll_OemToCharA]
mov ecx, dword [edi + 0x144]
push ebx
push 0x20b
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.00472a10
push ebx
call fcn.004bd4c4
mov eax, dword [0x4ed220]
mov edx, dword [edi + 0xcc]
add esp, 0x14
lea ecx, [esp + 0x10]
push 0
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
push 0
push 1
push 0
push esi
mov ecx, edi
call fcn.004137e0
test eax, eax
jne 0x40bcc2
mov esi, dword [esi + 8]
test esi, esi
jne 0x40bca7
jmp 0x40bcc6
test esi, esi
jne 0x40bce8
lea eax, [esp + 0xc]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0
push 0
lea ecx, [esp + 0x14]
push 1
push ecx
mov ecx, edi
call fcn.00413710
pop edi
pop esi
pop ebp
add esp, 0x234
ret
Function at 0x4125e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x178
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push esi
mov esi, ecx
push 2
push 0xffffffffffffffff
push 0x100c
mov eax, dword [esi + 0xd8]
push eax
call ebx
mov ebp, eax
cmp ebp, 0xffffffff
je 0x412753
mov edx, dword [esi + 0xd8]
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0x1005
push edx
mov dword [esp + 0x3c], 4
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], 0
call ebx
test eax, eax
je 0x412746
push edi
lea ecx, [esi + 0x2690]
call fcn.004298e0
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x80]
push ecx
mov eax, dword [eax]
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x41273a
lea edx, [esp + 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [esp + eax + 0x81], 0
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0xd8]
mov edi, 3
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x190]
lea ecx, [esp + 0x80]
mov dword [esp + 0x14], edi
test eax, eax
mov dword [esp + 0x18], ecx
mov word [esp + 0x20], 4
je 0x4126c4
mov word [esp + 0x20], 0x44
mov eax, dword [esp + 0x18c]
test eax, eax
jne 0x4126d4
or byte [esp + 0x20], 0x10
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41273a
mov ecx, dword [esi + 0xd8]
push 0
push ebp
push 0x1008
push ecx
call ebx
mov edx, dword [esi + 0xd8]
push 0
push 0
push 0x1004
push edx
call ebx
cmp ebp, eax
jne 0x41271a
dec ebp
mov ecx, dword [esi + 0xd8]
lea eax, [esp + 0x58]
push eax
push ebp
push 0x102b
push ecx
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], edi
call ebx
lea ecx, [esi + 0x2690]
call fcn.00429940
pop edi
mov edx, dword [esi + 0xd8]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
pop esi
pop ebp
pop ebx
add esp, 0x178
ret 8

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

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
mov esi, ecx
push eax
lea ecx, [esi + 0x27d4]
call fcn.0044f1c0
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x412c60
lea edx, [esp + 4]
push 0
push edx
lea eax, [esp + 0xc]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push 0
push 0
lea ecx, [esp + 0xc]
push 1
push ecx
mov ecx, esi
call fcn.00413710
test eax, eax
je 0x412c92
mov edx, dword [esi + 0xd0]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, 1
pop esi
add esp, 0x104
ret 8
mov eax, dword [0x4ed220]
mov ecx, dword [esi + 0xcc]
mov edx, dword [esi + 0x144]
push 0
push eax
push 0x211
push ecx
push edx
call fcn.00471450
add esp, 0x14
xor eax, eax
pop esi
add esp, 0x104
ret 8
Function at 0x416b00
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x14c]
test ecx, ecx
je 0x416ba4
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
jne 0x416ba4
mov eax, dword [esi + 0x140]
test eax, eax
je 0x416b78
mov ecx, dword [esi + 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi + 0x140]
push 0xbb8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x416b57
push 0x40
call dword [sym.imp.USER32.dll_MessageBeep]
mov eax, dword [esi + 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x140], 0
mov eax, dword [esi + 0x140]
test eax, eax
jne 0x416ba4
mov ecx, dword [esi + 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea edx, [esp + 4]
push edx
push 0
push esi
push 0x40c360
push 0
push 0
call fcn.004a899b
add esp, 0x18
mov dword [esi + 0x140], eax
pop esi
pop ecx
ret

Function at 0x417b80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [0x4f83ec]
mov edx, dword fs:[0x2c]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, dword [edx + ecx*4]
lea edi, [ebx + 0x15]
push edi
call ebp
test eax, eax
je 0x417bd5
mov al, byte [ebx + 0x14]
test al, al
je 0x417bd5
push 0
push 0
push 1
push edi
mov ecx, esi
call fcn.00413710
test eax, eax
jne 0x417c4d
lea ebx, [ebx + 0x119]
push ebx
call ebp
test eax, eax
je 0x417bf4
push 0
push 0
push 1
push ebx
mov ecx, esi
call fcn.00413710
test eax, eax
jne 0x417c4d
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0x10]
push eax
push 0x105
call edi
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0x27
push 0
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathA]
push 0
push 0
lea edx, [esp + 0x18]
push 1
push edx
mov ecx, esi
call fcn.00413710
test eax, eax
jne 0x417c4d
lea eax, [esp + 0x10]
push eax
push 0x105
call edi
push 0
push 0
lea ecx, [esp + 0x18]
push 1
push ecx
mov ecx, esi
call fcn.00413710
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x419490
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x310
push esi
mov esi, ecx
lea ecx, [esi + 0x1b88]
call fcn.0042d8d0
test eax, eax
je 0x4195bb
push 0
push 0
lea ecx, [esp + 0x218]
push 0
push ecx
mov ecx, eax
call fcn.00425910
test eax, eax
je 0x4195bb
mov eax, dword [esi + 0x140]
test eax, eax
je 0x419518
mov edx, dword [esi + 0x13c]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x140]
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x419501
push 0x40
call dword [sym.imp.USER32.dll_MessageBeep]
mov ecx, dword [esi + 0x140]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x140], 0
mov dx, word [0x4ede20]
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], dx
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x112]
mov word [esp + 0x110], dx
lea edx, [esp + 0x110]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x214]
push edx
push eax
call fcn.00471240
add esp, 8
lea ecx, [esp + 0x214]
lea edx, [esp + 9]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 8]
push 0x4ede20
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [esp + 0x31c]
push ecx
mov ecx, 0x4f55b0
call fcn.00450180
test eax, eax
pop edi
je 0x4195bb
lea edx, [esp + 0x10c]
push 5
lea ecx, [esp + 8]
push edx
mov edx, dword [esi + 0x1c]
push ecx
push eax
push str.open
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop esi
add esp, 0x310
ret 4