joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423420
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x423441
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x423448
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x42345f
mov edx, dword [ebp - 4]
push edx
call fcn.00428bd0
add esp, 4
or eax, 0xffffffff
jmp 0x423461
xor eax, eax
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4291db
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00428bd0
add esp, 4
or eax, 0xffffffff
jmp 0x42920a
mov ecx, dword [ebp - 4]
and ecx, 1
test ecx, ecx
je 0x429208
mov edx, dword [ebp + 0xc]
and edx, 2
test edx, edx
je 0x429208
mov dword [0x448afc], 0xd
mov dword [0x448b00], 5
or eax, 0xffffffff
jmp 0x42920a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x431640
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x43165d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x431664
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x43167b
mov ecx, dword [ebp - 4]
push ecx
call fcn.00428bd0
add esp, 4
or eax, 0xffffffff
jmp 0x43167d
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4025f3
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 4], ecx
mov ebx, eax
cmp dword [ebp + 0x10], 0
je 0x402613
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
cmp dword [ebp + 0xc], 0
je 0x40261f
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 0
test ebx, ebx
je 0x402628
cmp byte [ebx], 0
jne 0x40262f
xor eax, eax
jmp 0x4026e9
xor ecx, ecx
mov dword [ebp - 8], ecx
xor esi, esi
jmp 0x402696
mov al, byte [ebx]
xor ecx, ecx
mov cl, al
inc ebx
cmp ecx, 0x3d
jne 0x402661
cmp dword [ebp - 4], 0
je 0x402661
cmp dword [ebp - 8], 0
jne 0x402661
cmp dword [ebp + 0x10], 0
je 0x40265c
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
mov dword [ebp - 8], edx
jmp 0x402695
xor ecx, ecx
mov cl, al
cmp ecx, 0xd
je 0x402673
xor ecx, ecx
mov cl, al
cmp ecx, 0xa
jne 0x402680
and eax, 0xff
cmp eax, 0xd
jne 0x40269b
inc ebx
jmp 0x40269b
mov byte [edx], al
inc edx
mov eax, dword [ebp + 8]
add eax, 0xfffffffe
cmp esi, eax
jle 0x402695
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 1
jmp 0x40269b
inc esi
cmp byte [ebx], 0
jne 0x402638
mov byte [edx], 0
cmp dword [ebp - 4], 0
je 0x4026e7
mov edx, dword [ebp - 4]
mov byte [edx], 0
cmp dword [ebp - 8], 0
je 0x4026e7
push 0x1000
lea eax, [ebp - 0x1008]
push eax
push dword [ebp - 8]
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
mov ecx, dword [ebp + 8]
dec ecx
lea edx, [ebp - 0x1008]
mov eax, dword [ebp - 4]
call fcn.00410240
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov byte [edx + ecx - 1], 0
mov eax, dword [ebp - 8]
mov byte [eax], 0
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4026f1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7c0
push ebx
push esi
mov byte [ebp - 1], dl
mov ebx, eax
mov eax, ebx
call fcn.004101b0
cmp eax, 0x3f6
jae 0x402933
lea eax, [ebp - 0x40]
mov ecx, 0x3c
xor edx, edx
call fcn.00410128
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x5c0
xor eax, eax
mov al, byte [ebx]
cmp eax, 0x22
jne 0x40273e
lea edx, [ebx + 1]
jmp 0x402740
mov edx, ebx
mov dword [ebp - 0x30], edx
xor eax, eax
jmp 0x402797
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x22
jne 0x40276a
jmp 0x402763
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x22
jne 0x402763
mov byte [ebx + eax], 0x20
jmp 0x40276a
inc eax
cmp byte [ebx + eax], 0
jne 0x402753
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x20
je 0x40277f
xor edx, edx
mov dl, byte [ebx + eax + 1]
cmp edx, 0x2f
jne 0x402796
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x20
jne 0x40278d
mov byte [ebx + eax], 0
lea eax, [eax + ebx + 1]
mov dword [ebp - 0x2c], eax
jmp 0x40279d
inc eax
cmp byte [ebx + eax], 0
jne 0x402747
cmp byte [0x415d0a], 0
je 0x4027ad
mov dword [ebp - 0x2c], 0x415d0a
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x30]
call fcn.00406430
mov esi, eax
test esi, esi
je 0x4027d9
mov edx, str..inf
mov eax, esi
call fcn.004102ac
test eax, eax
jne 0x4027d9
mov dword [ebp - 0x34], str.Install
xor edx, edx
mov eax, dword [ebp - 0x30]
call fcn.00407148
mov byte [ebp - 2], al
cmp byte [ebp - 2], 0
je 0x402803
lea edx, [ebp - 0x440]
mov eax, dword [ebp - 0x30]
call fcn.00407214
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x30], ecx
cmp byte [ebp - 1], 0
je 0x402842
cmp byte [ebp - 2], 0
jne 0x402842
lea eax, [ebp - 0x840]
mov edx, dword [ebp - 0x30]
call fcn.0041022c
mov edx, str..exe
lea eax, [ebp - 0x840]
call fcn.004102f4
lea eax, [ebp - 0x840]
xor edx, edx
call fcn.00407148
test al, al
je 0x402933
lea ecx, [ebp - 0x40]
push ecx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x402872
and dword [ebp - 0x3c], 0xfffffbff
mov dword [ebp - 0x30], ebx
lea edx, [ebp - 0x40]
push edx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
je 0x402933
xor ebx, ebx
cmp byte [0x415900], 0
jne 0x40288b
cmp byte [ebp - 1], 0
je 0x4028d4
cmp dword [0x41618c], 0
je 0x4028a3
push dword [0x41618c]
call fcn.004148ec
test eax, eax
jne 0x4028a7
xor eax, eax
jmp 0x4028ac
mov eax, 1
test eax, eax
je 0x4028bf
push 0
push dword [0x41618c]
call fcn.00414964
mov bl, 1
push 0x7d0
push dword [ebp - 8]
call fcn.00414976
mov eax, dword [ebp - 8]
call fcn.00402939
push dword [ebp - 8]
call sub.KERNEL32.DLL_CloseHandle
test esi, esi
je 0x4028f0
mov edx, str..exe
mov eax, esi
call fcn.004102ac
test eax, eax
je 0x402922
cmp byte [0x415900], 0
je 0x40290b
cmp byte [ebp - 1], 0
jne 0x40290b
push 0x1b58
call sub.KERNEL32.DLL_Sleep
jmp 0x402922
cmp byte [ebp - 1], 0
mov edx, 0xc8
jne 0x40291c
add edx, 0x320
push edx
call sub.KERNEL32.DLL_Sleep
test bl, bl
je 0x402933
push 1
push dword [0x41618c]
call fcn.00414964
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402969
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe0
lea eax, [ebp - 0x400]
push eax
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
cmp byte [0x415044], 0
jne 0x402a05
lea eax, [ebp - 0x400]
call fcn.004060f4
mov ecx, 6
mov edx, dword [str.RarSFX]
call fcn.004102d0
test eax, eax
jne 0x402a05
push 0x415248
call sub.KERNEL32.DLL_SetCurrentDirectoryA
lea eax, [ebp - 0x400]
call fcn.004101b0
mov byte [ebp + eax - 0x3ff], 0
lea eax, [ebp - 0x420]
mov ecx, 0x1e
xor edx, edx
call fcn.00410128
mov dword [ebp - 0x41c], 3
mov word [ebp - 0x410], 0x14
lea eax, [ebp - 0x400]
mov dword [ebp - 0x418], eax
lea edx, [ebp - 0x420]
push edx
call sub.SHELL32.DLL_SHFileOperationA
mov esp, ebp
pop ebp
ret

Function at 0x402b04
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf8
push ebx
mov ebx, eax
cmp byte [0x415908], 0
je 0x402b7f
cmp byte [0x417644], 0
je 0x402b7f
lea edx, [ebp - 0x408]
mov eax, 0x417644
call fcn.00402ac9
lea ecx, [ebp - 8]
lea eax, [ebp - 4]
push ecx
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegCreateKeyExA
test eax, eax
jne 0x402b7f
mov eax, ebx
call fcn.004101b0
inc eax
lea edx, [ebp - 0x408]
push eax
push ebx
push 1
push 0
push edx
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegSetValueExA
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402b84
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7f4
push ebx
mov ebx, eax
cmp byte [0x415908], 0
je 0x402c01
lea edx, [ebp - 0x40c]
mov eax, ebx
call fcn.00402ac9
lea ecx, [ebp - 4]
push ecx
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x402c01
mov dword [ebp - 8], 0x400
lea eax, [ebp - 8]
lea edx, [ebp - 0x80c]
push eax
push edx
lea ecx, [ebp - 0xc]
lea eax, [ebp - 0x40c]
push ecx
push 0
push eax
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x402bf9
lea edx, [ebp - 0x80c]
mov eax, ebx
call fcn.0041022c
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402cc8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push 0x64
lea eax, [ebp - 0x64]
push eax
push 0xf
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
xor eax, eax
mov al, byte [ebp - 0x64]
mov esp, ebp
pop ebp
ret

Function at 0x402f4c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, edx
mov ebx, eax
lea eax, [ebp - 4]
push eax
call sub.SHELL32.DLL_SHGetMalloc
lea edx, [ebp - 8]
push edx
push esi
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
push ebx
push dword [ebp - 8]
call sub.SHELL32.DLL_SHGetPathFromIDListA
push dword [ebp - 8]
mov ecx, dword [ebp - 4]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x403b74
Capabilities:
Accept command line arguments
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push 0
call fcn.0041499a
mov eax, 0x41c1c8
call fcn.00410b04
call sub.KERNEL32.DLL_GetCommandLineA
mov ebx, eax
test ebx, ebx
je 0x403ba9
mov eax, ebx
call fcn.00403d4c
push ebx
push str.sfxcmd
call sub.KERNEL32.DLL_SetEnvironmentVariableA
push 0x400
push 0x416a3c
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x416a3c
push str.sfxname
call sub.KERNEL32.DLL_SetEnvironmentVariableA
call fcn.00405830
test eax, eax
je 0x403be5
push 0x400
push 0x416e3c
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x403bee
mov word [0x416e3c], 0
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
mov dword [0x41c1c0], eax
push 0x64
push ebx
call fcn.004148fe
mov dword [0x41763c], eax
push 0x65
push dword [0x41c1c0]
call fcn.004148f2
mov dword [0x417640], eax
lea eax, [ebp - 8]
call fcn.00405ab4
mov edx, 0x416a3c
mov eax, 0x41c1ac
call fcn.004050ac
lea eax, [ebp - 0x20]
call fcn.00404600
lea eax, [ebp - 0x38]
call fcn.00404600
push 0
push 0x40118b
lea edx, [ebp - 0x20]
push 0
mov dword [0x417a44], edx
lea ecx, [ebp - 0x38]
push str.STARTDLG
push ebx
mov dword [0x417a48], ecx
call fcn.00414880
xor eax, eax
xor edx, edx
mov dword [0x41618c], eax
mov dword [0x417a48], edx
mov dword [0x417a44], edx
mov edx, 2
lea eax, [ebp - 0x38]
call fcn.00404624
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404624
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405b30
cmp byte [0x415900], 0
je 0x403cb2
call fcn.00402969
mov eax, 0x4169ac
mov ecx, 0x80
xor edx, edx
call fcn.00410128
cmp dword [0x415054], 0
jle 0x403cd6
mov eax, dword [0x415048]
call fcn.004100ac
push dword [0x41763c]
call sub.GDI32.DLL_DeleteObject
cmp dword [0x417640], 0
je 0x403cf5
push dword [0x417640]
call sub.GDI32.DLL_DeleteObject
cmp dword [0x41c1a0], 0
jne 0x403d16
cmp dword [0x416194], 0
je 0x403d16
mov eax, 0x41c1a0
mov edx, 0xff
call fcn.0040d0c4
mov dword [0x416194], 2
cmp dword [0x41505c], 0
je 0x403d33
mov eax, dword [0x41505c]
call fcn.00402939
call fcn.004149a0
push dword [0x41c1a0]
call sub.KERNEL32.DLL_ExitProcess
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4049a8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
mov dword [ebp - 8], edx
call sub.KERNEL32.DLL_GetTickCount
mov ebx, eax
jmp 0x404a0c
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x2710
ja 0x404a20
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
call fcn.00414922
test eax, eax
je 0x404a0c
push 0
push 0
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.004148b6
lea ecx, [ebp - 0x24]
push ecx
call fcn.0041496a
lea eax, [ebp - 0x24]
push eax
call fcn.00414886
lea edx, [ebp - 4]
push edx
push esi
mov ecx, dword [esi]
call dword [ecx + 0x48]
test eax, eax
jl 0x4049c8
cmp dword [ebp - 4], 0
je 0x4049c8
xor ebx, ebx
cmp dword [ebp - 4], 0
je 0x404a65
lea eax, [ebp - 8]
push eax
push 0x415890
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [edx]
call dword [ecx]
test eax, eax
jl 0x404a65
mov eax, dword [ebp - 8]
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
test eax, eax
jl 0x404a5c
push edi
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
setge bl
and ebx, 1
mov eax, dword [ebp - 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40596c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9ac
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0xc]
lea ebx, [ebp - 0x254]
test edi, edi
je 0x4059b3
mov edx, edi
mov eax, ebx
call fcn.0041022c
mov eax, ebx
call fcn.004101b0
inc eax
add ebx, eax
mov edx, edi
mov eax, ebx
call fcn.0041022c
mov eax, ebx
call fcn.004101b0
inc eax
add ebx, eax
mov eax, 0x85
call fcn.00402c0c
mov edx, eax
mov eax, ebx
call fcn.0041022c
mov eax, ebx
call fcn.004101b0
inc eax
add ebx, eax
mov edx, 0x4155b0
mov eax, ebx
call fcn.0041022c
mov eax, ebx
call fcn.004101b0
inc eax
mov ecx, 0x4c
add ebx, eax
lea eax, [ebp - 0x54]
xor edx, edx
mov byte [ebx], 0
call fcn.00410128
mov dword [ebp - 0x54], 0x4c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x50], eax
mov edx, dword [0x41c1c0]
mov dword [ebp - 0x4c], edx
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], 0x400
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov eax, esi
call fcn.004060f4
cmp esi, eax
jne 0x405a4c
lea edx, [ebp - 0x654]
push edx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea ecx, [ebp - 0x654]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], 0x1080c
cmp byte [ebp + 8], 0
je 0x405a66
lea eax, [ebp - 0x54]
push eax
call sub.COMDLG32.DLL_GetSaveFileNameA
mov ebx, eax
jmp 0x405a71
lea eax, [ebp - 0x54]
push eax
call sub.COMDLG32.DLL_GetOpenFileNameA
mov ebx, eax
test ebx, ebx
jne 0x405aa2
call sub.COMDLG32.DLL_CommDlgExtendedError
cmp eax, 0x3002
jne 0x405aa2
mov byte [esi], 0
cmp byte [ebp + 8], 0
je 0x405a97
lea eax, [ebp - 0x54]
push eax
call sub.COMDLG32.DLL_GetSaveFileNameA
mov ebx, eax
jmp 0x405aa2
lea eax, [ebp - 0x54]
push eax
call sub.COMDLG32.DLL_GetOpenFileNameA
mov ebx, eax
test ebx, ebx
setne al
and eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x409188
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, 0x417e54
mov dword [ebp - 4], edx
mov esi, ecx
cmp dword [edi + 4], 0
mov ebx, eax
jne 0x4091a8
call fcn.00409150
mov eax, dword [ebp - 4]
jmp 0x4091c1
mov edx, ebx
xor ecx, ecx
xor dl, byte [eax]
dec esi
mov cl, dl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
inc eax
mov ebx, edx
test esi, esi
jbe 0x4091c9
test al, 7
jne 0x4091ad
cmp esi, 8
jb 0x409252
xor ebx, dword [eax]
xor ecx, ecx
mov cl, bl
sub esi, 8
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
xor ebx, dword [eax + 4]
add eax, 8
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
cmp esi, 8
mov ebx, edx
jae 0x4091d2
xor ecx, ecx
mov dword [ebp - 8], ecx
cmp esi, dword [ebp - 8]
jbe 0x40927c
mov ecx, dword [ebp - 8]
mov edx, ebx
shr ebx, 8
xor dl, byte [eax + ecx]
and edx, 0xff
mov ecx, dword [edi + edx*4]
xor ecx, ebx
mov ebx, ecx
inc dword [ebp - 8]
cmp esi, dword [ebp - 8]
ja 0x40925c
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x409978
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
test ebx, ebx
je 0x40998f
test esi, esi
jg 0x409996
xor eax, eax
jmp 0x409a3a
mov edx, dword [ebp - 4]
add edx, 4
lea eax, [ebp - 0x28]
mov ecx, 0x10
call fcn.0041013c
test esi, esi
jns 0x4099b0
add esi, 0xf
sar esi, 4
mov dword [ebp - 8], esi
mov esi, dword [ebp - 8]
test esi, esi
jle 0x409a21
lea ecx, [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00409cec
mov eax, dword [ebp - 0x28]
xor dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x24]
xor dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x20]
xor dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 0xc], eax
mov eax, ebx
mov edx, dword [eax]
mov dword [ebp - 0x28], edx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov edx, dword [eax + 8]
mov dword [ebp - 0x20], edx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x10]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0xc], ecx
add ebx, 0x10
add dword [ebp + 8], 0x10
dec esi
test esi, esi
jg 0x4099bd
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
add eax, 4
mov ecx, 0x10
call fcn.0041013c
mov eax, dword [ebp - 8]
shl eax, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x409a44
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffd4
mov ecx, 0x20
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
lea eax, [esp + 0xc]
mov dword [esp + 8], 4
call fcn.0041013c
xor esi, esi
xor ecx, ecx
xor edx, edx
jmp 0x409aab
xor eax, eax
mov edi, esi
mov ebp, dword [esp]
shl edi, 4
lea ebx, [esp + edx*4 + 0xc]
lea edi, [ebp + edi]
mov bl, byte [ebx + eax]
lea edi, [edi + ecx*4]
mov byte [edi + eax + 0x14], bl
inc eax
cmp eax, 4
jl 0x409a76
inc edx
inc ecx
cmp edx, dword [esp + 8]
jge 0x409aa3
cmp ecx, 4
jl 0x409a74
cmp ecx, 4
jne 0x409aab
inc esi
xor ecx, ecx
cmp edx, dword [esp + 8]
jge 0x409ab6
cmp esi, 0xa
jle 0x409a98
cmp esi, 0xa
jg 0x409c49
mov eax, dword [esp + 8]
xor edx, edx
mov dl, byte [esp + eax*4 + 9]
mov al, byte [edx + 0x4184fc]
xor byte [esp + 0xc], al
mov edx, dword [esp + 8]
xor eax, eax
mov al, byte [esp + edx*4 + 0xa]
mov dl, byte [eax + 0x4184fc]
xor byte [esp + 0xd], dl
mov eax, dword [esp + 8]
xor edx, edx
mov dl, byte [esp + eax*4 + 0xb]
mov al, byte [edx + 0x4184fc]
xor byte [esp + 0xe], al
mov edx, dword [esp + 8]
xor eax, eax
mov al, byte [esp + edx*4 + 8]
mov dl, byte [eax + 0x4184fc]
xor byte [esp + 0xf], dl
mov eax, dword [esp + 4]
mov dl, byte [eax + 0x4186fc]
xor byte [esp + 0xc], dl
inc dword [esp + 4]
cmp dword [esp + 8], 8
je 0x409b59
mov edx, 1
cmp edx, dword [esp + 8]
jge 0x409bf7
xor eax, eax
lea ebx, [esp + edx*4 + 8]
lea edi, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
xor byte [edi + eax], bl
inc eax
cmp eax, 4
jl 0x409b39
inc edx
cmp edx, dword [esp + 8]
jl 0x409b37
jmp 0x409bf7
mov edx, 1
jmp 0x409b77
xor eax, eax
lea ebx, [esp + edx*4 + 8]
lea edi, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
xor byte [edi + eax], bl
inc eax
cmp eax, 4
jl 0x409b62
inc edx
mov eax, dword [esp + 8]
sar eax, 1
jns 0x409b82
adc eax, 0
cmp edx, eax
jl 0x409b60
mov eax, dword [esp + 8]
sar eax, 1
jns 0x409b91
adc eax, 0
xor edx, edx
mov dl, byte [esp + eax*4 + 8]
mov dl, byte [edx + 0x4184fc]
xor byte [esp + eax*4 + 0xc], dl
xor edx, edx
mov dl, byte [esp + eax*4 + 9]
mov dl, byte [edx + 0x4184fc]
xor byte [esp + eax*4 + 0xd], dl
xor edx, edx
mov dl, byte [esp + eax*4 + 0xa]
mov dl, byte [edx + 0x4184fc]
xor byte [esp + eax*4 + 0xe], dl
xor edx, edx
mov dl, byte [esp + eax*4 + 0xb]
mov dl, byte [edx + 0x4184fc]
xor byte [esp + eax*4 + 0xf], dl
mov edx, eax
inc edx
cmp edx, dword [esp + 8]
jge 0x409bf7
xor eax, eax
lea ebx, [esp + edx*4 + 8]
lea edi, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
xor byte [edi + eax], bl
inc eax
cmp eax, 4
jl 0x409bdc
inc edx
cmp edx, dword [esp + 8]
jl 0x409bda
xor edx, edx
jmp 0x409c35
xor eax, eax
mov ebx, esi
shl ebx, 4
mov edi, dword [esp]
lea ebx, [edi + ebx]
lea ebx, [ebx + ecx*4]
lea edi, [ebx + eax + 0x14]
lea ebx, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
mov byte [edi], bl
inc eax
cmp eax, 4
jl 0x409bff
inc edx
inc ecx
cmp edx, dword [esp + 8]
jge 0x409c2d
cmp ecx, 4
jl 0x409bfd
cmp ecx, 4
jne 0x409c35
inc esi
xor ecx, ecx
cmp edx, dword [esp + 8]
jge 0x409c40
cmp esi, 0xa
jle 0x409c22
cmp esi, 0xa
jle 0x409abf
add esp, 0x2c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x409c54
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov dword [esp], eax
mov esi, 1
xor eax, eax
xor ecx, ecx
mov edx, esi
mov ebx, ecx
shl edx, 4
add edx, dword [esp]
shl ebx, 2
add edx, ebx
xor ebx, ebx
add edx, 0x14
movzx edi, byte [edx + 1]
mov bl, byte [edx]
lea edi, [edi*4 + 0x41ab1a]
lea ebx, [ebx*4 + 0x41a71a]
mov bl, byte [ebx + eax]
xor bl, byte [edi + eax]
movzx edi, byte [edx + 2]
movzx edx, byte [edx + 3]
lea edi, [edi*4 + 0x41af1a]
lea edx, [edx*4 + 0x41b31a]
xor bl, byte [edi + eax]
xor bl, byte [edx + eax]
lea edx, [esp + ecx*4 + 4]
mov byte [edx + eax], bl
inc ecx
cmp ecx, 4
jl 0x409c66
inc eax
cmp eax, 4
jl 0x409c64
mov eax, esi
lea edx, [esp + 4]
shl eax, 4
mov ecx, 0x10
add eax, dword [esp]
add eax, 0x14
call fcn.0041013c
inc esi
cmp esi, 0xa
jl 0x409c62
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x40b010
Capabilities:
Hash data using sha1

Disassembly:
mov dword [eax], 0x67452301
xor edx, edx
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], edx
mov dword [eax + 0x14], edx
ret