joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b692
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movsx eax, byte [0x5415c0]
test eax, eax
jne 0x42b6ef
push 0x104
push 0x5415c0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx ecx, byte [0x5415c0]
cmp ecx, 0x41
jl 0x42b6d4
movsx edx, byte [0x5415c0]
cmp edx, 0x5a
jg 0x42b6d4
mov dword [ebp - 4], 1
jmp 0x42b6db
mov dword [ebp - 4], 0
movsx eax, byte [0x5415c0]
mov ecx, dword [ebp - 4]
shl ecx, 5
add eax, ecx
mov byte [0x5415c0], al
mov edx, dword [ebp + 8]
movsx eax, byte [edx + 1]
cmp eax, 0x3a
jne 0x42b743
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
cmp edx, 0x41
jl 0x42b71a
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
cmp ecx, 0x5a
jg 0x42b71a
mov dword [ebp - 8], 1
jmp 0x42b721
mov dword [ebp - 8], 0
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
mov ecx, dword [ebp - 8]
shl ecx, 5
add eax, ecx
movsx edx, byte [0x5415c0]
cmp eax, edx
jne 0x42b743
mov dword [ebp - 0xc], 1
jmp 0x42b74a
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x42b751
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0x10], 0
je 0x42b774
mov dword [ebp - 0x10], SysStringLen
mov dword [ebp - 0xc], 2
mov dword [ebp - 8], 4
jmp 0x42b789
mov dword [ebp - 0x10], 0xc0000000
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], 6
push 0
push 0
push 3
push 0
push 1
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x42b810
cmp dword [ebp + 0xc], 0
je 0x42b7c1
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push 0
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
je 0x42b810
push 0
push 0
push 0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
jmp 0x42b812
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x42b82b
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0
push 0
push 3
push 0
push 1
push closesocket
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x42b8c3
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
push 4
push 0x1000
mov edx, dword [ebp - 8]
add edx, 0x100
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x42b8b9
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp + 0xc], 0
je 0x42b8aa
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
jmp 0x42b8c5
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x42bc0a
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax + 6]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x10]
xor eax, eax
mov ax, word [edx + 0x14]
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [eax + 0xc]
jae 0x42bc55
mov eax, dword [ebp + 0xc]
jmp 0x42bcda
mov dword [ebp - 0x14], 0
jmp 0x42bc67
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
jae 0x42bcd7
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x38]
push edx
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x28
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + eax + 8]
push edx
call fcn.0042bbce
add esp, 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x28
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + eax + 0xc]
add edx, dword [ebp - 0x18]
cmp dword [ebp + 0xc], edx
jae 0x42bcd5
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x28
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
sub esi, dword [ecx + eax + 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x3c]
push eax
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx + 0x14]
push eax
call fcn.0042bb9c
add esp, 8
add eax, esi
jmp 0x42bcda
jmp 0x42bc5e
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42c137
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
je 0x42c22a
push 0
push 0
push 3
push 0
push 3
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 0x40000000
add eax, 0x80000000
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [0x5416c4]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x42c17d
xor eax, eax
jmp 0x42c22c
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 0x14], 0
jne 0x42c19a
cmp dword [ebp - 8], 0
jne 0x42c1ab
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x42c22c
push 0
push 0
push 0
mov edx, dword [ebp + 0x10]
neg edx
sbb edx, edx
and edx, 2
add edx, 2
push edx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
jne 0x42c1e2
xor eax, eax
jmp 0x42c22c
push 0
push 0
push 0
mov edx, dword [ebp + 0x10]
neg edx
sbb edx, edx
and edx, 2
add edx, 4
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0
jne 0x42c217
xor eax, eax
jmp 0x42c22c
cmp dword [ebp + 0xc], 0
je 0x42c225
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
jmp 0x42c22c
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x42c887
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
push edi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x354], eax
mov byte [ebp - 0x20c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x20b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp + 8]
push ecx
push 0x104
lea edx, [ebp - 0x20c]
push edx
call fcn.00409000
mov eax, dword [ebp - 0x354]
movsx ecx, byte [ebp + eax - 0x20d]
cmp ecx, 0x5c
je 0x42c911
push 0x4db1e0
push 0x104
lea edx, [ebp - 0x20c]
push edx
call fcn.00407f00
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea ecx, [ebp - 0x104]
push ecx
call fcn.00409000
push 0x4db1e4
push 0x104
lea edx, [ebp - 0x104]
push edx
call fcn.00407f00
mov dword [ebp - 0x108], 1
lea eax, [ebp - 0x350]
push eax
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0xffffffff
je 0x42c9db
cmp dword [ebp - 0x108], 0
je 0x42c9db
mov edx, dword [ebp - 0x350]
and edx, 0x10
test edx, edx
jne 0x42c9bf
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea ecx, [ebp - 0x104]
push ecx
call fcn.00409000
lea edx, [ebp - 0x324]
push edx
push 0x104
lea eax, [ebp - 0x104]
push eax
call fcn.00407f00
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [ebp - 0x350]
push edx
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 0x108], eax
jmp 0x42c963
cmp dword [ebp - 0x210], 0xffffffff
je 0x42c9f1
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x42ca03
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
push edi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x354], eax
mov byte [ebp - 0x20c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x20b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp + 8]
push ecx
push 0x104
lea edx, [ebp - 0x20c]
push edx
call fcn.00409000
mov eax, dword [ebp - 0x354]
movsx ecx, byte [ebp + eax - 0x20d]
cmp ecx, 0x5c
je 0x42ca8d
push 0x4db1e8
push 0x104
lea edx, [ebp - 0x20c]
push edx
call fcn.00407f00
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea ecx, [ebp - 0x104]
push ecx
call fcn.00409000
push 0x4db1ec
push 0x104
lea edx, [ebp - 0x104]
push edx
call fcn.00407f00
mov dword [ebp - 0x108], 1
lea eax, [ebp - 0x350]
push eax
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0xffffffff
je 0x42cbcf
cmp dword [ebp - 0x108], 0
je 0x42cbcf
mov edx, dword [ebp - 0x350]
and edx, 0x10
test edx, edx
jne 0x42cb45
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea ecx, [ebp - 0x104]
push ecx
call fcn.00409000
lea edx, [ebp - 0x324]
push edx
push 0x104
lea eax, [ebp - 0x104]
push eax
call fcn.00407f00
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x42cbb0
lea edx, [ebp - 0x20c]
push edx
push 0x104
lea eax, [ebp - 0x104]
push eax
call fcn.00409000
lea ecx, [ebp - 0x324]
push ecx
push 0x104
lea edx, [ebp - 0x104]
push edx
call fcn.00407f00
push 0x4db1f0
lea eax, [ebp - 0x324]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x42cbb0
push 0x4db1f4
lea ecx, [ebp - 0x324]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x42cbb0
lea edx, [ebp - 0x104]
push edx
call fcn.0042ca03
add esp, 4
lea eax, [ebp - 0x350]
push eax
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 0x108], eax
jmp 0x42cadf
cmp dword [ebp - 0x210], 0xffffffff
je 0x42cbe5
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x42cbf7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x42cc12
xor eax, eax
jmp 0x42cc78
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x42cc3a
mov edx, dword [ebp - 8]
and edx, 0x10
test edx, edx
je 0x42cc36
mov eax, 1
jmp 0x42cc78
xor eax, eax
jmp 0x42cc78
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x42cc58
xor eax, eax
jmp 0x42cc78
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x148]
and eax, 0x10
test eax, eax
je 0x42cc76
mov eax, 1
jmp 0x42cc78
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x42ce0f
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x500
push edi
mov byte [ebp - 0x10c], 0
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
push 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x42ce4f
xor eax, eax
jmp 0x42cfd6
mov edx, dword [ebp + 0xc]
push edx
push 0x104
lea eax, [ebp - 0x10c]
push eax
call fcn.004152f0
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42ce80
mov eax, 1
jmp 0x42cfd6
mov byte [ebp - 0x4f4], 0
mov ecx, 0xf9
xor eax, eax
lea edi, [ebp - 0x4f3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x4f8], 0xffffffff
push 0
push 0
push 3
push 0
push 3
push 0x12019f
lea edx, [ebp - 0x10c]
push edx
call dword [0x5416c4]
mov dword [ebp - 0x4f8], eax
cmp dword [ebp - 0x4f8], 0xffffffff
jne 0x42ced5
xor eax, eax
jmp 0x42cfd6
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x4fc]
push eax
push 0x3e8
lea ecx, [ebp - 0x4f4]
push ecx
mov edx, dword [ebp - 0x4f8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42cf07
jmp 0x42cfc6
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x4fc]
push edx
lea eax, [ebp - 0x4f4]
push eax
call fcn.0042cd64
add esp, 0x10
mov dword [ebp - 0x500], eax
cmp dword [ebp - 0x500], 0
jne 0x42cf40
mov dword [ebp - 4], 1
jmp 0x42cfc6
cmp dword [ebp + 0x18], 0
je 0x42cf9a
mov ecx, dword [ebp + 0x14]
shr ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x500]
push edx
call fcn.00416780
add esp, 0xc
push 0
push 0
push 0
mov eax, dword [ebp - 0x4f8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x4fc]
push ecx
mov edx, dword [ebp - 0x4fc]
push edx
lea eax, [ebp - 0x4f4]
push eax
mov ecx, dword [ebp - 0x4f8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42cf9a
jmp 0x42cfc6
mov edx, dword [ebp - 0x4f8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x18], 0
jne 0x42cfba
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
jmp 0x42cfd6
mov edx, dword [ebp - 0x4f8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x42d510
Capabilities:
Check if file exists
Delete file
Get file attributes
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3fc
push edi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42d530
xor eax, eax
jmp 0x42d698
mov byte [ebp - 0x3ec], 0
mov ecx, 0xf9
xor eax, eax
lea edi, [ebp - 0x3eb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x3f0], 0xffffffff
push 0
push 0
push 3
push 0
push 3
push 0x12019f
mov ecx, dword [ebp + 8]
push ecx
call dword [0x5416c4]
mov dword [ebp - 0x3f0], eax
cmp dword [ebp - 0x3f0], 0xffffffff
jne 0x42d582
xor eax, eax
jmp 0x42d698
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 0x3f4]
push edx
push 0x3e8
lea eax, [ebp - 0x3ec]
push eax
mov ecx, dword [ebp - 0x3f0]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42d5b4
jmp 0x42d688
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x3f4]
push ecx
lea edx, [ebp - 0x3ec]
push edx
call fcn.0042cd64
add esp, 0x10
mov dword [ebp - 0x3f8], eax
cmp dword [ebp - 0x3f8], 0
jne 0x42d5ed
mov dword [ebp - 4], 0
jmp 0x42d688
cmp dword [ebp + 0x14], 0
je 0x42d65f
mov eax, dword [ebp + 0x10]
shr eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x3f8]
push ecx
call fcn.00416780
add esp, 0xc
mov edx, dword [ebp - 0x3d8]
mov dword [ebp - 0x3fc], edx
mov eax, dword [ebp - 0x3fc]
mov dword [ebp - 0x3d8], eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x3f0]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x3f4]
push edx
mov eax, dword [ebp - 0x3f4]
push eax
lea ecx, [ebp - 0x3ec]
push ecx
mov edx, dword [ebp - 0x3f0]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42d65f
jmp 0x42d688
mov eax, dword [ebp - 0x3f0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x14], 0
jne 0x42d67c
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
jmp 0x42d698
mov eax, dword [ebp - 0x3f0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x42d6e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab4cf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
push edi
mov byte [ebp - 0x110], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x110]
push eax
call fcn.0042d69d
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [ebp - 0x118]
call fcn.004080a0
mov dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x22c], esp
mov eax, dword [ebp + 0x10]
push eax
call fcn.00408080
push ecx
mov ecx, esp
mov dword [ebp - 0x230], esp
mov edx, dword [ebp + 8]
push edx
call fcn.00404390
lea ecx, [ebp - 0x118]
call fcn.004080f0
and eax, 0xff
test eax, eax
je 0x42d884
mov byte [ebp - 0x220], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x21f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x110]
push eax
push 0x4db384
push 0x104
lea ecx, [ebp - 0x220]
push ecx
call fcn.0040a150
add esp, 0x10
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x220]
push edx
call dword [0x5416c4]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0xffffffff
je 0x42d884
lea ecx, [ebp - 0x118]
call fcn.00408180
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x118]
call fcn.00408160
mov dword [ebp - 0x224], eax
push 0
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp - 0x224]
push ecx
mov edx, dword [ebp - 0x228]
push edx
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.0042aa4b
add esp, 8
test eax, eax
je 0x42d884
mov dword [ebp - 0x234], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x118]
call fcn.004080d0
mov eax, dword [ebp - 0x234]
jmp 0x42d8a6
mov dword [ebp - 0x238], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x118]
call fcn.004080d0
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x42e05d
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov dword [ebp - 4], 0
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042decb
add esp, 8
test eax, eax
je 0x42e086
jmp 0x42e08e
mov eax, dword [ebp - 4]
jmp 0x42e19c
push str.rundll32
lea edx, [ebp - 0x414]
push edx
call fcn.00416810
add esp, 8
test eax, eax
je 0x42e157
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
jne 0x42e0d5
mov eax, dword [ebp - 4]
jmp 0x42e19c
cmp dword [ebp - 0x418], 1
jl 0x42e148
mov edx, dword [ebp - 0x41c]
mov eax, dword [edx]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x424], 0
push 0x2c
mov ecx, dword [ebp - 0x420]
push ecx
call fcn.0042e5a0
add esp, 8
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
je 0x42e121
mov edx, dword [ebp - 0x424]
mov word [edx], 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0x4db5a4
mov edx, dword [ebp - 0x420]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x42e148
mov eax, dword [ebp - 4]
jmp 0x42e19c
mov eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x42e17b
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x42e17b
mov eax, dword [ebp - 4]
jmp 0x42e19c
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x42e199
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x42e624
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x42e64a
xor eax, eax
jmp 0x42e719
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x108], 0
je 0x42e669
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x108]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x108], eax
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x108], 0
jne 0x42e692
xor eax, eax
jmp 0x42e719
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x108]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x42e717
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0x4db5b0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x108]
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x42e717
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
shr eax, 0x10
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
and edx, 0xffff
and edx, 0xffff
push edx
push 0x4db5cc
push 0x104
mov eax, dword [ebp - 0x14]
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
mov eax, 1
jmp 0x42e719
xor eax, eax
mov esp, ebp
pop ebp
ret 4