joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48471c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x194], edx
mov dword [ebp - 0x18c], edx
mov dword [ebp - 0x190], edx
mov dword [ebp - 0x184], edx
mov dword [ebp - 0x188], edx
mov dword [ebp - 0x178], edx
mov dword [ebp - 0x17c], edx
mov dword [ebp - 0x170], edx
mov dword [ebp - 0x174], edx
mov dword [ebp - 0x16c], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e04
lea eax, [ebp - 0x168]
mov edx, dword [0x407b1c]
call fcn.004053fc
xor eax, eax
push ebp
push 0x4849a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
xor edx, edx
push ebp
push 0x484916
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x16c]
mov ecx, 0x4849bc
mov edx, dword [ebp - 4]
call fcn.00404c60
mov eax, dword [ebp - 0x16c]
lea ecx, [ebp - 0x168]
mov edx, 0x37
call fcn.004093e0
test eax, eax
jne 0x48490c
lea edx, [ebp - 0x174]
mov eax, dword [ebp - 0x154]
call fcn.00408b60
mov ecx, dword [ebp - 0x174]
lea eax, [ebp - 0x170]
mov edx, dword [ebp - 4]
call fcn.00404c60
mov eax, dword [ebp - 0x170]
mov edx, dword [ebp - 0x158]
and edx, 0xfffffff8
call fcn.00409334
test byte [ebp - 0x158], 0x10
jne 0x484860
lea edx, [ebp - 0x17c]
mov eax, dword [ebp - 0x154]
call fcn.00408b60
mov ecx, dword [ebp - 0x17c]
lea eax, [ebp - 0x178]
mov edx, dword [ebp - 4]
call fcn.00404c60
mov esi, dword [ebp - 0x178]
mov dword [ebp - 0x180], esi
mov eax, dword [ebp - 0x180]
call fcn.00404e14
push eax
call sub.KERNEL32.DLL_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x4848ee
mov eax, dword [ebp - 0x154]
mov edx, 0x4849c8
call fcn.00404d60
je 0x4848ee
mov eax, dword [ebp - 0x154]
mov edx, 0x4849d4
call fcn.00404d60
je 0x4848ee
push dword [ebp - 4]
lea edx, [ebp - 0x188]
mov eax, dword [ebp - 0x154]
call fcn.00408b60
push dword [ebp - 0x188]
push 0x4849e0
lea eax, [ebp - 0x184]
mov edx, 3
call fcn.00404cd4
mov eax, dword [ebp - 0x184]
call fcn.0048471c
lea edx, [ebp - 0x190]
mov eax, dword [ebp - 0x154]
call fcn.00408b60
mov ecx, dword [ebp - 0x190]
lea eax, [ebp - 0x18c]
mov edx, dword [ebp - 4]
call fcn.00404c60
mov eax, dword [ebp - 0x18c]
call fcn.00409628
lea eax, [ebp - 0x168]
call fcn.00409430
test eax, eax
je 0x4847d1
lea eax, [ebp - 0x168]
call fcn.00409454
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48492e
test bl, bl
jne 0x48495a
push 0x4849ec
push dword [ebp - 4]
push 0x484a00
lea eax, [ebp - 0x194]
mov edx, 3
call fcn.00404cd4
mov eax, dword [ebp - 0x194]
call fcn.00442234
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4849a8
lea eax, [ebp - 0x194]
mov edx, 5
call fcn.00404974
lea eax, [ebp - 0x17c]
mov edx, 5
call fcn.00404974
lea eax, [ebp - 0x168]
mov edx, dword [0x407b1c]
call fcn.004054cc
lea eax, [ebp - 4]
call fcn.00404950
ret
Function at 0x484a30
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x33
push 0
push 0
dec ecx
jne 0x484a38
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e04
lea eax, [ebp - 0x168]
mov edx, dword [0x407b1c]
call fcn.004053fc
xor eax, eax
push ebp
push 0x484ce6
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, 0x484d00
call fcn.0040e438
mov bl, 1
xor edx, edx
push ebp
push 0x484c56
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x16c]
mov ecx, 0x484d10
mov edx, dword [ebp - 4]
call fcn.00404c60
mov eax, dword [ebp - 0x16c]
lea ecx, [ebp - 0x168]
mov edx, 0x37
call fcn.004093e0
test eax, eax
jne 0x484c4c
lea edx, [ebp - 0x174]
mov eax, dword [ebp - 0x154]
call fcn.00408b60
mov ecx, dword [ebp - 0x174]
lea eax, [ebp - 0x170]
mov edx, dword [ebp - 4]
call fcn.00404c60
mov eax, dword [ebp - 0x170]
mov edx, dword [ebp - 0x158]
and edx, 0xfffffff8
call fcn.00409334
test byte [ebp - 0x158], 0x10
jne 0x484ba0
push dword [ebp - 8]
push 0x484d1c
lea edx, [ebp - 0x17c]
mov eax, dword [ebp - 0x154]
call fcn.00408b60
push dword [ebp - 0x17c]
lea eax, [ebp - 0x178]
mov edx, 3
call fcn.00404cd4
mov esi, dword [ebp - 0x178]
mov dword [ebp - 0x180], esi
mov eax, dword [ebp - 0x180]
call fcn.00404e14
push eax
call sub.KERNEL32.DLL_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
lea edx, [ebp - 0x188]
mov eax, dword [ebp - 0x154]
call fcn.00408b60
mov ecx, dword [ebp - 0x188]
lea eax, [ebp - 0x184]
mov edx, dword [ebp - 4]
call fcn.00404c60
mov esi, dword [ebp - 0x184]
mov dword [ebp - 0x180], esi
mov eax, dword [ebp - 0x180]
call fcn.00404e14
push eax
call sub.KERNEL32.DLL_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x484c2e
mov eax, dword [ebp - 0x154]
mov edx, 0x484d38
call fcn.00404d60
je 0x484c2e
mov eax, dword [ebp - 0x154]
mov edx, 0x484d44
call fcn.00404d60
je 0x484c2e
push dword [ebp - 4]
lea edx, [ebp - 0x190]
mov eax, dword [ebp - 0x154]
call fcn.00408b60
push dword [ebp - 0x190]
push 0x484d50
lea eax, [ebp - 0x18c]
mov edx, 3
call fcn.00404cd4
mov eax, dword [ebp - 0x18c]
call fcn.0048471c
lea edx, [ebp - 0x198]
mov eax, dword [ebp - 0x154]
call fcn.00408b60
mov ecx, dword [ebp - 0x198]
lea eax, [ebp - 0x194]
mov edx, dword [ebp - 4]
call fcn.00404c60
mov eax, dword [ebp - 0x194]
call fcn.00409628
lea eax, [ebp - 0x168]
call fcn.00409430
test eax, eax
je 0x484abb
lea eax, [ebp - 0x168]
call fcn.00409454
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x484c6e
test bl, bl
jne 0x484c9a
push 0x484d5c
push dword [ebp - 4]
push 0x484d70
lea eax, [ebp - 0x19c]
mov edx, 3
call fcn.00404cd4
mov eax, dword [ebp - 0x19c]
call fcn.00442234
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484ced
lea eax, [ebp - 0x19c]
mov edx, 7
call fcn.00404974
lea eax, [ebp - 0x17c]
mov edx, 5
call fcn.00404974
lea eax, [ebp - 0x168]
mov edx, dword [0x407b1c]
call fcn.004054cc
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404974
ret
Function at 0x49afac
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x4ad650], 0
jne 0x49afcf
call sub.KERNEL32.DLL_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x49af20
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4ad650], eax
ret

Function at 0x4a0c40
Capabilities:
Add user account
Add user account to group

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e04
mov eax, dword [ebp - 8]
call fcn.00404e04
xor eax, eax
push ebp
push 0x4a0d46
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x20
call fcn.00402cac
mov esi, eax
mov ebx, esi
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004052bc
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.004052bc
mov eax, dword [ebp - 0xc]
call fcn.004052cc
mov edi, eax
mov dword [ebx], edi
mov eax, dword [ebp - 0x10]
call fcn.004052cc
mov dword [ebx + 4], eax
xor eax, eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], 1
xor eax, eax
mov dword [ebx + 0x10], eax
xor eax, eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], 0x10000
xor eax, eax
mov dword [ebx + 0x1c], eax
push 0
push esi
push 1
push 0
call sub.netapi32.dll_NetUserAdd
cmp dword [ebp - 0x14], 1
jne 0x4a0d00
mov dword [ebp - 0x1c], edi
push 1
lea eax, [ebp - 0x1c]
push eax
push 3
push 0x4a0d58
push 0
call sub.netapi32.dll_NetLocalGroupAddMembers
jmp 0x4a0d17
mov dword [ebp - 0x1c], edi
push 1
lea eax, [ebp - 0x1c]
push eax
push 3
push 0x4a0d78
push 0
call sub.netapi32.dll_NetLocalGroupAddMembers
mov eax, esi
call fcn.00402cc8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0d4d
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00405174
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404974
ret

Function at 0x4a0d84
Capabilities:
Delete user account

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e04
xor eax, eax
push ebp
push 0x4a0e31
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004052bc
mov eax, dword [ebp - 4]
mov edx, 0x4a0e48
call fcn.00404d60
jne 0x4a0dcf
mov eax, 0x4a0e60
call fcn.00442234
xor ebx, ebx
jmp 0x4a0e0b
mov eax, dword [ebp - 8]
call fcn.004052cc
push eax
push 0
call sub.netapi32.dll_NetUserDel
test eax, eax
jne 0x4a0de7
mov bl, 1
jmp 0x4a0e0b
push 0x4a0e90
push dword [ebp - 4]
push 0x4a0ea4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404cd4
mov eax, dword [ebp - 0xc]
call fcn.00442234
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0e38
lea eax, [ebp - 0xc]
call fcn.00404950
lea eax, [ebp - 8]
call fcn.0040515c
lea eax, [ebp - 4]
call fcn.00404950
ret
Function at 0x4a0ebc
Capabilities:
List groups for user account
List user accounts

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4a102e
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
je 0x4a1006
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 1
push 0
call sub.netapi32.dll_NetUserEnum
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0xc]
dec esi
test esi, esi
jl 0x4a0ff0
inc esi
lea edx, [ebp - 4]
mov eax, dword [ebx]
call fcn.0040585c
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x400
lea eax, [ebp - 0x28]
push eax
push 0
push 0
mov eax, dword [ebx]
push eax
push 0
call sub.netapi32.dll_NetUserGetLocalGroups
cmp dword [ebp - 0x28], 0
je 0x4a0f61
lea edx, [ebp - 8]
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
call fcn.0040585c
jmp 0x4a0f69
lea eax, [ebp - 8]
call fcn.00404950
cmp dword [ebx + 0xc], 0
je 0x4a0fe9
mov eax, dword [ebp - 4]
mov edx, 0x4a1044
call fcn.00404d60
jne 0x4a0f9a
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp - 4]
mov edx, 0x4a105c
call fcn.00404c60
mov edx, dword [ebp - 0x2c]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x4a0fe9
cmp dword [ebx + 0xc], 2
jne 0x4a0fc9
mov eax, dword [ebp - 4]
mov edx, 0x4a1044
call fcn.00404d60
je 0x4a0fc9
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 4]
mov edx, 0x4a1070
call fcn.00404c60
mov edx, dword [ebp - 0x30]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp dword [ebx + 0xc], 1
jne 0x4a0fe9
lea eax, [ebp - 0x34]
mov ecx, dword [ebp - 4]
mov edx, 0x4a1084
call fcn.00404c60
mov edx, dword [ebp - 0x34]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x38]
dec esi
jne 0x4a0f23
mov eax, dword [ebp - 0x14]
push eax
call sub.netapi32.dll_NetApiBufferFree
cmp dword [ebp - 0x1c], 0xea
je 0x4a0ef3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1035
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00404974
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404974
ret
Function at 0x4a3ddc
Capabilities:
Shutdown system

Disassembly:
push ebx
push esi
add esp, 0xffffffe8
mov esi, eax
xor ebx, ebx
push esp
push 0xf00ff
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x4a3dfc
xor ebx, ebx
lea eax, [esp + 0xc]
push eax
push 0x4a3e90
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
xor eax, eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.KERNEL32.DLL_GetLastError
test eax, eax
je 0x4a3e48
xor ebx, ebx
dec esi
je 0x4a3e56
dec esi
je 0x4a3e63
dec esi
je 0x4a3e70
dec esi
je 0x4a3e7d
jmp 0x4a3e88
push 0
push 2
call sub.user32.dll_ExitWindowsEx
mov bl, 1
jmp 0x4a3e88
push 0
push 1
call sub.user32.dll_ExitWindowsEx
mov bl, 1
jmp 0x4a3e88
push 0
push 5
call sub.user32.dll_ExitWindowsEx
mov bl, 1
jmp 0x4a3e88
push 0
push 0
call sub.user32.dll_ExitWindowsEx
mov bl, 1
mov eax, ebx
add esp, 0x18
pop esi
pop ebx
ret
Function at 0x4a67ec
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4a67f4
push ecx
push ebx
push esi
mov eax, 0x4a58b0
call fcn.004069b4
mov ebx, dword [0x4a9794]
xor eax, eax
push ebp
push 0x4a69c0
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x18]
mov eax, dword [ebx]
call fcn.0046dc94
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.004094f8
mov eax, dword [ebp - 0x14]
call fcn.00404e14
push eax
push 2
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.KERNEL32.DLL_CreateFileMappingA
mov esi, eax
test esi, esi
je 0x4a6866
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0xb7
jne 0x4a6866
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.0040485c
mov eax, dword [ebx]
call fcn.0046d4ac
mov eax, dword [ebx]
mov edx, 0x4a69d8
call fcn.0046cf44
mov ecx, dword [0x4a9864]
mov eax, dword [ebx]
mov edx, dword [0x4a1090]
call fcn.0046d4c4
mov ecx, dword [0x4a98b4]
mov eax, dword [ebx]
mov edx, dword [0x4a3ed0]
call fcn.0046d4c4
mov ecx, dword [0x4a98f0]
mov eax, dword [ebx]
mov edx, dword [0x4a2b74]
call fcn.0046d4c4
mov ecx, dword [0x4a9744]
mov eax, dword [ebx]
mov edx, dword [0x49d5f8]
call fcn.0046d4c4
mov ecx, dword [0x4a9820]
mov eax, dword [ebx]
mov edx, dword [0x4a3bd8]
call fcn.0046d4c4
mov ecx, dword [0x4a95a0]
mov eax, dword [ebx]
mov edx, dword [0x48211c]
call fcn.0046d4c4
mov ecx, dword [0x4a97b8]
mov eax, dword [ebx]
mov edx, dword [0x49d864]
call fcn.0046d4c4
mov ecx, dword [0x4a9618]
mov eax, dword [ebx]
mov edx, dword [0x49d394]
call fcn.0046d4c4
lea edx, [ebp - 0x1c]
mov eax, 1
call fcn.00403110
mov eax, dword [ebp - 0x1c]
mov edx, 0x4a69fc
call fcn.00404d60
je 0x4a6965
lea edx, [ebp - 0x20]
mov eax, 2
call fcn.00403110
mov eax, dword [ebp - 0x20]
mov edx, 0x4a69fc
call fcn.00404d60
je 0x4a6965
lea edx, [ebp - 0x24]
mov eax, 3
call fcn.00403110
mov eax, dword [ebp - 0x24]
mov edx, 0x4a69fc
call fcn.00404d60
jne 0x4a699e
mov eax, 0x4ada20
mov edx, 0x4a6a0c
call fcn.004049a4
push 0
mov eax, dword [0x4ada20]
call fcn.00404e14
push eax
call sub.KERNEL32.DLL_WinExec
mov eax, dword [0x4a9864]
mov eax, dword [eax]
call fcn.00469a04
mov eax, dword [0x4a98b4]
mov eax, dword [eax]
call fcn.00469930
mov eax, dword [ebx]
call fcn.0046d544
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a69c7
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.00404974
ret
Function at 0x45e997
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, eax
mov eax, dword [esi]
add ecx, eax
push edi
mov edi, dword [ecx]
add eax, 4
mov dword [esi], eax
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call 0x4a50b6
mov ecx, dword [esi]
add ecx, dword [ebp + 8]
lea ebx, [edi + edi]
push ebx
push ecx
push eax
mov dword [ebp - 4], eax
call 0x4a54e0
mov eax, dword [ebp - 4]
add dword [esi], ebx
xor ecx, ecx
add esp, 0x10
cmp edi, ecx
mov word [ebx + eax], cx
jle 0x45e9f3
xor word [eax + ecx*2], di
inc ecx
cmp ecx, edi
jl 0x45e9ea
push eax
or eax, 0xffffffff
call fcn.0046559d
push dword [ebp - 4]
mov esi, eax
call 0x4a5120
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x469826
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
inc esi
mov dword [0x47d510], eax
push edi
mov edx, esi
mov eax, 0x47d510
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x47decc
jl 0x469837
pop edi
mov dword [0x474080], esi
mov dword [0x47dee0], esi
pop esi
ret

Function at 0x469865
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
cmp dword [0x47dee0], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x47d510
jne 0x469885
push 0
call 0x4a984a
pop ecx
call fcn.00469826
mov dword [0x474080], 0x270
mov dword [0x47d50c], esi
mov edx, 0xe3
mov ecx, 0x7ffffffe
mov eax, 0x9908b0df
mov ebx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor ebx, ebp
and ebx, ecx
xor ebx, dword [esi]
mov dword [esp + 0x10], ecx
mov ecx, ebp
and cl, 1
shr ebx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor ebx, ecx
xor ebx, dword [esi + 0x634]
dec edx
mov ecx, dword [esp + 0x10]
mov dword [esi], ebx
mov esi, edi
jne 0x4698a4
mov edx, 0x18c
mov ebx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor ebx, ebp
and ebx, ecx
xor ebx, dword [esi]
mov dword [esp + 0x10], ecx
mov ecx, ebp
and cl, 1
shr ebx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor ebx, ecx
xor ebx, dword [esi - 0x38c]
dec edx
mov ecx, dword [esp + 0x10]
mov dword [esi], ebx
mov esi, edi
jne 0x4698da
mov edx, dword [0x47d510]
mov edi, dword [esi]
xor edi, edx
and edi, ecx
xor edi, dword [esi]
and dl, 1
shr edi, 1
neg dl
sbb edx, edx
and edx, eax
xor edi, edx
xor edi, dword [esi - 0x38c]
mov dword [esi], edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x469934
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x474080]
jne 0x469941
call fcn.00469865
mov eax, dword [0x47d50c]
mov ecx, dword [eax]
add dword [0x47d50c], 4
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret
Function at 0x469978
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ecx
dec dword [0x474080]
jne 0x469986
call fcn.00469865
mov eax, dword [0x47d50c]
mov eax, dword [eax]
add dword [0x47d50c], 4
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov ecx, eax
and ecx, 0xff3a58ad
shl ecx, 7
xor eax, ecx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov ecx, eax
shr ecx, 0x12
xor ecx, eax
test ecx, ecx
mov dword [esp], ecx
fild dword [esp]
jge 0x4699cc
fadd qword [0x46eb90]
fmul qword [0x46eb88]
pop ecx
ret

Function at 0x469fa4
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call 0x4a6ed0
add esp, 0xc
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
ret

Function at 0x46ab70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
push esi
push edi
lea eax, [ebp - 0xdc]
call fcn.0046a7ea
push dword [ebp + 0x10]
lea esi, [ebp - 0xdc]
call fcn.0046a92a
xor edi, edi
cmp dword [ebp + 0xc], edi
jbe 0x46abb5
mov eax, dword [ebp + 8]
lea esi, [edi + eax]
lea eax, [ebp - 0xdc]
push eax
call fcn.0046a8fc
xor byte [esi], al
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x46ab9b
pop edi
pop esi
leave
ret 0xc
Function at 0x4129e7
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00412a66
jae 0x4129f3
xor ecx, ecx
call fcn.00412a66
jae 0x412a1d
xor eax, eax
call fcn.00412a66
jae 0x412a2e
mov al, 0x10
call fcn.00412a66
adc al, al
jae 0x412a0f
jne 0x412a5b
stosb byte es:[edi], al
jmp 0x4129f4
call fcn.00412a72
dec ecx
loop 0x412a3a
mov eax, ebp
call fcn.00412a70
jmp 0x412a5c
lodsb al, byte [esi]
shr eax, 1
je 0x412a82
adc ecx, 2
mov ebp, eax
jmp 0x412a5c
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00412a70
cmp eax, 0x7d00
jae 0x412a5a
cmp eax, 0x500
jae 0x412a5b
cmp eax, 0x7f
ja 0x412a5c
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4129f4
pop ebp
ret 8
Function at 0x44e2c2
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0044e472
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x44e3c0
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x44e363
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x44e3a6
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x44e37a
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x44e395
test al, 0x40
je 0x44e38c
mov ecx, dword [edi + 0x20]
jmp 0x44e393
test al, 0x80
je 0x44e3a6
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x44e3a6
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x44e332
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x40bdd9
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0040bf89
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x40bed7
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x40be7a
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x40bebd
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x40be91
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x40beac
test al, 0x40
je 0x40bea3
mov ecx, dword [edi + 0x20]
jmp 0x40beaa
test al, 0x80
je 0x40bebd
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x40bebd
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x40be49
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret