joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f559
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x4441d3
call fcn.00421bd8
sub esp, 0x1dc
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
call fcn.0041f83c
test al, 0x10
pop ecx
je 0x41f6db
push 1
lea eax, [ebp + 8]
pop ebx
push 0x44dbe0
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0040b4ba
add esp, 0xc
lea ecx, [ebp - 0x1e8]
mov byte [ebp - 4], bl
push ecx
mov ecx, eax
call fcn.0040cf8e
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [ebp - 0x10], edi
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.00403643
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
cmp edi, 0xffffffff
je 0x41f682
test ebx, ebx
je 0x41f677
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea eax, [ebp - 0x1bc]
push 0x44dbd8
push eax
call ebx
test eax, eax
je 0x41f662
lea eax, [ebp - 0x1bc]
push 0x44dbd4
push eax
call ebx
test eax, eax
je 0x41f662
lea eax, [ebp - 0x11]
push 0
push eax
lea eax, [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x446870
mov dword [ebp - 0x20], 0x446868
call fcn.0040cc06
sub esp, 0x28
lea ecx, [ebp - 0x40]
mov eax, esp
mov dword [ebp - 0x18], esp
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
mov byte [ebp - 4], 4
call fcn.0041f710
add esp, 0xc
call fcn.0041f559
add esp, 0x28
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00403643
lea eax, [ebp - 0x1e8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ebx, eax
jmp 0x41f5dc
test esi, esi
je 0x41f682
push edi
call esi
or dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040cf8e
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x41f6b1
lea eax, [ebp + 8]
push 1
push eax
lea ecx, [ebp - 0x60]
call fcn.0041f789
lea eax, [ebp - 0x60]
push 0x4485c0
push eax
call fcn.00422a17
cmp dword [ebp - 0x10], 0xffffffff
je 0x41f6c0
test esi, esi
je 0x41f6c0
push dword [ebp - 0x10]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00403643
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
lea ecx, [ebp + 8]
call fcn.0040cf8e
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x41f6c0
lea eax, [ebp + 8]
push 1
push eax
lea ecx, [ebp - 0xa8]
call fcn.0041f789
lea eax, [ebp - 0xa8]
push 0x4485c0
push eax
call fcn.00422a17

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov ecx, dword [ebp + 8]
call fcn.0040cf8e
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41f871
push 1
lea ecx, [ebp - 0x48]
push dword [ebp + 8]
call fcn.0041f789
lea eax, [ebp - 0x48]
push 0x4485c0
push eax
call fcn.00422a17
leave
ret
Function at 0x420265
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4442e0
call fcn.00421bd8
sub esp, 0x250
lea eax, [ebp - 0x25c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x420323
and byte [ebp - 0x158], 0
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x157]
rep stosd dword es:[edi], eax
push dword [0x44e5b4]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x158]
push 0x44c3f4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x54]
call fcn.0040ea6d
and dword [ebp - 4], 0
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0x54]
call fcn.0041f49d
mov eax, dword [ebp - 0x48]
pop edi
shr eax, 0x10
cmp ax, 4
jne 0x420310
cmp word [ebp - 0x48], 0x5a
jne 0x420310
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x54], 0x447174
call fcn.0040eaca
push 1
pop eax
jmp 0x420325
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x54], 0x447174
call fcn.0040eaca
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x42081d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, 0x104
lea eax, [ebp - 0x104]
push esi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextA]
xor ecx, ecx
xor eax, eax
cmp ecx, esi
pop esi
jae 0x420851
cmp byte [ebp - 0x104], cl
je 0x420851
push 1
pop eax
push eax
push 0
push 0x465
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
leave
ret
Function at 0x420864
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [sym.imp.USER32.dll_CharNextA]
push edi
mov ebx, eax
call esi
cmp ebx, 1
jle 0x4208a7
mov cl, byte [eax]
cmp cl, 0x3a
jne 0x4208ae
mov cl, byte [edi]
cmp cl, 0x61
jl 0x42089d
cmp cl, 0x7a
jle 0x4208d7
cmp cl, 0x41
jl 0x4208a7
cmp cl, 0x5a
jle 0x4208d7
xor al, al
pop edi
pop esi
pop ebx
leave
ret
cmp byte [edi], 0x5c
jne 0x4208a7
cmp cl, 0x5c
jne 0x4208a7
xor edi, edi
push eax
call esi
mov cl, byte [eax]
cmp cl, 0x5c
jne 0x4208c5
inc edi
cmp edi, 2
je 0x4208d7
test cl, cl
jne 0x4208ba
cmp edi, 2
je 0x4208d7
cmp byte [eax], cl
jne 0x4208a7
push eax
call esi
and byte [ebp - 0x104], 0
push 0x40
mov ebx, eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, ebx
sub eax, dword [ebp + 8]
inc eax
push eax
lea eax, [ebp - 0x104]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4208a7
shr eax, 4
and al, 1
mov byte [ebp + 0xb], al
je 0x4208a7
mov al, byte [ebx]
test al, al
je 0x420978
movsx eax, al
cmp eax, 0x3a
jg 0x420951
je 0x4208a7
cmp eax, 0x22
je 0x4208a7
cmp eax, 0x2a
je 0x4208a7
cmp eax, 0x2f
jmp 0x42096b
cmp eax, 0x3c
je 0x4208a7
cmp eax, 0x3d
jle 0x420971
cmp eax, 0x3f
jle 0x4208a7
cmp eax, 0x7c
je 0x4208a7
push ebx
call esi
mov ebx, eax
jmp 0x420926
mov al, 1
jmp 0x4208a9
Function at 0x427386
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x450d30
cmp edx, dword [eax]
je 0x4273a8
add eax, 8
inc ecx
cmp eax, 0x450dc0
jl 0x427399
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x450d30]
jne 0x4274d6
mov eax, dword [0x451cd4]
cmp eax, 1
je 0x4274b0
test eax, eax
jne 0x4273d9
cmp dword [0x44e734], 1
je 0x4274b0
cmp edx, 0xfc
je 0x4274d6
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x427410
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00422f10
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00422920
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x427453
lea eax, [ebp - 0x1a4]
push eax
call fcn.00422920
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x447ab4
push edi
call fcn.00422600
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00422f10
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00422f20
lea eax, [ebp - 0xa0]
push 0x447a94
push eax
call fcn.00422f20
push dword [esi + 0x450d34]
lea eax, [ebp - 0xa0]
push eax
call fcn.00422f20
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004296ce
add esp, 0x2c
pop edi
jmp 0x4274d6
lea eax, [ebp + 8]
lea esi, [esi + 0x450d34]
push 0
push eax
push dword [esi]
call fcn.00422920
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x42b310
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x4443c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
or ebp, 0xffffffff
push esi
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ebp
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x30]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
mov byte [esp + 0x44], 2
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x42b37e
lea ecx, [esp + 0x14]
call fcn.00415ebd
mov eax, esi
mov dword [esp + 0x14], eax
cmp eax, ebp
jne 0x42b3b1
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
call fcn.0041f258
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call fcn.004089f7
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], ebp
call fcn.00415ebd
xor al, al
jmp 0x42b4c4
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x42b3df
cmp eax, ebx
je 0x42b3d9
cmp edi, ebx
je 0x42b3d9
push eax
call edi
mov eax, esi
mov dword [esp + 0x10], eax
cmp eax, ebx
jne 0x42b416
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x42b40e
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp eax, ebx
je 0x42b40e
push ecx
call eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
cmp eax, ebx
je 0x42b40e
cmp edi, ebx
je 0x42b40e
push eax
call edi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebp
jmp 0x42b461
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, eax
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x42b443
cmp eax, ebx
je 0x42b43d
cmp ebp, ebx
je 0x42b43d
push eax
call ebp
mov eax, esi
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x42b46e
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x42b45a
cmp edi, ebx
je 0x42b45a
push eax
call edi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x42b46a
cmp edi, ebx
je 0x42b46a
push eax
call edi
xor al, al
jmp 0x42b4c4
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x14]
push ecx
push ebx
push edx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x20]
push eax
push esi
call fcn.0042b0a0
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x42b49f
cmp ebp, ebx
je 0x42b49f
push eax
call ebp
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x42b4b2
cmp edi, ebx
je 0x42b4b2
push eax
call edi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x42b4c2
cmp edi, ebx
je 0x42b4c2
push eax
call edi
mov al, 1
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x433b60
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
rep stosd dword es:[edi], eax
mov ebx, dword [esp + 0x7c]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [esp + 0x80]
lea ecx, [esp + 0x18]
push 2
push ecx
mov edx, dword [edi]
push edx
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov eax, 0xa
push 0x50
add ecx, eax
sub ebp, eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x1c], ecx
push eax
push ebx
mov dword [esp + 0x2c], ebp
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov al, byte [esp + 0x28]
test al, al
je 0x433d08
push 0x451a40
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ebp, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xfffffffffffffff0
push ebx
call ebp
push 0xffffffffffffffec
push ebx
mov esi, eax
call ebp
push 0
push 0
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, dword [esp + 0x28]
mov ecx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push 0xffffffffffffffff
sub edx, eax
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x34]
shr esi, 0x10
sub edx, ecx
and esi, 0xff7faffc
push edx
push eax
or esi, 0x50000000
push ecx
lea eax, [esp + 0x48]
push esi
push eax
push str.STATIC
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
je 0x433d08
mov ecx, dword [edi]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x31
push ecx
call ebp
push 1
push eax
push 0x30
push esi
mov dword [esp + 0x8c], eax
call ebp
push 0x433aa0
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
push edi
push str.PROP_STAT_PSKIN
push esi
mov ebp, eax
call dword [sym.imp.USER32.dll_SetPropA]
push ebp
push str.PROP_STAT_OLDPROC
push esi
call dword [sym.imp.USER32.dll_SetPropA]
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
xor eax, eax
cmp ebp, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
je 0x433cdd
mov edx, dword [esp + 0x7c]
push edx
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x2c]
push eax
push edx
push ebp
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
push ebp
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push 2
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
push ebx
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [edi + 0x14c]
push edi
push esi
call fcn.00433d10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
Function at 0x440160
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x1c]
push 2
movsx ecx, ax
and eax, 0xffff
mov dword [esi + 0x20], ecx
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 1
mov edx, dword [ebx + 0x10]
push eax
push edi
mov dword [esi + 0x30], edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x4401a4
pop edi
pop esi
pop ebx
ret
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4401b6
pop edi
pop esi
pop ebx
ret
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
push ebx
call fcn.004401e0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x442d6c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
lea eax, [ebp - 0x10]
push 4
push eax
xor edi, edi
push dword [ebp + 0x10]
mov dword [ebp - 0x10], 0x7863513
push dword [ebp + 0xc]
call fcn.00442f00
add esp, 0x10
mov dword [ebp - 4], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 0x18], ebx
je 0x442ec7
push esi
lea eax, [ebp - 0xc]
push dword [ebp + 0x18]
mov dword [ebp + 8], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
push eax
lea eax, [ebp - 8]
push eax
call fcn.00442f3e
add esp, 0xc
lea eax, [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
push esi
push dword [ebp + 8]
push dword [ebp - 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x442ebd
push edi
push edi
push edi
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [ebp + 0xc], eax
je 0x442eb4
mov ebx, dword [ebp + 8]
xor ecx, ecx
or ebx, esi
xor esi, esi
cmp ecx, edi
mov dword [ebp - 0x1c], edi
jl 0x442e8a
jg 0x442e2e
cmp ebx, edi
jbe 0x442e8a
mov eax, dword [ebp + 0x10]
cmp dword [ebp + 0x14], edi
cdq
push edx
push eax
push dword [ebp - 0x1c]
push esi
je 0x442e57
call fcn.00423080
mov ecx, dword [ebp - 4]
mov al, byte [eax + ecx]
push eax
mov eax, dword [ebp + 0xc]
mov al, byte [esi + eax]
push eax
call fcn.00442ed6
jmp 0x442e6f
call fcn.00423080
mov ecx, dword [ebp - 4]
mov al, byte [eax + ecx]
push eax
mov eax, dword [ebp + 0xc]
mov al, byte [esi + eax]
push eax
call fcn.00442eeb
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
mov byte [esi + ecx], al
add esi, 1
adc dword [ebp - 0x1c], edi
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
jl 0x442e2e
jg 0x442e8a
cmp esi, ebx
jb 0x442e2e
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x442ea8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x442ea8
push dword [esi + 8]
push ecx
push ebx
push dword [ebp + 0xc]
call eax
add esp, 0x10
mov dword [esi + 0xc], eax
push 1
pop edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
push dword [ebp - 4]
call fcn.00420a94
pop ecx
mov eax, edi
pop edi
pop ebx
leave
ret

Function at 0x442f00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 0xc]
call fcn.00420f25
xor esi, esi
pop ecx
cmp dword [ebp + 0xc], esi
mov ebx, eax
jle 0x442f38
push edi
mov edi, dword [ebp + 8]
sub edi, ebx
mov eax, esi
lea ecx, [esi + ebx]
cdq
idiv dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov al, byte [edx + eax]
xor al, byte [edi + ecx]
inc esi
cmp esi, dword [ebp + 0xc]
mov byte [ecx], al
jl 0x442f1d
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
Function at 0x472286
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
pushal
call 0x472292
pop ebx
sub ebx, 0x403292
mov eax, 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0x424642
push 0
push 0x20
push 3
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [ebx + fcn.00401291]
cmp eax, 0xffffffff
je 0x472418
mov dword [ebp - 4], eax
push 2
push 0
push 0xfffffffffffffffc
push dword [ebp - 4]
call dword [ebx + fcn.004012a5]
lea eax, [ebp - 8]
lea ecx, [ebp - 0xc]
push 0
push ecx
push 4
push eax
push dword [ebp - 4]
call dword [ebx + fcn.0040130d]
mov eax, dword [ebp - 8]
cmp eax, 0x424642
jne 0x472303
jmp 0x47240f
push 0
push dword [ebp - 4]
call dword [ebx + 0x4012b9]
mov dword [ebp - 8], eax
cmp eax, 0x1000
jae 0x47231d
jmp 0x47240f
cmp eax, 0xe00000
jbe 0x472329
jmp 0x47240f
or eax, eax
je 0x472418
mov ecx, dword [ebp - 8]
add ecx, 0x6000
mov dword [ebp - 0x14], ecx
push 0
push ecx
push 0
push 4
push 0
push dword [ebp - 4]
call dword [ebx + 0x401295]
or eax, eax
je 0x4723c7
mov dword [ebp - 0xc], eax
push dword [ebp - 0x14]
push 0
push 0
push 2
push dword [ebp - 0xc]
call dword [ebx + 0x401299]
or eax, eax
je 0x4723be
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
mov esi, dword [ebp - 0x10]
cmp word [esi], 0x5a4d
je 0x472382
jmp 0x4723b5
mov eax, dword [esi + 0x3c]
cmp eax, 0x200
jbe 0x47238e
jmp 0x4723b5
add esi, dword [esi + 0x3c]
cmp dword [esi], 0x4550
je 0x47239b
jmp 0x4723b5
push dword [ebp - 8]
push esi
push dword [ebp - 0x10]
call fcn.0047215e
mov dword [ebp - 0x14], eax
push 0
push dword [ebp - 0x10]
call dword [ebx + 0x4012c1]
push dword [ebp - 0x10]
call dword [ebx + fcn.0040129d]
push dword [ebp - 0xc]
call dword [ebx + fcn.004012ad]
cmp dword [ebp - 0x14], 0
je 0x47240f
mov eax, dword [ebp - 0x14]
sub eax, 4
push 0
push 0
push eax
push dword [ebp - 4]
call dword [ebx + fcn.004012a5]
lea eax, [ebp - 0x18]
lea ecx, [ebp - 8]
push 0
push ecx
push 4
push eax
push dword [ebp - 4]
call dword [ebx + fcn.004012a1]
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp - 4]
call dword [ebx + fcn.004012a5]
push dword [ebp - 4]
call dword [ebx + 0x4012a9]
push dword [ebp - 4]
call dword [ebx + fcn.004012ad]
popal
leave
ret 4

Function at 0x472959
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov dword [ebp - 4], 0
call fcn.0047296c

Function at 0x4729d3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
pushal
mov dword [ebp - 4], 0
call fcn.004729e6
Function at 0x40a981
Capabilities:
Encode data using xor

Disassembly:
mov cl, 0xb1
pop es
movsd dword es:[edi], dword [esi]
bound edx, qword [edx + 0x1aa3b4d1]
test ebx, eax
jns 0x40a9fe
ret
pushal
int1
and byte [0x39a14190], al
loope 0x40a94f
mov cl, 0x83
push es
push esi
aad 0xf9
xor esp, ebx
push edx
jecxz 0x40a94d
cmp byte [ecx], 0x80
xor edx, esp
dec ebp
xchg ebx, eax
sbb ecx, dword [ecx]
mov ebp, 0xa2ddf321
jl 0x40a9bf
pop esp
shl bh, 0x2c
call 0xc6238aff
retf
stc
push ecx
cmp ecx, edx
or ch, bl
pushfd
sar cl, 0x1d
dec edi
int3
jo 0x40a98c
mov ah, 0x74
mov eax, 0xfb477e90
mov esi, 0x1c3617b1
jne 0x40a9a3
pop ss
jne 0x40a9c5

Function at 0x43d8a1
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0xb061d089
and eax, 0xee41a127
popal
test al, 0xd5
leave
movsd dword es:[edi], dword [esi]
and dword [edi + 0x22], esp
fsub dword [ecx - 0x3c]
pop ss
xor esi, edi
mov ebx, 0xa99c819f
add al, 0x3e
invalid
Function at 0x4ac46c
Capabilities:
Packed with generic packer

Disassembly:
adc dword [edi], ebp
add dword [eax], eax
add esp, 8
mov byte [esp + 0xc0], 0xa
mov edx, dword [esp + 0x28]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
invalid

Function at 0x4bcb35
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c6348
cmp edx, dword [eax]
je 0x4bcb57
add eax, 8
inc ecx
cmp eax, 0x4c63d8
jl 0x4bcb48
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c6348]
jne 0x4bcc85
mov eax, dword [0x4caccc]
cmp eax, 1
je 0x4bcc5f
test eax, eax
jne 0x4bcb88
cmp dword [0x4c6274], 1
je 0x4bcc5f
cmp edx, 0xfc
je 0x4bcc85
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bcbbf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bd520
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bd9b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bcc02
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bd9b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c1cac
push edi
call fcn.004bf880
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bd520
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bd530
lea eax, [ebp - 0xa0]
push 0x4c1c8c
push eax
call fcn.004bd530
push dword [esi + 0x4c634c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bd530
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bf7f4
add esp, 0x2c
pop edi
jmp 0x4bcc85
lea eax, [ebp + 8]
lea esi, [esi + 0x4c634c]
push 0
push eax
push dword [esi]
call fcn.004bd9b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret