joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cb86d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x543ad0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4cb8b0
cmp word [esi], dx
jne 0x4cb8b0
or byte [edi + eax + 0x28], 4
jmp 0x4cb8b5
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4cba08
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4cb9e8
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4cb8f7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4cb92d
cmp eax, edx
jae 0x4cb939
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4cb8cf
jmp 0x4cba08
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4cb9e4
cmp dword [ebp - 0x14], 0
je 0x4cb9e4
mov eax, dword [ebx*4 + 0x543ad0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4cb9bc
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4cb985
mov word [esi], cx
jmp 0x4cb9b8
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x543ad0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x543ad0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x543ad0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4cba08
pop ebx
cmp word [ebp - 4], bx
jne 0x4cb9cd
cmp esi, dword [ebp + 0xc]
jne 0x4cb9cd
mov word [esi], bx
jmp 0x4cba05
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004c7028
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4cba08
push 0xd
jmp 0x4cba01
mov ecx, dword [ebx*4 + 0x543ad0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4cb9ff
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4cba08
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4cec24
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x51fc04
push 0x51fbfc
push str.FlsAlloc
push 0x1e
call fcn.004cea51
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4cec58
push dword [ebp + 8]
mov ecx, esi
call dword [0x4e2524]
call esi
jmp 0x4cec5e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4ceca2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x51fc14
push 0x51fc0c
push str.FlsGetValue
push 0x20
call fcn.004cea51
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4cecd9
push dword [ebp + 8]
mov ecx, esi
call dword [0x4e2524]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4d1034
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d0ea5
Function at 0x4d6eed
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4d6f8a
push ebx
push esi
call fcn.004d6eb6
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004d5e6f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4d6f37
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4d6f89
push edi
push eax
call fcn.004cf2c0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4d6f57
call fcn.004ce776
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4d6f88
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004d5e6f
add esp, 0x20
test eax, eax
jne 0x4d6f76
push edi
call fcn.004ce776
jmp 0x4d6f7e
push ebx
call fcn.004ce776
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4d6f8d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4d6f9e
pop esi
ret
push ebx
push edi
push esi
call fcn.004d6eb6
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004cf2c0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4d6fc6
push ebx
push esi
push edi
call fcn.004b6680
add esp, 0xc
push 0
call fcn.004ce776
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4d7712
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d7239
Function at 0x4d9f5f
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004d9edb
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4da0d7
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4da0d7
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4da086
jg 0x4d9fb8
test eax, eax
je 0x4da07c
push 1
push 0x1000
call fcn.004ce719
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4d9fde
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4da073
push 0x8000
push ebx
call fcn.004c955e
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4da00a
jg 0x4da005
cmp ecx, 0x1000
jb 0x4da00a
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004cc987
add esp, 0x10
cmp eax, 0xffffffff
je 0x4da04f
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4da005
jl 0x4da036
test ecx, ecx
jne 0x4d9ff7
push dword [ebp - 0xc]
push ebx
call fcn.004c955e
push esi
call fcn.004ce776
add esp, 0xc
xor edi, edi
jmp 0x4da0e8
cmp byte [edi + 0x24], 0
je 0x4da066
cmp dword [edi + 0x20], 5
jne 0x4da066
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4da071
mov edi, dword [edi + 0x18]
jmp 0x4da073
xor edi, edi
push esi
call fcn.004ce776
pop ecx
jmp 0x4da0e8
test ecx, ecx
jg 0x4da048
jl 0x4da086
test eax, eax
jae 0x4da048
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004c7028
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4da0a9
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4da048
jmp 0x4da0e0
push ebx
call fcn.004d1f23
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4da048
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4da0e8
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4da0e5
mov edi, dword [edi + 0x18]
jmp 0x4da0e8
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004c7028
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4de610
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4de63d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4de63d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10001690
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
imul esi, eax, 0x508
push ebx
sub esp, 0x14
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x100060ec]
test ecx, ecx
je 0x10001780
lea edi, [esi + 0x100060a0]
mov ebx, edx
mov eax, edi
call sym._controller_lock.part.0
test eax, eax
je 0x10001780
mov eax, dword [edi + 0x3c]
mov edx, 1
mov ecx, dword [edi + 0x30]
xor ecx, eax
xor eax, eax
movzx ecx, cx
jmp 0x100016e7
mov edx, dword [eax*8 + 0x10009ba0]
test ecx, edx
jne 0x10001790
inc eax
cmp eax, 0xe
jne 0x100016e0
imul eax, dword [ebp - 0x10], 0x508
cmp byte [eax + 0x100060d2], 0x1e
lea ecx, [eax + 0x100060a0]
seta dl
cmp byte [eax + 0x100060de], 0x1e
seta al
cmp dl, al
jne 0x100017e0
cmp byte [ecx + 0x33], 0x1e
seta al
cmp byte [ecx + 0x3f], 0x1e
seta dl
cmp al, dl
je 0x10001828
mov dword [ebx], 0x5807
cmp byte [ecx + 0x33], 0x1f
mov byte [ebx + 7], 0
sbb eax, eax
not eax
add eax, 2
mov word [ebx + 4], ax
movzx eax, byte [ebp - 0x10]
mov byte [ebx + 6], al
movzx eax, byte [ecx + 0x33]
mov byte [ecx + 0x3f], al
xor eax, eax
mov dword [esp], edi
mov dword [ebp - 0x10], eax
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x10]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 0x48f
pop ebx
pop esi
pop edi
pop ebp
ret
mov word [ebx + 2], 0
mov eax, dword [eax*8 + 0x10009ba4]
imul esi, dword [ebp - 0x10], 0x508
mov word [ebx], ax
movsx eax, dx
lea ecx, [esi + 0x100060a0]
movzx esi, word [esi + 0x100060d0]
test esi, edx
jne 0x10001810
mov word [ebx + 4], 2
not eax
mov edx, dword [ecx + 0x3c]
and eax, edx
mov word [ecx + 0x3c], ax
mov byte [ebx + 7], 0
movzx eax, byte [ebp - 0x10]
mov byte [ebx + 6], al
xor eax, eax
jmp 0x1000175d
mov dword [ebx], 0x5806
cmp byte [ecx + 0x32], 0x1f
mov byte [ebx + 7], 0
sbb eax, eax
not eax
add eax, 2
mov word [ebx + 4], ax
movzx eax, byte [ebp - 0x10]
mov byte [ebx + 6], al
movzx eax, byte [ecx + 0x32]
mov byte [ecx + 0x3e], al
xor eax, eax
jmp 0x1000175d
mov word [ebx + 4], 1
mov edx, dword [ecx + 0x3c]
or eax, edx
mov word [ecx + 0x3c], ax
jmp 0x100017cc
lea eax, [esi + 0x100060e2]
mov edx, 0x5820
mov dword [esp + 8], eax
lea eax, [esi + 0x100060e0]
mov dword [esp + 4], eax
lea eax, [esi + 0x100060d6]
mov dword [esp], eax
mov eax, dword [ebp - 0x10]
lea ecx, [esi + 0x100060d4]
mov dword [esp + 0xc], edx
mov edx, ebx
call sym._check_joystick_keystroke
test eax, eax
je 0x1000175d
mov eax, 0x5830
mov edx, ebx
mov dword [esp + 0xc], eax
lea eax, [esi + 0x100060e6]
mov dword [esp + 8], eax
lea eax, [esi + 0x100060e4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
lea ecx, [esi + 0x100060d8]
add esi, 0x100060da
mov dword [esp], esi
call sym._check_joystick_keystroke
jmp 0x1000175d
Function at 0x10001cb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
movzx edi, word [eax + 0x264]
mov esi, dword [eax + 0x468]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x258]
test eax, eax
jne 0x10001d64
test byte [ebx + 0x1a], 1
jne 0x10001da0
mov eax, 1
xor edx, edx
mov dword [ebx + 0x258], eax
lea eax, [ebx + 0x454]
xor ecx, ecx
mov dword [ebx + 0x454], edx
xor edx, edx
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [ebx + 0x45c], edx
mov edx, dword [ebx + 0x450]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x4c]
mov dword [ebx + 0x458], ecx
xor ecx, ecx
mov dword [ebx + 0x460], ecx
mov dword [ebx + 0x464], edx
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
test eax, eax
jne 0x10001d78
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x3e5
je 0x10001d78
mov eax, ebx
call sym._controller_destroy.constprop.0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [0x1000c008]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEvent]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
sub esp, 4
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0xe]
mov eax, ebx
lea edx, [ebp - 0x10]
call sym._HID_set_state.isra.0
jmp 0x10001cec
Function at 0x10001dc0
Capabilities:
Create thread

Disassembly:
push ebp
mov edx, sym._hid_update_thread_proc_4
mov ebp, esp
push ebx
lea eax, [ebp - 8]
sub esp, 0x1c
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], 4
call dword [sym.imp.kernel32.dll_GetModuleHandleExW]
sub esp, 0xc
test eax, eax
jne 0x10001df8
test byte [0x100074c0], 4
jne 0x10001fa0
mov dword [esp], 0
xor eax, eax
xor ebx, ebx
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0xc], ebx
mov ebx, dword [sym.imp.kernel32.dll_CreateEventA]
mov dword [esp + 4], eax
call ebx
mov dword [0x1000c00c], eax
sub esp, 0x10
test eax, eax
je 0x10001f50
mov dword [esp], 0
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
call ebx
mov dword [0x1000c008], eax
sub esp, 0x10
test eax, eax
je 0x10001f00
mov dword [esp], 0
xor eax, eax
xor edx, edx
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, sym._hid_update_thread_proc_4
mov dword [esp + 8], eax
mov dword [esp + 4], edx
call dword [sym.imp.kernel32.dll_CreateThread]
sub esp, 0x18
test eax, eax
mov ebx, eax
je 0x10001ec0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, 0xffffffff
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [0x1000c00c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov ebx, dword [ebp - 4]
mov eax, 1
sub esp, 8
leave
ret 0xc
test byte [0x100074c0], 2
je 0x10001e8b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov edx, str.failed_to_create_update_thread__error__lu_n
mov ecx, str.start_update_thread_once
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp], 1
mov dword [esp + 0x10], eax
mov eax, 0x100074c0
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0
jmp 0x10001e8b
test byte [0x100074c0], 2
je 0x10001e54
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov ecx, str.failed_to_create_update_event__error__lu_n
mov ebx, str.start_update_thread_once
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp], 1
mov dword [esp + 0x10], eax
mov eax, 0x100074c0
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0
jmp 0x10001e54
test byte [0x100074c0], 2
je 0x10001e29
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov edx, str.start_update_thread_once
mov ecx, 0x100074c0
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], 1
mov dword [esp + 0x10], eax
mov eax, str.failed_to_create_start_event__error__lu_n
mov dword [esp + 0xc], eax
call sym._wine_dbg_log.constprop.0
jmp 0x10001e29
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp], 2
mov dword [esp + 0x10], eax
mov eax, str.Failed_to_increase_modules_reference_count__error:__lu_n
mov dword [esp + 0xc], eax
mov eax, str.start_update_thread_once
mov dword [esp + 8], eax
mov eax, 0x100074c0
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0
jmp 0x10001df8
Function at 0x10004fb0
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]
test eax, eax
je 0x10005018
cmp byte [esi + eax - 1], 0xa
mov ebx, eax
je 0x10005010
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x1000c0a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
xor eax, eax
jmp 0x10004fda
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x10005690
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov ebx, dword [ebp + 0xc]
mov dword [esp], ebx
call sym.___wine_dbg_get_channel_flags
movzx ecx, byte [ebp + 8]
movzx eax, al
sar eax, cl
test al, 1
je 0x10005878
mov edx, dword [0x1000c0a4]
mov eax, dword fs:[0x18]
cmp dword [eax + 0x24], edx
je 0x10005868
test byte [0x100074e8], 8
jne 0x10005810
lea edi, [ebp - 0xd4]
mov esi, edi
test byte [0x100074f8], 8
jne 0x100057d0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov ecx, str._04x:
mov dword [esp + 4], ecx
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x1000571a
cmp dword [ebp + 8], 3
jbe 0x10005788
mov dword [esp], 2
mov ebx, edi
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov esi, dword [ebx]
add ebx, 4
lea ecx, [esi - 0x1010101]
not esi
and ecx, esi
and ecx, 0x80808080
je 0x10005729
mov dword [esp + 0xc], eax
mov esi, ecx
mov eax, 1
mov dword [esp + 4], eax
shr esi, 0x10
test ecx, 0x8080
mov dword [esp], edi
cmove ecx, esi
lea esi, [ebx + 2]
mov dl, cl
cmove ebx, esi
add dl, cl
sbb ebx, 3
sub ebx, edi
mov dword [esp + 8], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp + 0x10]
add eax, esi
inc ebx
mov dword [esp + 0x10], ebx
mov dword [esp], eax
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 8]
mov ecx, dword [edx*4 + 0x1000a568]
mov edx, str._s:_s:_s
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov ecx, edi
sub ecx, eax
add ecx, 0xc8
mov dword [esp + 4], ecx
call sym._snprintf.constprop.0
jmp 0x1000571a
mov dword [esp], 0x100074f8
call sym.___wine_dbg_get_channel_flags
and al, 8
je 0x100056ef
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov ecx, str._04x:
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sym._sprintf
add esi, eax
jmp 0x100056ef
mov dword [esp], 0x100074e8
call sym.___wine_dbg_get_channel_flags
and al, 8
je 0x100056da
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
mov esi, str._3u._03u:
mov dword [esp + 4], esi
lea edi, [ebp - 0xd4]
mov dword [esp], edi
mov ecx, eax
mul edx
shr edx, 6
mov dword [esp + 8], edx
imul eax, edx, 0x3e8
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea esi, [edi + eax]
jmp 0x100056e2
add esp, 0xe0
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xffffffff
jmp 0x10005777
Function at 0x43b645
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x43b3c1
add esi, esi
call fcn.0043b68a
push 0x777d19b9
pop esi
sub ecx, 0xcb90d47d
xor dword [edx], eax
or esi, ecx
and ecx, ecx
inc edx
add esi, 0xdde371ea
add ecx, 0x2f13a2f4
cmp edx, edi
jne fcn.0043b645
add ecx, ecx
sub ecx, esi
ret
Function at 0x403240
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4e50ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
fld dword [0x4ec43c]
fdiv dword [esp + 0x140]
mov eax, dword [esp + 0x154]
mov edx, dword [esp + 0x15c]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x164]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x16c]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x144]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x148]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x154]
mov dword [esp + 0x24], ecx
xor ebx, ebx
lea ecx, [esp + 0x4c]
mov dword [esp + 0xc], 2
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], eax
mov byte [esp + 0x38], bl
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
fstp dword [esp + 0x2c]
call fcn.0049dbb0
push ebx
lea ecx, [esp + 0x88]
mov dword [esp + 0x140], ebx
call fcn.0049e000
push ebx
lea ecx, [esp + 0xe0]
mov byte [esp + 0x140], 1
call fcn.0049e000
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
lea esi, [edi + 0x4e8]
mov dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x20], eax
mov al, byte [esp + 0x38]
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x34]
mov dword [esi + 0x24], ecx
mov ecx, dword [esp + 0x3c]
mov byte [esi + 0x2c], al
mov dword [esi + 0x28], edx
mov edx, dword [esp + 0x40]
mov dword [esi + 0x30], ecx
mov ecx, dword [esp + 0x14]
lea eax, [esi + 8]
mov dword [esi + 0x34], edx
mov edx, dword [esp + 0x18]
mov dword [eax], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x20]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea ecx, [esp + 0xdc]
mov dword [esp + 0x13c], 3
call fcn.0049e070
lea ecx, [esp + 0x84]
mov byte [esp + 0x13c], 2
call fcn.0049e070
lea ecx, [esp + 0x4c]
mov dword [esp + 0x13c], 0xffffffff
call fcn.0049dc20
mov eax, dword [esp + 0x15c]
mov ecx, dword [esp + 0x150]
push eax
push ecx
mov ecx, esi
call fcn.00402e40
mov al, byte [esp + 0x158]
cmp al, bl
mov eax, 0x4035c0
jne 0x4033d5
mov eax, 0x403410
mov ecx, dword [esp + 0x134]
mov dword [edi + 0x3a4], eax
mov dword [edi + 0x3b0], esi
mov dword [edi + 0x3a8], edi
mov byte [edi + 0x83], 1
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x134
ret 0x2c
Function at 0x416670
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e5d73
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.004b1763
lea ecx, [esp + 0xc]
mov dword [esi + 0x34], eax
call fcn.004b15fd
mov edi, dword [0x52c394]
lea ecx, [esp + 8]
call fcn.004b15fd
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jae 0x4166bc
inc eax
mov dword [edi + 4], eax
lea ecx, [esp + 8]
call fcn.004b1699
lea ecx, [esp + 0xc]
call fcn.004b1699
lea eax, [esi + 4]
lea ecx, [esi + 0x14]
lea edx, [esi + 0x18]
mov dword [esi + 0xc], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
lea eax, [esi + 8]
lea ecx, [esi + 0x24]
lea edx, [esi + 0x28]
xor edi, edi
mov dword [esi], 0x4ec468
mov dword [esi + 0x10], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], edx
mov dword [eax], edi
mov eax, dword [esi + 0x20]
push edi
push edi
mov dword [eax], edi
mov ecx, dword [esi + 0x30]
push edi
mov dword [esp + 0x28], edi
mov dword [ecx], edi
mov ecx, esi
call fcn.00416780
mov cl, byte [esp + 0x24]
xor eax, eax
test cl, 1
mov dword [esi], 0x4ec4a0
jne 0x41672a
mov eax, 4
test cl, 2
jne 0x416731
or al, 2
mov edx, dword [esi + 0xc]
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], 0x20
mov dword [esi + 0x44], eax
mov dword [edx], edi
mov eax, dword [esi + 0x1c]
mov dword [eax], edi
mov ecx, dword [esi + 0x2c]
mov dword [ecx], edi
mov edx, dword [esi + 0x10]
mov dword [edx], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov ecx, dword [esi + 0x30]
mov eax, esi
mov dword [ecx], edi
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4

Function at 0x4238a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e67d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 4]
push 0
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x10]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esi]
push 1
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0
call dword [edx + 0x14]
mov ecx, esi
call fcn.0049ba70
lea ecx, [esp + 4]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004a6da0
mov ecx, dword [esp + 0x14]
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8