joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f0b0
Capabilities:
Download url
Get common file path
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x4744f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x40e
mov esi, ecx
push eax
lea ecx, [ebp - 0x822]
push ecx
mov word [ebp - 0x824], ax
call fcn.00435bd0
add esp, 0xc
lea edx, [ebp - 0x824]
push edx
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
push 0x40e
push eax
lea ecx, [ebp - 0x412]
push ecx
mov word [ebp - 0x414], ax
call fcn.00435bd0
add esp, 0xc
lea edx, [ebp - 0x414]
push edx
push 0
push 0
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push str..jpg
lea edx, [ebp - 0x414]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
cmp dword [esi + 0x44], 8
lea eax, [esi + 0x30]
jb 0x42f157
mov eax, dword [eax]
push 0
push 0
lea ecx, [ebp - 0x414]
push ecx
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileW
mov edi, eax
test edi, edi
jns 0x42f1b9
cmp dword [0x4762cc], 0
jne 0x42f18b
push str.Log_Debug
push 0x4762cc
call fcn.00423330
add esp, 8
cmp dword [0x4762cc], 2
jne 0x42f1f6
push edi
push 0x462838
push str.Log_Debug
call fcn.00423a60
add esp, 0xc
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435bbb
mov esp, ebp
pop ebp
ret
lea edi, [esi + 0x88]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x414]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42f1d0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x414]
push edx
lea ecx, [esi + 0x4c]
call fcn.00401db0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00435bbb
mov esp, ebp
pop ebp
ret
Function at 0x430145
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x476478], 0
push esi
push edi
jne 0x4300b6
call fcn.00430010
test eax, eax
je 0x4300fb
mov eax, dword [0x476478]
cmp eax, 1
jne 0x4300d7
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4300fb
jmp 0x43013d
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x43013d
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4300ff
xor eax, eax
jmp 0x43013d
mov eax, dword [esi]
push dword [0x476478]
call edi
mov edi, eax
test edi, edi
je 0x430121
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x43013d
lea edi, [esi + 0xff0]
push esi
push dword [0x476478]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x430127
mov eax, esi
pop edi
pop esi
ret
jmp 0x4300a2

Function at 0x431c6d
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jle 0x431cae
push ebx
movzx edx, byte [ecx]
dec eax
inc ecx
movzx ebx, byte [ecx]
shl ebx, 8
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
test eax, eax
jg 0x431c87
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x431ccc
dec esi
je 0x431cc3
dec esi
jne 0x431cd1
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
movzx edx, byte [ecx]
shl edx, 8
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x435bbb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4744f0]
jne 0x435bc5
repz ret
jmp fcn.0043a36b
Function at 0x44b5bc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4744f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0043d17e
and dword [ebp - 0x14], 0
cmp dword [0x478388], 0
mov dword [ebp - 0x18], eax
jne 0x44b66f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x44b717
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x44b717
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x478388], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x47838c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x478390], eax
call edi
push eax
call esi
mov dword [0x478398], eax
test eax, eax
je 0x44b66f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x478394], eax
mov eax, dword [0x478394]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x44b6c8
cmp dword [0x478398], ecx
je 0x44b6c8
push eax
call esi
push dword [0x478398]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x44b6c8
test ebx, ebx
je 0x44b6c8
call edi
test eax, eax
je 0x44b6bf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x44b6bf
test byte [ebp - 8], 1
jne 0x44b6c8
or dword [ebp + 0x10], 0x200000
jmp 0x44b6fb
mov eax, dword [0x47838c]
cmp eax, dword [ebp - 0x18]
je 0x44b6fb
push eax
call esi
test eax, eax
je 0x44b6fb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x44b6fb
mov eax, dword [0x478390]
cmp eax, dword [ebp - 0x18]
je 0x44b6fb
push eax
call esi
test eax, eax
je 0x44b6fb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x478388]
call esi
test eax, eax
je 0x44b717
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x44b719
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00435bbb
leave
ret
Function at 0x401491
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4488d0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x401526
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4014e3
cmp dword [ebp + 0x10], ebx
jne 0x40151a
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00401491
test eax, eax
jne 0x4014f5
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014ca
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405e5b
cmp eax, ebx
je 0x40152d
push ebx
push dword [0x4488d0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x401526
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x4488d0], ebx
jne 0x401523
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x401523
jmp 0x401526
Function at 0x40318e
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x4031ab
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x4031ba
mov ebx, 0x418908
mov eax, dword [ebp + 8]
test eax, eax
jl 0x4031cf
mov ecx, dword [0x448838]
add ecx, eax
push ecx
call fcn.00403177
push 4
lea eax, [ebp + 0x14]
push eax
call fcn.00403145
test eax, eax
jne 0x4031e6
push 0xfffffffffffffffd
pop eax
jmp 0x40333f
test dword [ebp + 0x14], 0x80000000
je 0x40331e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x428910
mov dword [ebp - 0xc], eax
call fcn.00406679
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x40333c
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403226
mov esi, dword [ebp + 0x14]
push esi
mov edi, 0x414908
push edi
call fcn.00403145
test eax, eax
je 0x4031de
sub dword [ebp + 0x14], esi
mov dword [0x428928], edi
mov dword [0x42892c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x428910
mov dword [0x428930], ebx
mov dword [0x428934], eax
call fcn.00406699
mov dword [ebp - 0x14], eax
test eax, eax
jl 0x403310
mov esi, dword [0x428930]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x4488d4], 1
mov edi, eax
je 0x4032c4
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x403291
cmp dword [ebp + 0x14], 0
jne 0x4032c4
push dword [ebp + 8]
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00404c03
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x403305
cmp dword [ebp + 0x10], eax
jne 0x4032ed
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403317
cmp dword [ebp - 0x10], esi
jne 0x403317
add dword [ebp - 4], esi
jmp 0x4032f9
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x428930]
cmp dword [ebp - 0x14], 1
jne 0x403245
jmp 0x40333c
cmp dword [ebp + 0x14], eax
jg 0x403219
jmp 0x40333c
push 0xfffffffffffffffc
jmp 0x4031e0
push 0xfffffffffffffffe
jmp 0x4031e0
test edi, edi
je 0x403385
cmp dword [ebp + 0x14], esi
jge 0x40332a
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403145
test eax, eax
je 0x4031de
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x403351
mov esi, dword [ebp + 0x14]
push esi
mov edi, 0x414908
push edi
call fcn.00403145
test eax, eax
je 0x4031de
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403317
cmp esi, dword [ebp + 0x10]
jne 0x403317
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403346
jmp 0x40333c
Function at 0x405894
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x43a9e0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x43a9e0], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4058cf
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405a16
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 0x405a33
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405a36
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405a65
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405aa9
test edi, edi
jne 0x405a70
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405aa3

Function at 0x405aad
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405b1e
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x2000
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405b0d
cmp dword [ebp + 0x14], 1
je 0x405b0f
cmp dword [ebp + 0x14], 2
je 0x405b0f
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405c82
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x405ca7
mov eax, dword [0x40a058]
cmp eax, 0xffffffff
je 0x405c9e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a058], 0xffffffff
jmp 0x405d1c
cmp dword [0x43fb68], ebx
je 0x405d1c
cmp byte [0x444380], bl
je 0x405ce6
cmp dword [0x40a058], 0xffffffff
jne 0x405cef
push 4
push 0x40000000
push 0x444380
call fcn.00405a36
mov dword [0x40a058], eax
cmp eax, 0xffffffff
je 0x405d1c
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a058], 0xffffffff
je 0x405d1c
push esi
push 0x408ccc
mov esi, 0x43fb80
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
lea ecx, [ebp + 8]
push ecx
push eax
push esi
push dword [0x40a058]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x43aa28
push esi
call fcn.00405bc6
push esi
call fcn.0040599f
mov edi, eax
test edi, edi
jne 0x405f3a
xor eax, eax
jmp 0x405f92
push edi
call fcn.00405be8
test byte [0x448848], 0x80
je 0x405f53
mov al, byte [edi]
test al, al
je 0x405f36
cmp al, 0x5c
je 0x405f36
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x405f73
push esi
call fcn.00405e34
test eax, eax
je 0x405f6d
test byte [eax], 0x10
je 0x405f97
push esi
call fcn.00405ef2
push esi
call ebx
cmp eax, edi
jg 0x405f5e
push esi
call fcn.00405ec5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x405f91
Function at 0x40624b
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405e5b
mov esi, dword [esp + 0x18]
test eax, eax
je 0x40626f
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x4063a8
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x43ca28], 0x4c554e
mov edi, 0x400
mov ebp, 0x43ca28
test esi, esi
je 0x4062b3
push 1
push 0
push esi
call fcn.00405a36
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4063ae
cmp eax, edi
jg 0x4063ae
push edi
mov esi, 0x43d368
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4063ae
cmp eax, edi
jg 0x4063ae
push esi
push ebp
push str._s_s_r_n
push 0x43ce28
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x4487ec]
push dword [eax + 0x128]
push esi
call fcn.00405ff1
push 4
push 0xc0000000
push esi
call fcn.00405a36
mov ebp, eax
mov dword [esp + 0x14], ebp
cmp ebp, 0xffffffff
je 0x4063a8
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4063a1
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4063a1
cmp edi, dword [esp + 0x18]
jne 0x4063a1
push str._Rename__r_n
push esi
call fcn.00405f9b
test eax, eax
jne 0x4063b5
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call fcn.00405bc6
add edi, 0xa
mov eax, edi
push ebx
push 0x43ce28
add eax, esi
push eax
call fcn.004059f2
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
add edi, ebx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x4488b0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x408d78
add eax, 0xa
push eax
call fcn.00405f9b
test eax, eax
je 0x40636c
inc eax
lea ecx, [esi + edi]
mov ebp, eax
cmp eax, ecx
jae 0x4063dc
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x4063d1
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x40636e
Function at 0x406608
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x43f76c], 0
jne 0x406646
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40661c
mov dword [ecx*4 + 0x43f768], eax
inc ecx
cmp ecx, 0x100
jl 0x406617
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406673
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x43f768]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406654
not eax
pop ebp
ret 0xc
Function at 0x4092d0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, ecx
push 0x200
push 0
lea eax, [edi + 0x948]
push eax
call fcn.0049c630
add esp, 0xc
mov dword [edi + 0xb48], 0
lea ecx, [edi + 0x840]
xor edx, edx
push 1
call fcn.00409890
add esp, 4
mov dword [ebp - 4], 0
lea esi, [edi + 0xf4]
lea esp, [esp]
cmp dword [0x4dc890], 2
jl 0x409349
movdqa xmm0, xmmword [0x4cbd80]
movdqa xmmword [0x4dcbc0], xmm0
movdqa xmm0, xmmword [0x4cbd60]
movdqa xmmword [0x4dcbb0], xmm0
push 0xf0
lea eax, [esi - 0xf4]
push 0
push eax
call fcn.0049c630
mov dword [esi + 0xc], 0
add esp, 0xc
mov byte [esi + 0x10], 0
mov eax, dword [esi]
mov ecx, dword [ebp - 4]
mov dword [eax], 0x6a09e667
mov eax, dword [esi]
mov dword [eax + 4], 0xbb67ae85
mov eax, dword [esi]
mov dword [eax + 8], 0x3c6ef372
mov eax, dword [esi]
mov dword [eax + 0xc], 0xa54ff53a
mov eax, dword [esi]
mov dword [eax + 0x10], 0x510e527f
mov eax, dword [esi]
mov dword [eax + 0x14], 0x9b05688c
mov eax, dword [esi]
mov dword [eax + 0x18], 0x1f83d9ab
mov eax, dword [esi]
mov dword [eax + 0x1c], 0x5be0cd19
mov eax, dword [esi]
xor dword [eax], 0x2080020
mov eax, dword [esi]
xor dword [eax + 8], ecx
inc ecx
mov eax, dword [esi]
add esi, 0x108
mov dword [ebp - 4], ecx
xor dword [eax + 0xc], 0x20000000
cmp ecx, 8
jb 0x409320
mov byte [edi + 0x944], 1
mov byte [edi + 0x83c], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x409890
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4dc890], 2
push esi
push edi
mov edi, edx
mov esi, ecx
jl 0x4098c3
movdqa xmm0, xmmword [0x4cbd80]
movdqa xmmword [0x4dcbc0], xmm0
movdqa xmm0, xmmword [0x4cbd60]
movdqa xmmword [0x4dcbb0], xmm0
push 0xf0
push 0
push esi
call fcn.0049c630
mov dword [esi + 0x100], 0
add esp, 0xc
mov byte [esi + 0x104], 0
mov eax, dword [esi + 0xf4]
mov dword [eax], 0x6a09e667
mov eax, dword [esi + 0xf4]
mov dword [eax + 4], 0xbb67ae85
mov eax, dword [esi + 0xf4]
mov dword [eax + 8], 0x3c6ef372
mov eax, dword [esi + 0xf4]
mov dword [eax + 0xc], 0xa54ff53a
mov eax, dword [esi + 0xf4]
mov dword [eax + 0x10], 0x510e527f
mov eax, dword [esi + 0xf4]
mov dword [eax + 0x14], 0x9b05688c
mov eax, dword [esi + 0xf4]
mov dword [eax + 0x18], 0x1f83d9ab
mov eax, dword [esi + 0xf4]
mov dword [eax + 0x1c], 0x5be0cd19
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov eax, dword [esi + 0xf4]
xor dword [eax + 8], edi
mov ecx, dword [esi + 0xf4]
mov eax, dword [ebp + 8]
or eax, 0x2000
shl eax, 0x10
xor dword [ecx + 0xc], eax
pop edi
pop esi
pop ecx
pop ebp
ret
Function at 0x40a6f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ebx
test esi, esi
je 0x40a720
test bl, 7
je 0x40a71d
movzx edx, byte [ebx]
inc ebx
movzx eax, cl
xor edx, eax
shr ecx, 8
xor ecx, dword [edx*4 + 0x4dcbd0]
dec esi
jne 0x40a702
mov dword [ebp - 4], ebx
cmp esi, 8
jb 0x40a7af
push edi
mov edi, esi
shr edi, 3
nop
xor ecx, dword [ebx]
sub esi, 8
mov ebx, dword [ebx + 4]
mov edx, ebx
shr edx, 0x18
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov edx, dword [edx*4 + 0x4dcbd0]
xor edx, dword [eax*4 + 0x4dcfd0]
mov eax, ebx
shr eax, 8
movzx eax, al
xor edx, dword [eax*4 + 0x4dd3d0]
mov eax, ecx
shr eax, 0x18
xor edx, dword [eax*4 + 0x4ddbd0]
mov eax, ecx
shr eax, 0x10
movzx eax, al
xor edx, dword [eax*4 + 0x4ddfd0]
mov eax, ecx
shr eax, 8
movzx eax, al
xor edx, dword [eax*4 + 0x4de3d0]
movzx eax, bl
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 4], ebx
xor edx, dword [eax*4 + 0x4dd7d0]
movzx eax, cl
xor edx, dword [eax*4 + 0x4de7d0]
mov ecx, edx
dec edi
jne 0x40a730
pop edi
test esi, esi
je 0x40a7cb
movzx edx, byte [ebx]
lea ebx, [ebx + 1]
movzx eax, cl
xor edx, eax
shr ecx, 8
xor ecx, dword [edx*4 + 0x4dcbd0]
dec esi
jne 0x40a7b3
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a7e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov word [ecx + 0xc01], 0
mov byte [ecx + 0xc00], 0
mov dl, byte [esi]
test dl, dl
je 0x40a828
push ebx
xor al, al
xor bl, bl
xor ah, ah
add al, dl
lea esi, [esi + 1]
add ah, dl
rol al, 1
xor bl, dl
mov byte [ecx + 0xc00], ah
mov byte [ecx + 0xc01], bl
mov byte [ecx + 0xc02], al
mov dl, byte [esi]
test dl, dl
jne 0x40a804
pop ebx
pop esi
pop ebp
ret 4

Function at 0x40a830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x6f0]
call fcn.0040a650
mov edi, dword [ebp + 8]
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a850
sub eax, edx
or ecx, 0xffffffff
push eax
mov edx, edi
call fcn.0040a6f0
mov word [esi + 0xc04], ax
add esp, 4
shr eax, 0x10
mov word [esi + 0xc06], ax
xor eax, eax
mov dword [esi + 0xc08], eax
mov dl, byte [edi]
test dl, dl
je 0x40a8cf
push ebx
xor ebx, ebx
mov dword [ebp + 8], eax
lea esp, [esp]
movzx eax, dl
lea edi, [edi + 1]
movzx edx, dl
lea ecx, [esi + eax*4]
movzx eax, word [ecx + 0x6f0]
xor ax, dx
xor word [ebp + 8], ax
mov eax, dword [ebp + 8]
mov word [esi + 0xc08], ax
movzx eax, word [ecx + 0x6f2]
add ax, dx
add bx, ax
mov word [esi + 0xc0a], bx
mov dl, byte [edi]
test dl, dl
jne 0x40a890
pop ebx
pop edi
pop esi
pop ebp
ret 4