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

Disassembly:
push 0xffffffffffffffff
push 0x4888f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov ecx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push esi
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x472ed2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.0046f7a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0x472e61
mov edx, dword [eax]
jmp 0x472e63
xor edx, edx
xor ecx, ecx
push edi
xor eax, eax
push edx
push ecx
mov ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx + 4]
push eax
push esi
push 2
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.00471050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0x472ebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x472ebf
cmp esi, edi
je 0x472ebf
mov ecx, esi
call fcn.0046aa00
push esi
call fcn.004781c8
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.0046f990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0x472ef5
mov eax, dword [eax]
jmp 0x472ef7
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
push ebx
push esi
push eax
push ecx
push edx
call fcn.0046e640
add esp, 0x10
mov bl, al
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x472f25
mov eax, dword [eax]
jmp 0x472f27
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
cmp esi, edi
je 0x472f76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x472f76
cmp esi, edi
je 0x472f76
mov eax, dword [esi]
cmp eax, edi
je 0x472f5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x472f6d
push eax
call fcn.004781c8
add esp, 4
push esi
call fcn.004781c8
add esp, 4
mov ecx, dword [esp + 0x18]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x472f90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x472ffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x473035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.00472e00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x472fc5
mov edi, 0x48d8b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x473035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00472e00
add edi, 4
add esp, 0xc
cmp edi, 0x48d8c0
jb 0x473000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x473070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.00479082
mov esi, eax
add esp, 8
test esi, esi
je 0x473107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x473102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00478946
add esp, 8
test eax, eax
je 0x4730e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x4730e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00478946
add esp, 8
test eax, eax
jne 0x4730c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x473102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x473f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4889fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x474002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00477dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x474002
lea edx, [esp + 0x14]
push edx
push 0x48e140
call fcn.0046f6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0047820b
push 0x10
call fcn.004781d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x473fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.004641c0
jmp 0x473fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00473b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x473ff0
mov ecx, edi
call fcn.004642c0
push edi
call fcn.004781c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x474021
inc ebx
cmp ebx, 0x20
jb 0x473f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x475250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489808
push 0x479288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x475329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x475329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004781d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x475329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x475329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x47532c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00475351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x475d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x475d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x475d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x475d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x475d94
push eax
push esi
call fcn.0047820b
add esp, 8
pop esi
ret 0x10

Function at 0x475da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x475e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x475e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x48e320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00477dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x475dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x475e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x475ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x475eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x48e320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00477dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x475eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x475e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x476000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x476131
push esi
call fcn.00479145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00468080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x476131
push 0
push ebp
call fcn.004683a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00468260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x47608b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.004682f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x476121
push 0x48e918
push edi
call fcn.004773f0
push eax
push ebx
push esi
call fcn.00475f60
push 0x48e8f8
push edi
call fcn.004773f0
push eax
push ebx
push esi
call fcn.00475f60
push 0x48e8d8
push edi
call fcn.004773f0
push eax
push ebx
push esi
call fcn.00475f60
push 0x48e8c0
push edi
call fcn.004773f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00475f60
push 0x48e8a0
push edi
call fcn.004773f0
push eax
push ebx
push esi
call fcn.00475f60
push 0x48e888
push edi
call fcn.004773f0
push eax
push ebx
push esi
call fcn.00475f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4771b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00477140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00477140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00477140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00477140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x477230
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x20c
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x218]
push ebp
mov ebp, dword [esp + 0x218]
push esi
push eax
push 0xf003f
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4772d6
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea ecx, [esp + 0x14]
push 0x104
push ecx
push eax
push edx
call edi
mov esi, eax
test esi, esi
jne 0x4772ae
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.00477230
mov esi, eax
add esp, 8
test esi, esi
jne 0x4772ae
lea edx, [esp + 0x14]
push 0x104
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call edi
mov esi, eax
test esi, esi
je 0x47727e
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
pop edi
je 0x4772ce
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret

Function at 0x477bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x477c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x48987c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x477c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x477c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x409b6d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
add ecx, eax
push ebx
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 fcn.00456267
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 fcn.00455af0
mov eax, dword [ebp - 4]
add dword [esi], ebx
xor ecx, ecx
add esp, 0x10
mov word [ebx + eax], cx
test edi, edi
jle 0x409bc6
xor word [eax + ecx*2], di
inc ecx
cmp ecx, edi
jl 0x409bbd
pop edi
pop ebx
leave
ret 4
Function at 0x40ee1c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
mov edi, eax
xor esi, esi
mov byte [0x4803ce], bl
cmp edi, ebx
je 0x40ee62
mov byte [0x4803cf], 1
call dword [0x46b160]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x40e2a5
push ebx
push ebx
mov dword [ebp - 8], edi
call fcn.00458a0f
add esp, 0x18
mov esi, eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x46b65c]
mov edi, eax
cmp esi, ebx
je 0x40ee90
push 0xffffffffffffffff
push esi
mov byte [0x4803cf], bl
call dword [str.tSjV]
push esi
call dword [0x46b304]
cmp byte [0x4803ce], 1
jne 0x40ee9e
or eax, 0xffffffff
jmp 0x40eea0
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4106de
Capabilities:
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.00458dc9
pop ecx
push eax
call fcn.00458cde
cmp dword [edi + 8], 0xb
pop ecx
pop ecx
mov dword [esp + 8], eax
jne 0x410734
push dword [ebp + 8]
mov ecx, edi
call fcn.0041376a
push eax
push 1
push ecx
mov eax, edi
call fcn.00413801
pop ecx
push eax
call fcn.00458f46
add esp, 0x10
mov dword [esp + 0xc], eax
jmp 0x41077f
lea esi, [esp + 0x10]
call fcn.00408835
mov eax, edi
call fcn.004137cc
mov ecx, esi
push ecx
call fcn.0040de28
push dword [esp + 0x10]
push 0x470a74
push dword [ebp + 8]
call fcn.00458fc0
add esp, 0xc
mov dword [esp + 0xc], eax
test bl, bl
je 0x410776
mov eax, edi
call fcn.004137b1
push eax
call dword [0x46b204]
lea esi, [esp + 0x10]
call fcn.00408854
push dword [ebp + 8]
call fcn.00459256
cmp dword [esp + 0xc], 0xffffffff
pop ecx
jne 0x410796
push 0x4000
jmp 0x41079a
push dword [esp + 8]
push dword [ebp + 8]
call fcn.00458dc9
pop ecx
push eax
call fcn.00458cde
mov eax, dword [esp + 0x14]
pop ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4157ba
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 0x4157cb
pop edi
mov dword [0x47b05c], esi
mov dword [0x490df0], esi
pop esi
ret
Function at 0x4157f9
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 0x41581b
push 0
call fcn.00459543
pop ecx
call fcn.004157ba
mov dword [0x47b05c], 0x270
mov dword [0x49041c], esi
mov dword [ebp - 4], 0xe3
mov ecx, 0x7ffffffe
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 0x41583c
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 0x41586e
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 0x4158c4
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x47b05c]
jne 0x4158d1
call fcn.004157f9
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 0x415908
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
dec dword [0x47b05c]
jne 0x415919
call fcn.004157f9
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 0x41595d
fadd qword [0x475bc0]
fmul qword [0x475bd0]
leave
ret

Function at 0x415b0a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [esi + 0x14], 1
jne 0x415b2c
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 8]
push eax
call fcn.00455af0
add esp, 0xc
jmp 0x415b3f
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.00459994
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 0x470d74
push eax
mov byte [ebp - 4], 0
call fcn.004599c0
neg eax
pop ecx
sbb eax, eax
pop ecx
neg eax
leave
ret 4
Function at 0x415c18
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esi + 0x464]
mov eax, 0x10000
test ecx, ecx
je 0x415c2b
cmp ecx, eax
jne 0x415c46
push dword [esi + 0x1c]
push eax
push 1
push dword [esi + 0x45c]
call fcn.00459994
add esp, 0x10
and dword [esi + 0x464], 0
mov ecx, dword [esi + 0x464]
mov eax, dword [esi + 0x45c]
mov al, byte [ecx + eax]
inc ecx
mov dword [esi + 0x464], ecx
ret

Function at 0x415c5d
Capabilities:
Write file on windows

Disassembly:
cmp dword [esi + 0x18], 1
mov eax, dword [esi + 0x444]
push edi
je 0x415d14
cmp eax, dword [esi + 0x43c]
jae 0x415ce0
mov edi, 0x10000
push ebx
mov eax, dword [esi + 0x444]
mov ecx, dword [esi + 0x438]
mov ebx, dword [esi + 0x460]
mov edx, dword [esi + 0x458]
and eax, 0x1ffff
mov al, byte [eax + ecx]
mov byte [edx + ebx], al
inc dword [esi + 0x460]
cmp dword [esi + 0x460], edi
jne 0x415cc8
push dword [esi + 0x20]
push edi
push 1
push dword [esi + 0x458]
call fcn.00458f46
add esp, 0x10
and dword [esi + 0x460], 0
inc dword [esi + 0x444]
inc dword [esi + 8]
mov eax, dword [esi + 0x444]
cmp eax, dword [esi + 0x43c]
jb 0x415c7c
pop ebx
and dword [esi + 0x440], 0
pop edi
ret
mov eax, dword [esi + 0x444]
mov ecx, dword [esi + 0x438]
mov edi, dword [esi + 8]
mov edx, dword [esi]
and eax, 0x1ffff
mov al, byte [eax + ecx]
mov byte [edx + edi], al
inc dword [esi + 8]
inc dword [esi + 0x444]
mov eax, dword [esi + 0x444]
cmp eax, dword [esi + 0x43c]
jb 0x415ce9
jmp 0x415ce0