joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4021c0
Capabilities:
Read .ini file

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x10
lea eax, [esp]
push 0xa
push eax
push ecx
call fcn.00408afb
movsx eax, word [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
add esp, 0xc
push edx
push eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0xc]
push 0x411680
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esp, 0x10
ret

Function at 0x402200
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, dword [esp + 8]
ret

Function at 0x402210
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402238
mov eax, dword [esp + 0xc]
test eax, eax
je 0x402234
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop esi
ret
xor eax, eax
pop esi
ret
and eax, 0xff
pop esi
shr eax, 4
and eax, 1
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x402270
Capabilities:
Delete file

Disassembly:
push esi
push edi
push 1
push 0x104
call fcn.0040893f
add esp, 8
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
push esi
call fcn.00402200
add esp, 8
test eax, eax
je 0x4022ac
push 0x180
push esi
call fcn.00408d7c
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test esi, esi
mov edi, eax
je 0x4022c2
push esi
call fcn.00408910
add esp, 4
mov eax, edi
pop edi
pop esi
ret

Function at 0x4022d0
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
push edi
xor edi, edi
test esi, esi
je 0x40239f
mov ebp, dword [esp + 0x30]
test ebp, ebp
je 0x40239f
push esi
call fcn.00402250
add esp, 4
test eax, eax
je 0x40239f
push ebp
call fcn.00402250
add esp, 4
test eax, eax
je 0x40239f
push edi
push 0x80
push 3
push edi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0x80000000
push esi
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x40233c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push ebp
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x402381
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call ebx
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x402830
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
call fcn.00402890
mov edx, dword [esp + 0x118]
mov eax, dword [esp + 0x114]
add esp, 8
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0x10c]
push edx
push eax
push 0x411680
push ecx
push str.strings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
neg eax
sbb eax, eax
neg eax
add esp, 0x104
ret

Function at 0x402890
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
push edi
push str.TEMP
call fcn.0040879b
mov esi, dword [esp + 0x11c]
add esp, 4
mov edi, eax
push 0x41178c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [esp + 0x11c]
test edi, edi
je 0x4028d2
push ebx
push edi
push esi
call fcn.00408f30
add esp, 0xc
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x402939
push 0x410054
call fcn.0040879b
add esp, 4
test eax, eax
je 0x402902
push ebx
push eax
push esi
call fcn.00408f30
add esp, 0xc
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x402939
lea eax, [esp + 0x10]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x51
push ebx
lea ecx, [esp + 0x18]
push esi
push ecx
call fcn.00402450
add esp, 0x10
push str.TEMP
push esi
call ebp
push 1
push esi
call fcn.00402210
push ebx
push esi
call fcn.004023d0
add esp, 0x10
push str.hpistr.hpi
push esi
call ebp
push esi
call fcn.00402250
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret

Function at 0x402970
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
call fcn.00402250
add esp, 4
test eax, eax
je 0x402995
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x402995
push esi
call fcn.00402270
add esp, 4
mov ebx, dword [esp + 0x10]
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, eax
test edi, edi
je 0x4029cc
push esi
call fcn.00402250
add esp, 4
test eax, eax
je 0x4029c2
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
push ebx
call fcn.004022d0
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x402f30
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0xb4
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xc8]
push edi
call dword [sym.imp.USER32.dll_GetDC]
push 2
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, eax
je 0x402f5f
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
lea edx, [esp + 0x60]
push 0x64
push edx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [esp + 0x20]
and eax, 0xffff
push ecx
lea edx, [esp + 0x64]
push eax
push edx
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
and eax, 0xffff
mov ecx, edx
sub ecx, eax
mov eax, ebx
sub ecx, ebp
mov ebp, dword [esp + 0x28]
sub eax, ebp
mov ebp, dword [esp + 0x14]
sar ecx, 1
sub eax, ebp
sub ecx, 2
sar eax, 1
movsx ecx, cx
sub eax, 2
mov dword [esp + 0x10], ecx
movsx eax, ax
sub edx, ecx
lea ecx, [esp + 0x10]
sub ebx, eax
push ecx
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ebx
call dword [sym.imp.USER32.dll_DrawFocusRect]
push esi
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret 4

Function at 0x403100
Capabilities:
Enumerate gui resources

Disassembly:
push esi
push 1
push 0x104
call fcn.0040893f
add esp, 8
mov esi, eax
mov dword [0x411998], 0
push esi
push 0x403150
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test esi, esi
je 0x403141
push esi
call fcn.00408910
add esp, 4
pop esi
ret
Function at 0x4032b0
Capabilities:
Get disk information
Get disk size

Disassembly:
sub esp, 0x120
push ebx
mov ebx, dword [esp + 0x128]
push ebp
push esi
movsx eax, byte [ebx]
push edi
push eax
call fcn.004084aa
mov esi, dword [esp + 0x13c]
add esp, 4
mov ebp, 1
xor edi, edi
push ebp
mov dword [esi + 0x12c], edi
mov dword [esi + 0x128], edi
mov dword [esi + 0x130], edi
mov dword [esi + 0x134], edi
mov dword [esi + 0x124], edi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [esi + 0x110], edi
mov dword [esi + 0x108], edi
mov dword [esi + 0x118], edi
push ebx
mov dword [esp + 0x28], eax
mov dword [esi + 0x120], edi
mov dword [esi + 0x114], edi
mov dword [esi + 0x10c], edi
mov dword [esi + 0x11c], edi
mov dword [esi + 0x138], edi
mov dword [esi + 0x124], edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [esi + 0x120], eax
add eax, 0xfffffffe
cmp eax, 3
ja case.default.0x40334f
jmp dword [eax*4 + 0x40347c]
mov dword [esi + 0x128], ebp
jmp 0x403374
mov dword [esi + 0x130], ebp
jmp 0x403374
mov dword [esi + 0x12c], ebp
jmp 0x403374
mov dword [esi + 0x134], ebp
mov dword [esi + 0x124], ebp
lea ecx, [esp + 0x2c]
push 0x104
lea edx, [esi + 0x13c]
push ecx
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x34]
push eax
push ecx
push 0x104
push esi
push ebx
mov dword [esp + 0x48], edi
mov dword [esp + 0x40], edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
push ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x138], eax
imul ebx, ecx
imul eax, ecx
mov edx, dword [esp + 0x10]
mov ecx, edi
imul ebx, edx
imul eax, edx
mov dword [esi + 0x108], ebx
mov dword [esi + 0x118], eax
mov dword [esi + 0x10c], edi
mov ebx, dword [esi + 0x108]
mov dword [esi + 0x11c], edi
mov eax, dword [esi + 0x118]
sub eax, ebx
mov edx, edi
mov dword [esi + 0x110], eax
mov eax, dword [esi + 0x120]
sbb ecx, edx
cmp eax, 2
mov dword [esi + 0x114], ecx
jne 0x403458
cmp dword [esi + 0x118], 0x1e8480
ja 0x40344c
mov eax, edi
cmp eax, edi
jbe 0x403458
mov dword [esi + 0x12c], edi
mov dword [esi + 0x128], ebp
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ecx, dword [esi + 0x120]
xor eax, eax
cmp ecx, edi
pop edi
pop esi
pop ebp
setne al
pop ebx
add esp, 0x120
ret
Function at 0x408d7c
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x408da7
test byte [esp + 8], 0x80
je 0x408d96
and al, 0xfe
jmp 0x408d98
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x408db8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004093ab
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x40ae2d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x410d10
cmp edx, dword [eax]
je 0x40ae4f
add eax, 8
inc ecx
cmp eax, 0x410da0
jl 0x40ae40
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x410d10]
jne 0x40af7d
mov eax, dword [0x41533c]
cmp eax, 1
je 0x40af57
test eax, eax
jne 0x40ae80
cmp dword [0x4108d4], 1
je 0x40af57
cmp edx, 0xfc
je 0x40af7d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40aeb7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408820
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408720
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40aefa
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408720
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41015c
push edi
call fcn.00408f30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408820
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408830
lea eax, [ebp - 0xa0]
push 0x40e4c8
push eax
call fcn.00408830
push dword [esi + 0x410d14]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408830
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040cc37
add esp, 0x2c
pop edi
jmp 0x40af7d
lea eax, [ebp + 8]
lea esi, [esi + 0x410d14]
push 0
push eax
push dword [esi]
call fcn.00408720
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 0x404b30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
xorps xmm0, xmm0
push 0xffffffffffffffff
push 0x50e528
push eax
mov dword fs:[0], esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea eax, [edi + 4]
push eax
mov dword [edi], 0x519de8
movq qword [eax], xmm0
lea eax, [esi + 4]
push eax
call fcn.004e43eb
add esp, 8
mov dword [edi], 0x519f9c
lea ecx, [edi + 0x14]
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
lea eax, [esi + 0x14]
push eax
mov dword [ebp - 4], 0
call fcn.00405900
mov ecx, dword [ebp - 0xc]
mov eax, edi
mov dword [edi + 0x2c], 0x519e58
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi], 0x51c4a0
mov dword [edi + 0x2c], 0x51c4ac
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404be0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
cmp dword [edi + 0x1c], 0x10
lea esi, [edi + 8]
mov ebx, dword [edi + 0x18]
jb 0x404bfc
mov esi, dword [edi + 8]
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x404c18
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x404c07
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0xc]
and eax, edx
lea edx, [eax*8]
mov eax, dword [ecx + edx]
add ecx, edx
cmp dword [ecx + 4], edi
jne 0x404c51
cmp eax, edi
jne 0x404c49
mov eax, dword [ebx + 4]
mov dword [ecx], eax
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 4]
mov dword [edx + ecx + 4], eax
jmp 0x404c59
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x404c59
cmp eax, edi
jne 0x404c59
mov eax, dword [edi]
mov dword [ecx], eax
mov eax, dword [edi + 4]
lea ecx, [edi + 8]
mov esi, dword [edi]
mov dword [eax], esi
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
dec dword [ebx + 8]
call fcn.004073c0
push 0x38
push edi
call fcn.004cd104
mov eax, dword [ebp + 8]
add esp, 8
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x405800
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50e710
push eax
mov dword fs:[0], esp
push esi
mov esi, ecx
push edi
push 8
mov dword [esi], 0x519ff0
call fcn.004cd0d4
mov edi, eax
add esp, 4
test edi, edi
je 0x405848
push 1
mov dword [ebp - 4], 0
call fcn.004ca79c
add esp, 4
mov dword [edi + 4], eax
jmp 0x40584a
xor edi, edi
lea eax, [esi + 4]
mov dword [esi + 0x34], edi
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405ca0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e790
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
xorps xmm0, xmm0
push edi
mov edi, dword [ebp + 8]
lea eax, [esi + 4]
mov dword [ebp - 0x10], esi
mov dword [esi], 0x519de8
push eax
movq qword [eax], xmm0
lea eax, [edi + 4]
push eax
call fcn.004e43eb
add esp, 8
mov dword [esi], 0x519f9c
lea ecx, [esi + 0x14]
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
lea eax, [edi + 0x14]
push eax
mov dword [ebp - 4], 0
call fcn.00405900
mov dword [esi], 0x519fb4
mov dword [esi + 0x2c], 0x519e58
mov ecx, dword [edi + 0x30]
mov dword [ebp - 4], 1
mov dword [esi + 0x30], ecx
test ecx, ecx
je 0x405d28
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 0x34]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, esi
mov dword [esi], 0x51c4a0
mov dword [esi + 0x2c], 0x51c4ac
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x406360
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e8aa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.004ca18f
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x4063ed
push eax
push esi
call fcn.004ca8a3
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x519e6c
lea ecx, [ebp - 0x1c]
call fcn.00406a20
push 0x5561c4
lea eax, [ebp - 0x1c]
push eax
call fcn.004e446d
int3

Function at 0x412880
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50f458
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.004cd0d4
mov edi, eax
add esp, 4
test edi, edi
je 0x412912
push 1
mov dword [ebp - 4], 0
call fcn.004ca79c
add esp, 4
mov dword [edi + 4], eax
jmp 0x412914
xor edi, edi
mov eax, dword [ebp + 8]
push ebx
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.004053a0
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov bl, al
mov dword [ebp - 4], 3
test edi, edi
je 0x412979
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x412979
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
mov dword [ebp - 4], 0xffffffff
pop ebx
jne 0x41299a
mov eax, dword [esi + 0xc]
mov ecx, esi
push 0
or eax, 4
push eax
call fcn.00410900
cmp byte [ebp + 0xc], 0
je 0x4129a9
push esi
call 0x4cac8f
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x419630
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50f820
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov esi, edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
cmp dword [edi + 0x14], 0x10
jb 0x41966a
mov esi, dword [edi]
xor ecx, ecx
mov edx, 0x811c9dc5
cmp dword [edi + 0x10], ecx
jbe 0x419688
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, dword [edi + 0x10]
jb 0x419676
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 4]
and eax, edx
lea edx, [eax*8]
mov eax, dword [ebx + 0xc]
add eax, edx
mov dword [ebp - 0x14], edx
mov dword [ebp + 0xc], eax
cmp esi, dword [eax]
je 0x41971e
mov esi, dword [eax + 4]
mov esi, dword [esi]
nop dword [eax + eax]
cmp esi, dword [eax]
je 0x41971e
mov esi, dword [esi + 4]
cmp dword [esi + 0x1c], 0x10
lea eax, [esi + 8]
mov edx, dword [eax + 0x10]
jb 0x4196c5
mov eax, dword [eax]
cmp dword [edi + 0x14], 0x10
mov ecx, edi
jb 0x4196cf
mov ecx, dword [edi]
push edx
push eax
push dword [edi + 0x10]
push ecx
call fcn.00404640
add esp, 0x10
test al, al
mov eax, dword [ebp + 0xc]
je 0x4196b0
mov edi, dword [ebp + 0x10]
lea ecx, [ebx + 4]
push edi
mov edx, dword [edi + 4]
mov eax, dword [edi]
mov dword [edx], eax
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
dec dword [ecx + 4]
call fcn.0041d530
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp + 0x10]
mov dword [ebp + 0xc], edi
mov eax, dword [edi]
cmp esi, eax
je 0x41974b
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebp - 0x14]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx + 4]
jne 0x419765
mov dword [ecx], edi
mov eax, dword [ebx + 0xc]
mov dword [eax + edx + 4], edi
jmp 0x419787
cmp eax, esi
jne 0x41976d
mov dword [ecx], edi
jmp 0x419787
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x419787
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
mov dword [ebp - 4], 2
call fcn.0041cde0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc