joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ee41
Capabilities:
Check if file exists
Copy file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
push dword [ebp + 8]
lea eax, [ebp - 0x438]
call fcn.0040e67c
push dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
call fcn.0040e67c
pop ecx
pop ecx
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40eeba
cmp byte [ebp + 0x10], al
je 0x40eeb6
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.004571cc
pop ecx
pop ecx
test eax, eax
je 0x40eeb2
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov al, 1
leave
ret
xor al, al
leave
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x438]
push eax
call esi
cmp eax, 0xffffffff
je 0x40eed3
test al, 0x10
jne 0x40eeda
xor al, al
jmp 0x40ef9a
push ebx
lea eax, [ebp - 0x22c]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40eef4
test al, 0x10
je 0x40eef4
cmp byte [ebp + 0x10], bl
jmp 0x40ef15
lea eax, [ebp - 0x22c]
push eax
call fcn.0040ed5d
pop ecx
test al, al
je 0x40ef17
lea eax, [ebp - 0x22c]
push eax
call esi
cmp eax, 0xffffffff
je 0x40ef17
test al, 0x10
jne 0x40ef1b
xor al, al
jmp 0x40ef99
lea eax, [ebp - 0x438]
push str..
push eax
call fcn.004555c6
lea eax, [ebp - 0x438]
push eax
call fcn.00455251
xor ecx, ecx
mov word [ebp + eax*2 - 0x436], cx
lea eax, [ebp - 0x22c]
push eax
call fcn.00455251
xor ecx, ecx
mov word [ebp + eax*2 - 0x22a], cx
lea eax, [ebp - 0x438]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x14], eax
mov eax, 0x614
mov word [ebp - 0x10], ax
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 2
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
pop esi
leave
ret
Function at 0x40ef9d
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa54
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x440]
call fcn.0040e67c
push dword [ebp + 0xc]
lea eax, [ebp - 0x234]
call fcn.0040e67c
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop ecx
pop ecx
lea eax, [ebp - 0x440]
push eax
call esi
cmp eax, 0xffffffff
je 0x40efdd
test al, 0x10
jne 0x40efe4
xor al, al
jmp 0x40f19a
push ebx
lea eax, [ebp - 0x234]
push eax
call esi
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40f0c7
test al, 0x10
je 0x40f0c7
cmp byte [ebp + 0x10], bl
je 0x40f129
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40f05d
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.004571cc
pop ecx
pop ecx
test eax, eax
je 0x40f056
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jmp 0x40f10e
mov al, 1
jmp 0x40f199
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0xa54]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.00457a9e
lea eax, [ebp - 0x234]
push 0x46e4b0
push eax
call fcn.004555c6
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.004555c6
add esp, 0x24
cmp word [ebp - 0x644], bx
je 0x40f0c7
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.004555c6
pop ecx
pop ecx
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.0040e771
pop ecx
test al, al
pop ecx
lea eax, [ebp - 0x234]
je 0x40f116
push 1
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.0040ee41
add esp, 0xc
test al, al
je 0x40f129
lea eax, [ebp - 0x440]
push 1
push eax
call fcn.0040f19d
pop ecx
pop ecx
test al, al
setne al
jmp 0x40f199
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.004571cc
pop ecx
pop ecx
test eax, eax
jne 0x40f12d
xor al, al
jmp 0x40f199
lea eax, [ebp - 0x440]
push eax
call fcn.00455251
xor ecx, ecx
mov word [ebp + eax*2 - 0x43e], cx
lea eax, [ebp - 0x234]
push eax
call fcn.00455251
pop ecx
pop ecx
xor ecx, ecx
mov word [ebp + eax*2 - 0x232], cx
lea eax, [ebp - 0x440]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x234]
mov dword [ebp - 0x14], eax
mov eax, 0x614
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 1
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
pop esi
leave
ret
Function at 0x40f19d
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push dword [ebp + 8]
lea eax, [ebp - 0x22c]
call fcn.0040e67c
pop ecx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f1cb
test al, 0x10
jne 0x40f1cf
xor al, al
leave
ret
push ebx
xor ebx, ebx
lea eax, [ebp - 0x22c]
push eax
cmp byte [ebp + 0xc], bl
jne 0x40f1eb
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x40f233
call fcn.00455251
pop ecx
xor ecx, ecx
mov word [ebp + eax*2 - 0x22a], cx
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x18], eax
mov eax, 0x614
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
pop ebx
leave
ret

Function at 0x40f30a
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
push esi
mov esi, eax
lea eax, [ebp - 0x29c]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x40f3cf
push pe_nt_image_headers32
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x40f3cf
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x40f367
mov ecx, eax
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x40f35e
cmp esi, edx
jle 0x40f37c
push str.0.0.0.0
push dword [ebp + 8]
call fcn.004555f7
pop ecx
pop ecx
jmp 0x40f3c7
push 4
push dword [eax + esi*4 - 4]
lea eax, [ebp - 8]
push eax
call fcn.00454ef0
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004576e0
lea eax, [ebp - 0x10c]
push eax
or eax, 0xffffffff
call fcn.00410101
mov esi, eax
push esi
push dword [ebp + 8]
call fcn.004555f7
push esi
call fcn.0045526c
add esp, 0x18
call dword [sym.imp.WSOCK32.dll_WSACleanup]
jmp 0x40f3de
push 0x46df88
push dword [ebp + 8]
call fcn.004555f7
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x40f4e8
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40f507
leave
ret
push esi
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40f547
xor eax, eax
jmp 0x40f590
cmp ebx, 0x20
je 0x40f580
cmp ebx, 0x40
je 0x40f580
test bl, 0xb
jne 0x40f560
push esi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x40f590
xor ecx, ecx
test bl, 0x14
je 0x40f568
inc ecx
xor eax, eax
test bl, 2
je 0x40f570
inc eax
push dword [ebp + 8]
push eax
push ecx
push esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
jmp 0x40f590
xor eax, eax
cmp ebx, 0x20
sete al
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
pop esi
leave
ret

Function at 0x40f7f0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push esi
test edi, edi
js 0x40f86e
jne 0x40f804
push 0
jmp 0x40f868
cmp edi, 0xf
jae 0x40f867
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
call esi
test eax, eax
je 0x40f867
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 8]
push eax
call esi
mov eax, dword [esp + 8]
sub eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
sbb ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
fild qword [esp + 0x18]
fild qword [esp + 0x20]
fdivp st(1)
fmul qword [0x475be8]
call fcn.00469f36
cmp eax, edi
jb 0x40f825
jmp 0x40f86e
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40fade
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push ebx
mov bl, byte [0x4803c7]
push esi
push 0x8000
push dword [ebp + 8]
call fcn.004581c9
pop ecx
push eax
call fcn.004580de
cmp dword [edi + 8], 0xb
pop ecx
pop ecx
mov dword [esp + 8], eax
jne 0x40fb34
push dword [ebp + 8]
mov ecx, edi
call fcn.00412b6a
push eax
push 1
push ecx
mov eax, edi
call fcn.00412c01
pop ecx
push eax
call fcn.00458346
add esp, 0x10
mov dword [esp + 0xc], eax
jmp 0x40fb7f
lea esi, [esp + 0x10]
call fcn.00407c35
mov eax, edi
call fcn.00412bcc
mov ecx, esi
push ecx
call fcn.0040d228
push dword [esp + 0x10]
push 0x470a74
push dword [ebp + 8]
call fcn.004583c0
add esp, 0xc
mov dword [esp + 0xc], eax
test bl, bl
je 0x40fb76
mov eax, edi
call fcn.00412bb1
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea esi, [esp + 0x10]
call fcn.00407c54
push dword [ebp + 8]
call fcn.00458656
cmp dword [esp + 0xc], 0xffffffff
pop ecx
jne 0x40fb96
push 0x4000
jmp 0x40fb9a
push dword [esp + 8]
push dword [ebp + 8]
call fcn.004581c9
pop ecx
push eax
call fcn.004580de
mov eax, dword [esp + 0x14]
pop ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411d09
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [eax]
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
test al, 0x10
je 0x411d46
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x411da6
push 1
push eax
mov eax, esi
call fcn.00411c6f
pop ecx
pop ecx
jmp 0x411dc2
test dword [ebp + 8], eax
je 0x411d69
mov eax, dword [esi]
cmp eax, edi
jne 0x411dc4
push edi
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x411daa
or eax, 0xffffffff
jmp 0x411dc4
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi], eax
cmp eax, edi
je 0x411d7d
cmp eax, 0xffffffff
jne 0x411d38
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 2
push 0x40000000
push 0x470cf4
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x411da6
cmp eax, edi
jne 0x411daa
mov dword [esi], edi
jmp 0x411dc2
push 1
push dword [esi]
lea eax, [ebp + 0xc]
call fcn.00411c6f
pop ecx
pop ecx
call fcn.00411c5e
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov eax, dword [esi]
pop edi
pop esi
leave
ret 0xc
Function at 0x411dca
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [eax]
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
test al, 0x10
je 0x411e06
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x411e64
push 1
push eax
mov eax, esi
call fcn.00411c6f
pop ecx
pop ecx
jmp 0x411e80
test al, 1
je 0x411e28
mov eax, dword [esi]
cmp eax, edi
jne 0x411e82
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x411e68
or eax, 0xffffffff
jmp 0x411e82
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi], eax
cmp eax, edi
je 0x411e3b
cmp eax, 0xffffffff
jne 0x411df8
push edi
push 0x80
push 3
lea eax, [ebp - 0xc]
push eax
push 1
push accept
push 0x470cf4
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x411e64
cmp eax, edi
jne 0x411e68
mov dword [esi], edi
jmp 0x411e80
push 1
push dword [esi]
lea eax, [ebp + 8]
call fcn.00411c6f
pop ecx
pop ecx
call fcn.00411c5e
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, dword [esi]
pop edi
pop esi
leave
ret 4

Function at 0x411fb3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
cmp dword [esi + 0x30], eax
jne 0x411fd4
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push 0x4121dc
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x30], eax
leave
ret

Function at 0x411fd6
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
lea esi, [eax + 0x30]
cmp dword [esi], 0
je 0x41203e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
add eax, 0x34
push edi
push dword [eax]
mov dword [ebp - 4], eax
push eax
call ebx
mov edi, 0x1f6
cmp eax, edi
je 0x41203c
mov eax, dword [ebp + 8]
add eax, 0x14
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x3e8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.00411c5e
push edi
push dword [ebp - 4]
call ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x4121f6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10010
call fcn.004666e0
push ebx
push esi
push edi
mov esi, ecx
lea eax, [esi + 0x34]
push 0x1f5
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edi, 0xffff
push edi
mov dword [esi + 0x10], edi
call fcn.00455667
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
pop ecx
mov dword [esi + 8], eax
jmp 0x4122e2
cmp dword [ebp - 4], 0
jbe 0x4122fd
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 4]
cmp dword [esi + 0x10], eax
jae 0x4122b9
push dword [esi + 0xc]
call fcn.00455667
push dword [esi + 0xc]
mov dword [ebp - 8], eax
push dword [esi + 8]
push eax
call fcn.00454ef0
push dword [esi + 8]
call fcn.0045526c
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
jns 0x412289
fadd qword [0x475bc0]
fmul qword [0x475bf8]
call fcn.00469f36
push eax
mov dword [esi + 0x10], eax
call fcn.00455667
push dword [esi + 0xc]
mov dword [esi + 8], eax
push dword [ebp - 8]
push dword [esi + 8]
call fcn.00454ef0
push dword [ebp - 8]
call fcn.0045526c
add esp, 0x28
push dword [ebp - 4]
lea eax, [ebp - 0x10010]
push eax
mov eax, dword [esi + 0xc]
add eax, dword [esi + 8]
push eax
call fcn.00454ef0
mov eax, dword [ebp - 4]
add dword [esi + 0xc], eax
add esp, 0xc
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0x10010]
push eax
push dword [esi + 0x2c]
call ebx
test eax, eax
jne 0x412237
mov esi, 0x1f6
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

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

Disassembly:
push esi
xor esi, esi
inc esi
mov dword [0x490420], eax
push edi
mov edx, esi
mov eax, 0x490420
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, 0x490ddc
jl 0x414bcb
pop edi
mov dword [0x47b05c], esi
mov dword [0x490df0], esi
pop esi
ret
Function at 0x414bf9
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x490df0], 0
push ebx
push esi
push edi
mov esi, 0x490420
jne 0x414c1b
push 0
call fcn.00458943
pop ecx
call fcn.00414bba
mov dword [0x47b05c], 0x270
mov dword [0x49041c], esi
mov dword [ebp - 4], 0xe3
mov ecx, accept
mov eax, 0x9908b0df
mov edx, dword [esi + 4]
mov ebx, dword [esi]
xor ebx, edx
and ebx, ecx
xor ebx, dword [esi]
and dl, 1
movzx edx, dl
shr ebx, 1
neg edx
sbb edx, edx
and edx, eax
xor ebx, edx
xor ebx, dword [esi + 0x634]
mov dword [esi], ebx
add esi, 4
dec dword [ebp - 4]
jne 0x414c3c
mov dword [ebp - 4], 0x18c
mov edx, dword [esi + 4]
mov ebx, dword [esi]
xor ebx, edx
and ebx, ecx
xor ebx, dword [esi]
and dl, 1
movzx edx, dl
shr ebx, 1
neg edx
sbb edx, edx
and edx, eax
xor ebx, edx
xor ebx, dword [esi - 0x38c]
mov dword [esi], ebx
add esi, 4
dec dword [ebp - 4]
jne 0x414c6e
mov edi, dword [esi]
mov edx, dword [0x490420]
xor edi, edx
and edi, ecx
xor edi, dword [esi]
and dl, 1
shr edi, 1
movzx ecx, dl
neg ecx
sbb ecx, ecx
and ecx, eax
xor edi, ecx
xor edi, dword [esi - 0x38c]
mov dword [esi], edi
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
dec dword [0x47b05c]
jne 0x414cd1
call fcn.00414bf9
mov eax, dword [0x49041c]
mov ecx, dword [eax]
add dword [0x49041c], 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 0x414d08
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
dec dword [0x47b05c]
jne 0x414d19
call fcn.00414bf9
mov eax, dword [0x49041c]
mov eax, dword [eax]
add dword [0x49041c], 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
mov dword [ebp - 4], ecx
fild dword [ebp - 4]
jns 0x414d5d
fadd qword [0x475bc0]
fmul qword [0x475bd0]
leave
ret

Function at 0x414f0a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [esi + 0x14], 1
jne 0x414f2c
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 8]
push eax
call fcn.00454ef0
add esp, 0xc
jmp 0x414f3f
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.00458d94
add esp, 0x10
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 3]
add dword [esi + 0xc], 8
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 2]
shl eax, 8
or eax, ecx
movzx ecx, byte [ebp - 1]
shl eax, 8
or eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lea eax, [ebp - 8]
push str.EA06
push eax
mov byte [ebp - 4], 0
call fcn.00458dc0
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
leave
ret 4
Function at 0x415d32
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a8
push ebx
push esi
push 0x46df88
call fcn.0041016e
pop ecx
mov esi, eax
lea eax, [esp + 0xa8]
push esi
push eax
call fcn.004576e0
push esi
call fcn.0045526c
add esp, 0xc
lea esi, [esp + 0x18]
call fcn.0041534c
lea eax, [esp + 0xa8]
push eax
call fcn.004575c0
pop ecx
mov ebx, eax
call fcn.0041534c
lea eax, [esp + 0xa8]
push eax
mov eax, ebx
call fcn.00415379
mov eax, esi
call fcn.0041540e
and dword [edi + 8], 0
push 0x10
xor ecx, ecx
xor eax, eax
pop ebx
movzx edx, byte [esp + ecx + 0x18]
add eax, edx
inc ecx
cmp ecx, ebx
jl 0x415da3
push 0x470d64
push dword [ebp + 8]
mov dword [edi + 8], eax
call fcn.00458a52
pop ecx
pop ecx
mov dword [edi], eax
test eax, eax
jne 0x415dca
inc eax
jmp 0x415e26
mov esi, edi
call fcn.00415e2e
push dword [edi]
mov esi, eax
test esi, esi
je 0x415de2
call fcn.00458ad6
mov eax, esi
jmp 0x415e25
push ebx
lea eax, [esp + 0x10]
push 1
push eax
call fcn.00458d94
add esp, 0x10
push 0x99f2
push ebx
lea eax, [esp + 0x10]
push eax
call fcn.00415f29
xor ecx, ecx
mov dword [edi + 8], ecx
xor eax, eax
movzx edx, byte [esp + eax + 8]
imul ecx, edx
inc eax
cmp eax, ebx
jl 0x415e09
push dword [edi]
mov dword [edi + 8], ecx
call fcn.00459072
mov dword [edi + 4], eax
xor eax, eax
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x415e2e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
call fcn.004666e0
xor eax, eax
mov cl, byte [eax + 0x47b1a0]
mov byte [ebp + eax - 0x20], cl
mov cl, byte [eax + 0x47b198]
mov byte [ebp + eax - 0x18], cl
inc eax
cmp eax, 8
jl 0x415e3d
push ebx
push edi
lea eax, [ebp - 8]
push str.AU3_
push eax
call fcn.004576e0
push 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00454ef0
add esp, 0x14
xor edi, edi
push dword [esi]
lea eax, [ebp - 0x10020]
push 0x10000
push 1
push eax
call fcn.00458d94
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp eax, 0x18
jl 0x415f24
lea edx, [eax - 0x14]
xor ecx, ecx
test edx, edx
jle 0x415ed0
xor edx, edx
lea eax, [ebp + ecx - 0x10020]
mov bl, byte [ebp + edx - 0x20]
cmp bl, byte [eax + edx]
jne 0x415ec0
inc edx
cmp edx, 0x14
jl 0x415eb1
cmp edx, 0x14
je 0x415ee4
mov eax, dword [ebp - 0xc]
inc ecx
lea edx, [eax - 0x14]
cmp ecx, edx
jl 0x415ea8
push 1
push 0xffffffffffffffec
push dword [esi]
lea edi, [edi + eax - 0x14]
call fcn.00459161
add esp, 0xc
jmp 0x415e7b
push 0
lea eax, [edi + ecx + 0x14]
push eax
push dword [esi]
call fcn.00459161
add esp, 0xc
push dword [esi]
lea eax, [ebp - 8]
push 4
push 1
push eax
call fcn.00458d94
lea eax, [ebp - 8]
push str.EA06
push eax
mov byte [ebp - 4], 0
call fcn.00458dc0
add esp, 0x18
neg eax
sbb eax, eax
and eax, 4
pop edi
pop ebx
leave
ret
push 3
pop eax
jmp 0x415f20
Function at 0x4164a8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
and dword [ebp - 0xc], 0
push ebx
push edi
mov byte [ebp - 1], 1
push dword [esi]
lea eax, [ebp - 0x18]
push 4
push 1
push eax
call fcn.00458d94
add esp, 0x10
push 0x18ee
push 4
lea eax, [ebp - 0x18]
push eax
call fcn.00415f29
lea eax, [ebp - 0x18]
push str.FILE
push eax
mov byte [ebp - 0x14], 0
call fcn.00458dc0
pop ecx
pop ecx
test eax, eax
jne 0x41661e
push dword [esi]
inc dword [ebp - 0xc]
push 1
lea eax, [ebp - 0x10]
push 4
push eax
call fcn.00458d94
mov edi, dword [ebp - 0x10]
push dword [esi]
xor edi, 0xadbc
lea ebx, [edi + edi]
push ebx
lea eax, [ebp - 0x228]
push 1
push eax
call fcn.00458d94
add esp, 0x20
add edi, 0xb33f
push edi
push ebx
lea eax, [ebp - 0x228]
push eax
call fcn.00415f29
xor eax, eax
mov word [ebp + ebx - 0x228], ax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.004555f7
push dword [esi]
lea eax, [ebp - 0x10]
push 1
push 4
push eax
call fcn.00458d94
mov edi, dword [ebp - 0x10]
push dword [esi]
xor edi, 0xf820
lea ebx, [edi + edi]
push ebx
lea eax, [ebp - 0x228]
push 1
push eax
call fcn.00458d94
add esp, 0x28
add edi, 0xf479
push edi
push ebx
lea eax, [ebp - 0x228]
push eax
call fcn.00415f29
xor eax, eax
mov word [ebp + ebx - 0x228], ax
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 0xc]
call fcn.004555f7
push dword [ebp + 8]
lea eax, [ebp - 0x438]
push eax
call fcn.004571cc
add esp, 0x10
test eax, eax
je 0x416635
push 0x470d94
push dword [ebp + 8]
call fcn.004571cc
pop ecx
pop ecx
test eax, eax
jne 0x4165e6
cmp dword [ebp - 0xc], eax
je 0x416635
xor edi, edi
inc edi
push edi
push edi
push dword [esi]
call fcn.00459161
add esp, 0xc
push dword [esi]
lea eax, [ebp - 8]
push edi
push 4
push eax
call fcn.00458d94
xor dword [ebp - 8], 0x87bc
mov eax, dword [ebp - 8]
push edi
add eax, 0x18
push eax
push dword [esi]
call fcn.00459161
add esp, 0x1c
jmp 0x416622
mov byte [ebp - 1], 0
cmp byte [ebp - 1], 1
je 0x4164bb
push 6
pop eax
pop edi
pop ebx
leave
ret 8
xor eax, eax
jmp 0x41662f