joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43374e
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4deaa8]
je 0x433769
inc edi
cmp edi, 0x17
jb 0x43375a
cmp edi, 0x17
jae 0x4338e9
push ebp
push 3
call fcn.0043fbcb
cmp eax, 1
pop ecx
je 0x4338b5
push 3
call fcn.0043fbcb
test eax, eax
pop ecx
jne 0x43379d
cmp dword [0x4de970], 1
je 0x4338b5
cmp ebx, 0xfc
je 0x4338e8
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4eb7b0
push ebp
call fcn.00434ae5
add esp, 0xc
test eax, eax
je 0x4337d3
push esi
push esi
push esi
push esi
push esi
call fcn.00430874
add esp, 0x14
push 0x104
mov esi, 0x4eb7c9
push esi
push 0
mov byte [0x4eb8cd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x433817
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00434ae5
add esp, 0xc
test eax, eax
je 0x433817
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00430874
add esp, 0x14
push esi
call fcn.00431d90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43385c
push esi
call fcn.00431d90
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4ebac4
push 0x4bf354
sub ecx, eax
push ecx
push eax
call fcn.0043fb18
add esp, 0x14
test eax, eax
je 0x43385c
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00430874
add esp, 0x14
jmp 0x43385e
xor esi, esi
push 0x4bf350
push ebx
push ebp
call fcn.0043faa7
add esp, 0xc
test eax, eax
je 0x43387e
push esi
push esi
push esi
push esi
push esi
call fcn.00430874
add esp, 0x14
push dword [edi*8 + 0x4deaac]
push ebx
push ebp
call fcn.0043faa7
add esp, 0xc
test eax, eax
je 0x4338a0
push esi
push esi
push esi
push esi
push esi
call fcn.00430874
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043f8ea
add esp, 0xc
jmp 0x4338e8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4338e8
cmp ebp, 0xffffffff
je 0x4338e8
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4deaac]
push dword [esi]
call fcn.00431d90
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x43f8ea
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00434083
xor ebx, ebx
cmp dword [0x4ebd28], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43f9c0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43faa0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4bf704
push edi
call esi
cmp eax, ebx
je 0x43faa0
push eax
call fcn.00434015
mov dword [esp], 0x4bf6f4
push edi
mov dword [0x4ebd28], eax
call esi
push eax
call fcn.00434015
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4ebd2c], eax
call esi
push eax
call fcn.00434015
mov dword [0x4ebd30], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004333b9
test eax, eax
pop ecx
pop ecx
je 0x43f98e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00430874
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43f9c0
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00434015
cmp eax, ebx
pop ecx
mov dword [0x4ebd38], eax
je 0x43f9c0
push 0x4bf6ac
push edi
call esi
push eax
call fcn.00434015
pop ecx
mov dword [0x4ebd34], eax
mov eax, dword [0x4ebd34]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43fa45
cmp dword [0x4ebd38], ecx
je 0x43fa45
push eax
call fcn.0043408c
push dword [0x4ebd38]
mov esi, eax
call fcn.0043408c
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43fa45
cmp edi, ebx
je 0x43fa45
call esi
cmp eax, ebx
je 0x43fa12
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43fa12
test byte [ebp - 0x18], 1
jne 0x43fa45
lea eax, [ebp - 0x10]
push eax
call fcn.00433468
test eax, eax
pop ecx
je 0x43fa2d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00430874
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43fa3c
or dword [ebp + 0x10], 0x200000
jmp 0x43fa80
or dword [ebp + 0x10], 0x40000
jmp 0x43fa80
mov eax, dword [0x4ebd2c]
cmp eax, dword [ebp - 8]
je 0x43fa80
push eax
call fcn.0043408c
cmp eax, ebx
pop ecx
je 0x43fa80
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43fa80
mov eax, dword [0x4ebd30]
cmp eax, dword [ebp - 8]
je 0x43fa80
push eax
call fcn.0043408c
cmp eax, ebx
pop ecx
je 0x43fa80
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4ebd28]
call fcn.0043408c
cmp eax, ebx
pop ecx
je 0x43faa0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43faa2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x459130
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x104
call fcn.0042f920
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x459179
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x459179
mov ecx, dword [esp + 0x108]
lea eax, [esp + 0x10c]
push eax
push ecx
call fcn.00437556
add eax, 0x40
push eax
call fcn.004b3bd9
add esp, 0xc
add esp, 0x104
ret
mov eax, dword [esp + 0x108]
lea edx, [esp + 0x10c]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.0042f8f9
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4591fa
call fcn.00459070
test eax, eax
je 0x4591fa
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
add esp, 0x104
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
add esp, 0x104
ret
Function at 0x4888b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
mov ebx, dword [esp + 0x10]
cmp ecx, dword [ebx + 4]
push esi
push edi
jge 0x4888c9
mov edi, ebx
mov ebx, eax
jmp 0x4888cb
mov edi, eax
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jle 0x4888e1
push eax
push esi
call fcn.00463bc0
add esp, 8
xor eax, eax
cmp dword [ebx + 4], eax
jle 0x4888fd
mov edx, dword [edi]
mov ecx, dword [ebx]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [esi]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 4]
jl 0x4888e8
cmp eax, dword [edi + 4]
jge 0x488912
mov edx, dword [edi]
mov edx, dword [edx + eax*4]
mov ecx, dword [esi]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi + 4]
jl 0x488902
mov edi, dword [edi + 4]
mov dword [esi + 4], edi
test edi, edi
jle 0x488936
mov eax, dword [esi]
lea eax, [eax + edi*4 - 4]
or ecx, 0xffffffff
mov edx, dword [eax]
sub eax, 4
test edx, edx
jne 0x488936
add dword [esi + 4], ecx
cmp dword [esi + 4], edx
jg 0x488925
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x406ced
Capabilities:
Parse pe header

Disassembly:
push 0x74
push 0x40af98
call fcn.00406fd4
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x406d2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406d2d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x406d45
cmp eax, 0x20b
je 0x406d32
mov dword [ebp - 0x1c], ebx
jmp 0x406d59
cmp dword [ecx + 0x84], 0xe
jbe 0x406d2d
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x406d53
cmp dword [ecx + 0x74], 0xe
jbe 0x406d2d
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x40ea78], 0xffffffff
or dword [0x40ea7c], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x40d464]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x40d460]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40ea74], eax
call fcn.00406f30
call fcn.00406fd0
cmp dword [0x40d320], ebx
jne 0x406db9
push fcn.00406fd0
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.0057e000
push 0x40c00c
push 0x40c008
call sub.MSVCR71.dll__initterm
push 0x406f74
call fcn.00406f1e
mov eax, dword [0x40d45c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40d458]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x406e0d
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x40c004
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x406e8b
cmp al, bl
je 0x406e37
cmp dword [ebp - 0x20], ebx
jne 0x406e8b
mov al, byte [esi]
cmp al, bl
je 0x406e47
cmp al, 0x20
ja 0x406e47
inc esi
mov dword [ebp - 0x24], esi
jmp 0x406e37
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x406e63
movzx eax, word [ebp - 0x54]
jmp 0x406e66
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00404254
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x406e83
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x406ee0
cmp al, 0x22
jne 0x406e9a
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x406ead
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x406e25
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040700f
ret
Function at 0x10001d50
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x108
mov eax, dword [0x10022ef0]
push ebx
push ebp
mov ebp, ecx
add eax, 0x10
push esi
lea ecx, [esp + 0x10]
xor esi, esi
push eax
push ecx
mov dword [esp + 0x14], esi
call dword [0x1001b260]
lea edx, [esp + 0x10]
push 0x10024030
push edx
call fcn.1000ea50
add esp, 8
lea eax, [esp + 0x10]
push esi
push 0x80
push 3
push esi
push 3
push 0x80000000
push eax
call dword [0x1001b2cc]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10001e0d
push edi
push esi
push ebx
call dword [0x1001b2dc]
mov edi, eax
push edi
call dword [0x1001b34c]
add esp, 4
lea ecx, [esp + 0x10]
mov esi, eax
push 0
push ecx
push edi
push esi
push ebx
call dword [0x1001b2d8]
xor eax, eax
test edi, edi
jbe 0x10001de4
mov cl, byte [eax + esi]
xor cl, 0x44
mov byte [eax + esi], cl
inc eax
cmp eax, edi
jb 0x10001dd6
push edi
push esi
mov ecx, ebp
call fcn.10003280
push esi
mov edi, eax
call dword [0x1001b350]
add esp, 4
push ebx
call dword [0x1001b210]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret

Function at 0x10002430
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ecx, 0x5f8
mov eax, esi
mov dl, byte [esi + 0xf]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec ecx
jne 0x10002440
mov al, byte [esi]
mov cl, byte [esi + 0xe]
pop esi
cmp al, cl
pop ebx
jne 0x1000245c
cmp al, 0x2b
jne 0x1000245c
mov al, 1
ret
xor al, al
ret

Function at 0x10003210
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
pushal
mov eax, dword fs:[0x30]
mov edx, dword [eax + 0xc]
add edx, 0x14
mov edx, dword [edx]
mov eax, dword [edx + 0x10]
test eax, eax
je 0x10003251
mov esi, dword [edx + 0x28]
mov edi, dword [ebp + 8]
mov bx, word [esi]
mov bh, byte [edi]
cmp bl, 0x5a
jg 0x10003245
cmp bl, 0x41
jl 0x10003245
add bl, 0x20
cmp bl, bh
jne 0x10003224
inc esi
inc esi
inc edi
test bx, bx
jne 0x10003233
mov dword [ebp - 4], eax
popal
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x100053f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push ecx
mov dword [ebp - 4], 1
call sym.d3d8thk.dll_OsThunkDdCreateD3DBuffer
add esp, 8
nop
xor ecx, ecx
test eax, eax
jle 0x10005444
push ebx
mov edx, dword [ebp - 4]
mov bl, byte [ecx + edx]
add bl, 0x7a
mov byte [ecx + edx], bl
mov edx, dword [ebp - 4]
mov bl, byte [ecx + edx]
xor bl, 0x5f
mov byte [ecx + edx], bl
mov edx, dword [ebp - 4]
mov bl, byte [ecx + edx]
xor bl, 0x46
mov byte [ecx + edx], bl
inc ecx
cmp ecx, eax
jl 0x10005413
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x1000aa10
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor edx, edx
mov ecx, 0x10024a0c
mov eax, edx
mov esi, 8
test al, 1
je 0x1000aa2c
shr eax, 1
xor eax, 0xedb88320
jmp 0x1000aa2e
shr eax, 1
dec esi
jne 0x1000aa1f
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x10024e0c
jl 0x1000aa18
pop esi
ret
Function at 0x1000c130
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x10019e78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x1001bdcc
mov edi, dword [0x1001b218]
lea eax, [esi + 0x18]
push 0
push eax
mov dword [esp + 0x1c], 0
call edi
lea ecx, [esi + 0x10]
push 0
push ecx
call edi
mov edx, dword [esi + 0x2c]
mov edi, dword [0x1001b214]
push 0xffffffffffffffff
push edx
call edi
mov eax, dword [esi + 0x30]
push 0xffffffffffffffff
push eax
call edi
mov ecx, dword [esi + 0x2c]
mov edi, dword [0x1001b210]
push ecx
call edi
mov edx, dword [esi + 0x30]
push edx
call edi
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x1000c1a7
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call sym.d3d8thk.dll_OsThunkDdQueryMoCompStatus
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x1000c720
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x808
lea eax, [esp + 0x10c]
push ebx
push esi
push edi
push 0x104
push eax
call dword [0x1001b22c]
lea edi, [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x10022e30
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call dword [0x1001b228]
lea edx, [esp + 0x14]
push edx
call dword [0x1001b264]
lea ebx, [esp + eax + 0x14]
mov eax, dword [0x10022ef0]
or ecx, 0xffffffff
push ebx
lea edi, [eax + 0x10]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.100066a0
mov edi, 0x100239a0
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x80
push 4
mov ecx, edx
push eax
push eax
and ecx, 3
lea eax, [esp + 0x28]
push 2
rep movsb byte es:[edi], byte [esi]
push eax
call dword [0x1001b2cc]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000c8c1
mov esi, dword [0x10022ef0]
mov ecx, 0x17e
lea edi, [esp + 0x21c]
push 0
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x220]
call dword [0x1001b358]
push eax
call dword [0x1001b354]
mov edi, dword [0x1001b344]
add esp, 8
call edi
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
fmul qword [0x1001bda8]
call fcn.100199f0
test al, al
je 0x1000c831
mov ecx, 0x5f8
mov dl, byte [esi]
xor dl, al
mov byte [esi], dl
inc esi
dec ecx
jne 0x1000c84f
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x224]
push 0x5f8
push edx
push ebx
call dword [0x1001b2e8]
push ebx
call dword [0x1001b210]
mov edi, 0x10023990
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x118]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x11c]
push ecx
call fcn.10002210
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x808
ret
Function at 0x1000e8f0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10019e63
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push esi
mov esi, ecx
push eax
mov dword [esp + 0xc], esi
call fcn.10007780
xor ebx, ebx
push 0x134
mov dword [esp + 0x18], ebx
mov dword [esi], 0x1001bdcc
mov byte [esi + 0x1c], 1
mov dword [esi + 0x28], 8
call fcn.100199d6
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov byte [esp + 0x14], 1
je 0x1000e957
push 0x64
push ebx
push 8
mov ecx, eax
call fcn.100061a0
jmp 0x1000e959
xor eax, eax
push 1
push ebx
push ebx
push esi
push 0x10005e30
push ebx
push ebx
mov byte [esp + 0x30], bl
mov dword [esi + 0x34], eax
mov dword [esi + 0x10], 1
mov dword [esi + 0x18], ebx
mov byte [esi + 0x14], bl
mov byte [esi + 0x24], bl
call fcn.10011d00
push 1
push ebx
push ebx
push esi
push 0x100075e0
push ebx
push ebx
mov dword [esi + 0x2c], eax
call fcn.10011d00
mov ecx, dword [esp + 0x44]
add esp, 0x38
mov dword [esi + 0x30], eax
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x1000f5c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x114
xor ecx, ecx
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
push esi
cmp ebx, ecx
push edi
je 0x1000f6cd
mov eax, dword [ebx + 0x3c]
mov ebp, dword [esp + 0x12c]
add eax, ebx
mov dword [esp + 0x10], ecx
mov esi, dword [eax + 0x78]
mov eax, dword [eax + 0x7c]
add esi, ebx
mov dword [esp + 0x1c], eax
test ebp, 0x80000000
jne 0x1000f66b
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
add eax, ebx
cmp edx, ecx
mov dword [esp + 0x18], ecx
jbe 0x1000f689
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
push 0
mov edi, dword [ecx]
add edi, ebx
push edi
call sym.d3d8thk.dll_OsThunkDdCreateDirectDrawObject
add esp, 4
push eax
push edi
call fcn.10010200
and eax, 0x7fffffff
add esp, 0xc
cmp eax, ebp
je 0x1000f656
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x18]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
jb 0x1000f613
jmp 0x1000f689
mov edx, dword [esi + 0x24]
mov eax, dword [esp + 0x18]
lea ecx, [edx + eax*2]
mov dx, word [ecx + ebx]
mov word [esp + 0x10], dx
jmp 0x1000f689
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x14]
mov eax, ebp
add edx, ecx
and eax, 0xffff
cmp eax, edx
jae 0x1000f6cd
cmp eax, ecx
jb 0x1000f6cd
sub bp, cx
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x1c]
and eax, 0xffff
lea edx, [ecx + eax*4]
mov eax, dword [edx + ebx]
add eax, ebx
je 0x1000f6cf
cmp eax, esi
jb 0x1000f6cf
mov ecx, dword [esp + 0x1c]
add ecx, esi
cmp eax, ecx
jae 0x1000f6cf
mov dl, byte [eax]
xor ecx, ecx
test dl, dl
mov esi, eax
je 0x1000f6cd
lea edx, [esp + 0x20]
sub edx, eax
mov al, byte [esi]
inc ecx
mov byte [edx + esi], al
inc esi
cmp al, 0x2e
je 0x1000f6da
cmp byte [esi], 0
jne 0x1000f6bd
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
test ecx, ecx
jle 0x1000f6cd
mov byte [esp + ecx + 0x20], 0x64
inc ecx
mov al, 0x6c
lea edx, [esp + 0x20]
mov byte [esp + ecx + 0x20], al
inc ecx
push edx
mov byte [esp + ecx + 0x24], al
mov byte [esp + ecx + 0x25], 0
call fcn.10005240
add esp, 4
lea eax, [esp + 0x20]
push eax
call fcn.10003210
push 0
push esi
mov edi, eax
call sym.d3d8thk.dll_OsThunkDdCreateDirectDrawObject
add esp, 4
push eax
push esi
call fcn.10010200
and eax, 0x7fffffff
push eax
push edi
call sym.d3d8thk.dll_OsThunkDdAttachSurface
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret

Function at 0x10010200
Capabilities:
Encode data using xor

Disassembly:
push esi
call fcn.1000aa10
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 8]
or eax, 0xffffffff
test esi, esi
jbe 0x10010235
push ebx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x10024a0c]
xor eax, edx
inc ecx
dec esi
jne 0x10010216
pop ebx
not eax
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10010251
push esi
push 0x10022e2c
push eax
call dword [0x1001b49c]
add esp, 0xc
mov eax, esi
pop esi
ret
Function at 0x10010ec0
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [0x10025480]
push ebx
push 0
push 0x80
push 4
push 0
push 3
add eax, 0xd
push 0x40000000
push eax
call dword [0x1001b2cc]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10010f63
push 0
push ebx
mov dword [esp + 0xc], 0
call dword [0x1001b2dc]
cmp eax, 0x3200000
jae 0x10010f0f
push 2
push 0
push 0
push ebx
call dword [0x1001b2e4]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
push ebp
call dword [0x1001b264]
mov edi, eax
push edi
call fcn.100199d6
add esp, 4
mov esi, eax
test edi, edi
jle 0x10010f40
mov ecx, ebp
mov ebp, edi
sub ecx, esi
mov dl, byte [ecx + eax]
xor dl, 0x44
mov byte [eax], dl
inc eax
dec ebp
jne 0x10010f34
lea eax, [esp + 0x10]
push 0
push eax
push edi
push esi
push ebx
call dword [0x1001b2e8]
push ebx
call dword [0x1001b210]
push esi
call fcn.100199d0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret