joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4078e0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push 0x479cc4
push 0x479c38
mov ebx, eax
call fcn.004089f0
add esp, 8
push eax
push str.INFO
mov ecx, edi
call fcn.00417780
mov eax, ebx
call fcn.00402637
push eax
push str.INFO
mov ecx, edi
call fcn.00417780
mov eax, dword [ebp + 0xc]
movzx ecx, word [ebp + 8]
push eax
push ecx
push 0
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4079da
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0
push 2
push 0
push 0
mov dword [ebp - 8], eax
push 0x40000000
mov eax, ebx
mov dword [ebp + 8], 0
call fcn.00402637
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4079ac
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
push 0
lea edx, [ebp + 8]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov bl, 1
test eax, eax
jne 0x40799d
mov bl, byte [ebp - 1]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.ant_create_file
push 0x479a8c
call fcn.004089f0
add esp, 8
push eax
push str.ERROR
mov ecx, edi
call fcn.00417780
push edi
call fcn.004176e0
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.esource_file_not_found
push 0x479d44
call fcn.004089f0
add esp, 8
push eax
push str.ERROR
mov ecx, edi
call fcn.00417780
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407df0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e84b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x490654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407e2c
test al, 0x10
jne 0x407e3d
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
jne 0x407ecb
lea edi, [ebp - 0x234]
call fcn.00408020
mov eax, edi
mov dword [ebp - 4], 0
call fcn.00402637
push eax
push esi
push str.sTest__s
push 0x479cc0
call fcn.004089f0
add esp, 8
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x407ec0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, edi
call fcn.004025fd
mov al, 1
jmp 0x407ecd
lea ecx, [ebp - 0x234]
call fcn.004025fd
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00452c94
mov esp, ebp
pop ebp
ret
Function at 0x4082b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x490654]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x22c
mov esi, eax
lea eax, [ebp - 0x230]
push edi
push eax
call fcn.0045e840
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x408360
mov ecx, ebx
lea eax, [ebp - 0x20c]
jmp 0x408310
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408336
test dx, dx
je 0x408332
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408336
add eax, 4
add ecx, 4
test dx, dx
jne 0x408310
xor eax, eax
jmp 0x40833b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40834a
mov eax, dword [ebp - 0x228]
cmp eax, 0xffffffff
jne 0x40835e
lea edx, [ebp - 0x230]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x408303
jmp 0x408360
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00452c94
mov esp, ebp
pop ebp
ret
Function at 0x4083b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47183b
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x490654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, edx
mov dword [ebp - 0x68], eax
mov eax, esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ecx
call fcn.00402637
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408406
test al, 0x10
jne 0x408470
push 0x479e04
push 0x479a8c
call fcn.004089f0
add esp, 8
push eax
lea eax, [ebp - 0x2c]
call fcn.004025cc
mov edi, eax
push 0
push esi
or eax, 0xffffffff
mov dword [ebp - 4], 0
call fcn.004030d1
call fcn.00402637
push eax
push str.INFO
mov ecx, ebx
call fcn.00417780
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.004025fd
mov eax, esi
call fcn.00402637
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x408470
push ebx
call fcn.004176e0
lea edx, [ebp - 0x118]
push edx
call fcn.0040263c
mov dword [ebp - 4], 1
lea eax, [ebp - 0x2c]
call fcn.004025a5
mov edi, eax
lea esi, [ebp - 0x100]
mov byte [ebp - 4], 2
call fcn.004034a1
mov eax, edi
call fcn.00404ff4
mov ebx, eax
mov eax, edi
call fcn.00402637
push eax
mov eax, dword [ebp - 0xc0]
call fcn.004037de
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.004025fd
mov eax, dword [ebp - 0x118]
mov eax, dword [eax + 4]
push 0
lea eax, [ebp + eax - 0x118]
xor ecx, ecx
call fcn.00402f87
mov edi, dword [ebp - 0x6c]
lea ecx, [ebp - 0x108]
push edi
push ecx
call fcn.0040bcd0
mov eax, dword [edi + 0x10]
lea esi, [eax - 1]
add esp, 8
cmp eax, esi
jbe 0x408595
mov eax, edi
call fcn.0040331a
cmp word [eax + esi*2], 0x5c
lea eax, [eax + esi*2]
je 0x40851e
lea edx, [ebp - 0x108]
push edx
call fcn.0040bee0
add esp, 4
lea edi, [ebp - 0x48]
call fcn.00408020
mov eax, dword [ebp - 0x68]
push eax
push ecx
mov ecx, edi
push ecx
lea edx, [ebp - 0x108]
push edx
mov byte [ebp - 4], 3
call fcn.0040bcd0
add esp, 0xc
push eax
call fcn.00403da5
add esp, 8
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x118]
call fcn.004026cf
call fcn.00402637
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408575
test al, 0x10
jne 0x408575
mov eax, 1
jmp 0x408577
xor eax, eax
test al, al
lea ecx, [ebp - 0x2c]
sete bl
call fcn.004025fd
test bl, bl
jne 0x40859a
lea ecx, [ebp - 0x48]
call fcn.004025fd
jmp 0x408483
call fcn.004037d3
mov edi, dword [ebp - 0x70]
xor esi, esi
mov eax, edi
call fcn.004032bc
lea ecx, [ebp - 0x64]
push ecx
lea eax, [ebp - 0x118]
call fcn.004026cf
push esi
push eax
or eax, 0xffffffff
mov byte [ebp - 4], 4
call fcn.004030d1
lea ecx, [ebp - 0x64]
call fcn.004025fd
lea ecx, [ebp - 0x48]
call fcn.004025fd
lea eax, [ebp - 0x118]
mov dword [ebp - 4], 0xffffffff
call fcn.0040220e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00452c94
mov esp, ebp
pop ebp
ret
Function at 0x409160
Capabilities:
Check if file exists
Delete file
Get file attributes
Get file size
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4717e3
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x490654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 0x49], 1
call fcn.00406e00
push str.Zona
mov eax, esi
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040260b
mov ecx, esi
push ecx
lea edx, [ebp - 0x48]
push str.Try_delete_file_Zona_from
push edx
call fcn.0040c1d0
add esp, 0xc
mov byte [ebp - 4], 1
call fcn.00402637
push eax
push str.INFO
mov ecx, edi
call fcn.00417780
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.004025fd
mov eax, esi
call fcn.00402637
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40932b
test al, 0x10
jne 0x40932b
push str.File_found
push str.INFO
mov ecx, edi
call fcn.00417780
mov eax, esi
call fcn.00402637
push ebx
push 1
push 3
push ebx
push 1
push SysReAllocString
push eax
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40924a
lea eax, [ebp - 0x58]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x58], ebx
jne 0x409317
cmp dword [ebp - 0x54], ebx
jne 0x409317
push str.File_is_empty
push str.INFO
mov ecx, edi
call fcn.00417780
push ebx
lea eax, [ebp - 0x2c]
call fcn.00402637
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x2c]
call fcn.00402637
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x409304
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x100]
push ecx
mov esi, eax
call fcn.0040263c
push esi
push ecx
lea edx, [ebp - 0xf0]
push str.Cant_delete__last_error_is
push edx
mov byte [ebp - 4], 2
call fcn.00403da5
add esp, 0xc
push eax
call fcn.004093d0
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x100]
call fcn.004026cf
mov byte [ebp - 4], 3
call fcn.00402637
push eax
push str.INFO
mov ecx, edi
call fcn.00417780
lea ecx, [ebp - 0x48]
call fcn.004025fd
lea eax, [ebp - 0x100]
mov byte [ebp - 0x49], bl
mov byte [ebp - 4], bl
call fcn.0040220e
jmp 0x40932b
push str.File_is_deleted
push str.INFO
mov ecx, edi
call fcn.00417780
jmp 0x40932b
push str.File_is_NOT_empty
push str.INFO
mov ecx, edi
call fcn.00417780
mov byte [ebp - 0x49], bl
lea ecx, [ebp - 0x2c]
call fcn.004025fd
mov al, byte [ebp - 0x49]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00452c94
mov esp, ebp
pop ebp
ret
Function at 0x415430
Capabilities:
Copy file
Create directory
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e5eb
mov eax, dword fs:[0]
push eax
sub esp, 0x658
mov eax, dword [0x490654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push 0x208
mov dword [ebp - 0x640], eax
xor ebx, ebx
lea eax, [ebp - 0x218]
lea edi, [ecx + 4]
push ebx
push eax
mov dword [ebp - 0x644], edx
mov esi, edi
call fcn.0045e840
push 0x208
lea ecx, [ebp - 0x420]
push ebx
push ecx
call fcn.0045e840
add esp, 0x18
cmp word [esi], 0x7c
je 0x4154ad
add esi, 2
cmp word [esi], 0x7c
jne 0x4154a4
push edi
xor edx, edx
lea eax, [ebp - 0x218]
push 0x104
mov word [esi], dx
push eax
add esi, 2
call fcn.004532c1
lea eax, [ebp - 0x218]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4154d3
sub eax, edx
push esi
lea edx, [ebp - 0x420]
sar eax, 1
xor ecx, ecx
push 0x104
push edx
mov word [ebp + eax*2 - 0x216], cx
call fcn.004532c1
add esp, 0xc
push str.Copy_
lea eax, [ebp - 0x63c]
call fcn.004025cc
push 0x47a24c
lea ecx, [ebp - 0x420]
push ecx
push str._to_
lea edx, [ebp - 0x218]
push edx
push eax
mov dword [ebp - 4], ebx
call fcn.0040260b
push eax
call fcn.0040260b
push eax
call fcn.0040260b
push eax
call fcn.0040260b
call fcn.00402637
mov edi, dword [ebp - 0x644]
push eax
push str.INFO
mov ecx, edi
call fcn.00417780
lea ecx, [ebp - 0x63c]
mov dword [ebp - 4], 0xffffffff
call fcn.004025fd
push ebx
lea eax, [ebp - 0x420]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x65c], ecx
lea ecx, [ebp - 0x664]
lea edx, [ebp - 0x420]
mov eax, 0xe14
push ecx
mov dword [ebp - 0x664], ebx
mov dword [ebp - 0x660], 2
mov dword [ebp - 0x658], edx
mov word [ebp - 0x654], ax
mov dword [ebp - 0x652], ebx
mov dword [ebp - 0x64e], ebx
mov dword [ebp - 0x64a], 0x4798cc
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esi, eax
cmp esi, ebx
je 0x41561d
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x640]
mov ebx, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
push esi
push 0x47a224
push edx
push eax
call ebx
push esi
push 0x47a250
lea ecx, [ebp - 0x620]
push 0x100
push ecx
call ebx
add esp, 0x20
lea edx, [ebp - 0x620]
push edx
push str.INFO
mov ecx, edi
call fcn.00417780
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00452c94
mov esp, ebp
pop ebp
ret 0xc
Function at 0x415910
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e5ab
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x490654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
push 0x208
mov esi, ecx
xor edi, edi
lea ecx, [ebp - 0x218]
push edi
push ecx
mov dword [ebp - 0x438], eax
call fcn.0045e840
add esi, 4
push esi
lea edx, [ebp - 0x218]
push 0x104
push edx
call fcn.004532c1
lea eax, [ebp - 0x218]
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x415981
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x216], cx
push str.Delete
lea eax, [ebp - 0x434]
call fcn.004025cc
lea edx, [ebp - 0x218]
push edx
push eax
mov dword [ebp - 4], edi
call fcn.0040260b
call fcn.00402637
push eax
push str.INFO
mov ecx, ebx
call fcn.00417780
lea ecx, [ebp - 0x434]
mov dword [ebp - 4], 0xffffffff
call fcn.004025fd
lea edx, [ebp - 0x458]
lea eax, [ebp - 0x218]
mov ecx, 0xc14
push edx
mov dword [ebp - 0x458], edi
mov dword [ebp - 0x454], 3
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x44c], edi
mov word [ebp - 0x448], cx
mov dword [ebp - 0x446], edi
mov dword [ebp - 0x442], edi
mov dword [ebp - 0x43e], edi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esi, eax
cmp esi, edi
je 0x415a74
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x438]
mov edi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
push esi
push 0x47a224
push eax
push ecx
call edi
push esi
push str.Error_delete_file__err:__d
lea edx, [ebp - 0x418]
push 0x100
push edx
call edi
add esp, 0x20
lea eax, [ebp - 0x418]
push eax
push str.INFO
mov ecx, ebx
call fcn.00417780
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00452c94
mov esp, ebp
pop ebp
ret 0xc
Function at 0x415aa0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47163b
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x490654]
xor eax, esp
mov dword [esp + 0xe8], eax
push ebx
push esi
push edi
mov eax, dword [0x490654]
xor eax, esp
push eax
lea eax, [esp + 0x100]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
push str.Create_directory
lea eax, [esp + 0xe0]
mov esi, ecx
call fcn.004025cc
add esi, 4
push esi
push eax
mov dword [esp + 0x110], 0
call fcn.0040260b
call fcn.00402637
push eax
push str.INFO
mov ecx, edi
call fcn.00417780
lea ecx, [esp + 0xdc]
mov dword [esp + 0x108], 0xffffffff
call fcn.004025fd
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x415b5d
test al, 0x10
je 0x415b5d
push str.Folder_exist_already
push str.INFO
mov ecx, edi
call fcn.00417780
jmp 0x415c17
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x415c17
push 0xa
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004542da
add esp, 0xc
lea eax, [esp + 0x14]
push eax
call fcn.0040263c
push ebx
push ecx
push str.__error_code
push ecx
push esi
push ecx
lea ecx, [esp + 0x3c]
push str.Cant_create_folder_
push ecx
mov dword [esp + 0x128], 1
call fcn.00403da5
add esp, 0xc
push eax
call fcn.00403da5
add esp, 0xc
push eax
call fcn.00403da5
add esp, 0xc
push eax
call fcn.00403da5
add esp, 8
lea edx, [esp + 0xc0]
push edx
lea eax, [esp + 0x18]
call fcn.004026cf
mov byte [esp + 0x108], 2
call fcn.00402637
push eax
push str.ERROR
mov ecx, edi
call fcn.00417780
lea ecx, [esp + 0xc0]
call fcn.004025fd
lea eax, [esp + 0x14]
mov dword [esp + 0x108], 0xffffffff
call fcn.0040220e
mov ecx, dword [esp + 0x100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe8]
xor ecx, esp
call fcn.00452c94
mov esp, ebp
pop ebp
ret 0xc

Function at 0x415de0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov dword [ebp - 4], eax
cmp eax, ecx
je 0x415e42
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push esi
push edi
jmp 0x415e03
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor esi, esi
lea edi, [eax + 0x20]
mov edi, edi
mov eax, dword [edi]
test eax, eax
je 0x415e26
mov ecx, dword [eax]
push 0
push ecx
call ebx
inc esi
add edi, 4
cmp esi, 0x20
jl 0x415e10
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp eax, dword [edx]
jne 0x415e00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x416420
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 8]
mov eax, dword [edx + 4]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop esi
ret
Function at 0x416e20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1800
call fcn.004674c0
mov eax, dword [0x490654]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
push 0x47a520
lea esi, [ecx + 0x10]
push 0x4000
push esi
mov dword [ebp - 0x17e4], ecx
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea eax, [ebp - 0x17e0]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
mov dword [ebp - 0x17e8], ebx
test ebx, ebx
je 0x416fe4
xor esi, esi
cmp dword [ebp - 0x17e0], esi
jle 0x416fe4
test esi, esi
jne 0x416ef6
push 0x3e8
lea ecx, [ebp - 0x7dc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x416ebb
push 0x800
lea edx, [ebp - 0x17dc]
push edx
lea eax, [ebp - 0x7dc]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov ecx, dword [ebx]
lea eax, [ebp - 0x17dc]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x416ee9
test dx, dx
je 0x416ee5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x416ee9
add eax, 4
add ecx, 4
test dx, dx
jne 0x416ec3
xor eax, eax
jmp 0x416eee
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x416fd7
mov eax, dword [ebx + esi*4]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416f00
sub eax, edx
sar eax, 1
xor ecx, ecx
lea eax, [eax + eax + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045221e
mov ecx, dword [ebx + esi*4]
push ecx
push 0x47a520
push eax
mov dword [ebp - 0x17ec], eax
xor edi, edi
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esi + 1]
add esp, 0x10
cmp eax, dword [ebp - 0x17e0]
jge 0x416f9f
mov edx, dword [ebx + esi*4 + 4]
cmp word [edx], 0x2f
je 0x416f9f
mov esi, eax
mov eax, dword [ebx + esi*4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416f61
sub eax, edx
sar eax, 1
xor ecx, ecx
lea eax, [eax + eax + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045221e
mov edi, eax
mov eax, dword [ebx + esi*4]
push eax
push 0x47a520
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov ecx, dword [ebp - 0x17ec]
mov dword [ebp - 0x17f0], edi
mov edi, dword [ebp - 0x17e4]
lea ebx, [ebp - 0x17f4]
mov dword [ebp - 0x17f4], ecx
call fcn.004175b0
mov edx, edi
push eax
push edx
lea edi, [ebp - 0x17fc]
call fcn.004171f0
mov ebx, dword [ebp - 0x17e8]
inc esi
cmp esi, dword [ebp - 0x17e0]
jl 0x416e87
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452c94
mov esp, ebp
pop ebp
ret 4
Function at 0x417620
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e539
mov eax, dword fs:[0]
push eax
mov eax, 0x100c
call fcn.004674c0
mov eax, dword [0x490654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x1018], esi
mov dword [ebp - 0x1014], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ebx, [esi + 0x18]
mov eax, ebx
mov dword [ebp - 4], 0
call fcn.004025a5
lea edi, [esi + 0x34]
mov eax, edi
call fcn.004025a5
lea ecx, [ebp - 0x1010]
push ecx
push 0x800
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp - 0x1014]
push edx
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.0040260b
push eax
call fcn.0040260b
push 0x47a558
call fcn.00402626
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00452c94
mov esp, ebp
pop ebp
ret 4
Function at 0x417ee0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47016b
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x490654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
inc dword [edi + 0x30]
lea esi, [edi + 0x20]
lea eax, [ebp + 8]
call fcn.00418aa0
mov eax, dword [edi + 0x30]
cmp eax, dword [edi + 0xc]
jne 0x418031
mov ecx, dword [esi]
mov eax, dword [esi + 4]
lea edx, [ebp - 0x30]
push edx
xor ebx, ebx
sub eax, ecx
push ecx
mov dword [ebp - 0x30], ebx
call fcn.00407f90
mov esi, dword [ebp - 0x30]
add esp, 8
push esi
lea eax, [ebp - 0x2c]
call fcn.004025cc
push esi
mov dword [ebp - 4], ebx
call fcn.004531bb
add esp, 4
lea eax, [ebp - 0x2c]
call fcn.0040331a
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
call fcn.00403c7e
lea edx, [ebp - 0x34]
push edx
lea esi, [ebp - 0x2c]
call fcn.00404dd3
mov ecx, dword [eax]
mov eax, dword [ebp - 0x30]
cmp eax, ecx
je 0x417f95
cmp word [eax], 0x2f
jne 0x417f8e
mov edx, 0x5c
mov word [eax], dx
add eax, 2
cmp eax, ecx
jne 0x417f80
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [eax + 4]
call fcn.00403c9c
push 0xd0
call fcn.00453217
mov esi, eax
add esp, 4
mov dword [ebp - 0x34], esi
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x417ff2
mov eax, dword [edi + 8]
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0xffffffff
lea edx, [esi + 0x20]
mov byte [ebp - 4], 2
push edx
mov dword [esi], vtable.un8z::ValueState.0
call fcn.00418b10
mov dword [esi + 0xc8], ebx
mov dword [ebp - 0x30], esi
jmp 0x417ff5
mov dword [ebp - 0x30], ebx
mov edi, dword [edi + 8]
mov esi, dword [edi]
cmp esi, ebx
je 0x418020
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x41800e
push eax
call fcn.004531bb
add esp, 4
push esi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
call fcn.004531bb
add esp, 4
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
mov dword [edi], eax
call fcn.004025fd
mov al, 1
jmp 0x418033
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00452c94
mov esp, ebp
pop ebp
ret 4