joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c4328
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c44d3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x4c44b4
mov dl, 1
mov eax, dword [0x4313bc]
call fcn.0043df0c
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
call fcn.00406948
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4c44a3
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004987bc
test al, al
je 0x4c4496
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x4c44e4
lea eax, [ebp - 0x394]
call fcn.0041bbd4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4c4496
xor eax, eax
push ebp
push 0x4c448f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x4c4554
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4c4478
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00407318
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x40]
jne 0x4c4478
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00407318
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c4496
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4c4399
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.0043de48
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c44da
lea eax, [ebp - 0x3a0]
call fcn.00406948
ret

Function at 0x4c5030
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4e8334]
cmp byte [eax + 0xad], 0
jne 0x4c50a2
cmp dword [0x4e834c], 0
jne 0x4c5062
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x4e1550]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x4e834c], eax
cmp dword [0x4e8348], 0
jne 0x4c507d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x4e8348], eax
cmp dword [0x4e8350], 0
jne 0x4c50a2
push esp
push 0
push 0
mov eax, dword [0x4e154c]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4e8350], eax
pop edx
ret
Function at 0x4c53b8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4c53cf
add esp, 0xfffffff0
call fcn.004053d8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00446b60
mov eax, dword [0x4e264c]
cmp byte [eax], 0
jne 0x4c53fc
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x4e2950]
cmp word [eax + 2], 0
jne 0x4c5416
mov eax, dword [0x4e2950]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004c7480
mov eax, dword [0x4e2a74]
cmp word [eax + 2], 0
jne 0x4c5430
mov eax, dword [0x4e2a74]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004c7684
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x46ac60]
call fcn.0046fef4
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4c7bfc
mov dl, 1
mov eax, dword [0x42ebe0]
call fcn.00404e90
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x42ebe0]
call fcn.00404e90
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x46e558]
call fcn.00476d3c
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4c5610
mov eax, dword [0x4e280c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.004771d0
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4c7ee4
mov dl, 1
mov eax, dword [0x42ebe0]
call fcn.00404e90
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x4e280c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0041b9fc
test eax, eax
je 0x4c5541
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0041b7b0
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0041b9e0
test eax, eax
je 0x4c5559
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00407318
push ebx
push 0x4c6e6c
call fcn.004bb1c8
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x4e264c]
cmp byte [eax], 0
jne 0x4c55aa
mov eax, ebx
call fcn.004c5784
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004c8110
mov eax, ebx
call fcn.004c8d40
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4c5607
call fcn.00405430
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c5a50
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4c5af2
cmp dword [ebx + 0x94], 0
jne 0x4c5aec
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4c599c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4c5aec
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_GetWindowLongW
test al, 8
je 0x4c5ab2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4c5aec
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.0043a3ec
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4c5ac1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4c5d10
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4e8334]
cmp dword [eax + 0x170], 0
je 0x4c5e75
test bl, bl
jne 0x4c5dc3
cmp dword [esi + 0x9c], 0
jne 0x4c5db8
mov eax, esi
call fcn.004c8b90
push eax
push 0x4c5c1c
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4c5d89
mov eax, dword [0x4e8334]
cmp byte [eax + 0xd3], 0
je 0x4c5d89
mov eax, dword [esi + 0xd8]
call fcn.0040821c
mov edi, eax
cmp edi, 0
jl 0x4c5d89
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4c5d72
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4c5db8
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0043a3ec
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4c5d98
inc dword [esi + 0x9c]
jmp 0x4c5e75
cmp dword [esi + 0x9c], 0
jle 0x4c5e75
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4c5e75
cmp dword [esi + 0x44], 0
je 0x4c5e20
mov eax, dword [0x4e8334]
cmp byte [eax + 0xd3], 0
je 0x4c5e20
mov eax, dword [esi + 0xd8]
call fcn.0040821c
mov edi, eax
cmp edi, 0
jl 0x4c5e20
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4c5e09
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4c5e4f
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0043a3ec
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4c5e2f
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x4b90a0]
call fcn.004083dc
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4c6ab8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4c6b23
cmp byte [ebx + 0xd3], 0
jne 0x4c6b23
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406ab0
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4c6b10
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4c6b30
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406d08
jmp 0x4c6b30
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406d08
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4c82f8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4c8366
mov eax, esi
call fcn.00492950
test al, al
je 0x4c8366
mov eax, dword [ebx + 0x84]
call fcn.004925d0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4c8366
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4c835a
push 0
mov eax, dword [ebx + 0x84]
call fcn.004925d0
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00489604
jmp 0x4c8366
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004c8130
pop esi
pop ebx
ret
Function at 0x4c9398
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 4]
add eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
add eax, 8
mov eax, dword [eax]
mov edx, dword [ebp - 8]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
add eax, 0xc
mov eax, dword [eax]
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + edx*4 + 0xc]
shl eax, 0x18
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov edx, dword [edx + ecx*4 + 0xc]
shr edx, 8
or eax, edx
mov dword [ebp - 0x14], eax
xor eax, eax
mov al, byte [ebp - 0x14]
mov eax, dword [eax*4 + str.cwko0]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
shr eax, 8
and eax, 0xff
mov eax, dword [eax*4 + str.cwko0]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + str.cwko0]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
shr eax, 0x18
and eax, 0xff
mov eax, dword [eax*4 + str.cwko0]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
shl eax, 8
mov edx, dword [ebp - 0x1c]
shr edx, 0x18
or eax, edx
xor eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
shl edx, 0x10
mov ecx, dword [ebp - 0x20]
shr ecx, 0x10
or edx, ecx
xor eax, edx
mov edx, dword [ebp - 0x24]
shl edx, 0x18
mov ecx, dword [ebp - 0x24]
shr ecx, 8
or edx, ecx
xor eax, edx
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor eax, dword [edx + ecx*4]
mov edx, dword [ebp - 0x10]
xor eax, dword [edx*4 + 0x4e158c]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [edx + ecx*4 + 0x10], eax
inc dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + edx*4 + 4]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor eax, dword [edx + ecx*4 + 0x10]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [edx + ecx*4 + 0x14], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + edx*4 + 8]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor eax, dword [edx + ecx*4 + 0x14]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [edx + ecx*4 + 0x18], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + edx*4 + 0xc]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor eax, dword [edx + ecx*4 + 0x18]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [edx + ecx*4 + 0x1c], eax
add dword [ebp - 0xc], 4
cmp dword [ebp - 0xc], 0x28
jl 0x4c93e4
mov esp, ebp
pop ebp
ret
Function at 0x1311afa
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x1341c20]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.013252c0
add esp, 0xc
mov dword [ebp - 0x78], esi
cmp ebx, esi
je 0x1311bac
push edi
mov edi, 0x133b854
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1311b45
sub eax, edx
sar eax, 1
je 0x1311bab
lea eax, [ebp - 0x74]
push eax
mov esi, 0x104
push esi
call dword [0x1338234]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.01322ee9
push 0x133b870
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0132343b
add esp, 0x18
cmp dword [ebp - 0x78], 0
je 0x1311bab
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.0132372e
push dword [ebp - 0x78]
call fcn.013237c2
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop esi
call fcn.01322eda
add ebp, 0x198
leave
ret

Function at 0x1311bc5
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x1341c20]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.013252c0
add esp, 0xc
mov dword [ebp - 0x78], esi
cmp ebx, esi
je 0x1311ca0
push edi
mov edi, 0x133b79c
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1311c14
sub eax, edx
sar eax, 1
je 0x1311c9f
cmp dword [0x1342fc0], 3
mov esi, 0x104
lea eax, [ebp - 0x74]
jne 0x1311c51
push esi
push eax
call dword [0x1338214]
push 0x133b878
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.01322ee9
add esp, 0xc
jmp 0x1311c59
push eax
push esi
call dword [0x1338234]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.01322ee9
push 0x133b870
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0132343b
add esp, 0x18
cmp dword [ebp - 0x78], 0
je 0x1311c9f
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.0132372e
push dword [ebp - 0x78]
call fcn.013237c2
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop esi
call fcn.01322eda
add ebp, 0x198
leave
ret
Function at 0x1312316
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x1341c20]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
xor esi, esi
call fcn.013252c0
add esp, 0xc
test edi, edi
je 0x13123dc
and dword [ebp - 0x7c], esi
mov ecx, 0x133b998
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1312361
sub eax, esi
sar eax, 1
je 0x1312385
push 0x133b8ec
push ecx
lea eax, [ebp - 0x7c]
push eax
call fcn.0132343b
add esp, 0xc
jmp 0x13123b9
lea eax, [ebp - 0x78]
push eax
mov esi, 0x104
push esi
call dword [0x1338234]
push 0x133b854
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.01322ee9
push 0x133b8ec
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0132343b
add esp, 0x18
xor esi, esi
inc esi
cmp dword [ebp - 0x7c], 0
je 0x13123dc
push dword [ebp - 0x7c]
push esi
push 0x200
push edi
call fcn.01323a01
push dword [ebp - 0x7c]
call fcn.013237c2
add esp, 0x14
mov ecx, dword [ebp + 0x190]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01322eda
add ebp, 0x194
leave
ret

Function at 0x13123f4
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
push 0x133b870
push dword [ebp + 8]
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.0132343b
add esp, 0xc
test eax, eax
je 0x131241e
xor eax, eax
jmp 0x13124a1
push ebx
push esi
push 2
push edi
push dword [ebp - 4]
call fcn.01323b0d
push dword [ebp - 4]
call fcn.01323d2f
push edi
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.01323b0d
lea eax, [esi + 0x32]
push eax
mov dword [ebp - 8], eax
call fcn.01323dec
push dword [ebp - 4]
mov edi, eax
push 1
push esi
push edi
call fcn.0132372e
push dword [ebp - 4]
call fcn.013237c2
push 0x32
lea ebx, [edi + esi]
call fcn.013124a4
push 0x133b8ec
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.0132343b
add esp, 0x44
pop esi
pop ebx
test eax, eax
jne 0x1312417
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push edi
call fcn.01323a01
push dword [ebp - 4]
call fcn.013237c2
xor eax, eax
add esp, 0x14
inc eax
pop edi
leave
ret
Function at 0x1313c3d
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xf90]
mov eax, 0x1010
call fcn.01327780
mov eax, dword [0x1341c20]
xor eax, ebp
mov dword [ebp + 0xf8c], eax
mov eax, dword [ebp + 0xf98]
push ebx
push esi
mov esi, dword [0x13383d4]
xor ebx, ebx
push ebx
mov dword [ebp - 0x7c], eax
push 4
lea eax, [ebp - 0x78]
push eax
push dword [edi]
call esi
cmp eax, 4
je 0x1313c83
xor eax, eax
jmp 0x1313ccb
cmp dword [ebp - 0x78], ebx
jbe 0x1313cba
push 0
push 0x1000
lea eax, [ebp - 0x74]
push eax
push dword [edi]
call esi
mov dword [ebp - 0x80], eax
test eax, eax
je 0x1313cba
mov ecx, dword [ebp - 0x7c]
push dword [ecx]
push eax
lea eax, [ebp - 0x74]
push 1
push eax
call fcn.01323a01
add ebx, dword [ebp - 0x80]
add esp, 0x10
cmp ebx, dword [ebp - 0x78]
jb 0x1313c88
mov eax, dword [ebp - 0x7c]
push dword [eax]
call fcn.013237c2
cmp ebx, dword [ebp - 0x78]
pop ecx
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0xf8c]
pop esi
xor ecx, ebp
pop ebx
call fcn.01322eda
add ebp, 0xf90
leave
ret

Function at 0x1315385
Capabilities:
Hash data using sha1

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

Function at 0x1315519
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xff0]
mov eax, 0x1070
call fcn.01327780
mov eax, dword [0x1341c20]
xor eax, ebp
mov dword [ebp + 0xfec], eax
mov eax, dword [ebp + 0xff8]
push esi
push edi
push 0x133b870
push eax
lea eax, [ebp - 0x18]
mov esi, ecx
xor edi, edi
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
call fcn.0132343b
add esp, 0xc
cmp dword [ebp - 0x18], edi
jne 0x1315574
mov edi, esi
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
jmp 0x1315607
push ebx
push 2
push edi
push dword [ebp - 0x18]
call fcn.01323b0d
push dword [ebp - 0x18]
call fcn.01323d2f
push edi
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
call fcn.01323b0d
lea eax, [ebp - 0x80]
call fcn.01315385
push dword [ebp - 0x18]
mov esi, 0x1000
push esi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.0132372e
mov ebx, eax
add esp, 0x2c
cmp ebx, edi
jbe 0x13155e1
push ebx
lea edi, [ebp - 0x80]
lea ecx, [ebp - 0x14]
call fcn.013153b0
push dword [ebp - 0x18]
add dword [ebp - 0x1c], ebx
push esi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.0132372e
mov ebx, eax
add esp, 0x14
test ebx, ebx
ja 0x13155ba
mov edi, dword [ebp - 0x20]
push edi
lea esi, [ebp - 0x80]
call fcn.01315449
push dword [ebp - 0x18]
call fcn.013237c2
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
pop ebx
cmp eax, dword [ebp - 0x24]
jb 0x1315566
xor eax, eax
inc eax
mov ecx, dword [ebp + 0xfec]
pop edi
xor ecx, ebp
pop esi
call fcn.01322eda
add ebp, 0xff0
leave
ret
Function at 0x1316daa
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x1316db5
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x1316e67
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x133ce78]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x133ce78]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x133ce78]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x133ce78]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x133ce78]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x133ce78]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x133ce78]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x133ce78]
inc ecx
sub edi, 8
dec esi
jne 0x1316dcc
pop ebx
test edi, edi
je 0x1316e80
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x133ce78]
inc ecx
dec edi
jne 0x1316e6b
pop esi
not eax
pop edi
ret

Function at 0x1316e85
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x133ce78]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x133ce78]
pop esi
mov dword [ecx + 8], eax
ret