joyce8/EMBER2024-capa huggingface dataset:
Function at 0x8479ce0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x84fa978
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x184002c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x8479e05
cmp byte [ebx + 0x45], 0
je 0x8479e05
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x8479d34
xor al, al
jmp 0x8479e07
mov ecx, 0xf
mov byte [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], ecx
cmp ecx, 0x10
movq qword [ebp - 0x28], xmm0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x28]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x40]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x8479d9e
dec eax
je 0x8479da2
sub eax, 2
je 0x8479dee
xor bl, bl
jmp 0x8479df0
mov byte [ebx + 0x45], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x8479dd4
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.084a0070
add esp, 0x10
cmp esi, eax
jne 0x8479d9a
cmp byte [ebx + 0x45], 0
je 0x8479dee
test esi, esi
jne 0x8479d64
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.08413120
jmp 0x8479d64
mov bl, 1
cmp dword [ebp - 0x14], 0x10
jb 0x8479e01
push dword [ebp - 0x28]
call fcn.0849b460
add esp, 4
mov al, bl
jmp 0x8479e07
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0849cd1e
mov esp, ebp
pop ebp
ret

Function at 0x84a04be
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push edi
xor edi, edi
test ebx, ebx
jne 0x84a04e0
call fcn.084a5dcf
mov dword [eax], 0x16
call fcn.084ad166
xor eax, eax
jmp 0x84a0553
push esi
push 0x3bc
push 1
call fcn.084a4d2a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x84a053e
call fcn.084b1c8f
push dword [eax + 0x6c]
push esi
call fcn.084b1d16
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x58], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x54], ebx
pop ecx
pop ecx
test eax, eax
jne 0x84a051c
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x84a063d
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x84a0552
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call fcn.0849babc
pop ecx
test edi, edi
je 0x84a0550
push edi
call fcn.084a5dae
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x84a51af
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x438ca0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x438a14
sub esi, 0xf172b97
call fcn.00438cec
sub esi, 0xee861c4f
sub esi, 0x85ffdf3b
sub esi, eax
xor dword [edx], ecx
or esi, esi
mov eax, 0x719c2be9
and eax, esi
add edx, 1
sub esi, 1
add esi, 1
cmp edx, edi
jne fcn.00438ca0
add esi, 0x7cb19410
ret
Function at 0x40101f
Capabilities:
Get common file path
Set registry value

Disassembly:
call 0x40101f
or eax, eax
je 0x401018
push 0x40
push 0x403118
push eax
push 0
call sub.user32.dll_MessageBoxA
push 0
call sub.kernel32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xffffff34
push esi
push edi
push 0x80
push 0x403130
call sub.kernel32.dll_GetSystemDirectoryA
or eax, eax
je 0x40105d
cmp byte [eax + 0x40312f], 0x5c
je 0x40105d
cmp byte [eax + 0x403130], 0
jne 0x40105d
mov byte [eax + 0x403130], 0x5c
mov byte [eax + 0x403131], 0
cmp byte [0x403001], 0
je 0x40112d
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0xc4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
or eax, eax
jne 0x40112d
push 0x403130
lea eax, [ebp - 0x80]
push eax
call sub.kernel32.dll_lstrcpyA
push str.ImeRovasoft_
lea eax, [ebp - 0x80]
push eax
call sub.kernel32.dll_lstrcatA
lea esi, str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
lea esi, [esi + 0x34]
push esi
lea eax, [ebp - 0x80]
push eax
call sub.kernel32.dll_lstrcatA
push str.WbjjUninst.exe
lea eax, [ebp - 0x80]
push eax
call sub.kernel32.dll_lstrcatA
lea eax, [ebp - 0x80]
push eax
call sub.kernel32.dll_lstrlenA
inc eax
mov dword [ebp - 0xcc], eax
push 0x1e
push 0x403085
push 1
push 0
push str.DisplayName
push dword [ebp - 0xc4]
call sub.advapi32.dll_RegSetValueExA
push dword [ebp - 0xcc]
lea eax, [ebp - 0x80]
push eax
push 1
push 0
push str.UninstallString
push dword [ebp - 0xc4]
call sub.advapi32.dll_RegSetValueExA
push dword [ebp - 0xc4]
call sub.advapi32.dll_RegCloseKey
push 0x403130
lea eax, [ebp - 0xc0]
push eax
call sub.kernel32.dll_lstrcpyA
push str.UWMPY18.IME
lea eax, [ebp - 0xc0]
push eax
call sub.kernel32.dll_lstrcatA
push 0x403012
lea eax, [ebp - 0xc0]
push eax
call sub.imm32.dll_ImmInstallIMEA
or eax, eax
je 0x40116b
mov eax, 0x403033
jmp 0x401170
mov eax, 0x40305c
cmp byte [section..data], 0
jne 0x40117b
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10001db0
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 0x10001e08
cmp byte [esi + ebx - 1], 0xa
je 0x10001ddc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x100070a4], 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 0x10002360
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov edi, dword [0x100070b4]
mov esi, dword [ebp + 8]
test edi, edi
je 0x10002520
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x100070b4]
movzx eax, al
bt eax, esi
jae 0x10002580
mov ecx, dword [0x100070a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x10002425
test byte [0x10003030], 8
jne 0x100024c0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x10003040], 8
jne 0x10002470
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 dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x100023f4
cmp esi, 3
jbe 0x10002430
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
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 + 0x100057c8]
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 0x100023f4
mov ecx, dword [0x100070b4]
test ecx, ecx
je 0x10002560
mov dword [esp], 0x10003040
call dword [0x100070b4]
test al, 8
je 0x100023cb
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 dbg.sprintf
add edi, eax
jmp 0x100023cb
mov ebx, dword [0x100070b4]
test ebx, ebx
je 0x10002540
mov dword [esp], 0x10003030
call dword [0x100070b4]
test al, 8
je 0x100023b6
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 dbg.sprintf
lea edi, [ebx + eax]
jmp 0x100023be
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x100070b4
call sym._load_func.part.0
jmp 0x1000237d
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x100070b4
call sym._load_func.part.0
jmp 0x100024ca
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x100070b4
call sym._load_func.part.0
jmp 0x1000247e
mov eax, 0xffffffff
jmp 0x10002425

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403030
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [0x406fe4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x406fe0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x406ff0], eax
call fcn.00401bd5
cmp dword [0x406dac], ebx
jne 0x40306b
push section..text
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00402dd0
push 0x40600c
push 0x406008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x406fdc]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push dword [0x406fd8]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x406004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x4030fe
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x4030d2
cmp al, 0x22
jne 0x4030c4
cmp byte [esi], 0x22
jne 0x4030db
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x4030e5
cmp al, 0x20
jbe 0x4030d7
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x403109
movzx eax, word [ebp - 0x2c]
jmp 0x40310c
cmp byte [esi], 0x20
jbe 0x4030db
inc esi
mov dword [ebp - 0x74], esi
jmp 0x4030fe
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40896d
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
and ebx, edx
call fcn.00408991
and ebx, edx
xor dword [eax], esi
dec edx
inc eax
cmp eax, edi
jne fcn.0040896d
inc edx
inc ebx
ret
Function at 0x10008a43
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10008a82
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10008a82
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10008a82
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10008a82
cmp dword [ecx + 0x74], 0xe
jbe 0x10008a82
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000b6ff
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 0x1000b79c
push ebx
push esi
call fcn.1000b6c8
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.1000b65c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000b749
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000b79b
push edi
push eax
call fcn.1000c6ba
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000b769
call fcn.1000a1a4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000b79a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000b65c
add esp, 0x20
test eax, eax
jne 0x1000b788
push edi
call fcn.1000a1a4
jmp 0x1000b790
push ebx
call fcn.1000a1a4
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 0x1000ba09
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10013678
push 0x10013670
push str.FlsAlloc
push 0x1f
call fcn.1000b925
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000ba3d
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001214c]
call esi
jmp 0x1000ba43
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000ba87
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10013688
push 0x10013680
push str.FlsGetValue
push 0x21
call fcn.1000b925
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000babe
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001214c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000bac6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10013690
push 0x10013688
push str.FlsSetValue
push 0x22
call fcn.1000b925
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000bb00
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001214c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10098504
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x1014b671
call fcn.10143988
mov esi, ecx
mov dword [ebp - 0x14], esi
call fcn.1008c7ec
xor ebx, ebx
mov dword [esi], vtable.ScObjects::Thread.0
push 0x10
mov dword [ebp - 4], ebx
mov dword [esi + 0x10], ebx
mov byte [esi + 0x14], bl
call sym.rt3d.dll_public_virtual:_enum_E3RESULT___stdcall_e3_MODIFIER::Load_class_e3_STREAM___class_e3_CONTEXT__
mov dword [ebp - 0x14], eax
pop ecx
test eax, eax
je 0x1009854b
mov dword [eax], vtable.ScObjects::ThreadData.0
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
jmp 0x1009854d
mov eax, ebx
mov dword [esi + 8], eax
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push 0x10098730
push ebx
push ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [esi + 8]
mov edx, eax
add esp, 0x18
cmp edx, 0xffffffff
jne 0x10098580
mov dword [esi + 0x10], 0x20
mov dword [esi + 0xc], ebx
mov dword [ecx + 4], ebx
jmp 0x10098589
mov eax, dword [ebp - 0x10]
mov dword [esi + 0xc], eax
mov dword [ecx + 4], edx
mov eax, esi
call fcn.10143951
ret

Function at 0x10098830
Capabilities:
Resume thread

Disassembly:
cmp dword [ecx + 0x10], 0
jne 0x10098842
mov eax, dword [ecx + 8]
push dword [eax + 4]
call dword [sym.imp.kernel32.dll_ResumeThread]
ret

Function at 0x1009ee10
Capabilities:
Generate random numbers via winapi

Disassembly:
push 0x2c
mov eax, 0x1014c350
call fcn.101439bc
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x38], esi
mov ecx, esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x34], edi
call fcn.100989f5
mov dword [ebp - 4], edi
mov dword [ebp - 0x34], 1
call fcn.1009ef38
test eax, eax
je 0x1009ee8c
lea ecx, [ebp - 0x20]
push ecx
push 0x10
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1009ee8c
push 0xffffffffffffffff
push 0x10155980
mov ecx, esi
call sym.rt3d.dll_public_virtual:_enum_E3RESULT___stdcall_e3_MODIFIER::Load_class_e3_STREAM___class_e3_CONTEXT__
movzx eax, byte [ebp + edi - 0x20]
push eax
lea eax, [ebp - 0x30]
push 0x10161ca0
push eax
call sym.rt3d.dll_public_virtual:_enum_E3RESULT___stdcall_e3_MODIFIER::Load_class_e3_STREAM___class_e3_CONTEXT__
lea eax, [ebp - 0x30]
push eax
push esi
call sym.rt3d.dll_public_virtual:_enum_E3RESULT___stdcall_e3_MODIFIER::Load_class_e3_STREAM___class_e3_CONTEXT__
add esp, 0x14
inc edi
cmp edi, 0x10
jb 0x1009ee63
jmp 0x1009ee9a
push 0xffffffffffffffff
push 0x10155980
mov ecx, esi
call sym.rt3d.dll_public_virtual:_enum_E3RESULT___stdcall_e3_MODIFIER::Load_class_e3_STREAM___class_e3_CONTEXT__
mov eax, esi
call fcn.10143966
ret
Function at 0x100acc8e
Capabilities:
Create mailslot

Disassembly:
push 0x14
mov eax, 0x1014e497
call fcn.10143988
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [0x1018de8c]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100a8720
xor ebx, ebx
mov dword [esi], vtable.WinInterAppStream.0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.100989f5
lea eax, [esi + 0x40]
mov byte [ebp - 4], 1
push eax
lea eax, [esi + 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
call sym.rt3d.dll_public_virtual:_enum_E3RESULT___stdcall_e3_MODIFIER::Load_class_e3_STREAM___class_e3_CONTEXT__
pop ecx
pop ecx
push eax
call sym.rt3d.dll_public_virtual:_enum_E3RESULT___stdcall_e3_MODIFIER::Load_class_e3_STREAM___class_e3_CONTEXT__
push 0xc
lea edi, [esi + 0x58]
push ebx
push edi
call sub.VCRUNTIME140.dll_memset
push edi
mov ecx, ebx
call sym.rt3d.dll_public_virtual:_enum_E3RESULT___stdcall_e3_MODIFIER::Load_class_e3_STREAM___class_e3_CONTEXT__
add esp, 0x18
test al, al
je 0x100acd01
cmp dword [esi + 0x5c], ebx
cmovne ecx, edi
push ecx
push ebx
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.kernel32.dll_CreateMailslotA]
lea ecx, [ebp - 0x20]
mov dword [esi + 0x54], eax
call sym.rt3d.dll_public_virtual:_enum_E3RESULT___stdcall_e3_MODIFIER::Load_class_e3_STREAM___class_e3_CONTEXT__
mov eax, esi
call fcn.10143951
ret 8

Function at 0x100ace90
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x1014c15d
call fcn.10143988
mov esi, ecx
push esi
lea ecx, [ebp - 0x1c]
call fcn.1008c7b9
and dword [ebp - 4], 0
lea eax, [esi + 0x30]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100988a3
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
push dword [eax + 8]
push dword [eax + 4]
call sym.rt3d.dll_public_virtual:_enum_E3RESULT___stdcall_e3_MODIFIER::Load_class_e3_STREAM___class_e3_CONTEXT__
push 0
xor ecx, ecx
lea eax, [esi + 0x58]
cmp dword [esi + 0x5c], ecx
push 0x80
push 3
cmovne ecx, eax
push ecx
push ebx
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.kernel32.dll_CreateFileA]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x100acf2b
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push 0
push ecx
push dword [edi + 8]
push dword [edi + 4]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
push dword [ebp - 0x14]
mov esi, eax
call dword [sym.imp.kernel32.dll_CloseHandle]
test esi, esi
je 0x100acf2b
mov eax, dword [ebp - 0x10]
cmp eax, dword [edi + 8]
je 0x100acf2d
xor bl, bl
lea ecx, [ebp - 0x2c]
call sym.rt3d.dll_public_virtual:_enum_E3RESULT___stdcall_e3_MODIFIER::Load_class_e3_STREAM___class_e3_CONTEXT__
lea ecx, [ebp - 0x1c]
call sym.rt3d.dll_public_virtual:_enum_E3RESULT___stdcall_e3_MODIFIER::Load_class_e3_STREAM___class_e3_CONTEXT__
mov al, bl
call fcn.10143951
ret 8
Function at 0x101236a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x1012373b
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x101236f2
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x101236f2
cmp esi, ebx
jge 0x101236f2
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x10123735
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x10123735
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x10151aac]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x10151aac]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x1012374d
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc

Function at 0x10123970
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x101935e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107d058c], 0
mov eax, dword [ebp + 8]
je 0x10123998
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x101239b2
lea ecx, [ebp - 0x108]
push ecx
push eax
call sym.rt3d.dll_public_virtual:_enum_E3RESULT___stdcall_e3_MODIFIER::Load_class_e3_STREAM___class_e3_CONTEXT__
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10143940
leave
ret 4

Function at 0x10123b80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x101935e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107d058c], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x10123bb6
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x10123c15
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call sym.rt3d.dll_public_virtual:_enum_E3RESULT___stdcall_e3_MODIFIER::Load_class_e3_STREAM___class_e3_CONTEXT__
lea eax, [ebp - 0x20c]
push eax
push edi
call sym.rt3d.dll_public_virtual:_enum_E3RESULT___stdcall_e3_MODIFIER::Load_class_e3_STREAM___class_e3_CONTEXT__
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call sym.rt3d.dll_public_virtual:_enum_E3RESULT___stdcall_e3_MODIFIER::Load_class_e3_STREAM___class_e3_CONTEXT__
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10143940
leave
ret 0x10