joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48964c
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
cmp dword [ebp + 8], 0
jne 0x489672
push 0x146
push str.afxtls.cpp
call fcn.004783b0
test eax, eax
je 0x489672
int3
xor eax, eax
test eax, eax
jne 0x489658
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
jmp 0x489691
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 8]
jge 0x489714
cmp dword [ebp + 0xc], 0
je 0x4896b4
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [edx + eax*8 + 4]
cmp ecx, dword [ebp + 0xc]
jne 0x4896f9
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4896e0
push 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xc]
call dword [edx]
mov dword [ebp - 0x20], eax
jmp 0x4896e7
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 8]
mov dword [ecx + edx*4], 0
jmp 0x48970f
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 8]
cmp dword [ecx + edx*4], 0
je 0x48970f
mov dword [ebp - 4], 0
jmp 0x489688
cmp dword [ebp - 4], 0
je 0x489788
mov eax, dword [ebp - 0x1c]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x14
call fcn.0048bd90
mov edx, dword [ebp - 0x1c]
add edx, 0x1c
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x489773
push 1
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x14]
call dword [edx]
mov dword [ebp - 0x24], eax
jmp 0x48977a
mov dword [ebp - 0x24], 0
push 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x489791
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp + 0xc], 0
jne 0x4897d4
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4897d2
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0048964c
jmp 0x489809
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.0048a0a0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x489809
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.0048964c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
jmp 0x4897e2
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esp, ebp
pop ebp
ret 8

Function at 0x48ce8d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0x10], 0
jne 0x48ced9
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
test eax, eax
je 0x48ced2
mov eax, dword [ebp + 8]
push eax
push 0x4a9428
call fcn.0041b995
add esp, 8
xor eax, eax
jmp 0x48cf45
mov eax, 1
jmp 0x48cf45
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x48cf32
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x48cf32
cmp dword [ebp - 8], 0
jne 0x48cf32
mov eax, 1
jmp 0x48cf45
mov edx, dword [ebp + 8]
push edx
push str.Warning:_registration_database_update_failed_for_key__s._n
call fcn.0041b995
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40cf00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b6b2
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x5e108c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
push 0
call fcn.004bd243
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
jne 0x40cf94
mov dword [ebp - 0x18], str.bad_locale_name
mov dword [ebp - 0x1c], vtable.std::runtime_error.0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.00429b90
push eax
push esi
call fcn.004bd58b
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4103a0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5e108c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push edi
push 1
push eax
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], 0xc
push esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push 0
push eax
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
mov dword [edi], eax
cmp eax, 0xb7
sete bl
cmp eax, 0xb7
jne 0x410426
mov eax, dword [edi + 4]
test eax, eax
je 0x410426
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], 0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f4655
mov esp, ebp
pop ebp
ret 4

Function at 0x4104e0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
cmovae eax, dword [ebp + 0xc]
push edi
push 0
push 0x80
push 3
push 0
push 1
push connect
push eax
mov dword [esi + 4], 0
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41052f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x20]
cmp ecx, 8
jb 0x410544
inc ecx
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.0040ca40
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x1c
Function at 0x4114f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57bd48
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5e108c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
cmp dword [0x60c064], 1
jge 0x411579
cmp dword [ebp + 0x18], 0
je 0x411579
call fcn.00430820
test al, al
jne 0x411579
push 0xffffffffffffffff
push 0
lea eax, [ebp + 8]
mov dword [0x60c054], esi
push eax
mov ecx, 0x62131c
call fcn.0040c1a0
inc dword [0x60c064]
lea ecx, [ebp - 0x14]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push ecx
cmovae eax, dword [ebp + 8]
push 0
push eax
push 0x4115b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [ebp + 0x1c]
cmp eax, 8
jb 0x41158e
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.0040ca40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f4655
mov esp, ebp
pop ebp
ret
Function at 0x41cdc0
Capabilities:
Create shortcut via ishelllink
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57ccc0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5e108c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x41cf06
lea eax, [ebp - 0x2c]
push eax
push 0x58f164
push 1
push 0
push 0x58f1dc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x41cf00
mov eax, dword [ebp - 0x2c]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
push esi
lea ecx, [ebp - 0x28]
call fcn.0040ba80
push 2
sub esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004240b0
push eax
push 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x28]
call fcn.00422200
mov edx, eax
mov byte [ebp - 4], 1
cmp dword [edx + 0x14], 8
jb 0x41ce66
mov edx, dword [edx]
mov eax, dword [ebp - 0x2c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x34]
cmp eax, 8
jb 0x41ce89
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.0040ca40
mov eax, dword [ebp - 0x2c]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x30]
push edx
push 0x58f20c
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x41cee2
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
push ebx
call edi
mov eax, dword [ebp - 0x30]
push 0
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
push 1
push ebx
mov esi, eax
call edi
test esi, esi
js 0x41ced9
lea ecx, [ebp - 0x28]
call fcn.0040ba40
mov al, 1
jmp 0x41cf08
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x41cf00
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040ca40
call dword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f4655
mov esp, ebp
pop ebp
ret
Function at 0x420110
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x5e108c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
call fcn.0050dd3e
mov edi, eax
mov eax, dword [ebp + 0xc]
cdq
and edx, 3
lea esi, [edx + eax]
mov eax, edi
sar esi, 2
cdq
inc esi
idiv esi
mov ebx, edx
call fcn.0050dd3e
mov esi, eax
mov eax, dword [ebp + 0x10]
cdq
and edx, 3
lea ecx, [edx + eax]
mov eax, esi
sar ecx, 2
inc ecx
cdq
idiv ecx
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
lea eax, [ebx + esi]
sub esi, ebx
test bl, 1
cmove esi, eax
lea eax, [edx + ecx]
sub ecx, edx
mov dword [0x621a94], esi
test dl, 1
cmove ecx, eax
mov eax, dword [ebp - 0x10]
mov dword [0x621a90], eax
mov al, byte [ebp + 0x14]
mov byte [0x621a9c], al
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x41fd10
push 0
push 0
mov dword [0x621a98], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f4655
mov esp, ebp
pop ebp
ret

Function at 0x420c50
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5e108c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
mov word [ebp - 0xc], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov ecx, eax
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x420cc2
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 8]
xor eax, eax
cmp ecx, 1
mov ecx, dword [ebp - 4]
sete al
xor ecx, ebp
call fcn.004f4655
mov esp, ebp
pop ebp
ret
Function at 0x421760
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5e108c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0
push 1
push 0
mov dword [ebp - 0x28], 0x1388
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push eax
push 0x4216f0
push 0
push 0
call fcn.00509e45
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 0x18
mov dword [ebp - 0x2c], eax
push 0
push dword [ebp - 0x24]
call esi
cmp eax, 0x102
jne 0x4217f7
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call edi
test eax, eax
je 0x4217e9
lea eax, [ebp - 0x20]
push eax
call ebx
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push dword [ebp - 0x24]
call esi
cmp eax, 0x102
je 0x4217c7
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2c]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f4655
mov esp, ebp
pop ebp
ret

Function at 0x421860
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x410
mov eax, dword [0x5e108c]
xor eax, esp
mov dword [esp + 0x40c], eax
mov eax, dword [0x40003c]
push esi
push edi
push 0
mov esi, dword [eax + 0x400008]
call fcn.00509461
mov edi, eax
add esp, 4
sub edi, esi
mov ecx, edx
sbb ecx, 0
imul eax, dword [ebp + 8], 0x15180
cdq
cmp ecx, edx
jg 0x4218c2
jl 0x4218ac
cmp edi, eax
jae 0x4218c2
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.004f4655
mov esp, ebp
pop ebp
ret
call fcn.00421760
call fcn.004213f0
test al, al
je 0x4218e6
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.004f4655
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [esp + 0x14]
push 0
push eax
call fcn.005065b0
add esp, 0xc
mov dword [esp + 0xc], 0x400
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
call fcn.00421820
cmp eax, 0x1d52f71
je 0x4218d0
mov esi, dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0x400
push eax
push 0
call esi
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
call fcn.00421820
cmp eax, 0x1d52f71
je 0x4218d0
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x400
push eax
lea eax, [esp + 0x14]
push eax
push 2
call esi
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
call fcn.00421820
mov ecx, dword [esp + 0x414]
cmp eax, 0x1d52f71
pop edi
sete al
pop esi
xor ecx, esp
call fcn.004f4655
mov esp, ebp
pop ebp
ret
Function at 0x4238d0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
nop dword [eax]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jl 0x4238f0
pop edi
mov dword [ecx], 0x270
mov eax, ecx
pop esi
pop ebp
ret 0xc

Function at 0x425410
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d8c8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5e108c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x425544
cmp byte [ebx + 0x3d], 0
je 0x425544
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x425464
xor al, al
jmp 0x425546
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4254d5
sub eax, 1
je 0x4254d9
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x42552c
xor bl, bl
jmp 0x42552e
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x42550e
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0050f77d
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x4254d1
cmp byte [ebx + 0x3d], 0
je 0x42552c
test esi, esi
jne 0x425497
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00425050
jmp 0x425494
mov bl, 1
cmp ecx, 0x10
jb 0x425540
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.0040c0a0
mov al, bl
jmp 0x425546
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f4655
mov esp, ebp
pop ebp
ret
Function at 0x425f20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d94f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5e108c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004f4666
mov esi, eax
mov dword [ebp - 0x10], esi
xorps xmm0, xmm0
mov dword [ebp - 4], 0
push 1
movq qword [esi], xmm0
call fcn.004bd488
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
nop
mov ecx, dword [edi + 4]
dec ecx
shl ebx, cl
add ebx, ebx
nop dword [eax + eax]
mov esi, dword [edi]
mov eax, dword [esi]
cmp eax, 0x270
jne 0x4294c4
mov ecx, esi
call fcn.00429640
jmp 0x4294d2
cmp eax, 0x4e0
jb 0x4294d2
mov ecx, esi
call fcn.00429690
mov eax, dword [esi]
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov ecx, edx
shr ecx, 0x12
xor ecx, edx
cmp ecx, dword [edi + 8]
ja 0x4294b0
mov eax, dword [ebp - 4]
or ebx, ecx
add eax, dword [edi + 4]
mov dword [ebp - 4], eax
cmp eax, 0x20
jb 0x4294a0
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429530
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
dec eax
mov ecx, dword [ebp + 8]
xor esi, esi
xor ebx, ebx
test eax, eax
je 0x4295dc
nop dword [eax]
mov ecx, dword [edi + 4]
dec ecx
shl esi, cl
add esi, esi
mov dword [ebp - 4], esi
nop dword [eax + eax]
mov esi, dword [edi]
mov eax, dword [esi]
cmp eax, 0x270
jne 0x429574
mov ecx, esi
call fcn.00429640
jmp 0x429582
cmp eax, 0x4e0
jb 0x429582
mov ecx, esi
call fcn.00429690
mov eax, dword [esi]
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
cmp eax, dword [edi + 8]
ja 0x429560
mov ecx, dword [edi + 4]
mov esi, dword [ebp - 4]
dec ecx
shl ebx, cl
or esi, eax
mov ecx, dword [ebp + 8]
add ebx, ebx
or ebx, dword [edi + 8]
lea eax, [ecx - 1]
cmp ebx, eax
jb 0x429550
xor edx, edx
mov eax, ebx
div ecx
mov ecx, eax
mov ebx, edx
xor edx, edx
mov eax, esi
div dword [ebp + 8]
cmp eax, ecx
mov ecx, dword [ebp + 8]
jb 0x4295ff
lea eax, [ecx - 1]
cmp ebx, eax
jne 0x429540
mov eax, esi
xor edx, edx
div ecx
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push esi
lea eax, [ecx + 8]
mov esi, 0x270
nop dword [eax]
mov edx, dword [eax - 4]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, 0x7fffffff
xor edx, dword [eax - 8]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [eax + 0x62c]
xor ecx, edx
mov dword [eax + 0x9b8], ecx
sub esi, 1
jne 0x429650
pop esi
ret

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

Disassembly:
push ebx
mov ebx, ecx
mov ecx, 0xe3
push esi
push edi
lea edi, [ebx + 0x9c4]
mov edx, dword [edi + 4]
lea edi, [edi + 4]
xor edx, dword [edi - 4]
and edx, 0x7fffffff
xor edx, dword [edi - 4]
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, edx
mov dword [edi - 0x9c4], eax
sub ecx, 1
jne 0x4296a0
lea esi, [ebx + 0xd50]
mov edi, 0x18c
mov ecx, dword [esi + 4]
lea esi, [esi + 4]
xor ecx, dword [esi - 4]
and ecx, 0x7fffffff
xor ecx, dword [esi - 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi - 0xd50]
xor eax, ecx
mov dword [esi - 0x9c4], eax
sub edi, 1
jne 0x4296e2
mov ecx, dword [ebx + 0x1380]
xor ecx, dword [ebx + 4]
and ecx, 0x7fffffff
xor ecx, dword [ebx + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx + 0x9c0], eax
mov dword [ebx], edi
pop edi
pop esi
pop ebx
ret