joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10470160
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.104702b0
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x10470186
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10470172
add dl, dl
jne 0x10470191
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x104701e4
xor eax, eax
add dl, dl
jne 0x1047019e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10470285
add dl, dl
jne 0x104701ad
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104701b8
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104701c3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104701ce
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x104701da
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1047017d
mov eax, 1
add dl, dl
jne 0x104701f2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104701fd
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104701e9
sub eax, ebx
mov ebx, 1
jne 0x10470230
mov ecx, 1
add dl, dl
jne 0x10470216
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10470221
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1047020d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1047017d
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10470247
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10470252
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1047023e
cmp eax, 0x7d00
jae 0x10470275
cmp eax, 0x500
jb 0x10470270
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1047017d
cmp eax, 0x7f
ja 0x10470278
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1047017d
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x104702a6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1047017d
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x43d0c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
cmp dword [edx + 0x10], 0
mov edi, edx
jne 0x43d1d5
mov ebx, dword [edi + 0xc]
mov esi, ecx
mov edx, dword [ebx + 4]
test edx, edx
jne 0x43d0f6
mov eax, dword [ebx + 8]
xor edx, edx
mov ecx, eax
neg ecx
cmp ecx, 0xf
jbe 0x43d1bf
mov eax, dword [ebx + 8]
cmp edx, eax
je 0x43d1a8
mov ecx, dword [edi + 8]
sub edx, eax
add eax, dword [ebx]
mov dword [esp + 4], 0
lea ebx, [esp + 4]
push ecx
push ebx
push edx
push eax
push dword [edi]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
je 0x43d136
mov eax, dword [esp + 4]
mov ecx, 2
test eax, eax
jne 0x43d184
mov byte [esi + 1], 0
jmp 0x43d18e
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x3e5
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
je 0x43d160
cmp eax, 0x6d
jne 0x43d19a
lea eax, [esp + 8]
mov dword [esp], 1
jmp 0x43d162
mov eax, esp
mov dword [eax], 0
lea eax, [esp + 0xc]
push eax
call fcn.00419780
add esp, 4
mov eax, dword [esp + 8]
cmp dword [esp], 1
mov ecx, 1
je 0x43d127
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], eax
mov byte [esi + 1], 1
xor eax, eax
mov byte [esi], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov al, 1
jmp 0x43d190
mov ecx, ebx
push 1
call fcn.0041c980
add esp, 4
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
jmp 0x43d101
mov edx, eax
mov ecx, ebx
push 0x10
call fcn.0041c980
add esp, 4
mov edx, dword [ebx + 4]
jmp 0x43d0f6
add edi, 0x10
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov ecx, edi
call fcn.0043d2d0
ud2
Function at 0x4403c0
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov eax, dword [0x44c034]
test eax, eax
jne 0x4403dd
mov ecx, 0x44c034
call fcn.00419540
push eax
call sub.KERNEL32.DLL_TlsGetValue
cmp eax, 1
jbe 0x4403f8
mov esi, eax
mov eax, dword [eax]
xor eax, 1
or eax, dword [esi + 4]
je 0x440499
mov eax, dword [0x44c034]
test eax, eax
jne 0x44040b
mov ecx, 0x44c034
call fcn.00419540
push eax
call sub.KERNEL32.DLL_TlsGetValue
cmp eax, 1
je 0x44049e
mov esi, eax
test eax, eax
jne 0x440467
mov ecx, 0x20
mov edx, 8
call fcn.00407660
test eax, eax
je 0x440501
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x18], 0x44c034
mov esi, eax
mov eax, dword [0x44c034]
test eax, eax
jne 0x440460
mov ecx, 0x44c034
call fcn.00419540
push esi
push eax
call sub.KERNEL32.DLL_TlsSetValue
xorps xmm0, xmm0
lea eax, [esp + 0x30]
movaps xmmword [esp + 0x30], xmm0
push 2
push 0x10
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
jne 0x4404a8
movaps xmm0, xmmword [esp + 0x30]
mov dword [esi + 4], 0
mov dword [esi], 1
movups xmmword [esi + 8], xmm0
add esi, 8
jmp 0x4404a0
xor esi, esi
mov eax, esi
lea esp, [ebp - 4]
pop esi
pop ebp
ret
call sub.KERNEL32.DLL_GetLastError
lea edx, [esp + 0x10]
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0x451ce0
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 8], edx
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov edx, 0x451d0c
mov dword [esp + 0xc], 0x4335a0
mov dword [esp + 0x2c], 1
call fcn.00408480
ud2
mov ecx, 0x20
mov edx, 8
call fcn.00407ab0
ud2
Function at 0x440700
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
mov edi, ecx
mov ecx, esp
push dword [ebp + 8]
call fcn.004323e0
add esp, 4
mov esi, dword [esp + 4]
cmp dword [esp], 1
mov ebx, dword [esp + 8]
jne 0x44073a
mov dword [edi + 4], esi
mov dword [edi + 8], ebx
mov dword [edi], 1
jmp 0x4407f5
mov edx, dword [ebp + 0xc]
mov ecx, esp
push dword [ebp + 0x10]
call fcn.004323e0
add esp, 4
cmp dword [esp], 1
jne 0x44077a
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [edi + 8], ecx
mov dword [edi + 4], eax
mov dword [edi], 1
test ebx, ebx
je 0x4407f5
test esi, esi
je 0x4407f5
add ebx, ebx
jne 0x4407e9
jmp 0x4407f5
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 0x18], ecx
push 0
push 0
lea ecx, [esp + 8]
push ecx
push 0x440840
mov dword [esp + 0x24], eax
push eax
push esi
call sub.KERNEL32.DLL_CopyFileExW
test eax, eax
je 0x4407fd
mov eax, dword [esp]
mov ecx, dword [esp + 4]
test dword [esp + 0x18], 0x7fffffff
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
mov dword [edi], 0
je 0x4407dd
mov ecx, dword [esp + 0x14]
mov edx, 2
call fcn.004076c0
test ebx, ebx
je 0x4407f5
test ebx, 0x7fffffff
je 0x4407f5
mov ecx, esi
mov edx, 2
call fcn.004076c0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.KERNEL32.DLL_GetLastError
test dword [esp + 0x18], 0x7fffffff
mov dword [edi + 8], eax
mov dword [edi + 4], 0
mov dword [edi], 1
je 0x440764
mov ecx, dword [esp + 0x14]
mov edx, 2
call fcn.004076c0
jmp 0x440764
Function at 0x445fa1
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
and dword [ebp - 0x10], 0
cmp dword [edx + 8], 1
mov esi, edx
mov ebx, ecx
jne 0x44603e
push 0x452592
call sub.oleaut32.dll_SysAllocString
mov dword [ebp - 0x1c], eax
push 0x45259a
call sub.oleaut32.dll_SysAllocString
mov edi, eax
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0xc]
lea edx, [ebp - 0x10]
mov ecx, dword [eax]
push edx
push 0
push 0x30
push edi
mov edi, dword [ebp - 0x1c]
push edi
push eax
call dword [ecx + 0x50]
mov dword [ebp - 0x14], eax
push edi
call sub.oleaut32.dll_SysFreeString
push dword [ebp - 0x18]
call sub.oleaut32.dll_SysFreeString
cmp dword [ebp - 0x14], 0
js 0x44603e
mov edi, dword [ebp - 0x10]
lea ecx, [esi + 0x10]
call fcn.004462a7
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], edi
movsd xmm1, qword [esi + 8]
mov eax, dword [esi + 0x18]
movsd xmm0, qword [esi]
movsd qword [ebx + 8], xmm1
movsd xmm1, qword [esi + 0x10]
mov dword [ebx + 0x18], eax
movsd qword [ebx], xmm0
movsd qword [ebx + 0x10], xmm1
jmp 0x44604b
mov ecx, esi
mov dword [ebx], 2
call fcn.0044622c
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x44a470
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.0044b1b0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x4531dc
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.0044b1b0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x44a4d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x45b188]
test esi, esi
jle 0x44a5f0
mov eax, dword [0x45b18c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x44a504
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x44a587
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x44a4f0
mov dword [esp], ebx
call fcn.0044ae30
mov edi, eax
test eax, eax
je 0x44a617
mov eax, dword [0x45b18c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0044af70
mov edx, dword [0x45b18c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x44a5f7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x44a580
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x44a590
add dword [0x45b188], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x45b18c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x44a580
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp], 0x45324c
mov dword [esp + 4], eax
call fcn.0044a470
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x44a50e
mov eax, dword [0x45b18c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], 0x453218
mov dword [esp + 4], eax
call fcn.0044a470
mov dword [esp + 4], ebx
mov dword [esp], 0x4531f8
call fcn.0044a470
lea esi, [esi]
nop

Function at 0x44aab0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x45b1a4
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov ebx, dword [0x45b19c]
sub esp, 4
test ebx, ebx
je 0x44ab05
mov ebp, dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x44aafe
test esi, esi
je 0x44aafe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x44aae0
mov dword [esp], 0x45b1a4
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x44ae30
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x44ae55
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x44ae60
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x44ae55
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x44aea8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x44ae9e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x44aeaa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x44ae90
xor eax, eax
pop ebx
pop esi
ret
Function at 0x402f5c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x402f87
mov ecx, dword [0x423778]
push esi
add eax, ecx
push esi
push eax
mov dword [0x4168dc], eax
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00403064
cmp eax, esi
jl 0x40305e
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40901c]
call fcn.00405b4e
test eax, eax
je 0x40304e
push dword [ebp + 8]
add dword [0x4168dc], 4
call fcn.00403064
mov ebx, eax
cmp ebx, esi
jl 0x40305c
cmp dword [ebp + 0x10], esi
jne 0x40302a
cmp dword [ebp + 8], esi
jle 0x40305c
mov esi, 0x4128d8
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x402fec
mov eax, 0x4000
push eax
push esi
push dword [0x40901c]
mov dword [ebp - 4], eax
call fcn.00405b4e
test eax, eax
je 0x40304e
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00405b7d
test eax, eax
je 0x403026
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x4168dc], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x402fdb
jmp 0x40305c
push 0xfffffffffffffffe
jmp 0x403050
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403035
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403053
push 0xfffffffffffffffd
pop eax
jmp 0x40305e
mov ebx, dword [ebp - 4]
add dword [0x4168dc], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10

Function at 0x40596e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x4059ae
lea eax, [ebp - 0x714]
push eax
call fcn.00403928
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.004038dd
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
je 0x4059b9
jmp 0x4059be
jmp 0x4052ba

Function at 0x405ad6
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
sbb al, 0x18
je 0x405adc
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.00403918
mov al, byte [0x8b4dcde3]
clc
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.00403918
cmp al, 0x8d
fadd qword [ebx - 0x74cb74b7]
dec ecx
mov esi, dword [ebx + ecx*4]

Function at 0x405b05
Capabilities:
Read file on windows

Disassembly:
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne fcn.00405b05
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne fcn.00405b05
call fcn.00403918
adc dword [edi - 0x7a], 0x3c
mov ebx, dword [edx + 0x24]
add ebx, edi
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.00403918
mov ebp, 0xff156047
jne 0x405b4f
push dword [ebp + 4]
push dword [ebp]
invalid
Function at 0x40edf0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x5db470], eax
xor eax, eax
nop
add eax, 1
mov ecx, dword [eax*4 + 0x5db46c]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul edx, edx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x5db470], edx
cmp eax, 0x26f
jl 0x40edf8
mov dword [0x559000], 0x270
ret

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

Disassembly:
push ebx
mov eax, 0xffffffff
mov esi, esi
add eax, 1
mov ecx, dword [eax*4 + 0x5db474]
mov ebx, dword [eax*4 + 0x5db470]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x5dbaa4]
mov dword [eax*4 + 0x5db470], edx
cmp eax, 0xe2
jl 0x40ee38
mov eax, 0xe2
lea esi, [esi]
add eax, 1
mov ecx, dword [eax*4 + 0x5db474]
mov ebx, dword [eax*4 + 0x5db470]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x5db0e4]
mov dword [eax*4 + 0x5db470], edx
cmp eax, 0x26e
jl 0x40ee88
mov edx, dword [0x5db470]
mov ecx, dword [0x5dbe2c]
mov eax, edx
and eax, 1
neg eax
and eax, 0x9908b0df
and ecx, 0x80000000
and edx, 0x7fffffff
or ecx, edx
shr ecx, 1
xor eax, ecx
xor eax, dword [0x5dbaa0]
mov dword [0x5dbe2c], eax
mov dword [0x559000], 0
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, dword [0x559000]
add dword [0x559000], 1
mov eax, dword [0x5da020]
cmp eax, dword [0x558750]
jne 0x40ef33
cmp ebx, 0x271
jb 0x40ef54
mov eax, dword [0x5da020]
call fcn.0040edf0
not dword [0x5da020]
mov eax, dword [0x5da020]
mov dword [0x558750], eax
mov ebx, 0x270
mov esi, esi
cmp ebx, 0x270
jne 0x40ef70
call fcn.0040ee30
xor ebx, ebx
mov dword [0x559000], 1
lea esi, [esi]
mov edx, dword [ebx*4 + 0x5db470]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor edx, eax
mov ecx, edx
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop ebx
ret
Function at 0x410a50
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x558480]
cmp ax, 0xcb
je 0x410b5c
cmp ax, 0xcc
je 0x410b5c
lea esi, [esi]
mov edx, dword [0x5dc070]
test edx, edx
je 0x410a85
mov eax, dword [0x5dbf20]
call edx
mov ebx, eax
jmp 0x410a8a
mov ebx, 0x5dbf24
cmp word [0x5dbf10], 0
jle 0x410ab0
mov eax, 0x5dbef0
call fcn.00410cc0
mov eax, ebx
call fcn.00410610
mov eax, ebx
call fcn.00410680
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x410ad2
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x410acd
mov edx, edi
mov eax, ebx
call fcn.0040fa80
jmp 0x410ad0
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x410ab8
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x5dbf10], 0
jle 0x410b5c
mov edx, 0x5dbe30
mov eax, ebx
call fcn.0040fbc0
mov edi, eax
test edi, edi
je 0x410b2c
mov eax, dword [0x5dbec4]
mov dword [edi + 0xc], eax
cmp dword [0x5dbec4], 0
je 0x410b20
mov eax, dword [0x5dbec4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x5dbec4], eax
nop
sub word [0x5dbf10], 1
cmp word [0x5dbf10], 0
sete bl
mov eax, 0x5dbef0
call fcn.00410ce0
test bl, bl
je 0x410b5c
mov eax, 0x5dbef0
call fcn.00410cb0
lea esi, [esi]
pop edi
pop esi
pop ebx
ret
Function at 0x4129a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x20]
push ebx
push esi
push edi
mov byte [ebp - 0x20], al
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
xor eax, eax
push fcn.00412980
push ebp
push 0x413d20
push dword fs:[eax]
mov dword fs:[eax], esp
test byte [ebp - 0x20], 0xff
je 0x412aca
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
mov word [ebp - 8], ax
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0
mov word [ebp - 2], 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0040b5f0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
test edx, edx
jne 0x412a2f
mov edx, 0x5db2f0
push edx
push esi
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov ebx, eax
test ebx, ebx
jne 0x412a81
call sub.kernel32.dll_GetLastError
call fcn.00404010
lea eax, [ebp - 0x10]
call fcn.0040a130
movzx eax, byte [ebp - 0x20]
sub eax, 0xffffffc0
lea edx, [ebp - 0x14]
call fcn.0040a5d0
mov edx, dword [ebp - 0x14]
mov ecx, 0x576330
lea eax, [ebp - 0x10]
call fcn.0040a460
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.0040ae20
jmp 0x412b18
mov eax, esi
mov edx, 0
sub eax, 1
sbb edx, 0
mov ecx, ebx
xor edi, edi
cmp edx, edi
jne 0x412a9a
cmp eax, ecx
je 0x412aa4
mov eax, dword [ebp - 0x1c]
mov edx, ebx
call fcn.0040b5f0
cmp byte [0x558710], 0
jne 0x412b18
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040bb90
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040aeb0
lea esi, [esi]
jmp 0x412b18
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
lea edx, [esi - 1]
mov eax, dword [ebp - 0x1c]
call fcn.0040b5f0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
test eax, eax
jne 0x412aee
mov eax, 0x5db2f0
push eax
push esi
call sub.kernel32.dll_GetCurrentDirectoryW
cmp byte [0x558710], 0
jne 0x412b18
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
lea edx, [ebp - 0x18]
call fcn.0040bb90
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
call fcn.0040aeb0
mov esi, esi
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.00412980
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412eb0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x10c], 0
mov dword [0x5db260], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, eax
xor edx, edx
mov eax, ebp
call fcn.00413090
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x5db260]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.00403590
call sub.kernel32.dll_GetCommandLineA
mov dword [0x558520], eax
mov ebx, eax
jmp 0x413053
add ebx, 1
movzx eax, byte [ebx]
sub eax, 1
cmp eax, 0x20
jb 0x412f38
cmp byte [ebx], 0
je 0x41305c
nop
mov byte [ebp - 0x114], 0
mov edi, ebx
mov dword [ebp - 0x110], 0
jmp 0x412fb3
mov al, byte [ebx]
cmp al, 1
jb 0x412fa8
sub al, 0x20
jbe 0x412f78
sub al, 2
je 0x412f8c
jmp 0x412fa8
mov al, byte [ebp - 0x114]
test al, al
je 0x412fb8
add dword [ebp - 0x110], 1
jmp 0x412fb0
cmp byte [ebx + 1], 0x22
je 0x412fa3
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x412fb0
add ebx, 1
jmp 0x412fb0
add dword [ebp - 0x110], 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x412f68
test dword [ebp - 0x10c], 0xffffffff
je 0x41304c
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x10c]
mov eax, ebp
call fcn.00413090
mov byte [ebp - 0x114], 0
mov ebx, edi
mov eax, dword [0x5db260]
mov edx, dword [ebp - 0x10c]
mov esi, dword [eax + edx*4]
jmp 0x413043
mov al, byte [ebx]
cmp al, 1
jb 0x413038
sub al, 0x20
jbe 0x413008
sub al, 2
je 0x41301c
jmp 0x413038
mov al, byte [ebp - 0x114]
test al, al
je 0x413048
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
jmp 0x413040
cmp byte [ebx + 1], 0x22
je 0x413033
mov al, byte [ebp - 0x114]
test al, al
sete byte [ebp - 0x114]
jmp 0x413040
add ebx, 1
jmp 0x413040
mov al, byte [ebx]
mov byte [esi], al
add esi, 1
nop
add ebx, 1
cmp byte [ebx], 0
jne 0x412ff8
mov byte [esi], 0
nop
add dword [ebp - 0x10c], 1
cmp byte [ebx], 0
jne 0x412f3b
mov ebx, dword [ebp - 0x10c]
mov dword [0x5db250], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x5db260
call fcn.00410890
mov eax, dword [0x5db260]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret