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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x174
push ebx
xor ebx, ebx
cmp dword [0x100b432c], ebx
je 0x1001937d
push 0x104
lea eax, [ebp - 0x174]
push eax
push 0x3f5
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x10019384
push 0x50040
push str.DirectPlay_Request
push str.Please_enter_a_name_for_the_new_game
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
jmp 0x10019441
mov al, byte [ebp + 0xb]
push esi
push edi
push ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 0x10], al
call fcn.10004041
lea eax, [ebp - 0x174]
push eax
call fcn.10022f00
pop ecx
push eax
lea eax, [ebp - 0x174]
push eax
lea ecx, [ebp - 0x10]
call fcn.100042cb
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1001ac40
add esp, 0xc
push 1
lea ecx, [ebp - 0x10]
call fcn.10004041
push 0x50
pop esi
push esi
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.10022840
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x70], esi
mov esi, 0x1008a0c0
lea edi, [ebp - 0x58]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0xc
cmp eax, ebx
movsd dword es:[edi], dword [esi]
pop edi
mov dword [ebp - 0x6c], 0xa04c
pop esi
mov dword [ebp - 0x40], 0x100875b4
je 0x10019407
mov dword [ebp - 0x40], eax
mov eax, dword [0x100b432c]
mov ecx, dword [eax]
push 2
lea edx, [ebp - 0x70]
push edx
push eax
call dword [ecx + 0x60]
test eax, eax
jge 0x10019433
push 0x30
push str.DirPlay_Error
push str.Unable_to_create_new_game
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x10019435
mov bl, 1
push 1
lea ecx, [ebp - 0x20]
call fcn.10004041
mov al, bl
pop ebx
leave
ret 4

Function at 0x1001e60b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 0xf
push esi
mov esi, ecx
je 0x1001e67c
cmp eax, 0x14
je 0x1001e677
cmp eax, 0x1c
je 0x1001e63a
push dword [ebp + 0x18]
lea ecx, [esi - 0x54]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.1001ba6e
jmp 0x1001e6a1
cmp dword [ebp + 0x10], 0
je 0x1001e657
cmp dword [esi + 0x9c], 3
jne 0x1001e69f
push 4
add esi, 8
push esi
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
jmp 0x1001e69f
cmp dword [esi + 0x9c], 3
jne 0x1001e69f
push 0
push 0
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
push 6
push dword [esi - 0x2c]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x1001e69f
push 1
pop eax
jmp 0x1001e6a1
push dword [esi - 0x2c]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x1001e694
mov eax, dword [esi - 0x54]
lea ecx, [esi - 0x54]
push 0
call dword [eax + 0x10]
push 0
push dword [esi - 0x2c]
call dword [sym.imp.USER32.dll_ValidateRect]
xor eax, eax
pop esi
pop ebp
ret 0x14
Function at 0x1003da3c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
xor ebx, ebx
cmp dword [0x100c0218], ebx
push esi
push edi
jne 0x1003db74
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.dsound.dll
call edi
mov dword [0x100c0218], eax
mov eax, dword [0x10099d1c]
test byte [eax + 9], 0x30
je 0x1003da7f
push str.dsound3d.dll
call edi
mov dword [0x100c021c], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DirectSoundCreate8
push dword [0x100c0218]
call esi
cmp eax, ebx
mov dword [0x100c023c], eax
jne 0x1003daad
push str.DirectSoundCreate
push dword [0x100c0218]
call esi
mov dword [0x100c0234], eax
push str.DirectSoundEnumerateA
push dword [0x100c0218]
call esi
cmp dword [0x100c023c], ebx
mov dword [0x100c0238], eax
setne al
push eax
push dword [0x100c0218]
call fcn.1005a34d
cmp dword [0x100c023c], ebx
pop ecx
pop ecx
je 0x1003db4a
push 0x104
lea eax, [ebp - 0x400]
push eax
mov dword [0x1009ceac], 8
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1003db74
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x200]
push eax
call fcn.10043744
lea eax, [ebp - 0x200]
push str.d3d9.dll
push eax
call fcn.10043786
push ebx
lea eax, [ebp - 0x200]
push ebx
push eax
call fcn.1004502a
add esp, 0x1c
cmp eax, ebx
je 0x1003db74
push eax
call fcn.100451d4
pop ecx
mov dword [0x1009ceac], 9
jmp 0x1003db74
push str.ddraw.dll
call edi
mov edi, eax
cmp edi, ebx
je 0x1003db74
push str.DirectDrawCreateEx
push edi
call esi
test eax, eax
je 0x1003db6d
mov dword [0x1009ceac], 7
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1004042c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
mov eax, dword [ebp + 0x14]
cmp eax, 0xffffffff
je 0x1004046a
test eax, eax
je 0x10040466
cmp eax, 2
je 0x10040462
cmp eax, 3
jne 0x10040473
push 0xf
jmp 0x1004046c
push 2
jmp 0x1004046c
push 1
jmp 0x1004046c
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, edi
pop edi
pop ebp
ret

Function at 0x10040496
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x10099d1c]
cmp dword [eax + 4], 0xd
je 0x100404ad
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
ret
Function at 0x100458d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 1
xor edi, edi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionMultimediaMIDIMap
push reloc.WSOCK32.dll_accept
mov dword [ebp - 0xc], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10045a10
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
push edi
push str.CurrentInstrument
push dword [ebp - 4]
call esi
cmp eax, edi
je 0x10045944
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x240]
push eax
push edi
push edi
push str.szPname
push dword [ebp - 4]
call esi
cmp eax, edi
jne 0x10045a10
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], edi
mov esi, 0x134
push esi
lea eax, [ebp - 0x140]
push edi
push eax
call fcn.10022840
mov eax, dword [0x100c6304]
add esp, 0xc
lea edx, [ebp - 0x140]
push edx
push dword [ebp - 8]
mov dword [ebp - 0x140], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov ebx, eax
cmp ebx, edi
jne 0x100459d6
cmp dword [ebp - 0x128], 1
jne 0x100459d6
push edi
push edi
push 0x100
lea eax, [ebp - 0x340]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10c]
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x240]
push eax
call fcn.10043730
push eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x340]
push eax
call fcn.10043807
add esp, 0x10
test eax, eax
je 0x100459e3
inc dword [ebp - 8]
cmp ebx, 1
je 0x10045a02
jmp 0x10045955
push 0x10
lea eax, [ebp - 0x138]
push eax
push dword [ebp + 8]
call fcn.100224b0
mov eax, dword [0x10099d1c]
add esp, 0xc
test byte [eax + 8], 1
je 0x10045a10
mov eax, dword [0x100c6304]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10046425
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
cmp byte [0x100c6358], 0
push ebx
push esi
push edi
jne 0x100465f4
push 8
mov esi, 0x100c6338
xor ebx, ebx
xor eax, eax
cmp byte [ebp + 8], bl
pop ecx
mov edi, esi
rep stosd dword es:[edi], eax
mov dword [0x100c6370], ebx
jne 0x100464e2
call fcn.10046688
test al, al
je 0x100464e2
mov dword [0x100c6360], 0x10046a08
mov dword [0x100c6364], 0x10046a20
call dword [0x100c6360]
xor ecx, ecx
mov cl, ah
movzx esi, cl
cmp esi, 1
jne 0x100465f8
xor edi, edi
xor esi, esi
push esi
push edi
push ebx
call fcn.10046d12
add esp, 0xc
cmp eax, 5
je 0x100464a9
cmp eax, 4
jne 0x100464b4
push esi
push edi
push ebx
call fcn.10046ef9
add esp, 0xc
inc esi
cmp esi, 8
jl 0x10046494
inc edi
cmp edi, 0xc
jl 0x10046492
inc ebx
cmp ebx, 0x10
jl 0x10046490
cmp dword [0x100c6370], 1
jge 0x100465ed
push 4
pop esi
call fcn.10046611
mov eax, esi
jmp 0x1004660c
push 8
pop ecx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov edi, str.wnaspi32.dll
lea eax, [ebp - 0x800]
push edi
push eax
mov dword [0x100c6370], ebx
call fcn.10043744
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop ecx
pop ecx
lea eax, [ebp - 0x800]
push eax
call esi
cmp eax, ebx
mov dword [0x100c635c], eax
jne 0x100465af
push 0x7ff
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebx, 0x1009e28c
lea eax, [ebp - 0x800]
push ebx
push eax
call fcn.10043786
lea eax, [ebp - 0x800]
push edi
push eax
call fcn.10043786
add esp, 0x10
lea eax, [ebp - 0x800]
push eax
call esi
test eax, eax
mov dword [0x100c635c], eax
jne 0x100465af
push 0x7ff
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x800]
push ebx
push eax
call fcn.10043786
lea eax, [ebp - 0x800]
push edi
push eax
call fcn.10043786
add esp, 0x10
lea eax, [ebp - 0x800]
push eax
call esi
test eax, eax
mov dword [0x100c635c], eax
jne 0x100465af
push 1
jmp 0x100464d5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetASPI32SupportInfo
push eax
call esi
push str.SendASPI32Command
push dword [0x100c635c]
mov dword [0x100c6360], eax
call esi
xor ebx, ebx
cmp dword [0x100c6360], ebx
mov dword [0x100c6364], eax
je 0x100465e6
cmp eax, ebx
jne 0x1004647a
push 5
jmp 0x100464d5
mov byte [0x100c6358], 1
xor eax, eax
jmp 0x1004660c
push esi
call fcn.10046d01
pop ecx
call fcn.10046611
mov eax, esi
shl eax, 8
or eax, 3
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10046688
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp byte [0x100c6368], 0
mov dword [ebp - 4], edi
je 0x100466a3
xor al, al
jmp 0x1004674e
push ebx
push esi
push 0x79c
push str.F:dev_fmodsrc375winwin_src_fsound_cdda.c
mov esi, 0x618
push esi
push edi
call fcn.1004417b
add esp, 0x10
mov dword [0x100c636c], eax
mov dword [0x100c6334], edi
mov dword [0x100c6378], edi
xor eax, eax
mov ecx, dword [0x100c636c]
or dword [eax + ecx + 0x14], 0xffffffff
add eax, 0x3c
cmp eax, esi
jl 0x100466d1
push 2
pop ebx
push 0x78
pop edi
mov al, bl
add al, 0x41
movsx eax, al
push eax
lea eax, [ebp - 8]
push str._c:_
push eax
call fcn.10025904
add esp, 0xc
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x10046730
mov eax, dword [0x100c636c]
add eax, edi
push eax
push ebx
call fcn.100468d2
mov eax, dword [0x100c636c]
cmp byte [edi + eax + 0x10], 0
pop ecx
pop ecx
je 0x10046730
inc dword [ebp - 4]
add edi, 0x3c
inc ebx
cmp edi, esi
jl 0x100466e9
call fcn.10046861
pop esi
mov dword [0x100c6334], eax
mov al, byte [ebp - 4]
mov byte [0x100c6368], 1
pop ebx
pop edi
leave
ret
Function at 0x1005b71d
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov esi, ecx
xor edi, edi
push str.software_asio
push reloc.WSOCK32.dll_bind
mov dword [ebp - 4], edi
xor ebx, ebx
mov dword [esi + 4], edi
mov dword [esi], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1005b785
push 0x80
lea ecx, [ebp - 0x84]
mov eax, ebx
push ecx
push eax
push dword [ebp - 4]
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, edi
jne 0x1005b785
push dword [esi]
lea eax, [ebp - 0x84]
push edi
push eax
push dword [ebp - 4]
call fcn.1005b7b7
add esp, 0x10
mov dword [esi], eax
jmp 0x1005b74f
cmp dword [ebp - 4], edi
je 0x1005b793
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
cmp eax, edi
je 0x1005b7a4
inc dword [esi + 4]
mov eax, dword [eax + 0x298]
jmp 0x1005b795
cmp dword [esi + 4], edi
je 0x1005b7b0
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x1005b7b7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3dc
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
push edi
jne 0x1005b901
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1005b922
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp + 0x14]
push eax
push esi
push str.clsid
push dword [ebp - 4]
mov dword [ebp + 0x14], 1
mov dword [ebp + 8], 0x100
call edi
test eax, eax
jne 0x1005b8f5
push 0x200
lea eax, [ebp - 0x3dc]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.1005b928
add esp, 0xc
test eax, eax
jne 0x1005b8f5
mov ebx, 0x29c
push ebx
call fcn.10022496
mov esi, eax
test esi, esi
pop ecx
je 0x1005b8f5
push ebx
push 0
push esi
call fcn.10022840
mov eax, dword [ebp + 0x10]
add esp, 0xc
push 0x64
mov dword [esi], eax
lea eax, [ebp - 0x1dc]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x114]
push eax
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1dc]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x1005b8af
push 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 4]
push eax
call fcn.100224b0
add esp, 0xc
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp + 0x14]
push eax
push ebx
push str.description
push dword [ebp - 4]
mov dword [ebp + 0x14], 1
mov dword [ebp + 8], 0x100
call edi
test eax, eax
jne 0x1005b8e4
lea eax, [ebp - 0x114]
push eax
jmp 0x1005b8e7
push dword [ebp + 0xc]
lea eax, [esi + 0x214]
push eax
call fcn.10023b70
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
jmp 0x1005b922
push dword [esi + 0x298]
mov eax, dword [ebp + 0x10]
lea edi, [esi + 0x298]
inc eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1005b7b7
add esp, 0x10
mov dword [edi], eax
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x1005b928
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a8
or dword [ebp - 0x18], 0xffffffff
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
call fcn.10022f00
pop ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_CharLowerBuffA]
lea eax, [ebp - 8]
push eax
push str.clsid
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, edi
jne 0x1005ba99
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
mov dword [ebp - 4], edi
cmp dword [ebp - 0xc], edi
jne 0x1005ba8e
mov eax, dword [ebp - 4]
inc dword [ebp - 4]
push 0x200
lea ecx, [ebp - 0x2a8]
push ecx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, edi
jne 0x1005ba8e
lea eax, [ebp - 0x2a8]
push eax
call fcn.10022f00
pop ecx
push eax
lea eax, [ebp - 0x2a8]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffA]
push dword [ebp + 8]
lea eax, [ebp - 0x2a8]
push eax
call fcn.10025880
test eax, eax
pop ecx
pop ecx
jne 0x1005b975
lea eax, [ebp - 0x14]
push eax
push 0x20019
push edi
lea eax, [ebp - 0x2a8]
push eax
push dword [ebp - 8]
call ebx
mov esi, eax
cmp esi, edi
jne 0x1005ba7f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push edi
push str.InprocServer32
push dword [ebp - 0x14]
call ebx
mov esi, eax
cmp esi, edi
jne 0x1005ba76
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
push edi
push edi
push dword [ebp - 0x10]
mov dword [ebp - 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp esi, edi
jne 0x1005ba6d
push 0x88
lea eax, [ebp - 0xa8]
push edi
push eax
call fcn.10022840
add esp, 0xc
push 0x4000
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0xc]
mov byte [ebp - 0xa8], 0x88
call dword [sym.imp.KERNEL32.dll_OpenFile]
test eax, eax
je 0x1005ba6d
mov dword [ebp - 0x18], edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
mov dword [ebp - 0xc], 1
je 0x1005b975
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov eax, dword [ebp - 0x18]
pop edi
leave
ret
Function at 0x10061d05
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
cmp dword [0x100e6338], 0
jne 0x10061d2a
lea eax, [esp]
push eax
push 2
call sub.WSOCK32.dll_WSAStartup
mov dword [0x100e6338], 1
mov al, 1
add esp, 0x190
ret

Function at 0x10061d4b
Capabilities:
Create udp socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, ecx
sub eax, 0
je 0x10061d5d
dec eax
jne 0x10061d60
push 2
jmp 0x10061d5f
push 1
pop ecx
push 0
push ecx
push 2
call sub.WSOCK32.dll_socket
ret

Function at 0x10061d75
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10061dd7
cmp byte [esi], 0
je 0x10061dd7
cmp dword [ebp + 0x10], 0
je 0x10061dd7
push 0x10
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.10022840
push 0x10
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.10022840
push 0x2e
lea eax, [ebp - 0x50]
push eax
push esi
call fcn.10061e59
add esp, 0x24
test eax, eax
je 0x10061dce
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.10061e11
test eax, eax
pop ecx
pop ecx
jne 0x10061ddd
push dword [ebp + 8]
call fcn.10061d6b
pop ecx
or eax, 0xffffffff
pop esi
leave
ret
push 4
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.100224b0
add esp, 0xc
push dword [ebp + 0x10]
mov word [ebp - 0x10], 2
call sub.WSOCK32.dll_htons
mov word [ebp - 0xe], ax
push 0x10
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.WSOCK32.dll_connect
jmp 0x10061dda

Function at 0x10061e11
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push str._d._d._d._d
push dword [ebp + 8]
call fcn.1006cb7d
add esp, 0x18
cmp eax, 4
jge 0x10061e40
xor eax, eax
leave
ret
push dword [ebp + 8]
call sub.WSOCK32.dll_inet_addr
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
leave
ret

Function at 0x10061e59
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
call fcn.10061eac
test eax, eax
pop ecx
je 0x10061e85
mov edi, dword [ebp + 0x10]
push edi
push dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push esi
call fcn.1004375b
add esp, 0xc
and byte [esi + edi - 1], 0
jmp 0x10061ea6
push dword [ebp + 8]
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x10061ea4
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call sub.WSOCK32.dll_inet_ntoa
mov edi, dword [ebp + 0x10]
push edi
push eax
jmp 0x10061e72
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x10062b94
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp eax, ecx
je 0x10062c2b
mov edx, dword [eax]
mov byte [edx + 0x16], cl
mov edx, dword [eax]
mov byte [edx + 0x17], cl
mov edx, dword [eax]
mov byte [edx + 0x18], cl
mov edx, dword [eax]
push ebx
push esi
mov byte [edx + 0x19], cl
mov esi, dword [eax + 4]
xor edx, edx
cmp esi, ecx
push edi
jle 0x10062be0
mov edi, dword [eax]
movzx edi, byte [edi + edx]
mov ebx, ecx
shr ebx, 0x18
xor edi, ebx
mov edi, dword [edi*4 + 0x100a3354]
shl ecx, 8
xor ecx, edi
inc edx
cmp edx, esi
jl 0x10062bc2
xor edx, edx
cmp dword [eax + 0xc], edx
jle 0x10062c07
mov esi, dword [eax + 8]
movzx edi, byte [esi + edx]
mov ebx, ecx
shr ebx, 0x18
xor edi, ebx
mov edi, dword [edi*4 + 0x100a3354]
shl ecx, 8
xor ecx, edi
inc edx
cmp edx, dword [eax + 0xc]
jl 0x10062bea
mov edx, dword [eax]
mov byte [edx + 0x16], cl
mov esi, dword [eax]
mov edx, ecx
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [eax]
mov edx, ecx
shr edx, 0x10
mov byte [esi + 0x18], dl
mov eax, dword [eax]
pop edi
shr ecx, 0x18
pop esi
mov byte [eax + 0x19], cl
pop ebx
ret

Function at 0x1007a918
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x1007a945
push esi
call fcn.1007ef59
cmp byte [esi + 0x40], 0
pop ecx
je 0x1007a93e
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x1007a9b4
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x1007a9a9
mov eax, dword [esi + 8]
test eax, eax
je 0x1007a966
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x190]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x1007a9a5
cmp eax, 2
je 0x1007a9a9
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1007a95b
cmp eax, 3
je 0x1007a98a
cmp eax, 1
jne 0x1007a95b
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x1007a95b
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x1007a95b
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x1007a9d2
cmp eax, 0xcc
je 0x1007a9d2
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
mov eax, dword [esi]
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
push esi
call fcn.1007a9db
pop ecx
pop esi
ret

Function at 0x1007a9db
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xcc
je 0x1007a9fe
mov eax, dword [esi + 0x180]
push esi
call dword [eax]
and dword [esi + 0x78], 0
pop ecx
mov dword [esi + 0x14], 0xcc
mov eax, dword [esi + 0x180]
cmp byte [eax + 8], 0
je 0x1007aa1b
mov eax, dword [esi]
mov dword [eax + 0x14], 0x30
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
jmp 0x1007a9fe
xor eax, eax
cmp byte [esi + 0x41], al
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov al, 1
pop esi
ret
Function at 0x1007dcb9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x1007dcc7
xor eax, eax
pop ebp
ret
cmp dword [ebp + 0x10], 8
mov eax, dword [ebp + 8]
push esi
push edi
not eax
mov ecx, 0xff
jb 0x1007dda9
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
and esi, ecx
xor esi, ebx
mov ebx, eax
mov eax, dword [esi*4 + 0x1008ac60]
shr ebx, 8
xor eax, ebx
movzx ebx, byte [edx + 1]
mov esi, eax
and esi, ecx
xor esi, ebx
mov esi, dword [esi*4 + 0x1008ac60]
shr eax, 8
xor esi, eax
inc edx
movzx ebx, byte [edx + 1]
mov eax, esi
and eax, ecx
xor eax, ebx
mov eax, dword [eax*4 + 0x1008ac60]
shr esi, 8
xor eax, esi
inc edx
movzx ebx, byte [edx + 1]
mov esi, eax
and esi, ecx
xor esi, ebx
mov esi, dword [esi*4 + 0x1008ac60]
shr eax, 8
xor esi, eax
inc edx
movzx ebx, byte [edx + 1]
mov eax, esi
and eax, ecx
xor eax, ebx
mov eax, dword [eax*4 + 0x1008ac60]
shr esi, 8
xor eax, esi
inc edx
movzx ebx, byte [edx + 1]
mov esi, eax
and esi, ecx
xor esi, ebx
mov esi, dword [esi*4 + 0x1008ac60]
inc edx
movzx ebx, byte [edx + 1]
shr eax, 8
xor esi, eax
sub dword [ebp + 0x10], 8
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
mov eax, dword [eax*4 + 0x1008ac60]
movzx ebx, byte [edx + 1]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
mov esi, dword [esi*4 + 0x1008ac60]
shr eax, 8
xor eax, esi
inc edx
dec edi
jne 0x1007dce4
pop ebx
cmp dword [ebp + 0x10], 0
je 0x1007ddca
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
mov esi, dword [esi*4 + 0x1008ac60]
shr eax, 8
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x1007ddaf
pop edi
not eax
pop esi
pop ebp
ret