joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472ef0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4ead94]
cmp dword [eax + 0x30], 0
je 0x472f9a
cmp dword [ebx + 0x94], 0
jne 0x472f94
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x472e80
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x472f94
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x472f5a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x472f94
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041d9a4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x472f69
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x473a78
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x473aad
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004049a0
jmp 0x473aba
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404904
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x474958
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x474999
mov eax, esi
call fcn.004884c8
test al, al
je 0x474999
mov eax, dword [ebx + 0x84]
call fcn.004881c4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x474999
push 0
mov eax, dword [ebx + 0x84]
call fcn.004881c4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x477788
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004048b0
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4777d7
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404b18
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47f784
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x4eae0c], 0
je 0x47f8d3
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4e99d8]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x47f8d3
mov eax, dword [0x4eae10]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4eae0c]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x47f8a2
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x4eae0c]
call fcn.0041d9a4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x47f89a
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x47f89a
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x47f89a
mov eax, dword [ebp - 0x14]
call fcn.004881c4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x47f89a
push ebp
call fcn.0047f740
pop ecx
test al, al
jne 0x47f89a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x47f856
mov eax, dword [ebp - 0x14]
call fcn.00486d58
dec eax
jle 0x47f89a
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.00403c98
cmp byte [ebp - 1], 0
je 0x47f89a
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x47f89a
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4eae10]
call fcn.0047ef08
inc edi
dec ebx
jne 0x47f7e9
mov eax, dword [0x4eae10]
cmp dword [eax + 8], 0
jle 0x47f8ba
mov eax, dword [0x4eae10]
call fcn.0047ef98
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x47f8d3
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0047f5a8
pop ecx
test al, al
jne 0x47f8d3
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x482e80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x482ecc
mov eax, esi
call fcn.0046b2a0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x482ecc
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x482ecc
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x48300b
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x482f0c
cmp eax, 0x108
ja 0x482f0c
mov eax, esi
call fcn.0046b2a0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x483002
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x48300b
jmp 0x483002
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x482feb
cmp eax, 0x20a
ja 0x482feb
test byte [esi + 0x50], 0x80
jne 0x482f3e
sub eax, 0x203
je 0x482f3b
sub eax, 3
je 0x482f3b
sub eax, 3
jne 0x482f3e
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x482f52
dec eax
je 0x482f67
dec eax
je 0x482f84
dec eax
je 0x482f67
jmp 0x482f8b
mov ecx, ebx
mov eax, dword [0x4e99d8]
mov eax, dword [eax]
mov edx, esi
call fcn.00474810
jmp 0x483002
cmp byte [esi + 0x5d], 1
jne 0x482f7d
mov eax, esi
mov si, 0xffed
call fcn.00403c98
jmp 0x48300b
or word [esi + 0x54], 1
jmp 0x483002
and word [esi + 0x54], 0xfffe
jmp 0x483002
mov eax, dword [0x4eadc8]
cmp byte [eax + 0x20], 0
je 0x483002
mov eax, dword [0x4eadc8]
cmp dword [eax + 0x1c], 0
je 0x483002
mov eax, dword [ebx]
mov edx, dword [0x4eadc8]
cmp eax, dword [edx + 0x1c]
jne 0x483002
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.0046b1e4
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00403c98
jmp 0x48300b
cmp eax, 0xb00b
jne 0x483002
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.004817bc
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4863f4
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x486410
cmp dword [esi + 4], 0
je 0x48643d
test byte [ebx + 0x55], 1
jne 0x48642f
mov eax, ebx
call fcn.004850b8
test eax, eax
jne 0x48642f
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x48654d
mov edx, esi
mov eax, ebx
call fcn.00485f14
jmp 0x48654d
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x486546
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004881c4
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00482db4
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004863f4
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004881c4
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48654d
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48c8a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4e9e44]
cmp byte [eax + 0xc], 0
je 0x48ca0d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48ca06
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4eae1c], 0
jne 0x48c8f4
push 0x48ca14
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x48ca1c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4eae1c], eax
cmp dword [0x4e64cc], 0
jne 0x48c9ef
push 0x48ca2c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4e64cc], eax
cmp dword [0x4e64cc], 0
je 0x48c9ef
push 0x48ca38
mov eax, dword [0x4e64cc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4eae20], eax
push 0x48ca48
mov eax, dword [0x4e64cc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4eae24], eax
push 0x48ca5c
mov eax, dword [0x4e64cc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4eae28], eax
push 0x48ca74
mov eax, dword [0x4e64cc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4eae2c], eax
push 0x48ca8c
mov eax, dword [0x4e64cc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4eae30], eax
push 0x48caa0
mov eax, dword [0x4e64cc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4eae34], eax
push 0x48cab8
mov eax, dword [0x4e64cc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4eae38], eax
push 0x48cad0
mov eax, dword [0x4e64cc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4eae3c], eax
push 0x48caec
mov eax, dword [0x4e64cc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4eae40], eax
push 0x48caf8
mov eax, dword [0x4e64cc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4eae44], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ca0d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4a1174
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.004031a0
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x4e9e44]
cmp byte [edx + 0xc], 0
je 0x4a11d8
mov edx, dword [0x4e9e2c]
cmp dword [edx], 2
jne 0x4a11d8
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x4a11dc
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4a1294
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.004a1174
test al, al
je 0x4a1276
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 0xc]
xor edx, edx
call fcn.004049a0
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x4a1276
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404d60
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExA
mov eax, dword [ebp - 0xc]
call fcn.00404d60
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00404aa0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x4a122f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a129b
lea eax, [ebp - 0x2c]
call fcn.004048b0
lea eax, [ebp - 0xc]
call fcn.004048b0
ret

Function at 0x4a1394
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404d60
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4a13ec
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4e9e54]
mov dl, 1
mov eax, dword [0x4a0d88]
call fcn.0040d184
call fcn.00404250
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004a0e90
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4a26b4
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, edx
mov ebx, eax
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4a270f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, esi
call fcn.00404d60
push eax
mov eax, ebx
call fcn.00404d60
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a2716
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x4a9218
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffec
mov ebx, eax
mov eax, ebx
call fcn.004048b0
mov dword [esp], 0xf
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4a9249
lea edx, [esp + 4]
mov eax, ebx
mov ecx, dword [esp]
call fcn.004049a0
add esp, 0x14
pop ebx
ret
Function at 0x4a9fb8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4aa030
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, ebx
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 8]
mov eax, dword [esi + 0x30]
call fcn.00408ee4
mov eax, dword [ebp - 8]
mov esi, dword [0x4e92d4]
mov esi, dword [esi]
mov edx, dword [ebx]
call esi
test eax, eax
je 0x4aa011
mov edx, eax
dec edx
mov eax, ebx
call fcn.00404eec
jmp 0x4aa01a
mov eax, ebx
xor edx, edx
call fcn.00404eec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa037
lea eax, [ebp - 8]
call fcn.004048b0
ret

Function at 0x4bcec8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov eax, 8
test byte [edx + 1], 0x80
setne bl
mov si, word [edx]
add esi, esi
mov edi, ecx
and edi, 0xff
shr edi, 7
or si, di
mov word [edx], si
test bl, bl
je 0x4bcef6
xor word [edx], 0x1021
add ecx, ecx
and cl, 0xff
dec eax
jne 0x4bced0
pop edi
pop esi
pop ebx
ret
Function at 0x4dbd68
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4dbf4f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004dc094
push 0x7fffffff
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx + 0xc]
xor ecx, ecx
mov edx, dword [0x48dab4]
call fcn.00405fe0
mov eax, dword [ebx + 8]
push eax
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x48dab4]
call fcn.00405fb4
add esp, 4
mov eax, dword [ebp - 4]
call fcn.00405df8
add eax, dword [ebx + 8]
push eax
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x48dab4]
call fcn.00405fb4
add esp, 4
mov eax, dword [ebp - 0x14]
call fcn.00405e00
mov edx, eax
test edx, edx
jl 0x4dbe10
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov cl, byte [ecx + eax]
xor cl, byte [0x4e9070]
mov esi, dword [ebp - 0xc]
mov byte [esi + eax], cl
inc eax
dec edx
jne 0x4dbdfa
mov eax, dword [ebp - 0x14]
call fcn.00405df8
push eax
mov eax, dword [ebp - 4]
call fcn.00405df8
push eax
lea ecx, [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0048febc
lea ecx, [ebp - 0x10]
mov eax, dword [ebx + 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004dab60
push 0
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x48dab4]
call fcn.00405fb4
add esp, 4
mov eax, dword [ebx + 8]
add eax, dword [ebx + 4]
push eax
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x48dab4]
call fcn.00405fb4
add esp, 4
mov eax, dword [ebp - 0x14]
call fcn.00405e00
mov edx, eax
test edx, edx
jl 0x4dbe99
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov cl, byte [ecx + eax]
xor cl, byte [0x4e9074]
mov esi, dword [ebp - 0xc]
mov byte [esi + eax], cl
inc eax
dec edx
jne 0x4dbe83
mov eax, dword [ebp - 0x14]
call fcn.00405df8
push eax
mov eax, dword [ebp - 0x10]
call fcn.00405df8
push eax
lea ecx, [ebp - 0xc]
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.0048febc
mov ecx, dword [ebp + 8]
mov eax, dword [ebx + 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004dab60
push 0
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x48dab4]
call fcn.00405fb4
add esp, 4
push 0
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x48dab4]
call fcn.00405fb4
add esp, 4
push 0
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x48dab4]
call fcn.00405fb4
add esp, 4
cmp dword [ebp - 8], 0xffffffff
jle 0x4dbf2e
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 8]
mov ecx, 1
mov edx, dword [0x48dab4]
call fcn.00405fb4
add esp, 4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dbf56
lea eax, [ebp - 0x14]
mov edx, dword [0x48dab4]
mov ecx, 3
call fcn.004053c4
ret
Function at 0x407013
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x455208], 2
jl 0x407054
movaps xmm0, xmmword [0x43c840]
movaps xmmword [0x44a030], xmm0
movaps xmm0, xmmword [0x43c830]
movaps xmmword [0x44a040], xmm0
movaps xmm0, xmmword [0x43c810]
movaps xmmword [0x44a050], xmm0
movaps xmm0, xmmword [0x43c820]
movaps xmmword [0x44a060], xmm0
push esi
mov esi, dword [esp + 8]
mov ecx, esi
call fcn.0040741d
xor edx, edx
mov ecx, dword [esi + 0xf4]
mov eax, dword [edx + 0x43c7e8]
mov dword [edx + ecx], eax
add edx, 4
cmp edx, 0x20
jl 0x407062
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0xc]
xor dword [ecx + 8], eax
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0x10]
or eax, 0x2000
shl eax, 0x10
xor dword [ecx + 0xc], eax
pop esi
ret 0xc

Function at 0x408021
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x40804b
movzx ecx, byte [edi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x44a070]
inc edi
sub esi, 1
jne 0x408033
pop edi
mov eax, edx
pop esi
ret 0xc

Function at 0x408213
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
mov eax, dword [0x449778]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
mov ebp, dword [esp + 0x38]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x3c]
cmp dword [edi], 2
lea esi, [edi + 4]
jne 0x408272
mov eax, dword [esi]
push ebx
push ebx
push ebx
push ebx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push eax
push 4
lea eax, [esp + 0x28]
push eax
push 0x20
push ebp
call fcn.004089e5
xor edx, edx
movzx eax, byte [esp + edx + 0x14]
mov ecx, edx
and ecx, 3
shl ecx, 3
shl eax, cl
xor ebx, eax
inc edx
cmp edx, 0x20
jb 0x408257
mov dword [esi], ebx
xor ebx, ebx
cmp dword [edi], 3
jne 0x40829b
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
push 0x20
push esi
push 0x20
push ebp
call fcn.004089e5
push 0x20
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00426bf0
add esp, 0xc
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004256b4
add esp, 0x28
ret 8
Function at 0x4089e5
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x1d4
mov eax, dword [0x449778]
xor eax, esp
mov dword [esp + 0x1d0], eax
mov eax, dword [esp + 0x1e0]
mov edx, dword [esp + 0x1f0]
push ebx
mov ebx, dword [esp + 0x1e0]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1ec]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1f8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1fc]
mov dword [esp + 4], edx
mov dword [esp + 0xc], eax
push ebp
mov ebp, dword [esp + 0x1e0]
push esi
push edi
mov edi, dword [esp + 0x1fc]
mov dword [esp + 0x1c], edi
cmp ebx, 0x40
jbe 0x408a91
lea eax, [esp + 0xf8]
push eax
call fcn.00415ea6
push ebx
push ebp
lea eax, [esp + 0x100]
push eax
call fcn.00415eec
lea eax, [esp + 0x1a0]
push eax
lea eax, [esp + 0xfc]
push eax
call fcn.00415d7b
mov edx, dword [esp + 0x10]
lea ebp, [esp + 0x1a0]
push 0x20
pop ebx
test edi, edi
je 0x408aab
cmp byte [edx], 0
je 0x408aab
mov esi, edi
lea edi, [esp + 0x28]
push 0x1a
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x1c]
jmp 0x408b16
xor edx, edx
test ebx, ebx
je 0x408ad1
mov esi, ebp
lea eax, [esp + 0x160]
sub esi, eax
lea ecx, [esp + 0x160]
add ecx, edx
mov al, byte [esi + ecx]
xor al, 0x36
inc edx
mov byte [ecx], al
cmp edx, ebx
jb 0x408abc
cmp ebx, 0x40
jae 0x408af0
push 0x40
pop eax
sub eax, ebx
lea ecx, [esp + 0x160]
push eax
add ecx, ebx
push 0x36
push ecx
call fcn.00427170
add esp, 0xc
lea eax, [esp + 0x28]
push eax
call fcn.00415ea6
push 0x40
lea eax, [esp + 0x164]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00415eec
test edi, edi
je 0x408b27
mov edx, dword [esp + 0x10]
cmp byte [edx], 0
jne 0x408b27
push 0x1a
pop ecx
lea esi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov byte [edx], 1
push dword [esp + 0x1f4]
lea eax, [esp + 0x2c]
push dword [esp + 0x24]
push eax
call fcn.00415eec
lea eax, [esp + 0x1c0]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00415d7b
mov edi, dword [esp + 0x14]
test edi, edi
je 0x408b73
mov eax, dword [esp + 0x18]
cmp byte [eax], 0
je 0x408b73
mov esi, edi
lea edi, [esp + 0x90]
push 0x1a
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x14]
jmp 0x408be2
test ebx, ebx
je 0x408b97
lea eax, [esp + 0x160]
sub ebp, eax
xor edx, edx
lea ecx, [esp + 0x160]
add ecx, edx
mov al, byte [ecx + ebp]
xor al, 0x5c
inc edx
mov byte [ecx], al
cmp edx, ebx
jb 0x408b82
cmp ebx, 0x40
jae 0x408bb6
push 0x40
pop eax
sub eax, ebx
lea ecx, [esp + 0x160]
push eax
add ecx, ebx
push 0x5c
push ecx
call fcn.00427170
add esp, 0xc
lea eax, [esp + 0x90]
push eax
call fcn.00415ea6
push 0x40
lea eax, [esp + 0x164]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.00415eec
test edi, edi
je 0x408bf6
mov eax, dword [esp + 0x18]
cmp byte [eax], 0
jne 0x408bf6
push 0x1a
pop ecx
lea esi, [esp + 0x90]
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 1
push 0x20
lea eax, [esp + 0x1c4]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.00415eec
push dword [esp + 0x24]
lea eax, [esp + 0x94]
push eax
call fcn.00415d7b
mov ecx, dword [esp + 0x1e0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004256b4
add esp, 0x1d4
ret 0x24