joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4046f9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0xa
mov edi, ecx
mov ebx, edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, dword [ebp + 8]
ja 0x404765
test ebx, ebx
je 0x404765
test esi, esi
jne 0x40472c
xor eax, eax
jmp 0x404765
push 0xa
push edi
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x404728
push esi
push edi
push dword [ebp + 8]
push ebx
call dword [sym.imp.msvcrt.dll_memcpy_s]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x40480c
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push esi
push edi
xor esi, esi
mov edi, ecx
inc esi
call fcn.004066f8
test eax, eax
je 0x404871
cmp dword [0x4091dc], 0
jne 0x404865
test byte [0x408918], 1
jne 0x404865
push 6
push 0
push 0x403490
push dword [0x408580]
mov edx, 0x7d3
mov dword [0x409404], edi
call fcn.00406611
sub eax, 6
je 0x404865
sub eax, esi
je 0x404876
sub eax, 0x832
jne 0x404865
mov dword [0x4091dc], esi
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
mov eax, esi
pop esi
ret
xor esi, esi
jmp 0x404871

Function at 0x4049b5
Capabilities:
Create directory

Disassembly:
mov edi, edi
push edi
mov edi, ecx
mov al, byte [edi]
test al, al
je 0x404a1a
push ebx
push esi
lea esi, [edi + 1]
xor ebx, ebx
mov cl, byte [esi]
cmp cl, 0x3a
jne 0x4049d9
cmp byte [edi + 2], 0x5c
jne 0x4049d9
lea esi, [edi + 3]
jmp 0x404a13
cmp al, 0x5c
jne 0x404a13
cmp cl, al
jne 0x404a13
push 2
lea esi, [edi + 2]
pop ebx
jmp 0x404a13
cmp byte [esi], 0x5c
jne 0x404a0a
cmp byte [esi - 1], 0x3a
je 0x404a0a
test ebx, ebx
je 0x4049fb
dec ebx
jmp 0x404a0a
push 0
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
cmp byte [esi], 0
jne 0x4049e9
pop esi
pop ebx
pop edi
ret
Function at 0x405060
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebx
push esi
xor ebx, ebx
mov esi, 0x4012a4
push ebx
xor edx, edx
mov ecx, esi
call fcn.004046f9
push 0xa
push esi
push ebx
mov dword [0x409144], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [0x409140], eax
test eax, eax
je 0x4051e1
mov eax, dword [0x408580]
test eax, eax
je 0x4050d7
push ebx
push 0x842
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
push 0x841
push dword [0x408580]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00404f80
test eax, eax
jne 0x4050fc
mov ecx, dword [0x408580]
mov edx, 0x4ba
push ebx
push 0x10
push ebx
push ebx
call fcn.004044e8
mov esi, ebx
jmp 0x405187
push edi
push 0x409148
push 1
push 0x404c80
push fcn.00404c20
push 0x404b80
push 0x404b00
push fcn.00404a30
push 0x404d90
push 0x404d70
call dword [sym.imp.Cabinet.dll_FDICreate]
mov edi, eax
add esp, 0x24
test edi, edi
je 0x405168
push 0x409140
push ebx
push 0x404db0
push ebx
push 0x401098
push str.MEMCAB
push edi
call dword [sym.imp.Cabinet.dll_FDICopy]
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x405186
push edi
call dword [sym.imp.Cabinet.dll_FDIDestroy]
pop ecx
test eax, eax
jne 0x405186
mov edx, dword [0x409148]
mov ecx, dword [0x408580]
push ebx
push 0x10
push ebx
push ebx
lea edx, [edx + 0x514]
call fcn.004044e8
mov esi, ebx
pop edi
mov eax, dword [0x409140]
test eax, eax
je 0x40519d
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [0x409140], ebx
test esi, esi
jne 0x4051ba
cmp dword [0x4091d8], ebx
jne 0x4051ba
push ebx
push 0x10
push ebx
push ebx
mov edx, 0x4f8
xor ecx, ecx
call fcn.004044e8
test byte [0x408918], 1
jne 0x4051df
test byte [0x409a34], 1
jne 0x4051df
push ebx
push esi
push 0xfa1
push dword [0x408580]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, esi
pop esi
pop ebx
ret
Function at 0x405345
Capabilities:
Delete file
Set current directory
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x4091e0]
push edi
jmp 0x40539d
cmp dword [0x408904], 0
jne 0x40538b
cmp dword [0x409a30], 0
jne 0x40538b
push 0x80
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [edi]
mov esi, dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, esi
test esi, esi
jne 0x405364
mov eax, dword [0x408900]
pop edi
pop esi
test eax, eax
je 0x405406
cmp dword [0x408904], 0
jne 0x405406
cmp dword [0x409a30], 0
jne 0x405406
push ecx
push 0x4091e4
push ecx
mov edx, 0x104
lea ecx, [ebp - 0x108]
call fcn.0040173e
test byte [0x409a34], 0x20
je 0x4053eb
lea ecx, [ebp - 0x108]
call fcn.0040677a
push 0x401154
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x108]
call fcn.0040239d
mov eax, dword [0x408900]
cmp word [0x409a40], 1
je 0x405419
test eax, eax
je 0x405419
call fcn.00401fd3
mov ecx, dword [ebp - 4]
and dword [0x408900], 0
xor ecx, ebp
call fcn.00406e50
mov esp, ebp
pop ebp
ret

Function at 0x405433
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10c], ecx
mov edi, edx
xor esi, esi
push ebx
push 0x4012d0
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.004016d6
add esp, 0x10
mov edx, 0x104
mov ecx, edi
inc ebx
push dword [ebp - 0x10c]
call fcn.00401635
lea eax, [ebp - 0x108]
mov edx, 0x104
push eax
mov ecx, edi
call fcn.00406717
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4054f2
cmp ebx, 0x190
jl 0x405457
push edi
push 0
push 0x4012dc
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x4054dd
xor esi, esi
push edi
inc esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406e50
mov esp, ebp
pop ebp
ret 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor esi, esi
test eax, eax
je 0x4054b2
inc esi
mov dword [0x408900], esi
jmp 0x4054dd
Function at 0x405975
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov edx, edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x405985
sub edx, ecx
lea esi, [edx + 0x14]
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4059c6
xor esi, esi
mov edx, 0x4b5
push esi
push 0x10
push esi
push esi
xor ecx, ecx
call fcn.004044e8
call fcn.0040635e
mov dword [0x409a48], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edx, esi
mov ecx, ebx
call fcn.00401635
push 0x401310
mov edx, esi
mov ecx, ebx
call fcn.00406717
xor esi, esi
push esi
push 0x4000080
push 1
push esi
push esi
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
cmp eax, 0xffffffff
je 0x4059b3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4059b3
test al, 0x10
je 0x4059b3
xor eax, eax
mov dword [0x409a48], esi
inc eax
jmp 0x4059bf
Function at 0x4062f2
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x40633c
push eax
push 0x10
push eax
push eax
mov edx, 0x4f0
xor ecx, ecx
call fcn.004044e8
call fcn.0040635e
mov dword [0x409a48], eax
xor eax, eax
jmp 0x40634b
push 2
pop edx
push edx
lea ecx, [ebp - 0x108]
call fcn.00405a2f
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406e50
mov esp, ebp
pop ebp
ret

Function at 0x406376
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x20], ecx
push esi
push 0x40132c
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], esi
xor ebx, ebx
push 0x14
push eax
inc ebx
call fcn.004016d6
jmp 0x406419
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40643d
lea edx, [edi + 8]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4063c6
sub ecx, esi
mov esi, esp
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x20]
add eax, edx
push eax
push edx
push dword [edi + 4]
push dword [edi]
call dword [0x40a28c]
call dword [ebp - 0x20]
cmp esi, esp
je 0x4063f4
mov ecx, 4
int 0x29
push edi
test eax, eax
je 0x406433
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
inc esi
push esi
push 0x40132c
push 0x14
push eax
mov dword [ebp - 0x1c], esi
call fcn.004016d6
xor esi, esi
add esp, 0x10
lea eax, [ebp - 0x18]
push 0xa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x4063a9
jmp 0x406449
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x406449
mov dword [0x409a48], 0x80070714
mov ebx, esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406e50
mov esp, ebp
pop ebp
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push ecx
push 0x4091e4
push ecx
mov edx, 0x104
lea ecx, [ebp - 0x108]
call fcn.0040173e
mov edi, 0x401130
lea ecx, [ebp - 0x108]
push edi
mov edx, 0x104
call fcn.00406717
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4065f6
test al, 0x10
jne 0x4065f6
push 8
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x4065fd
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00406e50
mov esp, ebp
pop ebp
ret

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

Disassembly:
mov edi, edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x406709
xor eax, eax
ret
shr eax, 4
not eax
and eax, 1
ret
Function at 0x40694e
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x408004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [0x4081d8]
xor esi, esi
mov dword [ebp - 0xb0], 0xc
mov dword [ebp - 0xa8], esi
cmp edi, 0xfffffffe
jne 0x406a76
lea eax, [ebp - 0xa4]
mov dword [0x4081d8], esi
push eax
mov dword [ebp - 0xa4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x406a70
xor edi, edi
inc edi
cmp dword [ebp - 0x94], edi
jne 0x406a70
cmp dword [ebp - 0xa0], 4
jne 0x406a70
cmp dword [ebp - 0x9c], 0xa
jae 0x406a70
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x406a70
lea eax, [ebp - 0xac]
push eax
push 0x20019
push esi
push 0x401338
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406a70
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb4]
push eax
push esi
push 0x401098
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xac]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x406a42
mov eax, dword [0x4081d8]
jmp 0x406a78
lea edx, [ebp - 0xa8]
lea ecx, [ebp - 0x10]
call fcn.00406815
test eax, eax
je 0x406a70
mov eax, dword [ebp - 0xa8]
and eax, 0x3ff
cmp eax, edi
je 0x406a68
cmp eax, 0xd
jne 0x406a70
mov dword [0x4081d8], edi
jmp 0x406a76
mov edi, dword [0x4081d8]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00406e50
mov esp, ebp
pop ebp
ret

Function at 0x406a8d
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp byte [ecx], 0
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
je 0x406adc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x406adc
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 8]
push 0x400
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406c00
Capabilities:
Terminate process

Disassembly:
call fcn.004072f8
jmp 0x406c0f
push 0x5c
push 0x4074e8
call fcn.004073cc
and dword [ebp - 0x24], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov edi, dword [eax + 4]
xor esi, esi
mov edx, 0x4088ac
mov ecx, edi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x406c5c
cmp eax, edi
jne 0x406c6e
mov esi, ebx
cmp dword [0x4088b0], ebx
jne 0x406c7b
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x406caa
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406c45
cmp dword [0x4088b0], 0
jne 0x406ca4
mov dword [0x4088b0], ebx
push 0x401018
push 0x40100c
call fcn.00406dfa
pop ecx
pop ecx
test eax, eax
je 0x406caa
jmp 0x406de3
mov dword [0x4081e4], ebx
cmp dword [0x4088b0], ebx
jne 0x406ccd
push 0x401008
push section..text
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x4088b0], 2
test esi, esi
jne 0x406cda
xor eax, eax
mov ecx, 0x4088ac
xchg dword [ecx], eax
cmp dword [0x4088b4], 0
je 0x406d08
push 0x4088b4
call fcn.004071f0
pop ecx
test eax, eax
je 0x406d08
push 0
push 2
push 0
mov esi, dword [0x4088b4]
mov ecx, esi
call dword [0x40a28c]
call esi
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov edi, dword [ebp - 0x24]
mov cl, byte [esi]
cmp cl, 0x20
ja 0x406d66
test cl, cl
je 0x406d24
test edi, edi
jne 0x406d66
mov al, byte [esi]
test al, al
je 0x406d34
cmp al, 0x20
ja 0x406d34
inc esi
mov dword [ebp - 0x20], esi
jmp 0x406d24
test byte [ebp - 0x40], 1
je 0x406d40
movzx eax, word [ebp - 0x3c]
jmp 0x406d43
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call main
mov dword [0x4081e0], eax
cmp dword [0x4081f8], 0
jne 0x406dbf
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cl, 0x22
jne 0x406d77
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x24], edi
movzx eax, cl
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x406d8a
inc esi
mov dword [ebp - 0x20], esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x406d15
cmp dword [0x4081e4], 0
jne 0x406dd3
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x4081e0]
mov dword [ebp - 4], 0xfffffffe
jmp 0x406def
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00407414
ret

Function at 0x4070df
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x407510
call fcn.00407468
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40713f
cmp eax, 0xffffffff
je 0x40713f
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x407138
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x407138
cmp edx, 0x10000000
jae 0x407138
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x407135
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.004074ad
ret 4
Function at 0x4071a0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071de
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071d6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071e0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071c6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072c0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072d6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072f1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x402577
Capabilities:
Encode data using xor

Disassembly:
test byte [0x4c2e20], 1
mov ecx, 0x8315
jne 0x4025fe
or dword [0x4c2e20], 1
lea eax, [ecx + 0x1b]
mov edx, eax
add eax, 0x19
mov word [0x4bc9d4], ax
mov word [0x4bc9c8], dx
add edx, 0x11
lea eax, [ecx + 0x5c]
mov word [0x4bc9d6], ax
add eax, 0xffffffef
mov word [0x4bc9d8], ax
mov word [0x4bc9ca], dx
lea edx, [ecx + 0x3b]
lea eax, [ecx + 0x63]
mov word [0x4bc9da], ax
mov word [0x4bc9cc], dx
add edx, 8
add eax, 0xffffffed
mov word [0x4bc9dc], ax
lea eax, [ecx + 0x35]
mov word [0x4bc9de], ax
mov eax, ecx
mov word [0x4bc9ce], dx
mov dword [0x4bc9d0], 0x83308345
mov word [0x4bc9e0], ax
xor eax, eax
mov edx, ecx
xor dx, word [eax + 0x4bc9c8]
add eax, 2
mov word [eax + 0x4bd072], dx
cmp eax, 0x1a
jb 0x402600
mov eax, 0x4bd074
ret

Function at 0x40261e
Capabilities:
Encode data using xor

Disassembly:
test byte [0x4c2e18], 1
jne 0x40264c
or dword [0x4c2e18], 1
mov dword [0x4bc9f0], 0x717a7829
mov dword [0x4bc9f4], 0x2a707960
mov dword [0x4bc9f8], 0x152b2a2a
xor eax, eax
mov cl, byte [eax + 0x4bc9f0]
xor cl, 0x15
mov byte [eax + 0x4bd09c], cl
inc eax
cmp eax, 0xc
jb 0x40264e
mov eax, 0x4bd09c
ret

Function at 0x402669
Capabilities:
Encode data using xor

Disassembly:
test byte [0x4c2e14], 1
mov edx, 0x8315
jne 0x402729
push esi
lea ecx, [edx + 0x22]
mov eax, ecx
mov word [0x4bc9fc], ax
add eax, 0xfffffffe
or dword [0x4c2e14], 1
mov word [0x4bc9fe], ax
lea eax, [edx + 0x23]
mov esi, eax
mov word [0x4bca00], si
mov word [0x4bca02], ax
add eax, 0x3e
mov word [0x4bca04], ax
lea eax, [edx + 0x52]
mov esi, eax
mov word [0x4bca06], si
add esi, 0xd
mov word [0x4bca08], si
lea esi, [edx + 0x51]
mov word [0x4bca0a], si
add esi, 0x17
mov word [0x4bca0c], si
lea esi, [edx + 0x35]
mov word [0x4bca0e], si
mov esi, eax
mov word [0x4bca10], si
add esi, 9
add eax, 0xfffffffa
mov word [0x4bca12], si
lea esi, [edx + 0x50]
mov word [0x4bca1a], ax
mov eax, edx
mov word [0x4bca14], si
mov dword [0x4bca16], 0x8367837a
mov dword [0x4bca1c], 0x83378328
mov word [0x4bca20], ax
pop esi
xor eax, eax
mov ecx, edx
xor cx, word [eax + 0x4bc9fc]
add eax, 2
mov word [eax + 0x4bd0a6], cx
cmp eax, 0x26
jb 0x40272b
mov eax, 0x4bd0a8
ret
Function at 0x40280c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
test byte [0x4c2e10], 1
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov ecx, 0x8315
jne 0x40284a
or dword [0x4c2e10], 1
lea eax, [ecx + 0x4d]
mov word [0x4bca24], ax
add eax, 0x15
mov word [0x4bca26], ax
mov eax, ecx
mov word [0x4bca28], ax
xor esi, esi
xor eax, eax
mov edx, ecx
xor dx, word [eax + 0x4bca24]
add eax, 2
mov word [eax + 0x4bd0ce], dx
cmp eax, 6
jb 0x40284e
lea eax, [ebx + 0xc]
cmp dword [eax + 0x14], 8
jb 0x402871
mov eax, dword [eax]
push 0x4bd0d0
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00463867
add esp, 0xc
test eax, eax
jne 0x40293c
push dword [esp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004035a1
push dword [esp + 0x10]
call fcn.00402945
push eax
call fcn.00463dc1
push dword [esp + 0x18]
call fcn.0046434c
add esp, 0xc
push 0x44
pop edi
push edi
lea eax, [esp + 0x44]
push esi
push eax
call fcn.00466f20
add esp, 0xc
mov dword [esp + 0x40], edi
xor eax, eax
lea ecx, [esp + 0x14]
push ecx
lea edi, [esp + 0x18]
stosd dword es:[edi], eax
lea ecx, [esp + 0x44]
push ecx
push esi
push esi
stosd dword es:[edi], eax
push esi
push esi
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
mov eax, dword [ebx + 0x28]
push esi
push eax
push esi
call dword [0x49208c]
test eax, eax
jne 0x40292a
call dword [0x4920a8]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0042a8dc
cmp dword [eax + 0x14], 0x10
pop ecx
pop ecx
jb 0x40290e
mov eax, dword [eax]
push eax
call fcn.00402985
push eax
call fcn.00464090
pop ecx
pop ecx
push esi
push 1
lea ecx, [esp + 0x2c]
call fcn.00404cea
jmp 0x40293c
push dword [esp + 0x18]
mov esi, dword [0x4920bc]
call esi
push dword [esp + 0x14]
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x402945
Capabilities:
Encode data using xor

Disassembly:
test byte [0x4c2e0c], 1
jne 0x402968
or dword [0x4c2e0c], 1
mov dword [0x4bca2c], 0x5b501f18
mov word [0x4bca30], 0x1551
xor eax, eax
mov cl, byte [eax + 0x4bca2c]
xor cl, 0x15
mov byte [eax + 0x4bd0d8], cl
inc eax
cmp eax, 6
jb 0x40296a
mov eax, 0x4bd0d8
ret

Function at 0x402985
Capabilities:
Encode data using xor

Disassembly:
test byte [0x4c2e08], 1
jne 0x402a0a
or dword [0x4c2e08], 1
mov dword [0x4bca34], 0x797c7453
mov dword [0x4bca38], 0x61357170
mov dword [0x4bca3c], 0x6776357a
mov dword [0x4bca40], 0x70617470
mov dword [0x4bca44], 0x74677635
mov dword [0x4bca48], 0x67357d66
mov dword [0x4bca4c], 0x677a6570
mov dword [0x4bca50], 0x35677061
mov dword [0x4bca54], 0x767a6765
mov dword [0x4bca58], 0x2f666670
mov dword [0x4bca5c], 0x1f663035
mov byte [0x4bca60], 0x15
xor eax, eax
mov cl, byte [eax + 0x4bca34]
xor cl, 0x15
mov byte [eax + 0x4bd0e0], cl
inc eax
cmp eax, 0x2d
jb 0x402a0c
mov eax, 0x4bd0e0
ret