joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405590
Capabilities:
Check os version
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x40c014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x13c]
push esi
push edi
push 0x110
push 0
push eax
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x140], 0x114
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x130], 2
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
je 0x405601
mov dword [ebp - 0x28], 1
jmp 0x405732
push str.CheckTokenMembership
push str.Advapi32.dll
mov dword [ebp - 0x18], 0x201
mov dword [ebp - 0x14], 0x5000000
mov dword [ebp - 0x10], 0x20
mov dword [ebp - 0xc], 0x220
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
lea eax, [ebp - 0x144]
push eax
test esi, esi
je 0x40569c
push 2
push ebx
mov dword [ebp - 0x144], 0
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x144]
call esi
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
push eax
push str.CheckTokenMembership_isAdmin__d
push dword [ebp - 0x148]
mov dword [ebp - 0x28], eax
call fcn.00402040
mov eax, dword [ebp - 0x144]
add esp, 0xc
test eax, eax
je 0x405732
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405732
push 0
push 0
push 2
push ebx
call edi
test eax, eax
jne 0x40571c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40571c
push dword [ebp - 0x144]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40571c
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x144]
push esi
push 2
push ebx
call edi
test eax, eax
je 0x405715
xor edi, edi
cmp dword [esi], edi
jbe 0x40570f
lea ebx, [esi + 4]
lea eax, [ebp - 0x18]
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov ecx, dword [ebp - 0x28]
lea ebx, [ebx + 8]
test eax, eax
mov eax, 1
cmovne ecx, eax
inc edi
mov dword [ebp - 0x28], ecx
cmp edi, dword [esi]
jb 0x4056e8
mov ebx, dword [ebp - 0x2c]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x28]
push str.GetTokenInformation_TokenGroups_isAdmin__d
push dword [ebp - 0x148]
call fcn.00402040
add esp, 0xc
cmp dword [ebp - 0x13c], 6
jb 0x405787
lea eax, [ebp - 0x2c]
xor esi, esi
push eax
push 0x1e
lea eax, [ebp - 0x24]
push eax
push 0x19
push ebx
call edi
test eax, eax
je 0x405767
mov eax, dword [ebp - 0x24]
cmp dword [eax], 0x101
jne 0x405767
cmp dword [eax + 4], 0x10000000
jne 0x405767
mov esi, dword [eax + 8]
cmp esi, 0x3000
sbb eax, eax
inc eax
push eax
push str.GetTokenInformation_TokenIntegrityLevel_isAdmin__d
push dword [ebp - 0x148]
mov dword [ebp - 0x28], eax
call fcn.00402040
add esp, 0xc
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004068e1
mov esp, ebp
pop ebp
ret 4
Function at 0x4057b0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
push 3
lea eax, [esi + 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea eax, [esi + 0x230]
push eax
push dword [esi + 0x22c]
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov ecx, esi
pop esi
jmp fcn.00405170

Function at 0x4057e0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x40c014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.00403b20
test eax, eax
jne 0x405812
mov eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004068e1
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.APPID
push eax
push 1
push 0x65
push dword [0x40c28c]
mov dword [ebp - 0x10], str.712C15F9_7879_4E56_89A1_169E7863F83A
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.00403eb0
test eax, eax
js 0x405919
push ebx
push edi
push 0x20006
xor eax, eax
lea ecx, [ebp - 0x10]
push str.AppID
push 0x80000000
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call fcn.004022f0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x10]
test eax, eax
je 0x40588a
push eax
call fcn.00401b10
add esp, 4
mov esi, eax
jmp 0x40590e
xor eax, eax
lea ecx, [ebp - 0x10]
push eax
push eax
push 0x2001f
push eax
push eax
push str.712C15F9_7879_4E56_89A1_169E7863F83A
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call fcn.00401d30
mov edi, dword [ebp - 0x10]
test eax, eax
je 0x4058c0
push eax
call fcn.00401b10
add esp, 4
mov esi, eax
jmp 0x4058f9
push str.LocalService
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp byte [ebp + 8], 0
je 0x4058f7
push 1
lea eax, [esi + 0x2c]
push eax
push str.LocalService
lea ecx, [ebp - 0x10]
call fcn.00403860
mov ecx, esi
call fcn.004053a0
test eax, eax
jne 0x4058f7
mov esi, 0x80004005
jmp 0x4058f9
xor esi, esi
test edi, edi
je 0x405908
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
jmp 0x40590e
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x405915
push ebx
call edi
pop edi
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004068e1
mov esp, ebp
pop ebp
ret 4
Function at 0x41c7e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x14000]
push edi
jmp 0x41c7fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41c801
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41c7f0
mov eax, 1
add ebx, ebx
jne 0x41c813
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41c808
jne 0x41c824
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41c808
xor ecx, ecx
sub eax, 3
jb 0x41c838
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41c8aa
mov ebp, eax
add ebx, ebx
jne 0x41c843
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41c850
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41c874
inc ecx
add ebx, ebx
jne 0x41c860
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41c855
jne 0x41c871
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41c855
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41c894
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41c885
jmp 0x41c7f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41c894
add edi, ecx
jmp 0x41c7f6
pop esi
mov edi, esi
mov ecx, 0x641
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41c8b2
cmp byte [edi], 0xb
jne 0x41c8b2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41c8b7
lea edi, [esi + 0x18000]
mov eax, dword [edi]
or eax, eax
je 0x41c92f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1cdc0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1ced8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41c8e4
mov ecx, edi
jns 0x41c913
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1cedc]
or eax, eax
je 0x41c929
mov dword [ebx], eax
add ebx, 4
jmp 0x41c901
call dword [esi + 0x1ceec]
mov ebp, dword [esi + 0x1cee0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41c963
sub esp, 0xffffff80
jmp 0x40fd88
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x401000
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x94
push ebx
xor ebx, ebx
cmp dword [0x4edfd4], ebx
je 0x401024
xor eax, eax
cmp dword [0x4edfc8], ebx
pop ebx
setne al
add esp, 0x94
ret
push esi
push edi
push 0x90
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.0045ed30
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor edx, edx
cmp dword [esp + 0x1c], 2
push str.USER32
sete dl
mov dword [0x4edfd8], edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
cmp esi, ebx
je 0x401102
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x496e68
push esi
call edi
cmp eax, ebx
mov dword [0x4edfb8], eax
je 0x401102
push str.MonitorFromWindow
push esi
call edi
cmp eax, ebx
mov dword [0x4edfbc], eax
je 0x401102
push str.MonitorFromRect
push esi
call edi
cmp eax, ebx
mov dword [0x4edfc0], eax
je 0x401102
push str.MonitorFromPoint
push esi
call edi
cmp eax, ebx
mov dword [0x4edfc4], eax
je 0x401102
push str.EnumDisplayMonitors
push esi
call edi
cmp eax, ebx
mov dword [0x4edfcc], eax
je 0x401102
push str.GetMonitorInfoA
push esi
call edi
cmp eax, ebx
mov dword [0x4edfc8], eax
je 0x401102
push str.EnumDisplayDevicesA
push esi
call edi
cmp eax, ebx
mov dword [0x4edfd0], eax
je 0x401102
pop edi
mov eax, 1
pop esi
mov dword [0x4edfd4], eax
pop ebx
add esp, 0x94
ret
pop edi
pop esi
mov dword [0x4edfb8], ebx
mov dword [0x4edfbc], ebx
mov dword [0x4edfc0], ebx
mov dword [0x4edfc4], ebx
mov dword [0x4edfc8], ebx
mov dword [0x4edfcc], ebx
mov dword [0x4edfd0], ebx
mov dword [0x4edfd4], 1
xor eax, eax
pop ebx
add esp, 0x94
ret
Function at 0x401ed0
Capabilities:
Print debug messages

Disassembly:
push ecx
mov eax, dword [0x4e51d4]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
push edi
je 0x401ee7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [0x4e51d8]
cmp eax, ebp
mov dword [0x4e51d4], ebp
je 0x401efe
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [0x4e51dc]
cmp eax, ebp
mov dword [0x4e51d8], ebp
je 0x401f15
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [0x4e51dc], ebp
xor ebx, ebx
cmp dword [esi + 0x49250], ebp
jle 0x401f56
jmp 0x401f30
mov eax, dword [esi + 0x49258]
mov edi, dword [eax + ebx*4]
mov eax, dword [edi + 0x78]
cmp eax, ebp
je 0x401f4b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi + 0x78], ebp
add ebx, 1
cmp ebx, dword [esi + 0x49250]
jl 0x401f30
xor edi, edi
cmp dword [esi + 0x40028], ebp
jle 0x401f95
lea ebx, [esi + 0x40214]
jmp 0x401f70
mov eax, dword [esi + 0x42878]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x40]
push ebx
push eax
call edx
test eax, eax
jl 0x4020bd
add edi, 1
add ebx, 0x38
cmp edi, dword [esi + 0x40028]
jl 0x401f70
mov eax, dword [0x4e51d0]
mov ecx, dword [eax]
push ebp
lea edx, [esp + 0x10]
push edx
mov edx, dword [0x4ebd08]
push ebp
push 0x15
push 1
push 1
push edx
mov edx, dword [0x4ebd04]
push edx
push eax
mov eax, dword [ecx + 0x5c]
call eax
xor ecx, ecx
test eax, eax
setl cl
push ebp
sub ecx, 1
and ecx, dword [esp + 0x10]
mov eax, ecx
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [0x4ebd08]
push ebp
push 0x15
push 1
push 1
push ecx
mov ecx, dword [0x4ebd04]
mov dword [0x4e51d4], eax
mov eax, dword [0x4e51d0]
mov edx, dword [eax]
mov edx, dword [edx + 0x5c]
push ecx
push eax
call edx
xor ecx, ecx
test eax, eax
setl cl
sub ecx, 1
and ecx, dword [esp + 0xc]
mov eax, ecx
mov dword [0x4e51d8], eax
cmp dword [esi + 0x40018], ebp
je 0x402055
mov eax, dword [0x4e51d0]
mov edx, dword [eax]
mov edx, dword [edx + 0x5c]
push ebp
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [0x4ebd18]
push ebp
push 0x15
push 1
push 1
push ecx
mov ecx, dword [0x4ebd14]
push ecx
push eax
call edx
xor ecx, ecx
test eax, eax
setl cl
sub ecx, 1
and ecx, dword [esp + 0xc]
mov eax, ecx
mov dword [esi + 0x42884], eax
xor edi, edi
cmp dword [esi + 0x49250], ebp
jle 0x4020b3
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x402070
mov edx, dword [esi + 0x49258]
mov eax, dword [edx + edi*4]
mov ecx, dword [eax + 0x74]
mov edx, dword [eax + 8]
mov ebp, dword [ecx]
push 0
add eax, 0x78
push eax
mov eax, dword [edx + 0xc]
mov edx, dword [edx + 8]
push 0
push 0x15
push 0
push 1
push eax
mov eax, dword [ebp + 0x5c]
push edx
push ecx
call eax
test eax, eax
je 0x4020a8
push str.CREATE_MOVIE_TEXTURE_ERROR_1_n
call ebx
add edi, 1
cmp edi, dword [esi + 0x49250]
jl 0x402070
pop edi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
pop edi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x40b430
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4921a1
push eax
mov dword fs:[0], esp
push ebx
xor ebx, ebx
push esi
mov esi, dword [esp + 0x18]
mov dword [esi + 0x28], 0xf
mov dword [esi + 0x24], ebx
mov byte [esi + 0x14], bl
mov byte [esi + 8], bl
mov byte [esi + 9], bl
mov byte [esi + 0x35], bl
mov byte [esi + 0x34], bl
mov dword [esi + 0x30], 1
mov dword [esp + 0x10], ebx
push 0x40
lea eax, [esi + 0x54]
mov dword [esi], vtable.SB_LAYOUT.0
push ebx
push eax
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x10
mov dword [esi + 0x50], eax
call fcn.0045ed30
push 0x40
lea eax, [esi + 0xa0]
push ebx
push eax
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], 0x10
mov dword [esi + 0x9c], eax
call fcn.0045ed30
add esp, 0x18
mov byte [esp + 0x10], 2
mov dword [esi + 0xc], 0xd
call fcn.0040b5c0
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 4
Function at 0x415be0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [edx + 0x9c0], 0x270
jb 0x415c9e
xor eax, eax
push esi
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4]
add eax, 1
and ecx, 0x7fffffff
xor ecx, dword [edx + eax*4 - 4]
mov esi, ecx
shr ecx, 1
and esi, 1
xor ecx, dword [esi*4 + 0x497960]
xor ecx, dword [edx + eax*4 + 0x630]
cmp eax, 0xe3
mov dword [edx + eax*4 - 4], ecx
jb 0x415bf3
cmp eax, 0x26f
jae 0x415c64
mov edi, edi
mov ecx, dword [edx + eax*4 + 4]
xor ecx, dword [edx + eax*4]
add eax, 1
and ecx, 0x7fffffff
xor ecx, dword [edx + eax*4 - 4]
mov esi, ecx
shr ecx, 1
and esi, 1
xor ecx, dword [esi*4 + 0x497960]
xor ecx, dword [edx + eax*4 - 0x390]
cmp eax, 0x26f
mov dword [edx + eax*4 - 4], ecx
jb 0x415c30
mov eax, dword [edx + 0x9bc]
xor eax, dword [edx]
pop esi
and eax, 0x7fffffff
xor eax, dword [edx + 0x9bc]
mov ecx, eax
and ecx, 1
mov ecx, dword [ecx*4 + 0x497960]
xor ecx, dword [edx + 0x630]
shr eax, 1
xor ecx, eax
mov dword [edx + 0x9bc], ecx
mov dword [edx + 0x9c0], 0
mov eax, dword [edx + 0x9c0]
mov ecx, dword [edx + eax*4]
add eax, 1
mov dword [edx + 0x9c0], eax
mov edx, ecx
shr edx, 0xb
xor ecx, edx
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov edx, ecx
and edx, 0xffffdf8c
shl edx, 0xf
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret
Function at 0x419530
Capabilities:
Print debug messages

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x400
lea eax, [esp + 0x408]
push eax
push ecx
lea edx, [esp + 8]
push edx
call fcn.0045b58b
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x400
ret

Function at 0x41a890
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x492141
push eax
mov dword fs:[0], esp
push ebx
push esi
mov esi, dword [esp + 0x18]
push edi
push 0x41aaa0
push 0x41aa10
push 5
push 0x388
lea eax, [esi + 0x38]
push eax
call fcn.0045b850
push 0x413190
push fcn.00413160
push 5
push 0x4c
lea ecx, [esi + 0x11e0]
xor ebx, ebx
push ecx
mov dword [esp + 0x28], ebx
call fcn.0045b850
push 0x419f20
push 0x419ef0
push 8
push 0x1cc
lea edi, [esi + 0x23c0]
push edi
mov byte [esp + 0x28], 1
call fcn.0045b850
mov dword [esi + 0x3224], ebx
mov dword [esi + 0x1378], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x3220], ebx
mov dword [esi + 0x135c], ebx
mov dword [esi + 0x1360], ebx
mov dword [esi + 0x1364], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov byte [edi], bl
mov byte [esi + 0x258c], bl
mov dword [edi + 8], ebx
mov dword [edi + 4], ebx
mov dword [edi + 0xc], ebx
mov dword [esi + 0x2594], ebx
mov dword [esi + 0x2590], ebx
mov dword [esi + 0x2598], ebx
mov byte [esi + 0x2758], bl
mov dword [esi + 0x2760], ebx
mov dword [esi + 0x275c], ebx
mov dword [esi + 0x2764], ebx
mov byte [esi + 0x2924], bl
mov dword [esi + 0x292c], ebx
mov dword [esi + 0x2928], ebx
mov dword [esi + 0x2930], ebx
mov byte [esi + 0x2af0], bl
mov dword [esi + 0x2af8], ebx
mov dword [esi + 0x2af4], ebx
mov dword [esi + 0x2afc], ebx
mov byte [esi + 0x2cbc], bl
mov dword [esi + 0x2cc4], ebx
mov dword [esi + 0x2cc0], ebx
mov dword [esi + 0x2cc8], ebx
mov byte [esi + 0x2e88], bl
mov dword [esi + 0x2e90], ebx
mov dword [esi + 0x2e8c], ebx
mov dword [esi + 0x2e94], ebx
mov byte [esi + 0x3054], bl
mov dword [esi + 0x305c], ebx
mov dword [esi + 0x3058], ebx
mov dword [esi + 0x3060], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov eax, esi
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 4
Function at 0x41d580
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [eax], ecx
mov dword [eax + 0x9c0], 1
push ebx
lea ecx, [ecx]
mov ecx, dword [eax + 0x9c0]
mov edx, dword [eax + ecx*4 - 4]
mov ebx, edx
shr ebx, 0x1e
xor ebx, edx
imul ebx, ebx, 0x6c078965
add ebx, ecx
mov dword [eax + ecx*4], ebx
add dword [eax + 0x9c0], 1
cmp dword [eax + 0x9c0], 0x270
jb 0x41d590
pop ebx
ret
Function at 0x41ecb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
xor ecx, ecx
push esi
mov edx, 0x26ac
lea eax, [edi + 0xc]
lea ebx, [ecx + 0x10]
lea esi, [edx + 0x64]
mov dword [eax - 8], esi
mov dword [eax - 4], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], 0xffffffff
mov esi, dword [edi]
mov esi, dword [esi + 0xcd4]
add esi, 0x2180
cmp dword [esi + 0x18], ebx
jb 0x41eced
mov esi, dword [esi + 4]
jmp 0x41ecf0
add esi, 4
mov ebp, dword [esi]
mov dword [eax + 0xc], ebp
mov ebp, dword [esi + 4]
mov dword [eax + 0x10], ebp
mov ebp, dword [esi + 8]
mov dword [eax + 0x14], ebp
mov esi, dword [esi + 0xc]
mov dword [eax + 0x18], esi
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], 0xffffffff
mov esi, dword [edi]
mov esi, dword [esi + 0xcd4]
add esi, 0x2180
cmp dword [esi + 0x18], ebx
jb 0x41ed32
mov esi, dword [esi + 4]
jmp 0x41ed35
add esi, 4
mov ebp, dword [esi]
mov dword [eax + 0x30], ebp
mov ebp, dword [esi + 4]
mov dword [eax + 0x34], ebp
mov ebp, dword [esi + 8]
mov dword [eax + 0x38], ebp
mov esi, dword [esi + 0xc]
mov dword [eax + 0x3c], esi
lea esi, [edx - 0x64]
mov dword [eax + 0x40], esi
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x50], 0xffffffff
mov esi, dword [edi]
mov esi, dword [esi + 0xcd4]
add esi, 0x2180
cmp dword [esi + 0x18], ebx
jb 0x41ed7a
mov esi, dword [esi + 4]
jmp 0x41ed7d
add esi, 4
mov ebp, dword [esi]
mov dword [eax + 0x54], ebp
mov ebp, dword [esi + 4]
mov dword [eax + 0x58], ebp
mov ebp, dword [esi + 8]
mov dword [eax + 0x5c], ebp
mov esi, dword [esi + 0xc]
mov dword [eax + 0x60], esi
lea esi, [edx - 0xc8]
mov dword [eax + 0x64], esi
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ecx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], 0xffffffff
mov esi, dword [edi]
mov esi, dword [esi + 0xcd4]
add esi, 0x2180
cmp dword [esi + 0x18], ebx
jb 0x41edc5
mov esi, dword [esi + 4]
jmp 0x41edc8
add esi, 4
mov ebp, dword [esi]
mov dword [eax + 0x78], ebp
mov ebp, dword [esi + 4]
mov dword [eax + 0x7c], ebp
mov ebp, dword [esi + 8]
mov dword [eax + 0x80], ebp
mov esi, dword [esi + 0xc]
mov dword [eax + 0x84], esi
lea esi, [edx - 0x12c]
mov dword [eax + 0x88], esi
mov dword [eax + 0x8c], ecx
mov dword [eax + 0x90], ecx
mov dword [eax + 0x94], ecx
mov dword [eax + 0x98], 0xffffffff
mov esi, dword [edi]
mov esi, dword [esi + 0xcd4]
add esi, 0x2180
cmp dword [esi + 0x18], ebx
jb 0x41ee25
mov esi, dword [esi + 4]
jmp 0x41ee28
add esi, 4
mov ebp, dword [esi]
mov dword [eax + 0x9c], ebp
mov ebp, dword [esi + 4]
mov dword [eax + 0xa0], ebp
mov ebp, dword [esi + 8]
mov dword [eax + 0xa4], ebp
mov esi, dword [esi + 0xc]
mov dword [eax + 0xa8], esi
sub edx, 0x1f4
add eax, 0xb4
cmp edx, 0xffffff9c
jg 0x41ecc0
pop esi
pop ebp
pop ebx
ret
Function at 0x41f700
Capabilities:
Access peb ldr_data
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x492e88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push esi
push edi
lea eax, [esp + 0x2c]
xor edi, edi
push 0x40
mov ecx, eax
push edi
push ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], 0x10
mov dword [esp + 0x34], eax
call fcn.0045ed30
push 0x2000
mov dword [esp + 0x80], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 0x2000
mov byte [esp + 0x28], 1
call fcn.0045a843
add esp, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x6c], 0x4ec020
lea edx, [esp + 0xc]
mov dword [esp + 0x84], edi
mov eax, dword [esp + 0x8c]
push edx
push eax
call fcn.0041f370
lea ecx, [esp + 0x8c]
push ecx
lea eax, [esp + 0x10]
call fcn.0042a2b0
push 0x497cfc
push str.score.bin
mov ebx, eax
call fcn.0045bfb8
mov esi, eax
add esp, 8
cmp esi, edi
je 0x41f7d3
mov edx, dword [esp + 0x8c]
push esi
push edx
push 1
push ebx
call fcn.0045be72
push esi
call fcn.0045bc97
add esp, 0x14
push ebx
call fcn.0045a194
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x84], 0xffffffff
call fcn.0042a0e0
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x7c
ret 4

Function at 0x427e40
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x492e4b
push eax
mov dword fs:[0], esp
sub esp, 0x494
push ebx
push ebp
mov ebp, dword [esp + 0x4b0]
xor ebx, ebx
cmp ebp, ebx
push esi
push edi
jl 0x427f98
lea esi, [esp + 0x34]
call fcn.0042a020
mov dword [esp + 0x4ac], ebx
push 6
mov esi, 0xf
push str.PLAYER
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00404090
mov eax, dword [esp + 0x4bc]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edi, [esp + 0x3c]
call fcn.0042a630
cmp dword [esp + 0x2c], 0x10
jb 0x427ecb
mov edx, dword [esp + 0x18]
push edx
call fcn.00459ea4
add esp, 4
push 9
push str.HIGHSCORE
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00404090
push ebx
lea eax, [esp + 0x18]
push eax
lea edi, [esp + 0x3c]
call fcn.0042a630
cmp dword [esp + 0x2c], 0x10
jb 0x427f0a
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00459ea4
add esp, 4
mov ecx, dword [esp + 0x4b4]
lea eax, [esp + 0x34]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.004279b0
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x38]
call fcn.0042a2b0
push ebp
mov edi, eax
lea eax, [esp + 0xa0]
push str.replay_02d.bin
push eax
call fcn.0045b0bf
lea ecx, [esp + 0xa8]
push 0x497cfc
push ecx
call fcn.0045bfb8
mov esi, eax
add esp, 0x14
cmp esi, ebx
je 0x427f7b
mov edx, dword [esp + 0x30]
push esi
push edx
push 1
push edi
call fcn.0045be72
push esi
call fcn.0045bc97
add esp, 0x14
push edi
call fcn.0045a194
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x4ac], 0xffffffff
call fcn.0042a0e0
mov ecx, dword [esp + 0x4a4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x4a0
ret 0xc