joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4086f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0042d040
mov eax, dword [0x4572b4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x45b268], 0
je 0x40874d
push 0xfff
lea eax, [ebp - 0x1003]
push 0
push eax
mov byte [ebp - 0x1004], 0
call fcn.00426230
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1004]
push eax
call fcn.00422e55
add esp, 0x18
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e77a
mov esp, ebp
pop ebp
ret

Function at 0x409a80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4572b4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 8]
push ecx
push 0x2001f
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409af1
cmp dword [ebp + 0x4c], 0x10
mov eax, dword [ebp + 0x48]
lea edx, [ebp + 0x38]
cmovae edx, dword [ebp + 0x38]
cmp dword [ebp + 0x34], 0x10
lea ecx, [ebp + 0x20]
cmovae ecx, dword [ebp + 0x20]
inc eax
push eax
push edx
push 1
push 0
push ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x409af1
push str.error
call fcn.0042c731
add esp, 4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x1c], 0x10
jb 0x409b0b
push dword [ebp + 8]
call fcn.0041ff30
add esp, 4
cmp dword [ebp + 0x34], 0x10
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
jb 0x409b2e
push dword [ebp + 0x20]
call fcn.0041ff30
add esp, 4
cmp dword [ebp + 0x4c], 0x10
mov dword [ebp + 0x34], 0xf
mov dword [ebp + 0x30], 0
mov byte [ebp + 0x20], 0
jb 0x409b51
push dword [ebp + 0x38]
call fcn.0041ff30
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e77a
mov esp, ebp
pop ebp
ret
Function at 0x409b60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441ee0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4572b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
lea ecx, [ebp - 0x4c]
push ecx
push 0xf003f
push 0
push eax
mov dword [ebp - 4], 0
push edx
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409c7c
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push ebx
push dword [ebp - 0x4c]
mov dword [ebp - 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409c7c
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x30], al
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x409c1a
mov dword [ebp - 0x20], eax
mov byte [ebp + eax - 0x30], al
jmp 0x409c25
push 0
push eax
lea ecx, [ebp - 0x30]
call fcn.00406780
cmp dword [ebp - 0x1c], 0x10
lea ecx, [ebp - 0x14]
push ecx
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push ebx
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409c67
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
call fcn.004052d0
cmp dword [ebp - 0x1c], 0x10
jb 0x409c9b
push dword [ebp - 0x30]
call fcn.0041ff30
add esp, 4
jmp 0x409c9b
mov byte [ebp - 4], 0
cmp dword [ebp - 0x1c], 0x10
jb 0x409c7c
push dword [ebp - 0x30]
call fcn.0041ff30
add esp, 4
push 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push 0x44d414
mov ecx, esi
mov byte [esi], 0
call fcn.004053b0
mov eax, esi
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.0041e77a
mov esp, ebp
pop ebp
ret

Function at 0x409f50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4572b4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, edx
mov edi, ecx
push 0x44d414
push ebx
mov edx, edi
lea ecx, [ebp - 0x20]
call fcn.00409b60
cmp dword [ebp - 0xc], 0x10
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push esi
push eax
call fcn.0041e84a
add esp, 0x10
test eax, eax
je 0x409fde
push 0
lea eax, [ebp - 0x24]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x409fd5
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409fb7
sub eax, edx
inc eax
push eax
push esi
push 1
push 0
push 0x44d414
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0x10
jb 0x409fef
push dword [ebp - 0x20]
call fcn.0041ff30
add esp, 4
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e77a
mov esp, ebp
pop ebp
ret
Function at 0x40a000
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4572b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x38]
push esi
push edi
lea ecx, [ebp - 8]
push ecx
xor esi, esi
cmp dword [ebp + 0x1c], 0x10
push 0x2001f
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push esi
push eax
push SysReAllocString
mov edi, edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a064
push dword [ebp + 0x3c]
cmp dword [ebp + 0x34], 0x10
push ebx
push edi
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push esi
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, 1
test eax, eax
cmovne esi, ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x1c], 0x10
jb 0x40a07e
push dword [ebp + 8]
call fcn.0041ff30
add esp, 4
cmp dword [ebp + 0x34], 0x10
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
jb 0x40a0a1
push dword [ebp + 0x20]
call fcn.0041ff30
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e77a
mov esp, ebp
pop ebp
ret
Function at 0x40ce30
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x4572b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x124
lea eax, [ebp - 0x12c]
push 0
push eax
call fcn.00426230
add esp, 0xc
mov dword [ebp - 0x130], 0x128
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x130]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x40ceb6
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
lea esp, [esp]
lea eax, [ebp - 0x10c]
push str.explorer.exe
push eax
call fcn.0041e84a
add esp, 8
test eax, eax
je 0x40cec9
lea ecx, [ebp - 0x130]
push ecx
push esi
call edi
test eax, eax
jne 0x40ce90
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e77a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x128]
pop edi
xor ecx, ebp
pop esi
call fcn.0041e77a
mov esp, ebp
pop ebp
ret
Function at 0x40f730
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x2c]
mov edi, edi
mov edx, dword [edi + 0x3c]
sub edx, dword [edi + 0x74]
mov eax, dword [edi + 0x2c]
sub edx, dword [edi + 0x6c]
add eax, 0xfffffefa
add eax, esi
mov dword [ebp - 4], edx
cmp dword [edi + 0x6c], eax
jb 0x40f7bc
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.00425be0
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
add esp, 0xc
sub dword [edi + 0x5c], esi
lea ecx, [eax + edx*2]
mov edi, edi
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x40f78f
sub eax, esi
jmp 0x40f791
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x40f780
mov eax, dword [edi + 0x40]
mov edx, esi
lea ecx, [eax + esi*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x40f7af
sub eax, esi
jmp 0x40f7b1
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x40f7a0
mov edx, dword [ebp - 4]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x40f878
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x40f7e9
xor eax, eax
jmp 0x40f83c
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x40f806
mov edx, dword [ebx]
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.00410290
jmp 0x40f81e
cmp eax, 2
jne 0x40f824
mov edx, dword [ebx]
test edx, edx
jne 0x40f815
xor eax, eax
jmp 0x40f821
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.00410940
add esp, 4
mov dword [ebx + 0x30], eax
push dword [ebp - 4]
push dword [ebx]
push dword [ebp - 8]
call fcn.00425be0
mov eax, dword [ebp - 4]
add dword [ebx], eax
add esp, 0xc
add dword [ebx + 8], eax
add dword [edi + 0x74], eax
mov ebx, dword [edi + 0x74]
cmp ebx, 3
jb 0x40f864
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
cmp ebx, 0x106
jae 0x40f878
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x40f740
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410920
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x41092b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.00410940
Function at 0x42b2c4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004216a9
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x42b2fc
xor eax, eax
jmp 0x42b328
cmp esi, dword [ebp - 4]
je 0x42b325
cmp dword [ebp + 0xc], 0
je 0x42b325
push dword [edi + 0x9c]
call fcn.0042aed2
push dword [edi + 0x9c]
mov esi, eax
call fcn.0042a45d
pop ecx
pop ecx
cmp esi, eax
je 0x42b2f8
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x42ce55
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4572b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00426cb3
mov dword [ebp - 0x14], eax
cmp dword [0x45ac98], edi
jne 0x42cf46
push 0x800
push edi
push 0x449d64
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x42ced3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x42d026
push 0x449d64
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x42d026
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42d026
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x45ac98], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x45ac9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x45aca0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45aca8], eax
test eax, eax
je 0x42cf43
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45aca4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x42cf6b
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42cf5e
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x42cf80
push 4
pop eax
jmp 0x42d028
cmp dword [ebp - 0x14], edi
je 0x42cf80
push dword [0x45ac98]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x42cf65
mov eax, dword [0x45aca4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x42cfde
cmp dword [0x45aca8], esi
je 0x42cfde
push eax
call ebx
push dword [0x45aca8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x42cfde
test eax, eax
je 0x42cfde
call ecx
test eax, eax
je 0x42cfd3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x42cfd3
test byte [ebp - 8], 1
jne 0x42cfde
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x42d00e
mov eax, dword [0x45ac9c]
cmp eax, esi
je 0x42d00b
push eax
call ebx
test eax, eax
je 0x42d00b
call eax
mov edi, eax
test edi, edi
je 0x42d00b
mov eax, dword [0x45aca0]
cmp eax, esi
je 0x42d00b
push eax
call ebx
test eax, eax
je 0x42d00b
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x45ac98]
call ebx
test eax, eax
je 0x42d026
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x42d028
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e77a
leave
ret
Function at 0x433369
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4572b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x433407
mov al, byte [esi]
test al, al
je 0x433407
push edi
mov edi, esi
mov ecx, esi
cmp al, 0x2f
je 0x43339b
cmp al, 0x5c
jne 0x43339d
mov edi, ecx
inc ecx
mov al, byte [ecx]
test al, al
jne 0x433393
cmp edi, esi
je 0x4333da
sub edi, esi
push edi
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.004391d8
add esp, 0xc
cmp edi, 0x104
jae 0x433415
lea eax, [ebp - 0x108]
push eax
push ebx
mov byte [ebp + edi - 0x108], 0
call fcn.00433369
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00439030
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00439040
add esp, 0x10
lea eax, [ebp - 0x20c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e77a
leave
ret
call fcn.00420746
int3

Function at 0x4338e2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x43395e
cmp dword [edi + 4], 0xffffffff
jne 0x43395e
push esi
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x44db60
push esi
call fcn.00439040
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x433930
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x433930
mov eax, 0x2000000
jmp 0x433963
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00435d83
add esp, 0x10
test eax, eax
jne 0x43394e
mov eax, dword [ebp - 4]
jmp 0x433963
push eax
call fcn.0043647f
mov dword [edi], eax
mov eax, dword [0x45afe8]
pop ecx
jmp 0x433963
mov eax, 0x1000000
pop edi
leave
ret 0xc
Function at 0x435e90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x435ec4
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x435ebf
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x435eeb
mov edx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x14]
jbe 0x435ed4
mov esi, dword [edi + 0x14]
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.00425be0
add esp, 0xc
add dword [edi + 0x18], esi
mov eax, esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x43605c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x43606a
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x436125
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x44cbd8]
movzx eax, byte [edx + 1]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x44cbd8]
movzx eax, byte [edx + 2]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x44cbd8]
movzx eax, byte [edx + 3]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x44cbd8]
movzx eax, byte [edx + 4]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x44cbd8]
movzx eax, byte [edx + 5]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x44cbd8]
movzx eax, byte [edx + 6]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x44cbd8]
movzx eax, byte [edx + 7]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x44cbd8]
add edx, 8
sub esi, 8
dec edi
jne 0x436088
pop edi
test esi, esi
je 0x43613e
movzx eax, byte [edx]
xor eax, ecx
and eax, ebx
shr ecx, 8
xor ecx, dword [eax*4 + 0x44cbd8]
inc edx
dec esi
jne 0x436129
not ecx
pop esi
mov eax, ecx
pop ebx
pop ebp
ret
Function at 0x402854
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64c
cmp dword [ebp + 0x14], 0
push ebx
push esi
push edi
lea esi, [ebp - 0x24c]
je 0x402899
push dword [ebp + 0x14]
mov eax, esi
push eax
call fcn.0040a477
mov eax, esi
push eax
call fcn.0040a384
push dword [ebp + 0x14]
lea esi, [ebp + eax - 0x24b]
push esi
call fcn.0040a477
push esi
call fcn.0040a384
lea esi, [esi + eax + 1]
push 0x85
call fcn.004098f7
push eax
push esi
call fcn.0040a477
push esi
call fcn.0040a384
lea esi, [esi + eax + 1]
push 0x4122d4
push esi
call fcn.0040a477
push esi
call fcn.0040a384
push 0x4c
mov byte [eax + esi + 1], 0
pop esi
push esi
push 0
lea eax, [ebp - 0x4c]
push eax
call fcn.0040a289
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov eax, dword [0x414c78]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x4c], esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov edi, 0x400
push esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x1c], eax
call fcn.004073db
cmp eax, esi
jne 0x402928
lea eax, [ebp - 0x64c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x64c]
mov dword [ebp - 0x20], eax
cmp byte [ebp + 0x18], 0
mov ebx, dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], 0x1080c
push eax
je 0x402947
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x402949
call ebx
mov edi, eax
test edi, edi
jne 0x402977
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
cmp eax, 0x3002
jne 0x402975
cmp byte [ebp + 0x18], 0
lea eax, [ebp - 0x4c]
mov byte [esi], 0
push eax
je 0x402971
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x402973
call ebx
mov edi, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
leave
ret 0x14

Function at 0x402cc5
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4141c4], 0
jne 0x402cd3
call fcn.00402c9b
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x402d00
test cl, 7
je 0x402d00
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
dec esi
inc ecx
jmp 0x402ce1
cmp esi, 8
jb 0x402d84
mov edi, esi
shr edi, 3
xor eax, dword [ecx]
add ecx, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
mov edx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x4141c0]
xor eax, dword [ecx - 4]
shr edx, 8
xor eax, edx
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
dec edi
jne 0x402d0a
xor edx, edx
test esi, esi
jbe 0x402da4
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4141c0]
inc edx
cmp edx, esi
jb 0x402d8b
pop ebx
pop edi
pop esi
ret 0xc
Function at 0x4099a2
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push 0x20
push dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 8], ecx
call fcn.0040a2b6
xor eax, eax
push 4
xor ecx, ecx
mov dword [ebp + 8], eax
xor ebx, ebx
pop edx
cmp eax, 0xa
jg 0x409ab0
cmp ebx, edx
jge 0x4099f7
lea esi, [ebp + ebx*4 - 0x28]
mov dword [ebp - 4], esi
cmp ecx, edx
jge 0x4099f9
mov edi, dword [ebp - 8]
lea esi, [ecx + eax*4]
lea edi, [edi + esi*4 + 0x14]
mov esi, dword [ebp - 4]
add dword [ebp - 4], edx
inc ebx
inc ecx
cmp ebx, edx
movsd dword es:[edi], dword [esi]
jl 0x4099dc
cmp ecx, edx
jne 0x409a01
inc eax
mov dword [ebp + 8], eax
xor ecx, ecx
cmp ebx, edx
jl 0x4099c8
cmp eax, 0xa
jg 0x409ab0
mov dword [ebp - 4], 0x418ca8
movzx esi, byte [ebp - 0x1b]
mov al, byte [ebp - 0x28]
xor al, byte [esi + 0x418dc8]
movzx esi, byte [ebp - 0x1a]
mov bl, byte [esi + 0x418dc8]
movzx esi, byte [ebp - 0x19]
xor byte [ebp - 0x27], bl
mov bl, byte [esi + 0x418dc8]
movzx esi, byte [ebp - 0x1c]
xor byte [ebp - 0x26], bl
mov bl, byte [esi + 0x418dc8]
mov esi, dword [ebp - 4]
xor al, byte [esi]
xor byte [ebp - 0x25], bl
inc dword [ebp - 4]
push 3
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x24]
pop edi
xor esi, esi
mov bl, byte [eax + esi - 4]
xor byte [eax + esi], bl
inc esi
cmp esi, edx
jl 0x409a5c
add eax, edx
dec edi
jne 0x409a5a
xor ebx, ebx
cmp dword [ebp + 8], 0xa
jg 0x409ab0
cmp ebx, edx
jge 0x409a99
lea eax, [ebp + ebx*4 - 0x28]
cmp ecx, edx
jge 0x409a9b
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 8]
lea esi, [ecx + esi*4]
lea edi, [edi + esi*4 + 0x14]
mov esi, eax
inc ebx
add eax, edx
inc ecx
cmp ebx, edx
movsd dword es:[edi], dword [esi]
jl 0x409a7d
cmp ecx, edx
jne 0x409aa2
inc dword [ebp + 8]
xor ecx, ecx
cmp ebx, edx
jl 0x409a6f
cmp dword [ebp + 8], 0xa
jle 0x409a15
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x409ab7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
add ecx, 0x24
push 4
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 9
pop edi
xor eax, eax
mov ecx, dword [ebp - 4]
lea esi, [ebp + eax - 0x1c]
add ecx, 2
mov dword [ebp - 8], edi
movzx edx, byte [ecx + 1]
movzx ebx, byte [ecx - 1]
mov dl, byte [eax + edx*4 + 0x415ca8]
xor dl, byte [eax + ebx*4 + 0x4164a8]
movzx ebx, byte [ecx - 2]
xor dl, byte [eax + ebx*4 + 0x4168a8]
movzx ebx, byte [ecx]
xor dl, byte [eax + ebx*4 + 0x4160a8]
add ecx, edi
mov byte [esi], dl
add esi, edi
dec dword [ebp - 8]
jne 0x409adf
inc eax
cmp eax, edi
jl 0x409ad2
push 0x10
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call fcn.0040a2b6
add dword [ebp - 4], 0x10
dec dword [ebp - 0xc]
jne 0x409ad0
pop edi
pop esi
pop ebx
leave
ret