joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10047360
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100759b5
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x1044a964]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, 0xedef2393
push eax
lea ecx, [ebp - 0x40]
call fcn.10011550
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
push edx
call fcn.10032ab0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.10011680
push 0
push 0
push 0
push 0x100472c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
clc
jae 0x100473dc
mov esp, ebx
pushf
push 0xa
jae 0x100473e9
jmp 0x100473e4
call 0x100473eb
jae 0x100473e4
add esp, 4
jmp 0x100473f0
dec dword [esp]
jno 0x100473f5
jns 0x100473e0
jp 0x100473f9
add esp, 4
popf
jmp 0x10047400
push eax
push edx
xor edx, 0x90
push edx
sub edx, 0x80
pop eax
add eax, edx
pop edx
pop eax
xor eax, 0x1a
xor edx, eax
add eax, edx
sub edx, 0x1a
push eax
pop edx
xor edx, 0x4e
nop
nop
xor ecx, ecx
xor eax, eax
mov ecx, 0x1a
add ecx, 3
sub ecx, eax
nop
push eax
pop ecx
xor eax, eax
nop
nop
push eax
xor eax, eax
pop eax
xor edx, edx
xor eax, edx
push ecx
pop ecx
xor eax, eax
nop
jl 0x1004744c
jmp 0x1004744e
je 0x10047449
push eax
xor eax, eax
setnp al
push edx
xor edx, eax
shl edx, 2
xchg edx, eax
pop edx
or eax, ecx
pop eax
xor eax, eax
test eax, eax
je 0x10047468
jne 0x10047467
call 0x930864ef
rol byte [ebx + eax*4], 0xf0
add eax, 0x1750374
xor eax, 3
add eax, 4
xor eax, 5
je 0x10047476
jne 0x10047476
call fcn.100568e2
add bh, bh
adc eax, sym.imp.KERNEL32.dll_Sleep
push 0xf4
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
test eax, eax
je 0x1004748a
jne 0x10047489
call 0x93086511
rol byte [ebx + eax*4], 0xf0
add eax, 0x3eb037c
movsd dword es:[edi], dword [esi]
xor eax, 3
add eax, 4
xor eax, 5
jl 0x10047498
jmp 0x1004749a
je 0x10047495
clc
jae 0x1004749f
xor esp, dword [ebp + 0x331cf083]
rol byte [ebx], 1
ret 0xea83
xor eax, 0x1c
xor edx, eax
add eax, edx
sub edx, 0x1c
push eax
pop edx
xor edx, 0x54
nop
nop
xor ecx, ecx
xor eax, eax
mov ecx, 0x1c
add ecx, 3
sub ecx, eax
nop
push eax
pop ecx
xor eax, eax
nop
nop
push eax
xor eax, eax
pop eax
xor edx, edx
xor eax, edx
push ecx
pop ecx
xor eax, eax
nop
pushf
push 0xa
jae 0x100474df
jmp 0x100474da
call 0x100474e1
jae 0x100474da
add esp, 4
jmp 0x100474e6
dec dword [esp]
jno 0x100474eb
jns 0x100474d6
jp 0x100474ef
add esp, 4
popf
jmp 0x100474f6
push eax
push edx
xor edx, 0x90
push edx
sub edx, 0x80
pop eax
add eax, edx
pop edx
pop eax
je 0x1004750f
jne 0x1004750f
call 0x1fc4a863
wait
rcl byte [edx + 0x33], 0xd0
push eax
xor eax, eax
setnp al
push edx
xor edx, eax
shl edx, 2
xchg edx, eax
pop edx
or eax, ecx
pop eax
call fcn.10023ce0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.100037b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10047600
Capabilities:
Create thread

Disassembly:
push esi
push 0
push 0
push 0
push 0x10044150
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x10047623
call fcn.10023ce0
mov eax, esi
pop esi
ret
Function at 0x10047960
Capabilities:
Create thread

Disassembly:
push esi
push 0
push 0
push 0
push 0x10028bc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x10047983
call fcn.10023ce0
mov eax, esi
pop esi
ret

Function at 0x10047990
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x10045e70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x1044c0ac], eax
test eax, eax
jne 0x100479b8
call fcn.10023ce0
mov eax, dword [0x1044c0ac]
ret

Function at 0x100479c0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x100472a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x1044c0b8], eax
test eax, eax
jne 0x100479e8
call fcn.10023ce0
mov eax, dword [0x1044c0b8]
ret

Function at 0x10047a20
Capabilities:
Create thread

Disassembly:
push esi
push 0
push 0
push 0
push 0x10045ad0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x10047a43
call fcn.10023ce0
mov eax, esi
pop esi
ret
Function at 0x10047a50
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100759f8
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push esi
push edi
mov eax, dword [0x1044a964]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push dword [0x1044c0ac]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push dword [0x1044c0b0]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push dword [0x1044c0b4]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push dword [0x1044c0b8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x1044c0ac]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [0x1044c0b0]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [0x1044c0b4]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [0x1044c0b8]
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [ebp - 0x14], eax
cmp esi, 0x102
jne 0x10047b0d
cmp dword [ebp - 0x10], esi
jne 0x10047b0d
cmp ebx, esi
jne 0x10047b0d
cmp edi, esi
je 0x10047b63
mov ecx, 0x15
xor edx, edx
mov al, byte [edx + 0x100792d4]
xor al, cl
inc ecx
mov byte [ebp + edx - 0xa0], al
and ecx, 0x800000ff
jns 0x10047b34
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x3c
jl 0x10047b14
mov byte [ebp - 0x64], 0
lea eax, [ebp - 0xa0]
mov dword [ebp - 4], 0
push eax
call fcn.10032ab0
add esp, 4
mov dword [ebp - 4], 0xffffffff
call fcn.10023ce0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x18], 1
je 0x10047b7a
cmp dword [ebp - 0x1c], 1
je 0x10047b7a
cmp dword [ebp - 0x20], 1
je 0x10047b7a
cmp eax, 1
jne 0x10047bd4
mov edx, 0x15
xor eax, eax
mov cl, byte [eax + 0x100792d4]
xor cl, dl
inc edx
mov byte [ebp + eax - 0x60], cl
and edx, 0x800000ff
jns 0x10047b9e
dec edx
or edx, 0xffffff00
inc edx
inc eax
cmp eax, 0x3c
jl 0x10047b81
mov byte [ebp - 0x24], 0
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 1
push eax
call fcn.10032ab0
push 0x3d
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
push 0
push eax
call fcn.1004f110
add esp, 0x10
call fcn.10023ce0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10048bf0
Capabilities:
Create thread
Hide thread from debugger

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f0
mov eax, dword [0x1044a964]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push esi
push 0
push 0
push eax
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x10048c2f
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004ce42
mov esp, ebp
pop ebp
ret
push edi
push str.NtSetInformationThread
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x10048c5e
push 0
push 0
push 0x11
push esi
mov ecx, edi
call dword [0x10077410]
call edi
lea eax, [ebp - 8]
push eax
push 1
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x1c
lea eax, [ebp - 0x2f0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
lea eax, [ebp - 8]
push eax
push 0x101
push dword [ebp - 0x2e4]
push dword [ebp - 0x2f0]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadId]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10048cd2
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2d4], 0x10007
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.1004ce42
mov esp, ebp
pop ebp
ret
Function at 0x1004a360
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x1044a964]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push edi
push 0x104
push 0
push eax
mov dword [ebp - 0x234], ebx
call fcn.1004f110
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov edi, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x230], 0x128
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1004a3f9
cmp dword [ebp - 0x228], edi
je 0x1004a3de
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1004a3c3
jmp 0x1004a3f9
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.1005c325
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x108]
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
lea edx, [ecx + 1]
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004a420
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push eax
mov ecx, ebx
call fcn.10005040
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004ce42
mov esp, ebp
pop ebp
ret

Function at 0x100648dc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10064752

Function at 0x1006b2e7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1006af64
Function at 0x41fb6c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b520]
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.00416e52
and dword [ebp - 0x14], 0
cmp dword [0x46d558], 0
mov dword [ebp - 0x18], eax
jne 0x41fc1f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41fcc7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41fcc7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x46d558], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x46d55c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x46d560], eax
call edi
push eax
call esi
mov dword [0x46d568], eax
test eax, eax
je 0x41fc1f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46d564], eax
mov eax, dword [0x46d564]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41fc78
cmp dword [0x46d568], ecx
je 0x41fc78
push eax
call esi
push dword [0x46d568]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41fc78
test ebx, ebx
je 0x41fc78
call edi
test eax, eax
je 0x41fc6f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41fc6f
test byte [ebp - 8], 1
jne 0x41fc78
or dword [ebp + 0x10], 0x200000
jmp 0x41fcab
mov eax, dword [0x46d55c]
cmp eax, dword [ebp - 0x18]
je 0x41fcab
push eax
call esi
test eax, eax
je 0x41fcab
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41fcab
mov eax, dword [0x46d560]
cmp eax, dword [ebp - 0x18]
je 0x41fcab
push eax
call esi
test eax, eax
je 0x41fcab
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46d558]
call esi
test eax, eax
je 0x41fcc7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41fcc9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004113cb
leave
ret

Function at 0x430002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x467e4015
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x4fbb2ecb
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x100014c4
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
xor esi, esi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
push 1
pop edi
mov dword [ebp - 8], eax
push edi
push eax
call fcn.100dd194
call sym.runtime.dll_runtimeGetRuntime
push dword [ebp - 8]
mov dword [0x10115b98], eax
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
call fcn.100016c6
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
mov al, byte [ebp - 1]
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 0x18], al
call fcn.10002040
push ebx
call fcn.100dcab0
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x18]
call fcn.100022af
mov al, byte [ebp - 1]
push esi
mov byte [ebp - 0x28], al
lea ecx, [ebp - 0x28]
call fcn.10002040
cmp dword [ebp - 0x10], esi
je 0x1000157e
cmp dword [ebp - 0x14], esi
je 0x1000154b
lea ecx, [ebp - 0x18]
call fcn.10002014
mov eax, dword [ebp - 0x14]
jmp 0x10001550
mov eax, 0x100f7364
cmp byte [eax], 0x20
jne 0x1000157e
push dword [0x100f7360]
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x18]
push edi
push eax
call fcn.10001be6
push dword [0x100f7360]
lea ecx, [ebp - 0x18]
push esi
push eax
call fcn.10001ec4
push edi
lea ecx, [ebp - 0x38]
jmp 0x1000152f
push edi
lea eax, [ebp - 1]
push esi
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 1], 0x22
call fcn.10001f92
test eax, eax
jne 0x10001604
push edi
lea eax, [ebp - 1]
push edi
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 1], 0x22
call fcn.10001f92
mov ebx, eax
mov eax, dword [0x100f7360]
cmp ebx, eax
je 0x10001672
push eax
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18]
call fcn.10001be6
push dword [0x100f7360]
lea ecx, [ebp - 0x28]
push esi
push eax
call fcn.10001ec4
push edi
lea ecx, [ebp - 0x38]
call fcn.10002040
dec ebx
lea eax, [ebp - 0x38]
push ebx
push edi
push eax
lea ecx, [ebp - 0x18]
call fcn.10001be6
push dword [0x100f7360]
lea ecx, [ebp - 0x18]
push esi
push eax
call fcn.10001ec4
push edi
lea ecx, [ebp - 0x38]
jmp 0x1000166d
push edi
lea eax, [ebp - 1]
push esi
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 1], 0x20
call fcn.10001f92
mov ebx, eax
mov eax, dword [0x100f7360]
cmp ebx, eax
je 0x10001672
push eax
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18]
call fcn.10001be6
push dword [0x100f7360]
lea ecx, [ebp - 0x28]
push esi
push eax
call fcn.10001ec4
push edi
lea ecx, [ebp - 0x38]
call fcn.10002040
push ebx
lea eax, [ebp - 0x38]
push esi
push eax
lea ecx, [ebp - 0x18]
call fcn.10001be6
push dword [0x100f7360]
lea ecx, [ebp - 0x18]
push esi
push eax
call fcn.10001ec4
push edi
lea ecx, [ebp - 0x38]
call fcn.10002040
mov eax, dword [ebp - 0x24]
cmp eax, esi
jne 0x1000167e
mov eax, 0x100f7364
mov ecx, dword [0x10115b98]
push esi
push eax
mov edx, dword [ecx]
push dword [0x10115b90]
call dword [edx + 0x24]
mov ecx, dword [0x10115b98]
mov eax, dword [ecx]
call dword [eax + 0x10]
push esi
push esi
push dword [ebp - 8]
call fcn.100dd194
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10001b60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push dword [ebp + 8]
lea eax, [ebp - 4]
mov ecx, 0x10115b70
push eax
call fcn.1000226e
mov eax, dword [eax]
cmp eax, dword [0x10115b74]
jne 0x10001b9c
push dword [ebp + 8]
lea eax, [ebp - 4]
mov ecx, 0x10115b50
push eax
call fcn.1000226e
mov eax, dword [eax]
cmp eax, dword [0x10115b54]
je 0x10001ba1
mov eax, dword [eax + 0x1c]
jmp 0x10001be2
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push str.Cant_find_symbol:
push eax
call fcn.10003575
mov eax, dword [ebp - 0x10]
add esp, 0xc
test eax, eax
jne 0x10001bc1
mov eax, 0x100f7364
push 0
push 0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
leave
ret 4

Function at 0x100042b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100f0020
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov al, byte [esp + 0x30]
push ebx
push edi
mov byte [esp + 8], al
mov edi, str.Startup_Error:
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], ebx
push ecx
push str.Startup_Error:
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.100022af
mov ecx, dword [esp + 0x38]
lea edx, [esp + 8]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x3c], ebx
call fcn.10004510
add esp, 0xc
mov eax, dword [esp + 0xc]
mov byte [esp + 0x30], 2
cmp eax, ebx
je 0x10004343
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x1000433a
cmp al, 0xff
je 0x1000433a
dec al
mov byte [ecx], al
jmp 0x10004343
push ecx
call fcn.100d0293
add esp, 4
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], ebx
cmp eax, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
jne 0x1000435c
mov eax, 0x100f7364
mov ecx, dword [0x10115cc4]
push eax
call fcn.1003e9f0
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x1000439d
mov al, byte [ecx - 1]
cmp al, bl
je 0x10004393
cmp al, 0xff
je 0x10004393
dec al
pop edi
mov byte [ecx - 1], al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
dec ecx
push ecx
call fcn.100d0293
add esp, 4
mov ecx, dword [esp + 0x28]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x10033250
Capabilities:
Set socket configuration

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x5c]
mov ebx, dword [esi + 4]
cmp eax, edi
mov dword [esi], 0x100f742c
jge 0x10033287
lea eax, [esp + 0xc]
push 4
push eax
push 0xffffff7f
push 0xffff
push ebx
mov dword [esp + 0x20], 1
call sub.WSOCK32.dll_setsockopt
push ebx
call sub.WSOCK32.dll_closesocket
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x10], eax
call fcn.100d0293
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov eax, dword [esi + 0xc]
push eax
mov dword [esp + 0x14], eax
call fcn.100d0293
add esp, 8
mov ecx, esi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
call fcn.10038540
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x10033810
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x100f1a58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x100f7440
mov eax, dword [esi + 8]
mov dword [esp + 0x20], 0
test eax, eax
je 0x10033891
lea edi, [eax + 8]
push ebx
lea eax, [esp + 0xc]
push ebp
push eax
mov ecx, edi
mov dword [esp + 0x14], esi
call fcn.10037fb0
lea ecx, [esp + 0x10]
mov ebp, eax
push ecx
mov ecx, edi
call fcn.10037f60
mov ebx, eax
cmp ebx, ebp
mov dword [esp + 0x14], ebx
je 0x10033881
lea ecx, [esp + 0x14]
call fcn.10038000
cmp dword [esp + 0x14], ebp
jne 0x10033872
push ebp
lea edx, [esp + 0x20]
push ebx
push edx
mov ecx, edi
call fcn.10035b40
pop ebp
pop ebx
mov eax, dword [esi + 0xc]
mov edi, dword [esi + 4]
test eax, eax
jge 0x100338ba
lea eax, [esp + 0xc]
push 4
push eax
push 0xffffff7f
push 0xffff
push edi
mov dword [esp + 0x20], 1
call sub.WSOCK32.dll_setsockopt
push edi
call sub.WSOCK32.dll_closesocket
mov ecx, esi
mov dword [esp + 0x20], 0xffffffff
call fcn.10038540
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x10033b10
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x100f1a7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov eax, dword [esi + 0x14]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x18], ebx
je 0x10033b54
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
je 0x10033b4f
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [esi + 0x14], ebx
jne 0x10033b3d
mov eax, dword [esi]
push edi
mov edi, dword [esi + 4]
cmp eax, ebx
jge 0x10033b7d
lea ecx, [esp + 0xc]
push 4
push ecx
push 0xffffff7f
push 0xffff
push edi
mov dword [esp + 0x20], 1
call sub.WSOCK32.dll_setsockopt
push edi
call sub.WSOCK32.dll_closesocket
mov eax, dword [esi + 0xc]
add esi, 8
push eax
lea edx, [esp + 0x14]
mov ecx, dword [eax]
mov dword [esp + 0x20], 0xffffffff
push ecx
push edx
mov ecx, esi
call fcn.10035b40
mov eax, dword [esi + 4]
push eax
call fcn.100d0293
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
call fcn.100d01e2
mov eax, dword [0x10116a7c]
pop edi
dec eax
mov dword [0x10116a7c], eax
jne 0x10033bdf
mov ecx, dword [0x10116a78]
push ecx
call fcn.100d0293
add esp, 4
mov dword [0x10116a78], ebx
lea ecx, [esp + 8]
call fcn.100d027e
mov ecx, dword [esp + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x1003d720
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x100f22dc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [esp + 0x24]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x2c]
xor ebx, ebx
mov dword [esi + 4], ecx
mov dword [esi], eax
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dl, byte [edi]
lea ecx, [esi + 0x2c]
mov dword [esp + 0xc], esi
mov byte [ecx], dl
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov eax, dword [0x100f7360]
push eax
push ebx
push edi
call fcn.10001ec4
mov cl, byte [esp + 0x30]
mov byte [esi + 0x3c], 1
mov dword [esp + 0x20], ebx
mov byte [esi + 0x40], cl
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dl, byte [esp + 0x30]
mov dword [esi + 0x54], ebx
mov byte [esi + 0x50], dl
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov al, byte [esp + 0x30]
lea edi, [esi + 0x64]
mov byte [esi + 0x60], bl
mov byte [edi], al
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
push ebx
mov byte [esp + 0x24], 3
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
mov ecx, esi
call fcn.100402e0
cmp byte [esi + 0x60], bl
je 0x1003d7dc
push 5
jmp 0x1003d7dd
push ebx
push edi
push 0x1003fe30
call sub.DDRAW.dll_DirectDrawEnumerateExA
lea ecx, [esp + 0x10]
push 8
push ecx
call dword [sym.imp.WINMM.dll_timeGetDevCaps]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
lea edx, [esi + 0x7c]
mov ecx, 0x25
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
push edx
mov dword [edx], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push str.ddraw.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1003d848
push str.SetAppCompatData
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1003d841
push ebx
push 0xc
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc