joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3a1b80
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3cc
mov eax, dword [0x3b0008]
xor eax, esp
mov dword [esp + 0x3c8], eax
push ebx
push esi
push edi
push str.__DumpIt___v1.3.2.20110401___One_click_memory_memory_dumper_n
call fcn.003a1060
add esp, 4
push 0x3ae348
call fcn.003a1e01
add esp, 4
push str.__Copyright__c__2010___2011__MoonSols__http:__www.moonsols.com__n_n
call fcn.003a1e01
add esp, 4
call fcn.003a17e0
test al, al
jne 0x3a1bf6
push str._______Error:_Cannot_import_functions._n
call fcn.003a1000
add esp, 4
call fcn.003a2140
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c8]
xor ecx, esp
call fcn.003a1db6
mov esp, ebp
pop ebp
ret
xor ebx, ebx
lea eax, [esp + 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x44], ebx
mov word [esp + 0x48], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [esp + 0xc], eax
cmp eax, ebx
je 0x3a1c54
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x3a1c43
mov dword [esp + 0xc], ebx
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [esp + 0xc], ebx
jne 0x3a1c7d
push str._______Error:_This_application_requires_Administrator_privileges._n
call fcn.003a1000
add esp, 4
call fcn.003a2140
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c8]
xor ecx, esp
call fcn.003a1db6
mov esp, ebp
pop ebp
ret
call fcn.003a1a70
test al, al
jne 0x3a1caf
push str._______You_dont_have_enough_space_on_disk_to_dump_the_physical_memory._n
call fcn.003a1000
add esp, 4
call fcn.003a2140
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c8]
xor ecx, esp
call fcn.003a1db6
mov esp, ebp
pop ebp
ret
push 0x3b0
lea edx, [esp + 0x24]
push ebx
push edx
call fcn.003a76b0
add esp, 0xc
lea edi, [esp + 0x94]
mov dword [esp + 0x28], 0x300021
call fcn.003a1870
push str._____Destination_
call fcn.003a1060
add esp, 4
mov eax, edi
push eax
push 0x3ae5f8
call fcn.003a10c0
add esp, 8
call fcn.003a1120
test eax, eax
je 0x3a1d9f
call fcn.003a19c0
mov esi, eax
cmp esi, 0xffffffff
je 0x3a1d9f
push str._____Processing...
call fcn.003a1060
add esp, 4
push ebx
lea ecx, [esp + 0x18]
push ecx
push 0x3b0
lea edx, [esp + 0x2c]
push edx
push 0x3b0
mov eax, edx
push eax
push 0x22c000
push esi
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x3a1d65
push str.Failed._r_n_r_n
call fcn.003a1e01
add esp, 4
push str._______Error:_DeviceIoControl____Cannot_send_IOCTL._r_n_r_n
call fcn.003a1e01
add esp, 4
jmp 0x3a1d93
cmp dword [esp + 0x24], ebx
jl 0x3a1d81
cmp dword [esp + 0x20], 0x57333244
jne 0x3a1d81
push str.Success._n
call fcn.003a10c0
jmp 0x3a1d8b
push str.Failed._n
call fcn.003a1000
add esp, 4
call fcn.003a2140
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.003a1720
mov ecx, dword [esp + 0x3d4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.003a1db6
mov esp, ebp
pop ebp
ret
Function at 0x3a1db6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3b0008]
jne 0x3a1dc0
repz ret
jmp fcn.003a22d9

Function at 0x3a8f75
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x3b0008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.003a5809
and dword [ebp - 0x14], 0
cmp dword [0x3b1b20], 0
mov dword [ebp - 0x18], eax
jne 0x3a9028
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x3a90d0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x3a90d0
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x3b1b20], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x3b1b24], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x3b1b28], eax
call edi
push eax
call esi
mov dword [0x3b1b30], eax
test eax, eax
je 0x3a9028
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x3b1b2c], eax
mov eax, dword [0x3b1b2c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x3a9081
cmp dword [0x3b1b30], ecx
je 0x3a9081
push eax
call esi
push dword [0x3b1b30]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x3a9081
test ebx, ebx
je 0x3a9081
call edi
test eax, eax
je 0x3a9078
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x3a9078
test byte [ebp - 8], 1
jne 0x3a9081
or dword [ebp + 0x10], 0x200000
jmp 0x3a90b4
mov eax, dword [0x3b1b24]
cmp eax, dword [ebp - 0x18]
je 0x3a90b4
push eax
call esi
test eax, eax
je 0x3a90b4
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x3a90b4
mov eax, dword [0x3b1b28]
cmp eax, dword [ebp - 0x18]
je 0x3a90b4
push eax
call esi
test eax, eax
je 0x3a90b4
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x3b1b20]
call esi
test eax, eax
je 0x3a90d0
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x3a90d2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.003a1db6
leave
ret
Function at 0x401650
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4050f5
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x408040]
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
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov ebx, eax
test ebx, ebx
jne 0x40168e
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0xfffffffffffffff0
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0xfffaffff
push eax
push 0xfffffffffffffff0
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
call edi
mov esi, eax
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleCursorInfo]
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
push 1
push 0x190
push 0x320
push 0
push 0
push ebx
call dword [sym.imp.USER32.dll_MoveWindow]
push 5
push 0
push 0
push 0x32
push 0x64
push 0xffffffffffffffff
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xfffffffffffffff0
push ebx
call esi
and eax, 0xfff8ffff
push eax
push 0xfffffffffffffff0
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0xfffffffffffffff5
call edi
mov edi, eax
lea eax, [ebp - 0x3c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov ecx, dword [ebp - 0x2e]
sub ecx, dword [ebp - 0x32]
inc ecx
mov word [ebp - 0x14], cx
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x30]
inc ecx
mov word [ebp - 0x12], cx
test edi, edi
je 0x4017f3
push dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push 0xffffffffffffffec
push ebx
call esi
or eax, 0x80000
push eax
push 0xffffffffffffffec
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 2
push 0xe6
push 0
push ebx
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
push 4
call fcn.004041a2
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [eax], 0x4012f0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x4038e0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4017c8
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4017c0
push ecx
push eax
call dword [sym.imp.MSVCP140.dll__Thrd_detach]
add esp, 8
test eax, eax
je 0x4017d7
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 6
mov dword [ebp - 0x18], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
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.00404194
mov esp, ebp
pop ebp
ret
push 0x406c90
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x404b00
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404b3f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404b3f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404b3f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404b3f
cmp dword [ecx + 0x74], 0xe
jbe 0x404b3f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4013a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x415004]
xor eax, ebp
mov dword [ebp - 4], eax
push 1
call fcn.00401940
add esp, 4
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0x40d1f0
push 0x65
call fcn.004018d0
add esp, 0x10
test eax, eax
jne 0x4013dc
xor eax, eax
jmp 0x401515
lea edx, [ebp - 0xc]
push edx
push 0xf023f
push 0
push 0x40d1f4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40141a
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 3
push 0
push 0x40d208
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x401421
xor eax, eax
jmp 0x401515
lea eax, [ebp - 0xc]
push eax
push 0xf013f
push 0
push str.SOFTWARE
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40145f
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 3
push 0
push str._hdpcfumnstager
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x401466
xor eax, eax
jmp 0x401515
push 0
call section..text
add esp, 4
mov dword [ebp - 0x18], eax
push 1
call section..text
add esp, 4
mov dword [ebp - 0x1c], eax
push 0x40d25c
call fcn.00401750
add esp, 4
call fcn.00401970
test eax, eax
je 0x40149f
mov dword [ebp - 0x14], str.C:WindowsSysWOW64WindowsPowerShell_v1.0
jmp 0x4014a6
mov dword [ebp - 0x14], 0x40d2f0
mov ecx, dword [ebp - 0x18]
push ecx
push 0x40d280
mov edx, dword [ebp - 0x14]
push edx
push 0x40d2f4
call fcn.00401550
add esp, 0x10
test eax, eax
je 0x4014d1
push str._hdpcfumngexbabac
call fcn.004019c0
add esp, 4
call fcn.00401970
test eax, eax
je 0x401513
push 0x40d33c
call fcn.00401750
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
push str.powershell
push 0x40d378
push 0x40d37c
call fcn.00401550
add esp, 0x10
test eax, eax
je 0x401513
push str._hdpcfumnydamhpbi
call fcn.004019c0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401a9f
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401dd5
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0xc], eax
jmp 0x401e0a
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x18], 0
je 0x401e31
cmp dword [ebp - 0x10], 0
jne 0x401e31
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x18]
push eax
call fcn.00401e46
add esp, 8
mov dword [ebp - 0x10], eax
jmp 0x401e02
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401e46
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x34], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x3c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401e3b
add esp, 8
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x78
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
mov dword [ebp - 0x2c], eax
push 0x4142c68a
push 0xa0000000
push 0x4015d54c
push 0x985f06f7
call fcn.00402389
add esp, 0x10
cmp dword [ebp - 0x2c], 0
jne 0x401ea9
xor eax, eax
jmp 0x401f64
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401e3b
add esp, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0x14], 0
jbe 0x401f61
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + edx*4 - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401e3b
add esp, 8
mov dword [ebp - 4], eax
push 0x37
mov eax, dword [ebp - 4]
push eax
push 0x14
call fcn.00401f68
add esp, 0xc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0xc]
jne 0x401f4c
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov cx, word [eax + edx*2 - 2]
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + ecx*4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401e3b
add esp, 8
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
jmp 0x401f64
mov edx, dword [ebp - 0x14]
sub edx, 1
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
je 0x401f61
cmp dword [ebp - 0x34], 0
je 0x401eef
mov eax, dword [ebp - 0x34]
mov esp, ebp
pop ebp
ret
Function at 0x4046f5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42ede8
cmp edx, dword [eax]
je 0x404717
add eax, 8
inc ecx
cmp eax, 0x42ee78
jl 0x404708
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42ede8]
jne 0x404845
mov eax, dword [0x42f728]
cmp eax, 1
je 0x40481f
test eax, eax
jne 0x404748
cmp dword [0x42ebb4], 1
je 0x40481f
cmp edx, 0xfc
je 0x404845
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40477f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404fb0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405580
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4047c2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405580
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40946c
push edi
call fcn.00407320
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404fb0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404fc0
lea eax, [ebp - 0xa0]
push 0x40944c
push eax
call fcn.00404fc0
push dword [esi + 0x42edec]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404fc0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407291
add esp, 0x2c
pop edi
jmp 0x404845
lea eax, [ebp + 8]
lea esi, [esi + 0x42edec]
push 0
push eax
push dword [esi]
call fcn.00405580
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x406de0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x270
jne 0x406dff
mov ecx, dword [ebp - 8]
call fcn.004089b0
nop
jmp 0x406e13
mov ecx, dword [ebp - 8]
cmp dword [ecx], 0x4e0
jb 0x406e13
mov ecx, dword [ebp - 8]
call fcn.00408810
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 - 4], 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 - 4]
shr eax, 0xb
mov ecx, dword [ebp - 8]
and eax, dword [ecx + 0x1384]
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
shl edx, 7
and edx, 0x9d2c5680
xor edx, dword [ebp - 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
shl eax, 0xf
and eax, 0xefc60000
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shr ecx, 0x12
xor ecx, dword [ebp - 4]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x408810
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 0x408839
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xe3
jae 0x4088a5
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 0x40887d
mov dword [ebp - 0x14], 0x9908b0df
jmp 0x408884
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 0x408830
mov dword [ebp - 0xc], 0xe3
jmp 0x4088b7
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x26f
jae 0x408923
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 0x4088fb
mov dword [ebp - 0x1c], 0x9908b0df
jmp 0x408902
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 0x4088ae
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 0x40896c
mov dword [ebp - 0x24], 0x9908b0df
jmp 0x408973
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 0x4089b0
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 0x4089cb
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x4e0
jae 0x408a37
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 0x408a0f
mov dword [ebp - 0x10], 0x9908b0df
jmp 0x408a16
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 0x4089c2
mov esp, ebp
pop ebp
ret

Function at 0x40d57f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40d5a0
jl 0x40d597
test edi, edi
jne 0x40d5a0
xor eax, eax
xor edx, edx
jmp 0x40d661
cmp dword [ebx + 0x38], 0
je 0x40d5b5
push eax
push edi
push dword [ebp + 8]
call fcn.0040d667
jmp 0x40d661
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40d5fc
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40d5fc
cmp eax, edi
jb 0x40d5d6
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040f0b0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40d602
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40d656
mov ecx, ebx
call fcn.0040ce15
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40d641
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00416c11
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x40d656
jmp 0x40d614
test edx, edx
je 0x40d656
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00416c11
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40eefb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40ef3a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40ef3a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ef3a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40ef3a
cmp dword [ecx + 0x74], 0xe
jbe 0x40ef3a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41d9ee
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f56c
push 0x42f564
push str.FlsAlloc
push 0x1f
call fcn.0041d859
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41da22
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b138]
call esi
jmp 0x41da28
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41da6c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f57c
push 0x42f574
push str.FlsGetValue
push 0x21
call fcn.0041d859
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41daa3
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b138]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41daab
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f584
push 0x42f57c
push str.FlsSetValue
push 0x22
call fcn.0041d859
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41dae5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42b138]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]