joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000d830
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.10017030
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 0x1000d8a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1000d916
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x1000d916
nop
cmp ecx, esi
jne 0x1000d90d
mov edx, dword [eax + 4]
test edx, edx
je 0x1000d8cf
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [eax + 4]
test edx, edx
je 0x1000d8db
mov ecx, dword [eax]
mov dword [ecx + 4], edx
mov edx, dword [eax + 0x14]
test edx, edx
je 0x1000d8e7
mov ecx, dword [eax + 0x10]
mov dword [edx], ecx
mov edx, dword [eax + 0x10]
test edx, edx
je 0x1000d8f4
mov ecx, dword [eax + 0x14]
mov dword [edx + 4], ecx
mov edx, dword [eax + 8]
test edx, edx
je 0x1000d900
mov ecx, dword [eax + 0xc]
mov dword [ecx], edx
mov edx, dword [eax + 8]
test edx, edx
je 0x1000d90d
mov ecx, dword [eax + 0xc]
mov dword [edx + 4], ecx
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x1000d8c0
pop esi
pop ebp
ret
Function at 0x1000e950
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x10142d5c]
test eax, eax
je 0x1000e96c
nop dword [eax]
cmp dword [eax + 4], 0
jne 0x1000e9c6
mov eax, dword [eax]
test eax, eax
jne 0x1000e960
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, eax
test ecx, ecx
je 0x1000e9c4
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 0x1000e9a0
mov eax, dword [0x10142d5c]
mov dword [ecx], eax
mov dword [0x10142d5c], ecx
pop esi
mov eax, ecx
ret
Function at 0x1000f1c0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [0x10142d58]
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 4], edi
test ebx, ebx
je 0x1000f2c3
mov eax, dword [0x10142d50]
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 0x1000f20d
inc esi
add eax, 0x2c
cmp esi, ebx
jb 0x1000f1f0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x1000f2c3
xor eax, eax
test edx, edx
setne al
push eax
lea eax, [ebp - 0x10]
push 0xffffffffffffffff
push eax
call fcn.1000f660
mov edx, dword [0x10142d58]
add esp, 0xc
cmp esi, edx
jae 0x1000f277
mov ecx, dword [ebp + 8]
imul ebx, esi, 0x2c
nop dword [eax]
mov eax, dword [0x10142d50]
movzx eax, byte [ebx + eax + 0x14]
shr eax, 1
and eax, 1
cmp eax, ecx
je 0x1000f26c
push ecx
push esi
call fcn.1000f390
mov edi, eax
add esp, 8
test edi, edi
jne 0x1000f274
mov edx, dword [0x10142d58]
mov ecx, dword [ebp + 8]
inc esi
add ebx, 0x2c
cmp esi, edx
jb 0x1000f240
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000f2c3
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x1000f2b4
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 0x1000f2a8
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 0x1000f287
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x10142014]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000f390
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 [0x10142d50]
test byte [esi + 0x14], 1
mov edi, dword [esi]
je 0x1000f3ba
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 0x1000f3d7
pop edi
mov eax, 0xa
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x1000f3fc
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 0x1000f41d
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x1000f41d
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x1000f417
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x1000f41d
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 0x1000f4c0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10140bd4]
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 0x1000f5a7
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1000f5a0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop dword [eax]
cmp dword [ebp - 0x20], 0x10
jb 0x1000f586
call ebx
cmp dword [ebp - 0x14], eax
jne 0x1000f586
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1000f586
mov ecx, dword [esi]
test ecx, ecx
jne 0x1000f54f
push 0x200
push ecx
mov dword [esi + 4], 0x80
push dword [0x10142014]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
je 0x1000f59f
jmp 0x1000f578
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1000f578
shl eax, 3
push eax
push ecx
push 0
push dword [0x10142014]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x1000f59f
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 0x1000f510
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.100144ff
mov esp, ebp
pop ebp
ret
Function at 0x1000f660
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.1000f4c0
add esp, 4
cmp dword [esi], 0
je 0x1000f6cc
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x1000f6cb
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 0x1000f6c4
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1000f8c0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x1000f692
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x1000fa00
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi], 0
je 0x1000fa50
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x1000fa3f
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 0x1000fa38
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 0x1000fa15
pop ebx
push dword [edi]
push 0
push dword [0x10142014]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
pop ebp
ret
Function at 0x100112b0
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.10011460
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1001137d
mov edx, dword [ebp - 4]
cmp edx, dword [0x10140bb8]
jb 0x100112fa
mov eax, dword [ebp - 4]
cmp eax, dword [0x10140bbc]
ja 0x100112fa
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x100112ca
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10017030
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 0x10011320
jmp 0x1001137d
cmp dword [ebp - 0x14], 0x10000
jne 0x10011363
cmp dword [ebp - 0x18], 0x10000
jb 0x10011363
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 0x10011356
mov eax, dword [ebp - 8]
jmp 0x1001137f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10011378
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10011460
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100112ca
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10011390
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10011490
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10011455
mov edx, dword [ebp - 4]
cmp edx, dword [0x10140bb8]
jb 0x100113d5
mov eax, dword [ebp - 4]
cmp eax, dword [0x10140bbc]
ja 0x100113d5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x100113a5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10017030
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 0x100113fb
jmp 0x10011455
cmp dword [ebp - 0x14], 0x10000
jne 0x1001143e
cmp dword [ebp - 0x18], 0x10000
jb 0x1001143e
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 0x10011431
mov eax, dword [ebp - 8]
jmp 0x10011457
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10011450
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10011490
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100113a5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100114c0
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.100118b0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x10142310], 0
jne 0x100114fd
cmp dword [0x1014230c], 0
je 0x100114fd
mov eax, dword [0x1014230c]
mov dword [0x10142310], eax
cmp dword [0x10142310], 0
je 0x1001157a
mov ecx, dword [0x10142310]
cmp dword [ecx + 8], 0
je 0x1001157a
mov edx, dword [0x10142310]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1001157a
mov ecx, dword [0x10142310]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1001157a
mov eax, dword [0x10142310]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10011549
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10011550
xor eax, eax
jmp 0x10011699
mov ecx, dword [0x10142310]
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.10017030
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10011699
mov edx, dword [0x1014230c]
mov dword [0x10142310], edx
jmp 0x10011596
mov eax, dword [0x10142310]
mov ecx, dword [eax + 4]
mov dword [0x10142310], ecx
cmp dword [0x10142310], 0
je 0x100115d6
cmp dword [0x10142310], 0
je 0x100115d4
mov edx, dword [0x10142310]
cmp dword [edx + 8], 0
je 0x100115d4
mov eax, dword [0x10142310]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x100115d4
mov edx, dword [0x10142310]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x100115d4
jmp 0x1001152e
jmp 0x10011588
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.100116a0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10011697
mov eax, dword [ebp - 0x18]
mov dword [0x10142310], eax
mov ecx, dword [0x10142310]
mov dword [ecx], 0x52727464
mov edx, dword [0x10142310]
mov dword [edx + 8], 0
mov eax, dword [0x10142310]
mov ecx, dword [0x1014230c]
mov dword [eax + 4], ecx
mov edx, dword [0x10142310]
mov dword [0x1014230c], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x10142310]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10011667
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10011687
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 0x1001165e
mov eax, dword [0x10142310]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1001152e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10023070
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10022eef

Function at 0x10028784
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10028444
Function at 0x100012f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x20
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp dx, 1
je 0x10001380
cmp dx, 2
je 0x10001338
test dx, dx
je 0x10001328
xor ebx, ebx
test byte [0x10003330], 4
jne 0x100013d8
mov eax, ebx
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
mov ebx, 0xd68d
mov eax, ebx
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
xor ebx, ebx
test byte [0x10003330], 1
je 0x1000131d
and eax, 0xffff
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.Case__d:_set_single_drive__d_not_supported_n
mov dword [esp + 8], str.InquireSystem16
mov dword [esp + 4], 0x10003330
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x1000131d
add eax, 0x41
mov dword [ebp - 8], 0x3a
mov word [ebp - 0xa], ax
lea eax, [ebp - 0xa]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
cmp ax, 5
push edx
je 0x100013c8
cmp ax, 1
je 0x10001410
mov edx, eax
shl eax, 0x10
and edx, 0xffff
or eax, edx
mov ebx, eax
mov eax, ebx
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
mov ebx, 0x40004
jmp 0x1000131d
and edx, 0xffff
mov dword [esp + 0xc], str.Unknown_code__d_n
mov dword [esp + 0x10], edx
mov dword [esp + 8], str.InquireSystem16
mov dword [esp + 4], 0x10003330
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
jmp 0x1000131d
xor ebx, ebx
jmp 0x1000131d

Function at 0x10001420
Capabilities:
Create thread

Disassembly:
push ebp
mov eax, 0x10007020
mov ebp, esp
push ebx
sub esp, 0x18
xor ebx, ebx
mov edx, dword [ebp + 8]
lea esi, [esi]
mov ecx, dword [eax]
test ecx, ecx
je 0x10001458
inc ebx
add eax, 0xc
cmp ebx, 8
jne 0x10001438
mov ebx, dword [ebp - 4]
mov esp, ebp
xor eax, eax
pop ebp
ret 8
and edx, 0xffff
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cmp eax, 0xd68c
jbe 0x100014a8
lea edx, [ebx + ebx*2]
shl edx, 2
mov dword [edx + 0x10007024], eax
mov dword [edx + 0x10007028], eax
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x10007020], eax
mov eax, dword [0x1000700c]
inc eax
mov dword [0x1000700c], eax
dec eax
je 0x100014af
lea eax, [ebx + 1]
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
mov eax, 0xd68d
jmp 0x10001471
mov eax, dword [0x10007004]
test eax, eax
jne 0x1000149a
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], sym._SYSTEM_TimerThread_4
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
sub esp, 0x18
mov dword [0x10007004], eax
jmp 0x1000149a
Function at 0x10001500
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 8
mov eax, dword [ebp + 8]
lea edx, [eax - 1]
cmp dx, 7
ja 0x10001558
xor edx, edx
mov dx, ax
lea edx, [edx + edx*2 - 3]
lea ecx, [edx*4]
mov edx, dword [edx*4 + 0x10007020]
test edx, edx
je 0x10001558
mov eax, dword [0x1000700c]
mov dword [ecx + 0x10007020], 0
dec eax
mov ebx, 0
mov dword [0x1000700c], eax
je 0x10001568
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4
lea esp, [ebp - 8]
mov ebx, eax
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4
mov eax, dword [0x10007004]
test eax, eax
je 0x1000154b
mov eax, dword [0x10007008]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CancelWaitableTimer]
push eax
mov eax, dword [0x10007004]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TerminateThread]
mov eax, dword [0x10007004]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
push edx
push edx
mov dword [esp], eax
call esi
mov eax, dword [0x10007008]
push ecx
mov dword [esp], eax
call esi
mov dword [0x10007004], 0
push esi
jmp 0x1000154b

Function at 0x10001680
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 0x100016e8
cmp byte [esi + eax - 1], 0xa
mov ebx, eax
je 0x100016e0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x10007104], 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 0x100016aa
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x10001c60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov edi, dword [0x10007114]
mov esi, dword [ebp + 0xc]
test edi, edi
je 0x10001e48
mov dword [esp], esi
call dword [0x10007114]
mov cl, byte [ebp + 8]
and eax, 0xff
sar eax, cl
test al, 1
je 0x10001ea8
mov edi, dword [0x10007104]
mov eax, dword fs:[0x18]
cmp dword [eax + 0x24], edi
je 0x10001e38
test byte [0x10003348], 8
jne 0x10001dc0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x10003358], 8
jne 0x10001d78
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
mov dword [esp], edi
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10001cf9
cmp dword [ebp + 8], 3
jbe 0x10001d38
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebp + 0x10]
add eax, edi
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 8]
inc esi
mov dword [esp + 8], str._s:_s:_s
mov edx, dword [ecx*4 + 0x100050f8]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
mov dword [esp], eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10001cf9
mov ecx, dword [0x10007114]
test ecx, ecx
je 0x10001e88
mov dword [esp], 0x10003358
call dword [0x10007114]
test al, 8
je 0x10001ccf
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str._04x:
call dbg.sprintf
add edi, eax
jmp 0x10001ccf
mov ebx, dword [0x10007114]
test ebx, ebx
je 0x10001e68
mov dword [esp], 0x10003348
call dword [0x10007114]
test al, 8
je 0x10001cba
call dword [sym.imp.kernel32.dll_GetTickCount]
mov ebx, 0x10624dd3
mov ecx, eax
mov dword [esp + 4], str._3u._03u:
mul ebx
mov eax, edx
mov edx, ecx
shr eax, 6
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
sub edx, eax
mov eax, ecx
mov dword [esp + 0xc], edx
mul ebx
shr edx, 6
lea ebx, [ebp - 0xd4]
mov dword [esp + 8], edx
mov dword [esp], ebx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x10001cc2
add esp, 0xe0
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x10007114
call sym._load_func.part.0
jmp 0x10001c7d
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x10007114
call sym._load_func.part.0
jmp 0x10001dce
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x10007114
call sym._load_func.part.0
jmp 0x10001d86
or eax, 0xffffffff
jmp 0x10001d2a
Function at 0x4011b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403920
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov al, 0x45
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x2b], al
mov byte [ebp - 0x28], al
mov al, 0x6c
xor ebx, ebx
push str.HeapFree
push str.kernel32.dll
mov byte [ebp - 0x2c], 0x4b
mov byte [ebp - 0x2a], 0x52
mov byte [ebp - 0x29], 0x4e
mov byte [ebp - 0x27], 0x4c
mov byte [ebp - 0x26], 0x33
mov byte [ebp - 0x25], 0x32
mov byte [ebp - 0x24], 0x2e
mov byte [ebp - 0x23], 0x64
mov byte [ebp - 0x22], al
mov byte [ebp - 0x21], al
mov byte [ebp - 0x20], bl
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov dword [ebp - 0x1c], eax
mov al, 0x65
mov cl, 0x73
mov byte [ebp - 0x3b], al
mov byte [ebp - 0x35], al
mov byte [ebp - 0x31], al
mov byte [ebp - 0x34], cl
mov byte [ebp - 0x33], cl
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x2c]
push eax
push ecx
mov byte [ebp - 0x3c], 0x47
mov byte [ebp - 0x3a], 0x74
mov byte [ebp - 0x39], 0x50
mov byte [ebp - 0x38], 0x72
mov byte [ebp - 0x37], 0x6f
mov byte [ebp - 0x36], 0x63
mov byte [ebp - 0x32], 0x48
mov byte [ebp - 0x30], 0x61
mov byte [ebp - 0x2f], 0x70
mov byte [ebp - 0x2e], bl
call esi
push eax
call edi
mov dword [ebp - 0x18], eax
nop
nop
nop
nop
nop
lea edx, [ebp - 0x14]
push 0x404728
push edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 0x63
call sub.MSVCRT.dll__CxxThrowException
inc eax
dec ebx
dec eax
inc ebx
mov eax, dword [ebp + 8]
push eax
push 0
call dword [ebp - 0x18]
push eax
call dword [ebp - 0x1c]
mov eax, 0x4012a2
ret