joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7d3cd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, dword [esp + 0x28]
mov esi, dword [edi + 0x110]
mov dword [esp], esi
call fcn.007b7ca0
mov ebx, eax
test ebx, ebx
jne 0x7d3e4f
mov ebx, edi
imul edi, esi, 0x64
mov ebp, dword [edi + 0x818d34]
mov dword [esp + 0x10], ebp
mov eax, dword [edi + 0x818d38]
mov dword [esp], eax
call fcn.00492770
mov esi, eax
mov dword [esp], ebp
call fcn.00492770
mov ebp, eax
test esi, esi
je 0x7d3e32
test ebp, ebp
je 0x7d3e32
mov dword [esp + 4], ebp
mov dword [esp + 0xc], ebp
mov dword [esp], ebx
call dword [edi + 0x818d88]
mov ebx, eax
test ebx, ebx
jne 0x7d3e0f
lea ebp, [edi + 0x818d38]
cmp dword [ebp], 0
mov edx, dword [esp + 0x28]
je 0x7d3d75
xor eax, eax
nop dword [eax]
mov ecx, dword [edx + 0x228]
mov cl, byte [ecx + eax]
xor cl, 0x5c
mov byte [esi + eax], cl
inc eax
cmp eax, dword [ebp]
jb 0x7d3d60
mov dword [esp], edx
call dword [edi + 0x818d80]
mov ebx, eax
test ebx, ebx
jne 0x7d3e0f
mov eax, dword [ebp]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call dword [edi + 0x818d84]
mov ebx, eax
test ebx, ebx
jne 0x7d3e0f
lea eax, [edi + 0x818d84]
mov ecx, dword [esp + 0x10]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0xc]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp], ecx
call dword [eax]
mov ebx, eax
test ebx, ebx
jne 0x7d3e0f
lea eax, [edi + 0x818d88]
mov dword [esp + 4], esi
mov ecx, dword [esp + 0x28]
mov dword [esp], ecx
call dword [eax]
mov ebx, eax
test ebx, ebx
jne 0x7d3e0f
mov edi, dword [esp + 0x30]
xor ebx, ebx
cmp dword [esp + 0x10], 0
mov ecx, 0
je 0x7d3e0d
mov edx, dword [esp + 0x2c]
xor ecx, ecx
cmp ecx, dword [edi]
jae 0x7d3e0d
mov al, byte [esi + ecx]
mov byte [edx + ecx], al
inc ecx
cmp ecx, dword [esp + 0x10]
jb 0x7d3dfc
mov dword [edi], ecx
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x228]
mov dword [esp], eax
call fcn.004936c0
mov eax, dword [esp + 0xc]
mov dword [esp], eax
call fcn.004936c0
mov dword [esp], esi
jmp 0x7d3e4a
test esi, esi
je 0x7d3e3e
mov dword [esp], esi
call fcn.004936c0
mov ebx, 0xc
test ebp, ebp
je 0x7d3e4f
mov dword [esp], ebp
call fcn.004936c0
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x414838
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x425798], 1
jae 0x4148be
mov byte [0x4215f0], 2
mov dword [0x4251e8], 0x4205bc
mov dword [0x4251ec], 0x4205d4
mov byte [0x425226], 2
mov dword [0x4251d4], 0x413954
call fcn.004120f8
test al, al
je 0x41487b
call fcn.00412128
call fcn.004121ec
mov word [0x42522c], 0xd7b0
mov word [0x4253f8], 0xd7b0
mov word [0x4255c4], 0xd7b0
call fcn.00413848
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x425218], eax
call fcn.00410164
mov dword [0x425214], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x42520c], eax
ret

Function at 0x41a750
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x41a7b2
call fcn.0041a700
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004154e4
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004154e4
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x41a830
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4233c4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x41a90a
cmp dword [0x4233c0], 0
jne 0x41a90a
cmp dword [0x4235a4], 0
je 0x41a8c4
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0041a600
add esp, 8
mov ebx, eax
test eax, eax
jne 0x41a8aa
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0041a600
add esp, 8
mov ebx, eax
test eax, eax
jne 0x41a8aa
lea ebx, [ebp - 0x84]
jmp 0x41a8ab
inc ebx
call fcn.0041a7ec
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x41a945
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4233c8
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004154e4
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4233cb
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x41a945
cmp dword [0x4233c0], 0
je 0x41a924
cmp dword [0x4233c0], 0xffffffff
je 0x41a945
push esi
call dword [0x4233c0]
pop ecx
mov eax, dword [0x4233c4]
test eax, eax
je 0x41a945
cmp dword [0x4233c4], 0xffffffff
je 0x41a945
cmp byte [eax], 0
je 0x41a945
push esi
push eax
call fcn.0041a750
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408939
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x4085d8
call fcn.0040895a
xor dword [ebx], edi
mov eax, 0xb9c620e8
add eax, 0xce865f14
inc ebx
add eax, eax
cmp ebx, edx
jne fcn.00408939
ret
Function at 0x100092c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x100092e3
push dword [ebx + 0x74]
call eax
add esp, 4
push esi
mov esi, dword [ebx + 0x54]
test esi, esi
je 0x10009345
mov edi, dword [esi + 4]
xor edx, edx
mov eax, dword [edi + 0x60]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
mov eax, dword [edi + 0x54]
test eax, eax
je 0x1000933e
mov ecx, dword [eax + 8]
cmp eax, esi
je 0x10009311
mov edx, eax
mov eax, ecx
test eax, eax
jne 0x10009300
jmp 0x1000933e
test edx, edx
jne 0x1000931a
mov dword [edi + 0x54], ecx
jmp 0x1000931d
mov dword [edx + 8], ecx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1000932a
push esi
call eax
add esp, 4
mov ecx, esi
call fcn.10008960
mov eax, dword [ebp - 4]
push esi
push eax
mov eax, dword [eax + 8]
call eax
add esp, 8
mov esi, dword [ebx + 0x54]
test esi, esi
jne 0x100092eb
mov edi, dword [ebp + 8]
lea ecx, [ebx + 0x6c]
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x100093ce
test edi, edi
je 0x100093ce
mov eax, dword [ecx]
test eax, eax
je 0x100093c1
mov ebx, eax
nop
mov esi, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov dword [ebp - 4], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x10009376
push esi
call eax
add esp, 4
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x10009389
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x1000939a
push eax
mov eax, dword [edi + 8]
push edi
call eax
add esp, 8
mov dword [esi + 0x28], 0
mov eax, dword [edi + 8]
push esi
push edi
call eax
mov eax, dword [edi + 8]
push ebx
push edi
call eax
mov eax, dword [ebp - 4]
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x10009360
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [ebx + 0x30]
mov dword [ebx + 0x58], 0
test eax, eax
je 0x100093e2
push ebx
call eax
add esp, 4
mov edx, edi
mov ecx, ebx
call fcn.10009230
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x34]
test eax, eax
je 0x100093fb
push ebx
call eax
add esp, 4
mov esi, dword [ebx + 0x68]
mov eax, dword [ebx + 8]
mov dword [ebp + 0xc], eax
test esi, esi
je 0x10009431
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
mov dword [ebp + 0x10], eax
test ecx, ecx
je 0x1000941e
push esi
call ecx
mov eax, dword [ebp + 0x10]
add esp, 4
test dword [ebp + 0xc], 0x400
jne 0x10009431
push esi
push eax
mov eax, dword [eax + 8]
call eax
add esp, 8
mov eax, dword [ebx + 0x80]
mov dword [ebx + 0x68], 0
pop esi
test eax, eax
je 0x10009457
push eax
mov eax, dword [edi + 8]
push edi
call eax
add esp, 8
mov dword [ebx + 0x80], 0
mov eax, dword [edi + 8]
push ebx
push edi
call eax
add esp, 8
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10061d90
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
movzx ecx, word [edx + 0x14]
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0
jmp 0x10061dd2
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
add ecx, 0x28
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
movzx ecx, word [eax + 6]
cmp dword [ebp - 0x10], ecx
jge 0x10061ed6
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10], 0
jne 0x10061e53
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jle 0x10061e4e
push 4
push 0x1000
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10061e27
xor eax, eax
jmp 0x10061edb
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x10061dc0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp - 4]
add eax, dword [ecx + 0x10]
push eax
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.10061d60
test eax, eax
jne 0x10061e74
xor eax, eax
jmp 0x10061edb
push 4
push 0x1000
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10061e9f
xor eax, eax
jmp 0x10061edb
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + 0xc]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx + 8], eax
jmp 0x10061dc0
mov eax, 1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10062c60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x10062c7d
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x10062c84
mov al, 1
jmp 0x10062d6a
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x18], edx
call fcn.10063390
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
call dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
call fcn.10063390
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.100633a0
add esp, 8
movzx eax, al
test eax, eax
je 0x10062cca
xor al, al
jmp 0x10062d6a
mov dword [ebp - 0x2c], 0x20
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x50]
push edx
mov eax, dword [ebp - 4]
add eax, 0x40
push eax
mov ecx, dword [ebp - 0x24]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10062d0d
cmp dword [ebp - 8], 1
je 0x10062d14
cmp dword [ebp - 8], 3
je 0x10062d64
jmp 0x10062d68
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x3d], 0
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x50]
sub edx, eax
mov dword [ebp - 0xc], edx
je 0x10062d44
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 1
lea ecx, [ebp - 0x50]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0xc], eax
je 0x10062d44
xor al, al
jmp 0x10062d6a
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x3d]
test eax, eax
jne 0x10062d58
mov dword [ebp - 0x10], 1
jmp 0x10062d5f
mov dword [ebp - 0x10], 0
mov al, byte [ebp - 0x10]
jmp 0x10062d6a
mov al, 1
jmp 0x10062d6a
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x10064090
Capabilities:
Read 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 0x100640bc
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__::xsgetn_char___long_long___int64__]
jmp 0x100641aa
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0x10]
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__::_Gnavail_void_const]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x10064153
jg 0x100640e5
cmp dword [ebp + 0xc], 0
jbe 0x10064153
cmp dword [ebp - 8], 0
jl 0x10064153
jg 0x100640f3
cmp dword [ebp - 0xc], 0
jbe 0x10064153
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 8]
jg 0x10064111
jl 0x10064105
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0xc]
jae 0x10064111
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
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.10063310
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__::gbump_int_]
cmp dword [ebp + 0x10], 0
jl 0x1006419e
jg 0x10064161
cmp dword [ebp + 0xc], 0
jbe 0x1006419e
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x4c], 0
je 0x1006419e
mov ecx, dword [ebp - 4]
call fcn.10063000
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_fread]
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 0x100641b0
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 0x100641dc
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 0x100642c2
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0x10]
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 0x10064273
jg 0x10064205
cmp dword [ebp + 0xc], 0
jbe 0x10064273
cmp dword [ebp - 8], 0
jl 0x10064273
jg 0x10064213
cmp dword [ebp - 0xc], 0
jbe 0x10064273
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 8]
jg 0x10064231
jl 0x10064225
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0xc]
jae 0x10064231
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x10]
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.10063310
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_]
cmp dword [ebp + 0x10], 0
jl 0x100642b6
jg 0x10064281
cmp dword [ebp + 0xc], 0
jbe 0x100642b6
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x4c], 0
je 0x100642b6
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 0x1007cd80
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 0x1007cd9e
mov ecx, dword [ebp - 8]
call fcn.1007d310
jmp 0x1007cdb1
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4e0
jb 0x1007cdb1
mov ecx, dword [ebp - 8]
call fcn.1007d190
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 0x1007d190
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
jmp 0x1007d1ab
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xe3
jge 0x1007d217
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
and edx, 1
je 0x1007d1ef
mov dword [ebp - 0x10], 0x9908b0df
jmp 0x1007d1f6
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 + 0xff8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + ecx*4 + 4], eax
jmp 0x1007d1a2
jmp 0x1007d222
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x26f
jge 0x1007d28e
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx*4 + 0x9c4]
and eax, 0x80000000
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, dword [edx + ecx*4 + 0x9c8]
and ecx, 0x7fffffff
or eax, ecx
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
and edx, 1
je 0x1007d266
mov dword [ebp - 0x18], 0x9908b0df
jmp 0x1007d26d
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x14]
shr eax, 1
xor eax, dword [ebp - 0x18]
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 0x1007d219
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax*4 + 0x9c4]
and edx, 0x80000000
mov eax, 4
imul ecx, eax, 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + ecx + 4]
and ecx, 0x7fffffff
or edx, ecx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x1c]
and edx, 1
je 0x1007d2cc
mov dword [ebp - 0x20], 0x9908b0df
jmp 0x1007d2d3
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x1c]
shr eax, 1
xor eax, dword [ebp - 0x20]
mov ecx, 4
imul edx, ecx, 0x18c
mov ecx, dword [ebp - 8]
xor eax, dword [ecx + edx + 4]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [ecx + edx*4 + 4], eax
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
Function at 0x1007d310
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 0x1007d32b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x4e0
jge 0x1007d397
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 0x1007d36f
mov dword [ebp - 0x10], 0x9908b0df
jmp 0x1007d376
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 0x1007d322
mov esp, ebp
pop ebp
ret