joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10016ef0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10060c4f
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100f8008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov ecx, 0x101052d5
call fcn.1005cb05
mov dword [ebx], vtable.RC::DmAvCore::IVBusModule.0
mov dword [ebp - 4], 0
mov dword [ebx], vtable.RC::RCSafeModuleBase.0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebp - 4], 1
push 0x90
mov dword [ebx], vtable.RC::RCLSPFixModule.0
mov dword [ebx + 0xc], 0
call fcn.1005a97f
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
lea edi, [eax + 8]
mov dword [ebp - 0x1c], edi
lea esi, [edi + 4]
mov dword [eax], vtable.RC::RCLSPFixMsgProcess.0
mov dword [eax + 4], 0
mov dword [edi], vtable.RC::RCSafeTaskQueue.0
mov dword [ebp - 0x20], esi
push 8
mov dword [ebp - 0x18], eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.1005a97f
mov dword [esi], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
mov byte [ebp - 4], 4
lea esi, [edi + 0x18]
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 5
push 0x18
call fcn.1005a97f
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
add esp, 0xc
mov dword [esi], eax
push eax
call ebx
mov byte [ebp - 4], 6
push ecx
push 0
push ecx
lea ecx, [edi + 0x1c]
call fcn.10047350
mov byte [ebp - 4], 7
mov dword [edi + 0x3c], 0
mov byte [ebp - 4], 8
mov edi, dword [ebp - 0x10]
add edi, 0x48
push ecx
push 1
push ecx
mov dword [ebp - 0x20], edi
lea ecx, [edi + 4]
mov dword [edi], vtable.RC::RCSafeThreadMgr.0
call fcn.10047350
mov byte [ebp - 4], 9
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov byte [ebp - 4], 0xa
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov byte [ebp - 4], 0xb
lea esi, [edi + 0x40]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 0xc
push 0x18
call fcn.1005a97f
add esp, 4
mov dword [esi], eax
push eax
call ebx
mov byte [ebp - 4], 0xd
mov dword [edi + 0x44], 1
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [ecx + 0xc], eax
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001d520
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100729da
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x100f8008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, 0x101052d5
call fcn.1005cb05
mov ecx, esi
call fcn.10035990
test al, al
jne 0x1001d56b
mov al, 1
jmp 0x1001d6ad
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 3
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 4
mov edx, 0x100bb7b4
push esi
lea ecx, [ebp - 0xb4]
call fcn.1001e3e0
mov byte [ebp - 4], 5
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.1001e4e0
add esp, 4
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xb4]
call fcn.10017980
mov byte [ebp - 4], 7
mov byte [ebp - 4], 7
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push str.rundll32.exe__u__s__s
push eax
call fcn.10034f60
push 0x44
lea eax, [ebp - 0x84]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea ecx, [ebp - 0x94]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
cmovae eax, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x84]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
movups xmmword [ebp - 0x94], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1001d64c
mov byte [ebp - 0x95], al
jmp 0x1001d67a
push 0x1388
push dword [ebp - 0x94]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x90]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x94]
call esi
mov byte [ebp - 0x95], 1
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x40]
call fcn.10017980
mov byte [ebp - 4], 4
mov dword [ebp - 4], 0x18
lea ecx, [ebp - 0x28]
call fcn.10017980
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x95]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005a96e
mov esp, ebp
pop ebp
ret 4
Function at 0x1001f3e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100732dc
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x100f8008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, 0x101052d5
call fcn.1005cb05
push esi
mov edx, str._s__
lea ecx, [ebp - 0x94]
call fcn.1001e3e0
mov dword [ebp - 4], 0
mov edx, eax
lea ecx, [ebp - 0x38]
call fcn.1001e4e0
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x94]
call fcn.10017980
mov byte [ebp - 4], 2
mov byte [ebp - 4], 2
xorps xmm0, xmm0
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x6c], 0
cmovae eax, dword [ebp - 0x38]
mov dword [ebp - 0x5c], 0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x74], 0x3c
mov dword [ebp - 0x70], 0x40
mov dword [ebp - 0x68], str.open
mov dword [ebp - 0x64], str.regedit.exe
mov dword [ebp - 0x58], 5
mov dword [ebp - 0x60], eax
movups xmmword [ebp - 0x20], xmm0
call fcn.100315e0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1001f4d0
cmp dword [ebp - 0x14], 0
jne 0x1001f4d0
lea ecx, [ebp - 0x14]
push ecx
call eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x1001f4e3
mov byte [ebp - 0x75], al
jmp 0x1001f50a
push 0x1388
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1001f506
push dword [ebp - 0x14]
call eax
mov byte [ebp - 0x75], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.10031790
mov dword [ebp - 4], 0xc
lea ecx, [ebp - 0x38]
call fcn.10017980
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x75]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005a96e
mov esp, ebp
pop ebp
ret 4
Function at 0x10020680
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100738c7
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x100f8008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ecx, 0x10105279
call fcn.1005cb05
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [ebp - 4], 3
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], 4
lea eax, [esi + 0x18]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 5
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov byte [ebp - 4], 8
xor ecx, ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 9
lea eax, [esi + 0x30]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xa
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov byte [ebp - 4], 0xd
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0xe
lea eax, [esi + 0x48]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xf
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov byte [ebp - 4], 0x12
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0x13
lea eax, [esi + 0x60]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0x14
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov byte [ebp - 4], 0x17
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 7
mov word [eax], cx
mov byte [ebp - 4], 0x18
mov byte [esi + 0x78], cl
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10024920
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10074bf7
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x100f8008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [ebp - 4], 3
xor eax, eax
mov ecx, dword [ebp + 8]
movups xmm0, xmmword [ecx]
movups xmmword [edx], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [edx + 0x10], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov dword [ebp - 4], 4
lea eax, [edx + 0x18]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 5
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov byte [ebp - 4], 8
movups xmm0, xmmword [ecx + 0x18]
movups xmmword [eax], xmm0
movq xmm0, qword [ecx + 0x28]
movq qword [eax + 0x10], xmm0
xor eax, eax
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 7
mov word [ecx + 0x18], ax
mov byte [ebp - 4], 9
lea eax, [edx + 0x30]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0xa
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov byte [ebp - 4], 0xd
movups xmm0, xmmword [ecx + 0x30]
movups xmmword [eax], xmm0
movq xmm0, qword [ecx + 0x40]
movq qword [eax + 0x10], xmm0
xor eax, eax
mov dword [ecx + 0x40], 0
mov dword [ecx + 0x44], 7
mov word [ecx + 0x30], ax
mov byte [ebp - 4], 0xe
lea eax, [edx + 0x48]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0xf
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov byte [ebp - 4], 0x12
movups xmm0, xmmword [ecx + 0x48]
movups xmmword [eax], xmm0
movq xmm0, qword [ecx + 0x58]
movq qword [eax + 0x10], xmm0
xor eax, eax
mov dword [ecx + 0x58], 0
mov dword [ecx + 0x5c], 7
mov word [ecx + 0x48], ax
mov byte [ebp - 4], 0x13
lea eax, [edx + 0x60]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0x14
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov byte [ebp - 4], 0x17
movups xmm0, xmmword [ecx + 0x60]
movups xmmword [eax], xmm0
movq xmm0, qword [ecx + 0x70]
movq qword [eax + 0x10], xmm0
xor eax, eax
mov dword [ecx + 0x70], 0
mov dword [ecx + 0x74], 7
mov word [ecx + 0x60], ax
mov byte [ebp - 4], 0x18
mov al, byte [ecx + 0x78]
mov byte [edx + 0x78], al
mov dword [ebp - 4], 0xffffffff
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x10030620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007f49c
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100f8008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, 0x101052d5
call fcn.1005cb05
mov eax, dword [esi + 4]
test eax, eax
je 0x10030782
cmp byte [eax + 0x54], 0
je 0x10030782
add eax, 0x1c
lea ecx, [ebp - 0x18]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x18], xmm0
call fcn.1002eaf0
mov dword [ebp - 4], 0
mov eax, dword [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x10030694
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1003074f
push 0
mov edx, edi
lea ecx, [ebp - 0x30]
call fcn.1004fc40
add esp, 4
mov byte [ebp - 4], 2
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x1c], 0x10
lea ecx, [ebp - 0x34]
push 0
push ecx
push dword [ebp - 0x20]
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x10030735
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003072b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003072b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1005a9af
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
mov byte [ebp - 4], 0
mov byte [ebp - 4], 0
mov dword [ebp - 4], 7
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x10030774
cmp byte [ebp - 0x14], 0
je 0x10030774
mov eax, dword [esi]
test eax, eax
je 0x10030770
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005a96e
mov esp, ebp
pop ebp
ret 4
Function at 0x10031e30
Capabilities:
Contain obfuscated stackstrings
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007fdc7
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x100f8008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov ecx, 0x101052d5
call fcn.1005cb05
mov dword [ebp - 4], 0xa
lea esi, [edi + 0x108]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0xc
mov ecx, esi
call fcn.10017980
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 9
lea esi, [edi + 0xf0]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0x10
mov ecx, esi
call fcn.10017980
mov byte [ebp - 4], 9
mov byte [ebp - 4], 8
lea esi, [edi + 0xd8]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0x14
mov ecx, esi
call fcn.10017980
mov byte [ebp - 4], 8
mov byte [ebp - 4], 7
lea esi, [edi + 0xc0]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0x18
mov ecx, esi
call fcn.10017980
mov byte [ebp - 4], 7
mov byte [ebp - 4], 6
lea esi, [edi + 0xa8]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0x1c
mov ecx, esi
call fcn.10017980
mov byte [ebp - 4], 6
mov byte [ebp - 4], 5
lea esi, [edi + 0x90]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0x20
mov ecx, esi
call fcn.10017980
mov byte [ebp - 4], 5
mov byte [ebp - 4], 4
lea esi, [edi + 0x78]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0x24
mov ecx, esi
call fcn.10017980
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
lea esi, [edi + 0x60]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0x28
mov ecx, esi
call fcn.10017980
mov byte [ebp - 4], 3
mov byte [ebp - 4], 2
lea esi, [edi + 0x48]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0x2c
mov ecx, esi
call fcn.10017980
mov byte [ebp - 4], 2
mov byte [ebp - 4], 1
lea esi, [edi + 0x30]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0x30
mov ecx, esi
call fcn.10017980
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
lea esi, [edi + 0x18]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0x34
mov ecx, esi
call fcn.10017980
mov byte [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0x38
mov ecx, edi
call fcn.10017980
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10046e80
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xfffffffffffffffe
push 0x100f09d0
push 0x1005b57c
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x100f8008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov dword [ebp - 0x20], esi
mov ecx, 0x101052d5
call fcn.1005cb05
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10046eeb
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov edx, esi
call fcn.10046fc0
mov bl, al
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x10046f1d
test bl, bl
jne 0x10046f8d
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10046f32
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
push 0x410
push ecx
lea eax, [ebp]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x207
lea eax, [ebp]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10046f63
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.10017a50
movzx ebx, bl
mov eax, 1
cmp dword [esi + 0x10], 0
cmovne ebx, eax
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.1005a96e
lea esp, [ebp + 0x414]
pop ebp
ret

Function at 0x10048800
Capabilities:
Create directory

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x101052d5
call fcn.1005cb05
mov ecx, esi
pop esi
jmp fcn.10035e30

Function at 0x10048b20
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084538
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x100f8008]
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 esi, ecx
mov edi, dword [ebp + 8]
mov ecx, 0x101052d5
call fcn.1005cb05
mov eax, dword [esi]
test eax, eax
je 0x10048b6d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
lea ecx, [ebp - 0x14]
mov word [esi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.10057e50
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x10048b96
add eax, 8
jmp 0x10048b98
xor eax, eax
cmp dword [edi + 0x10], 0
je 0x10048ba8
cmp dword [edi + 0x14], 8
jb 0x10048baa
mov edi, dword [edi]
jmp 0x10048baa
xor edi, edi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x10048bcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10048bcb
mov byte [esi + 5], 1
cmp dword [esi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10058010
mov al, bl
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.1005a96e
mov esp, ebp
pop ebp
ret 4
Function at 0x10048c00
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10084568
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x100f8008]
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 esi, ecx
mov edi, dword [ebp + 8]
mov ecx, 0x101052d5
call fcn.1005cb05
mov eax, dword [esi]
test eax, eax
je 0x10048c4d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [esi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.10057f30
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x10048c77
lea ebx, [eax + 8]
jmp 0x10048c79
xor ebx, ebx
cmp dword [edi + 0x10], 0
je 0x10048c8b
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x10048c8d
mov eax, dword [edi]
jmp 0x10048c8d
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
test eax, eax
jne 0x10048cd6
call ecx
cmp eax, 5
jne 0x10048cd0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x10], 0
je 0x10048cc2
cmp dword [edi + 0x14], 8
jb 0x10048cc4
mov edi, dword [edi]
jmp 0x10048cc4
xor edi, edi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi]
test eax, eax
je 0x10048cf4
call ecx
cmp eax, 0xb7
jne 0x10048ce9
mov byte [esi + 5], 1
mov ecx, dword [esi]
call fcn.10056900
mov eax, dword [esi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10058010
mov al, bl
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.1005a96e
mov esp, ebp
pop ebp
ret 4
Function at 0x1004a2e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov ebx, ecx
mov ecx, 0x10104a7f
push edi
call fcn.1005cb05
cmp dword [ebx + 0x38], 0
je 0x1004a318
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x1004a33a
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x1004a33c
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x1004a3c1
jg 0x1004a351
test esi, esi
je 0x1004a3c1
test ecx, ecx
jl 0x1004a39a
jg 0x1004a35b
test eax, eax
je 0x1004a39a
cmp edi, ecx
jg 0x1004a36f
jl 0x1004a365
cmp esi, eax
jae 0x1004a36f
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x1004a39d
mov edx, dword [ebp + 8]
test edi, edi
jl 0x1004a3c1
jg 0x1004a3a7
test esi, esi
je 0x1004a3c1
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1004a3c1
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc