joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000fff0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x10148be4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x18]
mov al, byte [ebp + 0x14]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
push edx
mov byte [esi + 0x20], al
lea eax, [esi + 0x21]
push 0xff
push eax
call fcn.10020f71
mov eax, dword [ebp + 0x1c]
add esp, 0xc
mov dword [esi + 0x120], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x1001008a
mov edx, 0x4c
xor ecx, ecx
nop dword [eax]
mov al, byte [ecx + 0x1003bb50]
xor al, dl
mov byte [ebp + ecx - 0x20], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x1a
jb 0x10010040
push 0x10
push 0
push 0
push 0
lea eax, [ebp - 0x20]
mov byte [ebp - 6], 0
push eax
push edi
call dword [sym.imp.USER32.dll_LoadImageA]
xorps xmm0, xmm0
mov word [ebp - 8], 0
movups xmmword [ebp - 0x20], xmm0
mov byte [ebp - 6], 0
movq qword [ebp - 0x10], xmm0
jmp 0x1001014b
cmp eax, 1
jne 0x100100e3
mov edx, 0x82
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ecx + 0x1003bb6c]
xor al, dl
mov byte [ebp + ecx - 0x3c], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x19
jb 0x100100a0
push 0x10
push 0
push 0
push 0
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x23], 0
push eax
push edi
call dword [sym.imp.USER32.dll_LoadImageA]
xorps xmm0, xmm0
mov word [ebp - 0x24], 0
movups xmmword [ebp - 0x3c], xmm0
movq qword [ebp - 0x2c], xmm0
jmp 0x1001014b
push 0x8bd9c670
cmp eax, 2
jne 0x1001011d
lea ecx, [ebp - 0x58]
call fcn.100021b0
push 0x10
push 0
push 0
push 0
push eax
push edi
call dword [sym.imp.USER32.dll_LoadImageA]
xorps xmm0, xmm0
mov word [ebp - 0x40], 0
movups xmmword [ebp - 0x58], xmm0
mov byte [ebp - 0x3e], 0
movq qword [ebp - 0x48], xmm0
jmp 0x1001014b
lea ecx, [ebp - 0x74]
call fcn.100021b0
push 0x10
push 0
push 0
push 0
push eax
push edi
call dword [sym.imp.USER32.dll_LoadImageA]
xorps xmm0, xmm0
mov word [ebp - 0x5c], 0
movups xmmword [ebp - 0x74], xmm0
mov byte [ebp - 0x5a], 0
movq qword [ebp - 0x64], xmm0
push eax
mov ecx, esi
call fcn.1000fbb0
mov ecx, dword [esi + 4]
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
test ecx, ecx
je 0x10010197
cmp dword [0x10149c34], 0
je 0x10010197
test eax, eax
je 0x10010197
push 0xffffffffffffffec
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
or eax, 0x80000
push eax
push 0xffffffffffffffec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 1
push 0
push dword [esi + 0xc]
push dword [esi + 4]
call dword [0x10149c34]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1001baaf
mov esp, ebp
pop ebp
ret 0x18
Function at 0x10014160
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
mov eax, dword [0x10148be4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x1f8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x1f4
push 0
push eax
call fcn.1001e6d0
add esp, 0xc
lea eax, [ebp - 0x1fc]
push eax
push 0x20019
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1001420c
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x1f8]
push eax
push 0
push 0
push ebx
push dword [ebp - 0x1fc]
call esi
test eax, eax
jne 0x1001420c
push 0x1f4
lea eax, [ebp - 0x1f8]
push 0
push eax
call fcn.1001e6d0
add esp, 0xc
push dword [ebp - 0x1fc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001baaf
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x200]
push eax
lea eax, [ebp - 0x1f8]
push eax
push 0
push 0
push ebx
push dword [ebp - 0x1fc]
call esi
test eax, eax
je 0x100141d4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001baaf
mov esp, ebp
pop ebp
ret

Function at 0x10014bb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10014c0a
push edi
mov edi, dword [esi + 0x3c]
lea eax, [ebp + 8]
push eax
push 4
push 0x40
push esi
add edi, esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10014be6
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
movups xmmword [esi + 0x20], xmm0
movups xmmword [esi + 0x30], xmm0
test edi, edi
je 0x10014c09
lea eax, [ebp + 8]
push eax
push 4
push 0xf8
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10014c09
mov ecx, 0x3e
xor eax, eax
rep stosd dword es:[edi], eax
pop edi
pop esi
pop ebp
ret

Function at 0x10014c10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
lea eax, [ebp - 8]
push eax
push 0x40
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x1000
push 0
push dword [ebp + 8]
call fcn.1001e6d0
add esp, 0xc
push 0
push dword [ebp - 8]
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov esp, ebp
pop ebp
ret
Function at 0x10014c80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10014cf6
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x10014cf6
nop
cmp ecx, esi
jne 0x10014ced
mov edx, dword [eax + 4]
test edx, edx
je 0x10014caf
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [eax + 4]
test edx, edx
je 0x10014cbb
mov ecx, dword [eax]
mov dword [ecx + 4], edx
mov edx, dword [eax + 0x14]
test edx, edx
je 0x10014cc7
mov ecx, dword [eax + 0x10]
mov dword [edx], ecx
mov edx, dword [eax + 0x10]
test edx, edx
je 0x10014cd4
mov ecx, dword [eax + 0x14]
mov dword [edx + 4], ecx
mov edx, dword [eax + 8]
test edx, edx
je 0x10014ce0
mov ecx, dword [eax + 0xc]
mov dword [ecx], edx
mov edx, dword [eax + 8]
test edx, edx
je 0x10014ced
mov ecx, dword [eax + 0xc]
mov dword [edx + 4], ecx
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x10014ca0
pop esi
pop ebp
ret
Function at 0x10015f20
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x10a6c54c]
test eax, eax
je 0x10015f3c
nop dword [eax]
cmp dword [eax + 4], 0
jne 0x10015f96
mov eax, dword [eax]
test eax, eax
jne 0x10015f30
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, eax
test ecx, ecx
je 0x10015f94
push esi
lea edx, [ecx + 0x20]
mov dword [ecx + 4], 0
mov esi, edx
mov dword [ecx + 8], 0
sub esi, ecx
nop dword [eax]
mov eax, dword [ecx + 4]
add esi, 0x20
mov dword [edx], eax
mov dword [ecx + 4], edx
add edx, 0x20
cmp esi, 0xfe0
jbe 0x10015f70
mov eax, dword [0x10a6c54c]
mov dword [ecx], eax
mov dword [0x10a6c54c], ecx
pop esi
mov eax, ecx
ret
Function at 0x10016790
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [0x10a6c548]
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 4], edi
test ebx, ebx
je 0x10016893
mov eax, dword [0x10a6c540]
mov edx, dword [ebp + 8]
add eax, 0x14
nop dword [eax]
movzx ecx, byte [eax]
shr ecx, 1
and ecx, 1
cmp ecx, edx
jne 0x100167dd
inc esi
add eax, 0x2c
cmp esi, ebx
jb 0x100167c0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x10016893
xor eax, eax
test edx, edx
setne al
push eax
lea eax, [ebp - 0x10]
push 0xffffffffffffffff
push eax
call fcn.10016c30
mov edx, dword [0x10a6c548]
add esp, 0xc
cmp esi, edx
jae 0x10016847
mov ecx, dword [ebp + 8]
imul ebx, esi, 0x2c
nop dword [eax]
mov eax, dword [0x10a6c540]
movzx eax, byte [ebx + eax + 0x14]
shr eax, 1
and eax, 1
cmp eax, ecx
je 0x1001683c
push ecx
push esi
call fcn.10016960
mov edi, eax
add esp, 8
test edi, edi
jne 0x10016844
mov edx, dword [0x10a6c548]
mov ecx, dword [ebp + 8]
inc esi
add ebx, 0x2c
cmp esi, edx
jb 0x10016810
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10016893
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x10016884
mov edi, eax
push dword [edi + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10016878
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x10016857
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x10a6b804]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10016960
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
imul esi, dword [ebp + 8], 0x2c
mov eax, 5
push edi
mov dword [ebp + 8], eax
add esi, dword [0x10a6c540]
test byte [esi + 0x14], 1
mov edi, dword [esi]
je 0x1001698a
sub edi, eax
mov eax, 7
mov dword [ebp + 8], eax
lea ecx, [ebp - 4]
push ecx
push 0x40
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100169a7
pop edi
mov eax, 0xa
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x100169cc
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x100169ed
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x100169ed
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x100169e7
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x100169ed
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, byte [esi + 0x14]
and bl, 1
mov cl, bl
and al, 0xfd
add cl, cl
shl bl, 2
or cl, al
and cl, 0xfb
or cl, bl
xor eax, eax
pop ebx
pop edi
mov byte [esi + 0x14], cl
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10016a90
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10148be4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x10016b77
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10016b70
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop dword [eax]
cmp dword [ebp - 0x20], 0x10
jb 0x10016b56
call ebx
cmp dword [ebp - 0x14], eax
jne 0x10016b56
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10016b56
mov ecx, dword [esi]
test ecx, ecx
jne 0x10016b1f
push 0x200
push ecx
mov dword [esi + 4], 0x80
push dword [0x10a6b804]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
je 0x10016b6f
jmp 0x10016b48
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x10016b48
shl eax, 3
push eax
push ecx
push 0
push dword [0x10a6b804]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x10016b6f
mov ecx, dword [esi + 4]
add ecx, ecx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov edx, dword [esi + 8]
mov ecx, dword [esi]
mov eax, dword [ebp - 0x18]
mov dword [ecx + edx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x10016ae0
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1001baaf
mov esp, ebp
pop ebp
ret
Function at 0x10016c30
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.10016a90
add esp, 4
cmp dword [esi], 0
je 0x10016c9c
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x10016c9b
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10016c94
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10016e90
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x10016c62
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x10016fe0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi], 0
je 0x10017030
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x1001701f
push ebx
mov eax, dword [edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10017018
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x10016ff5
pop ebx
push dword [edi]
push 0
push dword [0x10a6b804]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
pop ebp
ret
Function at 0x10018860
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10018a10
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1001892d
mov edx, dword [ebp - 4]
cmp edx, dword [0x10148bc8]
jb 0x100188aa
mov eax, dword [ebp - 4]
cmp eax, dword [0x10148bcc]
ja 0x100188aa
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1001887a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1001e6d0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x100188d0
jmp 0x1001892d
cmp dword [ebp - 0x14], 0x10000
jne 0x10018913
cmp dword [ebp - 0x18], 0x10000
jb 0x10018913
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10018906
mov eax, dword [ebp - 8]
jmp 0x1001892f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10018928
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10018a10
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1001887a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10018940
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10018a40
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10018a05
mov edx, dword [ebp - 4]
cmp edx, dword [0x10148bc8]
jb 0x10018985
mov eax, dword [ebp - 4]
cmp eax, dword [0x10148bcc]
ja 0x10018985
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10018955
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1001e6d0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x100189ab
jmp 0x10018a05
cmp dword [ebp - 0x14], 0x10000
jne 0x100189ee
cmp dword [ebp - 0x18], 0x10000
jb 0x100189ee
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100189e1
mov eax, dword [ebp - 8]
jmp 0x10018a07
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10018a00
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10018a40
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10018955
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10018a70
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10018e60
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x10a6bb00], 0
jne 0x10018aad
cmp dword [0x10a6bafc], 0
je 0x10018aad
mov eax, dword [0x10a6bafc]
mov dword [0x10a6bb00], eax
cmp dword [0x10a6bb00], 0
je 0x10018b2a
mov ecx, dword [0x10a6bb00]
cmp dword [ecx + 8], 0
je 0x10018b2a
mov edx, dword [0x10a6bb00]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x10018b2a
mov ecx, dword [0x10a6bb00]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x10018b2a
mov eax, dword [0x10a6bb00]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10018af9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10018b00
xor eax, eax
jmp 0x10018c49
mov ecx, dword [0x10a6bb00]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.1001e6d0
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10018c49
mov edx, dword [0x10a6bafc]
mov dword [0x10a6bb00], edx
jmp 0x10018b46
mov eax, dword [0x10a6bb00]
mov ecx, dword [eax + 4]
mov dword [0x10a6bb00], ecx
cmp dword [0x10a6bb00], 0
je 0x10018b86
cmp dword [0x10a6bb00], 0
je 0x10018b84
mov edx, dword [0x10a6bb00]
cmp dword [edx + 8], 0
je 0x10018b84
mov eax, dword [0x10a6bb00]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10018b84
mov edx, dword [0x10a6bb00]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10018b84
jmp 0x10018ade
jmp 0x10018b38
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10018c50
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10018c47
mov eax, dword [ebp - 0x18]
mov dword [0x10a6bb00], eax
mov ecx, dword [0x10a6bb00]
mov dword [ecx], 0x52727464
mov edx, dword [0x10a6bb00]
mov dword [edx + 8], 0
mov eax, dword [0x10a6bb00]
mov ecx, dword [0x10a6bafc]
mov dword [eax + 4], ecx
mov edx, dword [0x10a6bb00]
mov dword [0x10a6bafc], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x10a6bb00]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10018c17
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10018c37
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x10018c0e
mov eax, dword [0x10a6bb00]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x10018ade
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1002c90d
Capabilities:
Read file on windows

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

Function at 0x10031315
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10030fd5
Function at 0x10002740
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov dword [esp], 0x10005ce0
mov dword [ebp - 0x10], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
push ebx
mov ebx, dword [0x10009004]
test ebx, ebx
lea edx, [ebx + 0x1c0]
jne 0x1000277f
jmp 0x10002818
add ebx, 0xe
cmp ebx, edx
jae 0x100027d8
mov ecx, dword [ebx + 2]
test ecx, ecx
jne 0x10002778
mov eax, dword [ebp + 0x14]
mov dword [ebx + 2], eax
xor eax, eax
mov ax, word [ebp - 0x10]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._ICOpenFunction_16
sub esp, 0x10
test eax, eax
je 0x10002808
mov esi, eax
mov word [ebx + 0xc], ax
mov dword [esp], 0x10005ce0
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
push eax
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
test byte [0x10005cf8], 1
jne 0x1000288f
mov dword [esp], 0x10005ce0
xor esi, esi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, esi
push edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [ebx + 2], 0
xor esi, esi
jmp 0x100027b9
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 0x1c0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
sub esp, 0x10
mov ebx, eax
mov dword [0x10009004], eax
test eax, eax
je 0x100027e5
lea edx, [eax + 0x1c0]
lea edi, [ebx + 0x1cc]
lea eax, [eax + 0xc]
mov esi, dbg.IC_Callback3216
nop
mov ecx, esi
mov byte [eax - 0xc], 0x58
sub ecx, eax
mov byte [eax - 0xb], 0x68
mov dword [eax - 0xa], 0
mov byte [eax - 6], 0x50
mov byte [eax - 5], 0xe9
mov dword [eax - 4], ecx
mov word [eax], 0
add eax, 0xe
cmp eax, edi
jne 0x10002860
jmp 0x1000277f
mov dword [esp + 0xc], str.Out_of_msvideo_thunks._Bump_MAX_THUNKS_n
mov dword [esp + 8], str.MSVIDEO_AddThunk
mov dword [esp + 4], 0x10005cf8
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x100027e5
Function at 0x100029b0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
xor edi, edi
push ebx
sub esp, 0x24
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov di, dx
mov dword [esp + 4], 0
mov dword [esp + 8], edi
mov dword [ebp - 0x10], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x14], edx
mov esi, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x10]
mov ebx, eax
mov eax, ecx
and eax, 0xffff
sub esp, 0xc
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x14]
test byte [0x10005cf8], 8
jne 0x10002a98
shr dx, 1
je 0x10002a30
and edx, 0xffff
mov eax, dword [ebp + 0x14]
add edx, edx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], ebx
call sym._memcpy
mov dword [esp], ebx
and esi, 0xffff
call sym._MapLS_4
mov dword [ebp - 0x14], eax
push edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], edi
mov dword [esp], esi
mov dword [esp + 4], eax
call dbg.ICSendMessage16@16
mov edx, dword [ebp - 0x14]
sub esp, 0x10
mov esi, eax
mov dword [esp], edx
call sym._UnMapLS_4
mov eax, dword fs:[0x18]
push ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, esi
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x14], eax
xor eax, eax
mov ax, si
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.0x_08lx___u___u__...__n
mov dword [esp + 8], str.ICMessage16
mov dword [esp + 4], 0x10005cf8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x14]
jmp 0x10002a10
Function at 0x100038e0
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 0x10003948
cmp byte [esi + eax - 1], 0xa
mov ebx, eax
je 0x10003940
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x100090a4], 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 dword [esp + 4], 1
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
xor eax, eax
jmp 0x1000390a
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop ebp
ret