joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fae1c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00417f2e
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4fae58
call fcn.004fb03b
mov dword [esi + 0xc], 1
jmp 0x4fae5d
call fcn.004fb03b
cmp dword [esi], 0
je 0x4faea6
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4fae80
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.004173e7
jmp 0x4fae91
push 0xff
mov ecx, esi
call fcn.00402780
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00411b4a
jmp 0x4faeca
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x4faeca
push dword [esi]
push dword [ebp - 4]
call fcn.004231fe
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4faf90
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004fb03b
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4fafd8
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004173e7
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00411b4a
jmp 0x4fafe3
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004231fe
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x50872b
Capabilities:
Get common file path

Disassembly:
push 0x124
mov eax, 0x5598d8
call fcn.00531203
mov ebx, ecx
mov dword [ebp - 0x12c], ebx
call fcn.004db775
push 0x1c4
call fcn.004040c3
pop ecx
mov dword [ebp - 0x128], eax
and dword [ebp - 4], 0
test eax, eax
je 0x50876e
push 0
push dword [ebx + 0x60]
mov ecx, eax
call fcn.004e0e6c
jmp 0x508770
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
push eax
call fcn.004dabbf
call fcn.00417bf4
mov esi, 0x104
mov eax, dword [eax + 4]
mov ebx, dword [eax + 0x8c]
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x114]
push eax
call fcn.00538ee0
mov edi, eax
pop ecx
mov byte [ebp + edi - 0x114], 0x5c
inc edi
cmp edi, esi
jae 0x50898d
xor eax, eax
mov byte [ebp + edi - 0x114], 0
mov dword [ebp - 0x128], eax
test ebx, ebx
je 0x508987
xor esi, esi
mov dword [ebp - 0x124], esi
cmp dword [ebx + 4], eax
jle 0x508987
call fcn.00413b9d
push eax
lea ecx, [ebp - 0x118]
call fcn.00402500
mov eax, dword [ebx]
xor ecx, ecx
inc ecx
push ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x114]
push edi
push ecx
push esi
lea ecx, [ebp - 0x118]
push ecx
mov ecx, ebx
call dword [eax + 0xc]
test eax, eax
je 0x508965
push 0x565474
mov esi, 0x565478
lea ecx, [ebp - 0x118]
push esi
call fcn.004303ba
push esi
push 0x5635cc
lea ecx, [ebp - 0x118]
call fcn.004303ba
push esi
push 0x565474
lea ecx, [ebp - 0x118]
call fcn.004303ba
call fcn.00413b9d
push eax
lea ecx, [ebp - 0x11c]
call fcn.00402500
mov eax, dword [ebp - 0x128]
mov byte [ebp - 4], 2
cmp eax, 9
jne 0x508891
push dword [ebp - 0x118]
lea eax, [ebp - 0x11c]
push str.10__Ts
push eax
call fcn.00402900
add esp, 0xc
jmp 0x5088c3
jge 0x5088b1
push dword [ebp - 0x118]
inc eax
push eax
lea eax, [ebp - 0x11c]
push str._d__Ts
push eax
call fcn.00402900
add esp, 0x10
jmp 0x5088c3
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00403b80
push 0x1c4
call fcn.004040c3
pop ecx
mov dword [ebp - 0x130], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x5088ed
mov ecx, eax
call fcn.00455325
mov ecx, eax
mov dword [ebp - 0x120], eax
jmp 0x5088f5
xor ecx, ecx
mov dword [ebp - 0x120], ecx
mov eax, dword [ecx]
mov esi, dword [ebp - 0x11c]
push esi
mov byte [ebp - 4], 2
call dword [eax + 0xb4]
mov ecx, dword [ebp - 0x120]
mov eax, dword [ebp - 0x124]
add eax, 0xe110
push eax
mov edx, dword [ecx]
call dword [edx + 0xb0]
push dword [ebp - 0x124]
mov ecx, ebx
call fcn.004170de
mov ecx, dword [ebp - 0x120]
push dword [eax]
mov edx, dword [ecx]
call dword [edx + 0xc8]
mov ecx, dword [ebp - 0x120]
push ecx
mov ecx, dword [ebp - 0x12c]
call fcn.004dabbf
inc dword [ebp - 0x128]
lea ecx, [esi - 0x10]
call fcn.00402620
mov esi, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x118]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00402620
inc esi
mov dword [ebp - 0x124], esi
cmp esi, dword [ebx + 4]
jl 0x5087e6
call fcn.005311ad
ret
call fcn.00530e87
int3
Function at 0x50abc3
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x50ac11
push esi
mov ebx, 0x811c9dc5
xor edi, edi
call fcn.00538ee0
xor edx, edx
mov dword [ebp + 8], 0xa
pop ecx
mov ecx, eax
div dword [ebp + 8]
inc eax
test ecx, ecx
je 0x50ac06
mov edx, ecx
movsx ecx, byte [edi + esi]
add edi, eax
imul ebx, ebx, 0x1000193
xor ebx, ecx
cmp edi, edx
jb 0x50abf4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004136db
int3

Function at 0x52a0ef
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00401f60
call fcn.00417c48
cmp dword [eax + 0x14], 0
jne 0x52a10a
mov ecx, esi
pop esi
jmp fcn.005299cc
pop esi
ret
Function at 0x52b5a7
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
call dword [eax + 0x178]
mov bx, word [ebp + 8]
mov edi, eax
push 2
movzx edx, bx
push edx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
cmp byte [ebp + 0xc], 0
jne 0x52b5e8
test edi, edi
js 0x52b5e8
cmp al, 0x20
je 0x52b5dd
cmp bx, 0x71
jne 0x52b5e8
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x190]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x549fe8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00549ca8
Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43200c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
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
nop
nop
nop
jl 0x432030
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x10016120
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10171d61
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x10248500]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 1
jne 0x1001622c
mov eax, dword [0x109562d8]
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx + eax*4]
mov eax, dword [0x10941f64]
cmp eax, dword [edx + 4]
jle 0x100161b3
push 0x10941f64
call fcn.1016fc6b
add esp, 4
cmp dword [0x10941f64], 0xffffffff
jne 0x100161b3
mov dword [ebp - 4], 0
push str.56_8B_71_3C_B8
push 0x1017e5c0
call fcn.10091170
add esp, 8
mov dword [0x10941f60], eax
mov dword [ebp - 4], 0xffffffff
push 0x10941f64
call fcn.1016fc1a
add esp, 4
cmp dword [0x10941f60], 0
je 0x100161ce
mov ecx, dword [0x10941f60]
mov dword [ebp - 0x18], ecx
xor edx, edx
mov ecx, dword [ebp + 8]
call dword [ebp - 0x18]
nop
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0x10012b50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10016203
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
push 0
push 0
push 0
push 0x10051810
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x1001622c
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1001fea0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movsx eax, byte [edx + ecx]
test eax, eax
jne 0x1001febf
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
jmp 0x1001feef
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx + eax]
xor edx, dword [ebp + 0xc]
imul eax, edx, 0x1000193
push eax
mov ecx, 1
shl ecx, 0
add ecx, dword [ebp + 8]
push ecx
call fcn.1001fea0
add esp, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x10024de0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x10024e00
jl 0x10024df7
cmp dword [ebp + 0xc], 0
ja 0x10024e00
xor eax, eax
xor edx, edx
jmp 0x10024f48
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x10024e23
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
jmp 0x10024f48
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 8]
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x10024e96
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.1000f1e0
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.10015770
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int_]
nop
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x10024f39
mov ecx, dword [ebp - 8]
call fcn.10022160
mov dword [ebp - 0x20], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x10024f07
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0xfff
je 0x10024f05
xor eax, eax
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
sbb edx, eax
mov eax, ecx
jmp 0x10024f48
jmp 0x10024eb2
cmp dword [ebp - 4], 0
jbe 0x10024f39
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x24]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10024f50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x10024f7c
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
jmp 0x10025063
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x10025014
jg 0x10024fa5
cmp dword [ebp + 0xc], 0
jbe 0x10025014
cmp dword [ebp - 8], 0
jl 0x10025014
jg 0x10024fb3
cmp dword [ebp - 0xc], 0
jbe 0x10025014
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 8]
jg 0x10024fd1
jl 0x10024fc5
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0xc]
jae 0x10024fd1
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
push eax
call fcn.10015770
add esp, 0xc
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
sbb edx, dword [ebp - 8]
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int_]
nop
cmp dword [ebp + 0x10], 0
jl 0x10025057
jg 0x10025022
cmp dword [ebp + 0xc], 0
jbe 0x10025057
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x4c], 0
je 0x10025057
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100443f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jne 0x10044403
xor al, al
jmp 0x10044499
mov eax, dword [ebp + 8]
cmp dword [eax*4 + 0x1094bfb8], 1
jne 0x10044430
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x10044425
mov byte [ebp - 1], 1
jmp 0x10044429
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
jmp 0x10044499
mov edx, dword [ebp + 8]
cmp dword [edx*4 + 0x1094bfb8], 2
jne 0x10044486
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx ecx, ax
and ecx, 1
je 0x10044479
mov edx, dword [ebp + 8]
movzx eax, byte [edx + 0x1094c870]
test eax, eax
jne 0x10044466
mov dword [ebp - 8], 1
jmp 0x1004446d
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 8]
mov dl, byte [ebp - 8]
mov byte [ecx + 0x1094c870], dl
mov eax, dword [ebp + 8]
mov al, byte [eax + 0x1094c870]
jmp 0x10044499
mov ecx, dword [ebp + 8]
cmp dword [ecx*4 + 0x1094bfb8], 3
jne 0x10044497
mov al, 1
jmp 0x10044499
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x1008aac0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
jmp 0x1008aad6
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp dword [ebp - 4], eax
jae 0x1008ab02
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movsx eax, byte [edx]
xor eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
imul ecx, dword [ebp + 0xc], 0x1000193
mov dword [ebp + 0xc], ecx
jmp 0x1008aacd
mov eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x1008f5e0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x270
jne 0x1008f5ff
mov ecx, dword [ebp - 8]
call fcn.10090650
nop
jmp 0x1008f613
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4e0
jb 0x1008f613
mov ecx, dword [ebp - 8]
call fcn.100904b0
nop
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4 + 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 8]
mov dword [edx], ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shr ecx, 0xb
mov edx, dword [ebp - 8]
and ecx, dword [edx + 0x1384]
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
shl eax, 7
and eax, 0x9d2c5680
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
shr edx, 0x12
xor edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x1008fd90
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push str.RandomSeed
push 0x101d1ad8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1094da68], eax
cmp dword [0x1094da68], 0
jne 0x1008fdbf
xor al, al
jmp 0x1008fe75
push str.RandomFloat
push 0x101d1af0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1094da6c], eax
cmp dword [0x1094da6c], 0
jne 0x1008fdeb
xor al, al
jmp 0x1008fe75
push str.RandomFloatExp
push 0x101d1b0c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10951a60], eax
cmp dword [0x10951a60], 0
jne 0x1008fe14
xor al, al
jmp 0x1008fe75
push str.RandomInt
push 0x101d1b24
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1094c4f4], eax
cmp dword [0x1094c4f4], 0
jne 0x1008fe3d
xor al, al
jmp 0x1008fe75
push str.RandomGaussianFloat
push str.vstdlib.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10951a64], eax
cmp dword [0x10951a64], 0
jne 0x1008fe66
xor al, al
jmp 0x1008fe75
push str.Math_initialized
call fcn.1000d800
add esp, 4
mov al, 1
pop ebp
ret
Function at 0x100904b0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], ecx
mov dword [ebp - 0x28], 0x26f
mov dword [ebp - 0x2c], 0xe3
mov dword [ebp - 8], 0
jmp 0x100904d9
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xe3
jae 0x10090545
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
and edx, 1
je 0x1009051d
mov dword [ebp - 0x14], 0x9908b0df
jmp 0x10090524
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
shr eax, 1
xor eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
xor eax, dword [edx + ecx*4 + 0xff8]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 4], eax
jmp 0x100904d0
mov dword [ebp - 0xc], 0xe3
jmp 0x10090557
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x26f
jae 0x100905c3
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
and edx, 1
je 0x1009059b
mov dword [ebp - 0x1c], 0x9908b0df
jmp 0x100905a2
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
shr eax, 1
xor eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4 + 4], eax
jmp 0x1009054e
mov dword [ebp - 0x30], 0x26f
mov eax, 4
imul ecx, eax, 0x4df
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx + 4]
and eax, 0x80000000
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + edx + 4]
and edx, 0x7fffffff
or eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
and eax, 1
je 0x1009060c
mov dword [ebp - 0x24], 0x9908b0df
jmp 0x10090613
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp - 0x20]
shr ecx, 1
xor ecx, dword [ebp - 0x24]
mov edx, 4
imul eax, edx, 0x18c
mov edx, dword [ebp - 4]
xor ecx, dword [edx + eax + 4]
mov eax, 4
imul edx, eax, 0x26f
mov eax, dword [ebp - 4]
mov dword [eax + edx + 4], ecx
mov ecx, dword [ebp - 4]
mov dword [ecx], 0
mov esp, ebp
pop ebp
ret
Function at 0x10090650
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0x270
jmp 0x1009066b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x4e0
jae 0x100906d7
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 - 0x9bc]
and eax, 0x80000000
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + ecx*4 - 0x9b8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
and edx, 1
je 0x100906af
mov dword [ebp - 0x10], 0x9908b0df
jmp 0x100906b6
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
shr eax, 1
xor eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
xor eax, dword [edx + ecx*4 - 0x388]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], eax
jmp 0x10090662
mov esp, ebp
pop ebp
ret

Function at 0x10091080
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10248500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.10091420
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x100910ac
xor eax, eax
jmp 0x1009115d
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x100910cd
xor eax, eax
jmp 0x1009115d
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx], 0x4550
je 0x100910e8
xor eax, eax
jmp 0x1009115d
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.100908b0
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x50]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.100911f0
add esp, 0x14
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x1009115a
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
lea eax, [edx + ecx*2]
call fcn.10170200
mov dword [ebp - 0x24], esp
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.10090f70
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
lea esp, [ebp - 0x2c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1016fccf
mov esp, ebp
pop ebp
ret