joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b12d0
Capabilities:
Encode data using base64

Disassembly:
push ebp
push edi
push esi
push ebx
push ecx
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
test esi, esi
jle 0x5b137f
lea ecx, [edi + 4]
mov dword [esp], 0
lea esi, [esi]
lea edi, [edi]
xor edx, edx
mov dl, byte [ebx]
cmp esi, 2
jle 0x5b1388
mov edi, edx
shl edi, 0x10
xor edx, edx
mov dl, byte [ebx + 1]
shl edx, 8
or edx, edi
movzx edi, byte [ebx + 2]
and edi, 0xff
or edx, edi
mov edi, ecx
mov ebp, edx
shr ebp, 0x12
mov al, byte [ebp + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 4], al
mov ebp, edx
shr ebp, 0xc
and ebp, 0x3f
mov al, byte [ebp + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 3], al
mov ebp, edx
shr ebp, 6
and ebp, 0x3f
mov al, byte [ebp + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 2], al
and edx, 0x3f
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
add dword [esp], 4
add ebx, 3
sub esi, 3
add ecx, 4
test esi, esi
jg 0x5b1300
mov byte [edi], 0
mov eax, dword [esp]
pop edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0
jmp 0x5b1373
shl edx, 0x10
cmp esi, 2
je 0x5b13ba
mov edi, edx
shr edi, 0x12
mov al, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 4], al
shr edx, 0xc
and edx, 0x3f
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 3], al
mov dl, 0x3d
mov edi, ecx
mov byte [ecx - 2], dl
mov byte [ecx - 1], 0x3d
jmp 0x5b1362
movzx edi, byte [ebx + 1]
and edi, 0xff
shl edi, 8
or edx, edi
mov edi, edx
shr edi, 0x12
mov al, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 4], al
mov edi, edx
shr edi, 0xc
and edi, 0x3f
mov al, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 3], al
shr edx, 6
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x5b13af
Function at 0x5c69c0
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x5c6a51
test ebx, ebx
je 0x5c6a70
test esi, esi
je 0x5c6a60
mov eax, dword [esp + 0x48]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
lea ebp, [esp + 0x14]
mov dword [esp + 4], ebp
mov eax, dword [ebx + 8]
mov dword [esp], eax
call fcn.004ecc80
test eax, eax
je 0x5c6a20
mov eax, dword [eax + 8]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, 0x69afc8
mov ecx, 4
repe cmpsb byte [esi], byte es:[edi]
je 0x5c6a80
mov dword [esp + 0x14], 0x69afc0
mov eax, dword [esp + 0x48]
mov dword [esp + 0x18], eax
mov dword [esp + 4], ebp
mov eax, dword [ebx + 8]
mov dword [esp], eax
call fcn.004ecc80
test eax, eax
jne 0x5c6a06
xor eax, eax
jmp 0x5c6a09
lea ebp, [esp + 0x14]
jmp 0x5c6a2e
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call sub.msvcrt.dll_getenv
jmp 0x5c6a09
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call sub.msvcrt.dll_getenv
test eax, eax
jne 0x5c6a09
jmp 0x5c6a2e

Function at 0x5d5610
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov ebx, dword [ecx + 4]
mov ecx, dword [ecx]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x40]
test eax, eax
jle 0x5d56e7
xor ebx, ebx
lea ebp, [esp + 0x14]
mov edi, esi
mov esi, dword [esp + 0x3c]
lea esi, [esi]
lea edi, [edi]
mov dword [esp + 8], ebp
lea eax, [esp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.005d4470
mov cl, byte [edi]
xor ecx, dword [esp + 0x14]
mov byte [esi], cl
mov byte [esp + 0xc], cl
mov cl, byte [edi + 1]
xor cl, byte [esp + 0x15]
mov byte [esi + 1], cl
mov byte [esp + 0xd], cl
mov cl, byte [edi + 2]
xor cl, byte [esp + 0x16]
mov byte [esi + 2], cl
mov byte [esp + 0xe], cl
mov cl, byte [edi + 3]
xor cl, byte [esp + 0x17]
mov byte [esi + 3], cl
mov byte [esp + 0xf], cl
mov cl, byte [edi + 4]
xor ecx, dword [esp + 0x18]
mov byte [esi + 4], cl
mov byte [esp + 0x10], cl
mov cl, byte [edi + 5]
xor cl, byte [esp + 0x19]
mov byte [esi + 5], cl
mov byte [esp + 0x11], cl
mov cl, byte [edi + 6]
xor cl, byte [esp + 0x1a]
mov byte [esi + 6], cl
mov byte [esp + 0x12], cl
mov cl, byte [edi + 7]
xor cl, byte [esp + 0x1b]
mov byte [esi + 7], cl
mov byte [esp + 0x13], cl
inc ebx
add edi, 8
add esi, 8
cmp ebx, dword [esp + 0x40]
jne 0x5d5650
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x5dc680
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x5dc6a0
mov eax, dword [0x6e8784]
test eax, eax
je 0x5dc6b0
add esp, 0x2c
ret
xor eax, eax
add esp, 0x2c
ret
mov dword [esp], str.CRYPT_PARAMS
call sub.msvcrt.dll_getenv
test eax, eax
je 0x5dc6a0
mov edx, dword [0x6e8784]
test edx, edx
je 0x5dc6da
mov dword [esp + 0x1c], eax
mov dword [esp], edx
call fcn.004b8030
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.004e59a0
mov dword [0x6e8784], eax
jmp 0x5dc694
Function at 0x5e90d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov eax, dword [esi + 4]
mov edx, dword [ebx + 4]
cmp eax, edx
jge 0x5e9190
mov ecx, eax
mov eax, edx
mov edi, dword [esp + 0x30]
cmp dword [edi + 8], eax
jl 0x5e91a5
test ecx, ecx
jle 0x5e91cd
mov eax, dword [esp + 0x30]
mov ebp, dword [eax]
mov edi, dword [ebx]
mov ecx, dword [esi]
xor eax, eax
lea esi, [esi]
lea edi, [edi]
mov edx, dword [ecx + eax*4]
xor edx, dword [edi + eax*4]
mov dword [ebp + eax*4], edx
inc eax
cmp dword [esi + 4], eax
jg 0x5e9120
mov edx, dword [ebx + 4]
cmp edx, eax
jle 0x5e914e
mov edi, dword [esp + 0x30]
mov esi, dword [edi]
mov ecx, dword [ebx]
nop
mov edx, dword [ecx + eax*4]
mov dword [esi + eax*4], edx
inc eax
mov edx, dword [ebx + 4]
cmp edx, eax
jg 0x5e9140
mov eax, dword [esp + 0x30]
mov dword [eax + 4], edx
test edx, edx
jle 0x5e91c0
mov eax, dword [eax]
lea eax, [eax + edx*4 - 4]
nop
sub eax, 4
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x5e916d
dec edx
jne 0x5e9160
mov eax, dword [esp + 0x30]
mov dword [eax + 4], edx
mov eax, 1
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, edx
mov edx, ebx
mov ebx, esi
mov esi, edx
mov edi, dword [esp + 0x30]
cmp dword [edi + 8], eax
jge 0x5e90fe
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004d3100
test eax, eax
jne 0x5e91d4
xor eax, eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 1
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
jmp 0x5e9130
mov ecx, dword [esi + 4]
jmp 0x5e90fe
Function at 0x5f9870
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
push ebx
sub esp, 0x14
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x5f9a00
mov esi, dword [ebx + 0x1c]
test esi, esi
je 0x5f9a00
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x5f9a00
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x5f9a00
mov eax, dword [esi + 8]
mov dword [ebx + 0x14], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x2c], 2
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x14], 0
test eax, eax
js 0x5f99c5
jne 0x5f99ca
mov dword [esi + 4], 0x71
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00606000
mov dword [ebx + 0x30], eax
mov dword [esi + 0x28], 0
mov dword [esp], esi
xor esi, esi
call fcn.006011e0
mov ebx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x4c]
add eax, eax
mov dword [ebx + 0x3c], eax
mov eax, dword [ebx + 0x44]
lea edx, [ecx + 0x7fffffff]
lea ecx, [edx + edx]
mov word [eax + edx*2], si
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0x84]
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x74], 0
lea edx, [eax + eax*2]
shl edx, 2
lea eax, [edx + 0x6a3600]
movzx ecx, word [edx + 0x6a3602]
movzx edx, word [edx + 0x6a3600]
mov dword [ebx + 0x16b4], 0
mov dword [ebx + 0x78], 2
mov dword [ebx + 0x80], ecx
mov dword [ebx + 0x8c], edx
movzx edx, word [eax + 4]
movzx eax, word [eax + 6]
mov dword [ebx + 0x60], 2
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x90], edx
mov dword [ebx + 0x7c], eax
xor eax, eax
mov dword [ebx + 0x48], 0
add esp, 0x14
pop ebx
pop esi
ret
neg eax
mov dword [esi + 0x18], eax
cmp eax, 2
mov dword [esi + 4], 0x2a
jne 0x5f98e3
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00606690
jmp 0x5f98ff
mov eax, 0xfffffffe
jmp 0x5f99bf
Function at 0x6073b0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x1c
mov dword [esp], str.CHARSET
call sub.msvcrt.dll_getenv
test eax, eax
je 0x6073d2
cmp byte [eax], 0
mov edx, str.ASCII
cmove eax, edx
add esp, 0x1c
ret
mov eax, str.ASCII
add esp, 0x1c
ret
Function at 0x620360
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.006203c0

Function at 0x6203c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x6e9860]
test esi, esi
jle 0x6204ad
mov edi, dword [0x6e9864]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x6203f4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x6204a6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x6203e0
mov dword [esp], eax
mov ebx, eax
call fcn.00620cf0
mov edi, eax
test eax, eax
je 0x6204ea
lea ebx, [esi + esi*2]
mov esi, dword [0x6e9864]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.00620df0
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [0x6e9864]
mov dword [esp + 8], 0x1c
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6204ca
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x62049f
sub eax, 0x40
and eax, 0xffffffbf
je 0x62049f
mov eax, dword [esp + 0x20]
mov dword [esp + 8], 0x40
add ebx, dword [0x6e9864]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x6204b4
add dword [0x6e9860], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x6203fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00620360
mov eax, dword [0x6e9864]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00620360
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00620360
lea esi, [esi]
Function at 0x620960
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6e9878
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6e9870]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x6209b5
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6209ae
test esi, esi
je 0x6209ae
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x620990
mov dword [esp], 0x6e9878
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x620c10
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx eax, word [edx + 0x14]
movzx esi, word [edx + 6]
lea eax, [edx + eax + 0x18]
test esi, esi
je 0x620c48
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x620c3e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x620c4a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x620c30
xor eax, eax
pop ebx
pop esi
ret
Function at 0x10004380
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, eax
sub esp, 0x14
mov eax, dword [eax + 0x38]
mov edx, dword [eax + 4]
cmp edx, 0xffffffff
je 0x100043be
mov dword [esp], edx
mov dword [esp + 4], 0
call dword [sym.imp.kernel32.dll_TerminateThread]
mov eax, dword [ebx + 0x38]
sub esp, 8
mov eax, dword [eax + 4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebx + 0x38]
sub esp, 4
mov ecx, dword [eax + 0x2c]
mov edx, dword [ecx + 0x48]
test edx, edx
je 0x100044b8
test byte [0x1001a03c], 8
jne 0x10004480
mov eax, dword [eax + 0x30]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
mov dword [esp], eax
call edx
mov eax, dword [ebx + 0x38]
sub esp, 4
mov edx, dword [eax + 0x6c]
test edx, edx
je 0x10004403
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov eax, dword [ebx + 0x38]
sub esp, 4
mov edx, dword [eax + 0x70]
test edx, edx
je 0x10004419
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov eax, dword [ebx + 0x38]
sub esp, 4
mov eax, dword [eax + 0x10]
mov dword [esp], eax
call sym._NS_DeleteSessionCache
mov eax, dword [ebx + 0x38]
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [eax + 0x58]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x38]
mov eax, dword [eax + 0x20]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x38]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov eax, dword [ebx + 0x38]
sub esp, 4
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x20]
mov dword [eax + 0x18], 0
lea eax, [ebx + 0x20]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DeleteCriticalSection]
sub esp, 4
mov dword [esp], ebx
call esi
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 0xc], str.Calling_SP_ShutdownEx_n
mov dword [esp + 8], str.DP_DestroyDirectPlay2
mov dword [esp + 4], 0x1001a03c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov eax, dword [ebx + 0x38]
mov edx, dword [eax + 0x2c]
mov edx, dword [edx + 0x48]
jmp 0x100043d9
mov edx, dword [ecx + 0x40]
test edx, edx
je 0x100043ed
test byte [0x1001a03c], 8
jne 0x100044e0
call edx
mov eax, dword [ebx + 0x38]
jmp 0x100043ed
mov dword [esp + 0xc], str.Calling_obsolete_SP_Shutdown_n
mov dword [esp + 8], str.DP_DestroyDirectPlay2
mov dword [esp + 4], 0x1001a03c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov eax, dword [ebx + 0x38]
mov eax, dword [eax + 0x2c]
mov edx, dword [eax + 0x40]
jmp 0x100044cc
Function at 0x10012bf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x20
mov esi, dword [ebp + 8]
mov dword [esp], 0x10
call dword [sym.imp.ucrtbase.dll_malloc]
test eax, eax
je 0x10012d36
mov ebx, eax
test esi, esi
je 0x10012c55
lea eax, [eax + 0xc]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], esi
mov dword [esp], 0xffffffff
call dword [sym.imp.kernel32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je 0x10012cb8
mov eax, dword [ebp + 0xc]
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 8], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], sym._DPL_MSG_ThreadMain_4
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
sub esp, 0x18
test eax, eax
je 0x10012cd8
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
test byte [0x1001a07c], 2
jne 0x10012d10
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
test byte [0x1001a07c], 2
je 0x10012cc1
mov dword [esp + 0xc], str.Unable_to_create_msg_thread_n
mov dword [esp + 8], str.CreateLobbyMessageReceptionThread
mov dword [esp + 4], 0x1001a07c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_5
jmp 0x10012cc1
mov dword [esp + 0xc], str.Unable_to_duplicate_event_handle_n
mov dword [esp + 8], str.CreateLobbyMessageReceptionThread
mov dword [esp + 4], 0x1001a07c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_5
jmp 0x10012cc1
xor eax, eax
jmp 0x10012cac
Function at 0x10018bc0
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 0x10018c18
cmp byte [esi + ebx - 1], 0xa
je 0x10018bec
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x100310c4], 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 0x10019260
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 0x10019438
mov edi, dword [0x100310c4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x10019347
test byte [0x1001a0c4], 8
jne 0x100193e0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x1001a0d4], 8
jne 0x100193a0
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 0x100192e9
cmp esi, 3
jbe 0x10019358
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 0x100192fa
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 + 0x10029a50]
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 0x100192e9
mov dword [esp], 0x1001a0d4
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x100192c0
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 0x100192c0
mov dword [esp], 0x1001a0c4
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x100192ab
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 0x100192b3
mov eax, 0xffffffff
jmp 0x10019347
Function at 0x100194d0
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 [0x100310e0]
test eax, eax
je 0x10019588
mov dword [esp], ebx
call eax
mov dword [ebx + 8], eax
sub esp, 4
test eax, eax
jns 0x10019510
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 0x100194fc
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x100195bd
mov dword [esp + 4], str.AtlCreateRegistrar
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x100310e0], eax
sub esp, 8
test eax, eax
jne 0x100194ed
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x100194fe
Function at 0x100195d0
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edx, dword [ebp - 0x10]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
sub esp, 8
test ebx, ebx
je 0x10019760
mov eax, dword [esi]
test eax, eax
je 0x10019748
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 0x14], 0
mov dword [ebp - 0x1c], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
lea ecx, [eax + 1]
sub esp, 0x18
lea eax, [ecx + ecx]
mov dword [ebp - 0x18], ecx
mov ecx, eax
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov dword [ebp - 0x14], eax
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]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x1001976c
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 4]
xor edx, edx
sub esp, 0x18
mov word [edi + eax - 2], dx
mov eax, dword [esi]
test ecx, ecx
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
jne 0x10019738
call dword [edx + 0x28]
mov dword [esi + 8], eax
sub esp, 8
mov dword [esp + 8], edi
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, dword [esi + 8]
sub esp, 0xc
lea esp, [ebp - 0xc]
not eax
pop ebx
pop esi
shr eax, 0x1f
pop edi
pop ebp
ret 0x10
call dword [edx + 0x24]
mov dword [esi + 8], eax
sub esp, 8
jmp 0x100196fc
mov edx, esi
mov eax, edi
call sym._create_registrar
test eax, eax
jne 0x10019636
lea esi, [esi]
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esi + 8], 0x8007000e
xor eax, eax
jmp 0x10019762