joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008ec6
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x10008f28
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, ecx
test edx, edx
jne 0x10008f38
push 0xd
pop eax
jmp 0x10008f6e
push ebp
push esi
push edi
xor esi, esi
mov edi, edx
mov ecx, edi
lea ebp, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10008f44
sub ecx, ebp
lea eax, [ecx + 1]
add edi, eax
add esi, eax
cmp eax, 1
jne 0x10008f3f
push esi
push edx
push 7
push 0
push dword [esp + 0x24]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x1000b60d
Capabilities:
Encode data using xor

Disassembly:
sub eax, 0xb28bfc8b
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x37c9b
add eax, dword [eax]
push 0
mov eax, 0x87ccc6b5
add eax, 0x88340a53
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x5ffd81cc
add ecx, 0xa002c7d4
xor edx, edx
add edx, eax
mov esi, 0x10021400
add esi, dword [ebp - 0x28]
mov ebx, 0xdf369dca
add dword [ebp - 0x18], 0xa212f792
mov edi, dword [esi]
invalid
popfd
invalid
invalid

Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x40ac1a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40ac29
pop dword [ebp - 0x44]
mov eax, 0x40ac29
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x71095803
sub dword [ebp - 0x54], 0x22b712b8
mov dword [ebp - 0x50], 0xad30c16c
add dword [ebp - 0x50], 0x85028ad9
mov dword [ebp - 0x4c], 0x57314b62
sub dword [ebp - 0x4c], 0xae50734
mov dword [ebp - 0x48], 0xcca92535
add dword [ebp - 0x48], 0x3356dacb
lea eax, [ebp - 0x54]
push eax
mov eax, 0x1f7f3e78
sub eax, 0x1f3e6e2c
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x1a696a96
add dword [ebp - 0x54], 0x5a08fec0
mov dword [ebp - 0x50], 0x2ba030cf
sub dword [ebp - 0x50], 0xea33cf5a
mov dword [ebp - 0x4c], 0x1e08e039
add dword [ebp - 0x4c], 0x45668c33
mov dword [ebp - 0x48], 0xf7a46b75
sub dword [ebp - 0x48], 0xf7a46b75
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3ebe8
push 0
call eax
mov ecx, 0x5bc5
xor edi, edi
add edi, eax
mov ebx, 0xe8cac89e
sub ebx, 0xe889189e
add ebx, dword [ebp - 0x44]
mov edx, 0x3fcbc080
xor dword [ebp - 0x20], 0xd9e53cf9
mov esi, dword [ebx]
sub dword [ebp - 0xc], edx
add esi, edx
sub dword [ebp - 0x14], 0xe064c5b8
mov dword [edi], esi
add edi, 0x43d06755
sub edi, 0x43d06751
add ebx, 0x26361093
sub ebx, 0x2636108f
loop 0x40ad37
add eax, 0x12b9a03a
sub eax, 0x12b83e53
mov ebx, eax
add eax, 0x46170144
add eax, 0xb9e8fec1
mov ecx, 0xcf38a1ad
sub ecx, 0xcef8a1ad
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x403327
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
push ebx
push esi
mov ebx, ecx
push edi
push ebx
lea ecx, [ebp - 0xc]
call fcn.00414803
push 0x41dbcc
lea ecx, [ebp - 0xc]
call fcn.00414922
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x403405
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push ebx
lea ecx, [ebp - 0xc]
call fcn.00414864
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.00401585
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0xc]
call fcn.00414922
test byte [ebp - 0x260], 0x10
je 0x4033cc
push 0x41dbc8
lea eax, [ebp - 0x234]
push eax
call edi
test eax, eax
je 0x4033e4
push 0x41dbc0
lea eax, [ebp - 0x234]
push eax
call edi
test eax, eax
je 0x4033e4
mov ecx, dword [ebp - 0xc]
call fcn.00403327
jmp 0x4033e0
push 0
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x403432
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x403432
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403373
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [0x422794]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
push ebx
call esi
test eax, eax
je 0x403432
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x403432
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x40343c
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403442
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
cmp dword [0x4228d8], 0
push esi
mov esi, ecx
je 0x40345c
xor eax, eax
inc eax
jmp 0x4034a0
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x403457
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x250], 0x10
jne 0x403499
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x403495
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4034a0
xor eax, eax
jmp 0x4034a0
mov ecx, esi
call fcn.00403327
pop esi
leave
ret
Function at 0x4042b5
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], edx
mov esi, ecx
call fcn.004147df
push 2
mov ecx, esi
call fcn.0040420b
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push 1
call edi
mov ecx, dword [esi]
xor ebp, ebp
xor edx, edx
mov dword [esi + 4], ebp
mov word [ecx], dx
cmp eax, ebp
jbe 0x4042ff
lea ebx, [eax + 1]
push ebx
mov ecx, esi
call fcn.0040420b
push eax
push ebx
call edi
mov ecx, esi
call fcn.004041f0
mov eax, dword [esi + 4]
lea ebx, [eax + 0xf]
lea edi, [eax + eax]
push ebx
mov ecx, esi
call fcn.0040420b
push ebp
push dword [esp + 0x14]
add eax, edi
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, esi
call fcn.004041f0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40433e
inc ebp
cmp ebp, 0xfff
jl 0x404308
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40468a
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov ebx, ecx
push edi
push ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp - 0x1c]
mov esi, eax
mov dword [ebp - 4], eax
call fcn.00414803
push 0
lea ecx, [ebp - 0x1c]
call fcn.0040420b
mov edi, eax
movzx eax, word [ebx + esi*2 - 2]
cmp eax, 0x5c
je 0x4046c8
cmp eax, 0x2f
jne 0x4046f6
xor eax, eax
mov word [edi + esi*2 - 2], ax
dec esi
mov dword [ebp - 4], esi
jmp 0x4046f6
movzx eax, word [edi + esi*2]
cmp eax, 0x2f
je 0x4046e8
cmp eax, 0x5c
je 0x4046e8
dec esi
test esi, esi
jg 0x4046d5
test esi, esi
je 0x404798
xor eax, eax
mov word [edi + esi*2], ax
mov ecx, edi
call fcn.00403092
test eax, eax
je 0x4046e4
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x40472b
lea edx, [ebp - 0x10]
mov ecx, edi
call fcn.00404402
test eax, eax
je 0x40472b
xor esi, esi
jmp 0x4047bb
mov ecx, edi
call fcn.00403092
test eax, eax
jne 0x404785
push edi
push 0xc
push 1
call fcn.00409684
add esp, 0xc
jmp 0x404724
mov eax, dword [ebp - 4]
sub eax, esi
inc eax
push eax
mov eax, dword [ebp - 8]
lea eax, [eax + esi*2]
push eax
lea ebx, [edi + esi*2]
push ebx
call sub.MSVCRT.dll_memcpy
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x404777
jmp 0x404776
movzx eax, word [edi + esi*2]
cmp eax, 0x5c
je 0x40477d
cmp eax, 0x2f
je 0x40477d
inc esi
cmp word [edi + esi*2], cx
jne 0x404768
xor eax, eax
mov word [edi + esi*2], ax
jmp 0x40472b
cmp esi, dword [ebp - 4]
jl 0x404745
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x4047df
cmp dword [ebp - 4], 2
jne 0x4047c8
mov ax, word [ebx]
or ax, 0x20
cmp ax, 0x61
jb 0x4047c8
cmp ax, 0x7a
ja 0x4047c8
cmp word [ebx + 2], 0x3a
jne 0x4047c8
xor esi, esi
inc esi
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x4047df
push ebx
push 0xc
push 1
call fcn.00409684
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404f59
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
Function at 0x404f69
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00404b82
push eax
push esi
push dword [ebp + 8]
call fcn.00404b37
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00404b82
push eax
push esi
push dword [ebp + 8]
call fcn.00404b37
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00404b72
arpl si, sp
cmp ah, byte [eax + ecx*4 - 0x8363]
dec dword [eax - 0x8263]
inc esi
test dword [esi - 1], edi
invalid

Function at 0x405a7a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax]
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00404b50
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
invalid
movsd dword es:[edi], dword [esi]
xchg ebp, eax
cld

Function at 0x40709f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 8]
push eax
xor eax, eax
push eax
push dword [ebp + 8]
mov esi, ecx
push edx
push eax
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov ecx, eax
mov dword [esi], eax
call fcn.0040705a
pop esi
pop ebp
ret 4

Function at 0x408c93
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
call fcn.00407597
test eax, eax
jne 0x408cb1
push eax
push eax
push esi
push 0x4082d6
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
ret
push dword [0x422738]
mov ecx, esi
push dword [esi + 4]
call fcn.0040790b
push 0x2d
pop ecx
call fcn.00403ce0
push eax
push 0x4b2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov ecx, esi
call fcn.0040790b
pop esi
ret
Function at 0x10008ec6
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x10008f28
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, ecx
test edx, edx
jne 0x10008f38
push 0xd
pop eax
jmp 0x10008f6e
push ebp
push esi
push edi
xor esi, esi
mov edi, edx
mov ecx, edi
lea ebp, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10008f44
sub ecx, ebp
lea eax, [ecx + 1]
add edi, eax
add esi, eax
cmp eax, 1
jne 0x10008f3f
push esi
push edx
push 7
push 0
push dword [esp + 0x24]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x1000b633
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x3a73
mov edx, eax
mov edi, 0x10021400
add edi, dword [ebp - 0x20]
mov esi, 0x1175b813
add dword [ebp - 0x18], eax
mov ebx, dword [edi]
add dword [ebp - 8], eax
add ebx, esi
sub dword [ebp - 0x14], edi
mov dword [edx], ebx
xor dword [ebp - 0x10], eax
inc dword [ecx + 0x1b875cc2]
xor byte [ecx + 0x1b8758ea], al
xor byte [ecx + 0x48be9cc7], al
mov esi, 0xbe98ef81
dec eax
invalid
loop 0x1000b64a
Function at 0x10004c20
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
lea eax, [ebp - 0x190]
mov dword [esp], 0x101
mov dword [esp + 4], eax
call dword [sym.imp.ws2_32.dll_WSAStartup]
sub esp, 8
test eax, eax
jne 0x10004c60
mov dword [0x1001d004], 1
leave
mov eax, 1
ret 0xc
test byte [0x1000b0c0], 2
je 0x10004c51
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.WSAStartup_failed:__lu_n
mov dword [esp + 8], str.winsock_startup
mov dword [esp + 4], 0x1000b0c0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_2
mov eax, 1
leave
ret 0xc

Function at 0x10005700
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, 0xffffffff
sub esp, 0x18
mov esi, dword [ebp + 8]
lock xadd dword [esi + 4], ebx
sub ebx, 1
test byte [0x1000b0e0], 8
jne 0x10005730
test ebx, ebx
je 0x10005763
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4
lea eax, [ebx + 1]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.__p____ref_before_lu__n
mov dword [esp + 8], str.IDirectPlay8LobbiedApplicationImpl_Release
mov dword [esp + 4], 0x1000b0e0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
test ebx, ebx
jne 0x10005725
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, ebx
sub esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 4
Function at 0x10005ab0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
test byte [0x1000b0e0], 8
jne 0x10005b20
mov dword [esp + 8], 0x18
mov dword [esp + 4], 8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x10005bef
mov dword [eax], sym._IDirectPlay8LobbiedApplicationImpl_QueryInterface_12
mov dword [eax + 4], 0
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._IDirectPlay8LobbiedApplicationImpl_QueryInterface_12
sub esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
test ebx, ebx
je 0x10005be8
mov eax, ebx
shr eax, 0x10
je 0x10005bd0
movzx eax, byte [ebx + 0xf]
mov dword [esp + 0x2c], eax
movzx eax, byte [ebx + 0xe]
mov dword [esp + 0x28], eax
movzx eax, byte [ebx + 0xd]
mov dword [esp + 0x24], eax
movzx eax, byte [ebx + 0xc]
mov dword [esp + 0x20], eax
movzx eax, byte [ebx + 0xb]
mov dword [esp + 0x1c], eax
movzx eax, byte [ebx + 0xa]
mov dword [esp + 0x18], eax
movzx eax, byte [ebx + 9]
mov dword [esp + 0x14], eax
movzx eax, byte [ebx + 8]
mov dword [esp + 0x10], eax
movzx eax, word [ebx + 6]
mov dword [esp + 0xc], eax
movzx eax, word [ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [ebx]
mov dword [esp], 0x1000e6b0
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_3
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x1000e73e
mov dword [esp + 8], str.DPNET_CreateDirectPlay8LobbiedApp
mov dword [esp + 4], 0x1000b0e0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x10005ac7
movzx eax, bx
mov dword [esp], 0x1000e6a0
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_3
jmp 0x10005b95
mov eax, 0x1000e737
jmp 0x10005b95
mov dword [esi], 0
mov eax, 0x8007000e
jmp 0x10005b17
Function at 0x10009190
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, 0xffffffff
sub esp, 0xc
mov eax, dword [ebp + 8]
lock xadd dword [eax + 4], ebx
sub ebx, 1
je 0x100091b8
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret 4
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, ebx
mov ebx, dword [ebp - 4]
sub esp, 0xc
leave
ret 4

Function at 0x10009610
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov eax, dword fs:[0x18]
mov ebp, esp
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 0x14]
mov dword [esp + 8], 8
mov dword [esp + 4], 8
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x10009672
mov edx, dword [ebp + 0x10]
mov dword [eax], sym._IDirectPlay8ThreadPoolImpl_QueryInterface_12
mov dword [eax + 4], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._IDirectPlay8ThreadPoolImpl_QueryInterface_12
sub esp, 0xc
mov ebx, eax
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
mov dword [ebx], 0
mov ebx, 0x8007000e
test byte [0x1000b110], 4
je 0x1000966b
mov dword [esp + 0xc], str.Not_enough_memory_n
mov dword [esp + 8], str.DPNET_CreateDirectPlay8ThreadPool
mov dword [esp + 4], 0x1000b110
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_6
jmp 0x1000966b

Function at 0x10009700
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x10009758
cmp byte [esi + ebx - 1], 0xa
je 0x1000972c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x1001d0a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10009d80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x10009f58
mov edi, dword [0x1001d0a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x10009e67
test byte [0x1000b128], 8
jne 0x10009f00
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x1000b138], 8
jne 0x10009ec0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10009e09
cmp esi, 3
jbe 0x10009e78
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x10009e1a
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x10016ec0]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10009e09
mov dword [esp], 0x1000b138
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10009de0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x10009de0
mov dword [esp], 0x1000b128
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10009dcb
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x10009dd3
mov eax, 0xffffffff
jmp 0x10009e67
Function at 0x10009ff0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x214
mov eax, dword [0x1001d0c0]
test eax, eax
je 0x1000a0a8
mov dword [esp], ebx
call eax
mov dword [ebx + 8], eax
sub esp, 4
test eax, eax
jns 0x1000a030
mov eax, dword [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x214]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.MODULE
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemRoot
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x1000a01c
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x1000a0dd
mov dword [esp + 4], str.AtlCreateRegistrar
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x1001d0c0], eax
sub esp, 8
test eax, eax
jne 0x1000a00d
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x1000a01e