joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403793
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x4037bc
cmp al, 0x22
je 0x4037b4
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4037a8
cmp byte [esi], 0x22
jne 0x4037c6
inc esi
jmp 0x4037c6
cmp al, 0x20
jle 0x4037c6
inc esi
cmp byte [esi], 0x20
jg 0x4037c0
mov al, byte [esi]
test al, al
je 0x4037d0
cmp al, 0x20
jle 0x4037b9
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
call fcn.0040383e
push 0x405004
push section..data
call fcn.00403824
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x403800
movzx eax, word [ebp - 0x14]
jmp 0x403803
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.00403856
push esi
call dword [sym.imp.KERNEL32.DLL_ExitProcess]

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x1000119e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push edi
push esi
mov dword [ebp - 0x1c], ebx
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x3c]
add edi, eax
mov ecx, dword [edi + 0x78]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx]
mov dword [ebp - 8], eax
mov eax, dword [edx + ecx + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [edx + ecx + 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [edx + ecx + 0x24]
mov dword [ebp - 0x14], eax
mov ecx, dword [edx + ecx + 0x20]
mov esi, ecx
add esi, dword [ebp + 8]
mov dword [ebp - 0x18], ebx
mov eax, dword [esi]
add esi, 4
add eax, dword [ebp + 8]
inc eax
nop
push dword [ebp + 0xc]
push eax
call sub.kernel32.dll_lstrcmpiA
test eax, eax
je 0x100011ff
inc dword [ebp - 0x18]
dec dword [ebp - 4]
je 0x1000121e
jmp 0x100011de
mov eax, dword [ebp - 0x18]
shl eax, 1
add eax, dword [ebp - 0x14]
add eax, dword [ebp + 8]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
add eax, dword [ebp + 8]
mov eax, dword [eax]
add eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
pop esi
pop edi
leave
ret 8
Function at 0x403f95
Capabilities:
Check if file exists

Disassembly:
push 0x68
mov eax, 0x62058f
call fcn.00503bb3
mov edi, dword [ebp + 8]
xor edx, edx
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov esi, dword [ebp + 0x10]
push 7
pop ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
mov word [ebp - 0x28], ax
mov dword [ebp - 4], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x71]
mov byte [ebp - 4], 1
call fcn.00403b92
push esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00403d6c
cmp dword [ebp - 0x30], 0
jbe 0x4040e0
lea eax, [ebp - 0x58]
push eax
call fcn.00404394
mov ecx, eax
call fcn.0040bb90
push eax
lea ecx, [ebp - 0x28]
call fcn.004034bf
lea ecx, [ebp - 0x58]
call fcn.004019ec
lea eax, [ebp - 0x58]
push 0x6a1620
push eax
call fcn.0040e937
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00404413
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.004019ec
push 0x6a1678
lea ecx, [ebp - 0x28]
call fcn.00401975
push 8
pop esi
cmp dword [ebp - 0x2c], esi
lea eax, [ebp - 0x40]
push 0x2f
cmovae eax, dword [ebp - 0x40]
push 0xffffffffffffffff
push dword [ebp - 0x30]
push eax
call fcn.00404499
add esp, 0x10
lea ecx, [ebp - 0x72]
inc eax
push ecx
push dword [ebp - 0x30]
lea ecx, [ebp - 0x70]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00404430
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x28]
call fcn.00404413
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
call fcn.004019ec
cmp dword [ebp - 0x14], esi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4040cb
cmp dword [ebp - 0x14], esi
lea ecx, [ebp - 0x28]
push 0
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], esi
push 0
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call fcn.0040431e
mov ecx, eax
call fcn.004110f4
cmp dword [ebp - 0x14], esi
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x71]
cmovae eax, dword [ebp - 0x28]
push eax
push ebx
push edi
call fcn.0040b440
lea ecx, [ebp - 0x71]
call fcn.004015c0
lea ecx, [ebp - 0x40]
call fcn.004019ec
lea ecx, [ebp - 0x28]
call fcn.004019ec
call fcn.00503b5d
ret 0xc

Function at 0x406ed0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x6b6514]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x214]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406f47
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x406f47
push 4
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 1
push eax
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00503248
leave
ret
Function at 0x407836
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, ecx
mov ecx, dword [esi + 0x2c]
call fcn.004376e0
test al, al
je 0x40787a
mov eax, dword [ebp + 0x1c]
or ecx, 0xffffffff
mov byte [esi + 0x39], 1
push 0
mov eax, dword [eax]
mov word [eax], cx
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0xf060
push 0x112
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
pop ebp
ret 0x18

Function at 0x40b6f4
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x258
mov eax, 0x621395
call fcn.00503bb3
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [ebp + 0xc]
xor ecx, ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], cx
push eax
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], ebx
call fcn.00403d93
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push ebx
push eax
call fcn.0051c7f0
add esp, 0xc
lea eax, [ebp - 0x218]
push ebx
push dword [ebp + 0x14]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x40b77c
push 0x6a17d8
mov ecx, edi
call fcn.00403d93
jmp 0x40b854
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00403d6c
mov eax, dword [ebp - 0x220]
lea ecx, [ebp - 0x230]
dec eax
push eax
call fcn.0040ba78
cmp word [eax], 0x5c
je 0x40b7b7
push 0x6a1678
lea ecx, [ebp - 0x230]
call fcn.00401975
push esi
lea ecx, [ebp - 0x230]
call fcn.00401975
xor eax, eax
mov dword [ebp - 0x250], ebx
mov word [ebp - 0x260], ax
lea ecx, [ebp - 0x260]
mov eax, dword [ebp - 0x220]
sub eax, dword [ebp - 0x238]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x230]
mov dword [ebp - 0x24c], 7
push eax
call fcn.0040445b
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x260]
call fcn.004031ab
lea ecx, [ebp - 0x260]
mov esi, eax
call fcn.004019ec
test esi, esi
je 0x40b846
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push dword [ebp - 0x238]
cmovae eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x230]
push eax
call fcn.00401917
lea eax, [ebp - 0x230]
mov ecx, edi
push eax
call fcn.00405183
lea ecx, [ebp - 0x248]
call fcn.004019ec
lea ecx, [ebp - 0x230]
call fcn.004019ec
mov eax, edi
call fcn.00503b5d
ret 0x10
Function at 0x40e9d3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xc4
mov eax, 0x62194d
call fcn.00503bb3
mov dword [ebp - 0xd0], ecx
mov esi, dword [ebp + 8]
movzx eax, word [ebp + 0x24]
xor ebx, ebx
push 0xa
push eax
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40eb15
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40eb15
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov dword [ebp - 0xc8], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp dword [ebp - 0xc8], ebx
jne 0x40ea3f
test edi, edi
je 0x40eb15
cmp dword [ebp + 0x1c], ebx
jbe 0x40ead9
lea eax, [ebp + 0xc]
mov dword [ebp - 0x30], ebx
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], ebx
call fcn.004031db
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.0041ded7
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc4]
call fcn.0041e853
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xc4]
call fcn.0041e0c3
lea esi, [edi + 1]
mov byte [ebp - 4], 2
push esi
call fcn.005225a6
push esi
push ebx
push eax
mov dword [ebp - 0xcc], eax
call fcn.0051c7f0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0xcc]
cmovae eax, dword [ebp - 0x28]
push eax
push edi
push esi
push dword [ebp - 0xc8]
call fcn.0041de75
add esp, 0x20
lea ecx, [ebp - 0x28]
call fcn.00403602
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.00403602
jmp 0x40eadb
mov esi, ebx
sub esp, 0x18
mov ecx, esp
push esi
call fcn.0040349c
lea eax, [ebp - 0x58]
push eax
call fcn.00409c47
add esp, 0x1c
mov esi, dword [ebp - 0xd0]
lea eax, [ebp - 0x58]
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0040fd56
cmp dword [esi + 4], ebx
lea ecx, [ebp - 0x58]
seta bl
call fcn.00403602
lea ecx, [ebp + 0xc]
call fcn.00403602
mov al, bl
call fcn.00503b5d
ret 0x20
Function at 0x4114dc
Capabilities:
Create process on windows

Disassembly:
push 0x18
mov eax, 0x621ce1
call fcn.00503b7f
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
call fcn.00403bde
push eax
lea ecx, [ebp - 0x10]
call fcn.00403934
mov byte [ebp - 4], 1
call fcn.00403bde
push eax
lea ecx, [ebp - 0x18]
call fcn.00403934
push 0x20119
push str.SOFTWAREWOW6432NodeMicrosoftWindowsCurrentVersionUninstallGoogle_Chrome
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.0040b900
mov edi, 0x1000
test eax, eax
jne 0x411572
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], edi
call fcn.00403764
lea ecx, [ebp - 0x14]
push ecx
push eax
push str.InstallLocation
lea ecx, [ebp - 0x24]
call fcn.0040b955
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.0041170b
test esi, esi
jne 0x411572
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], ebx
jne 0x4115bb
jmp 0x411575
mov esi, dword [ebp - 0x10]
push 0x20119
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallGoogle_Chrome
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x24]
call fcn.0040b900
test eax, eax
jne 0x4115bb
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], edi
call fcn.00403764
lea ecx, [ebp - 0x14]
push ecx
push eax
push str.InstallLocation
lea ecx, [ebp - 0x24]
call fcn.0040b955
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0041170b
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
test eax, eax
jne 0x4115c7
mov edi, dword [ebp - 0x18]
jmp 0x411627
dec eax
lea ecx, [ebp - 0x10]
push eax
call fcn.0041145c
cmp ax, 0x5c
je 0x4115e9
push 1
push 0x6a1678
lea ecx, [ebp - 0x10]
call fcn.0040b191
mov esi, dword [ebp - 0x10]
push 0x78
push 0x65
push 0x6d
push 0x6f
push 0x72
push 0x68
push 0x63
push esi
lea eax, [ebp - 0x18]
push str._s_c_c_c_c_c_c.e_ce
push eax
call fcn.004113bc
mov edi, dword [ebp - 0x18]
add esp, 0x28
push 5
push ebx
push dword [ebp + 8]
push edi
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ebx, ebx
cmp eax, 0x20
setg bl
lea ecx, [edi - 0x10]
call fcn.00403c82
lea ecx, [esi - 0x10]
call fcn.00403c82
lea ecx, [ebp - 0x24]
call fcn.0040b37e
mov eax, ebx
call fcn.00503b48
ret
Function at 0x411647
Capabilities:
Create process on windows
Get common file path

Disassembly:
push 0x210
mov eax, 0x621d07
call fcn.00503bb3
mov esi, dword [ebp + 8]
push 1
push 0
push esi
push str.iexplore.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ebx, ebx
cmp eax, 0x20
setg bl
jle 0x411687
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x483
jne 0x411703
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0051c7f0
add esp, 0xc
lea eax, [ebp - 0x218]
push ebx
push 0x26
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.00403bde
push eax
lea ecx, [ebp - 0x21c]
call fcn.00403934
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x21c]
push str.__sInternet_Exploreriexplore.exe_
push eax
call fcn.004113bc
add esp, 0xc
push 1
push ebx
push esi
mov esi, dword [ebp - 0x21c]
push esi
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
lea ecx, [esi - 0x10]
setg bl
call fcn.00403c82
mov eax, ebx
call fcn.00503b5d
ret

Function at 0x411737
Capabilities:
Create process on windows
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 1
xor eax, eax
push eax
push eax
push dword [ebp + 8]
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x41175a
pop ebp
jmp fcn.00411647
pop ebp
ret
Function at 0x41224d
Capabilities:
Accept command line arguments

Disassembly:
push 0x68
mov eax, 0x621e97
call fcn.00503bb3
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x60]
xor ebx, ebx
mov esi, ebx
call fcn.004162c6
mov dword [ebp - 4], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov byte [ebp - 4], 1
test edi, edi
je 0x41227f
push edi
jmp 0x412286
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x60]
call fcn.004168e6
lea ecx, [ebp - 0x60]
call fcn.0040bbc0
cmp eax, 1
jne 0x4122a5
call fcn.0041220b
jmp 0x4123c3
lea eax, [ebp - 0x28]
push 0x6a181c
push eax
call fcn.0040e74d
pop ecx
pop ecx
push 8
pop edi
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], edi
jb 0x4122c3
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x60]
call fcn.00416b5e
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
mov bl, al
call fcn.004019ec
test bl, bl
je 0x4123c3
lea eax, [ebp - 0x58]
push 0x6a181c
push eax
call fcn.0040e74d
pop ecx
pop ecx
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], edi
jb 0x4122fd
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x60]
call fcn.0041634a
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], edi
jb 0x412315
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00416cff
pop ecx
pop ecx
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], edi
jb 0x41232c
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x60]
call fcn.00416971
lea ecx, [ebp - 0x28]
call fcn.004019ec
lea ecx, [ebp - 0x40]
call fcn.004019ec
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.004019ec
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
call fcn.004163ca
mov ebx, dword [ebp - 0x6c]
xor edx, edx
mov ecx, dword [ebp - 0x70]
mov eax, ebx
sub eax, ecx
mov dword [ebp - 0x64], edx
push 0x18
pop edi
cdq
idiv edi
mov dword [ebp - 0x74], edi
test eax, eax
je 0x4123c3
xor edi, edi
lea eax, [edi + ecx]
cmp dword [eax + 0x10], 0
je 0x41239f
cmp dword [eax + 0x14], 8
jb 0x41238c
mov eax, dword [eax]
push eax
call fcn.0041214a
mov esi, eax
pop ecx
test esi, esi
jne 0x4123b8
mov ebx, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x70]
push 0x18
pop eax
add edi, eax
inc dword [ebp - 0x64]
mov eax, ebx
sub eax, ecx
cdq
idiv dword [ebp - 0x74]
cmp dword [ebp - 0x64], eax
jb 0x41237b
test esi, esi
je 0x4123c3
mov eax, dword [esi]
lea ecx, [ebp - 0x60]
push ecx
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x70]
call fcn.0040a7c8
lea ecx, [ebp - 0x60]
call fcn.00416319
call fcn.00503b5d
ret
Function at 0x416dd3
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x6b6514]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x416e02
push 2
pop eax
jmp 0x416e87
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.00416bb7
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.0051c7f0
add esp, 0x14
mov dword [ebp - 0x58], edi
test ebx, ebx
mov dword [ebp - 0x48], esi
mov ecx, str.open
mov dword [ebp - 0x54], 0x40
mov eax, 0x62a944
cmove eax, ecx
cmp dword [ebp - 8], 8
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
and dword [ebp - 0x40], 0
and dword [ebp - 0x3c], 0
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x20], 0
mov esi, eax
je 0x416e7d
cmp dword [ebp + 0x10], 0
je 0x416e7d
push dword [ebp + 0x14]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x1c]
call fcn.004019ec
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00503248
leave
ret
Function at 0x418318
Capabilities:
Check if file exists

Disassembly:
push 0x23c
mov eax, 0x6228ef
call fcn.00503bb3
mov edi, ecx
lea eax, [ebp - 0x230]
push eax
call fcn.00418082
and dword [ebp - 4], 0
lea esi, [edi + 4]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41834a
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x62a9b8
call fcn.00401975
push 0x62a9bc
mov ecx, esi
call fcn.00401975
push 0x6a1678
mov ecx, esi
call fcn.00401975
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.00401917
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x41839f
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x418437
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0051c7f0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00418062
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4183f6
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00401975
push 0x6a1678
mov ecx, esi
call fcn.00401975
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.00401917
cmp dword [esi + 0x14], 8
jb 0x41843f
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea esi, [edi + 0x1c]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x418457
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x62a9b8
call fcn.00401975
push 0x62a9bc
mov ecx, esi
call fcn.00401975
push 0x6a1678
mov ecx, esi
call fcn.00401975
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
call fcn.004180e1
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00404413
lea ecx, [ebp - 0x248]
call fcn.004019ec
lea ecx, [ebp - 0x230]
call fcn.004019ec
call fcn.00503b5d
ret
Function at 0x419588
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x622a7d
call fcn.00503bb3
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x4195a9
push dword [esi + 0x1c]
call fcn.0052ffae
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00418a3d
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.00529274
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x41962d
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.00418a3d
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00418a3d
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.004019ec
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.004019ec
sub edi, 1
jns 0x4195d7
mov ecx, esi
call fcn.00419427
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.004019ec
call fcn.00503b5d
ret

Function at 0x419646
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x622a7d
call fcn.00503bb3
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x419667
push dword [esi + 0x1c]
call fcn.0052ffae
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00418a3d
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.00529274
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x4196eb
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.00418a3d
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00418a3d
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.004019ec
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.004019ec
sub edi, 1
jns 0x419695
mov ecx, esi
call fcn.004194be
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.004019ec
call fcn.00503b5d
ret