joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100af4b0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013376c
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10182014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea edi, [ebx + 0x10]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
lea esi, [edi + 0x18]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 4
lea ecx, [esi + 0x48]
call fcn.10004480
mov byte [ebp - 4], 3
lea ecx, [esi + 0x30]
call fcn.10004480
mov byte [ebp - 4], 2
lea ecx, [esi + 0x18]
call fcn.10004480
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.10004480
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.10004480
push 0x88
push ebx
call fcn.101177a0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x100b2090
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x10182014]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
push 0x118
push 0
lea eax, [esi + 4]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100b21d2
cmp dword [esi + 4], 6
push edi
ja 0x100b20e6
jne 0x100b216e
cmp dword [esi + 8], 2
jb 0x100b216e
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x100b216e
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x100b216e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100b216e
movups xmm0, xmmword [0x10150988]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x10150998]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x100b216e
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100b216e
cmp word [edi + 2], ax
jbe 0x100b216e
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x100b21b9
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x100b21b9
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.1011730d
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.1011730d
add esp, 0x140
ret
Function at 0x100b2e00
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10133db0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10182014]
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
cmp dword [esi + 0x10], 0
jne 0x100b2e3a
xor al, al
jmp 0x100b2ff5
call fcn.100b2870
test al, al
je 0x100b2e4a
mov al, 1
jmp 0x100b2ff5
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100b2e54
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push eax
call ebx
test eax, eax
jne 0x100b2ea7
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.100d3120
test al, al
je 0x100b2e98
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004480
mov ecx, esi
call fcn.100b2870
test al, al
jne 0x100b2e43
mov eax, dword [esi + 0x10]
xor edi, edi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x100b2f88
mov ecx, dword [esi + 0x14]
mov eax, esi
cmp ecx, 8
jb 0x100b2ece
mov eax, dword [esi]
mov edx, 0x2f
cmp dx, word [eax + edi*2]
mov edx, 0x5c
je 0x100b2ef1
mov eax, esi
cmp ecx, 8
jb 0x100b2ee7
mov eax, dword [esi]
cmp dx, word [eax + edi*2]
jne 0x100b2f7e
push edi
push 0
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.1002c970
mov dword [ebp - 4], 1
cmp dword [ebp - 0x30], 0
je 0x100b2f6f
lea ecx, [ebp - 0x40]
call fcn.100b26a0
test al, al
jne 0x100b2f6f
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push eax
call ebx
test eax, eax
jne 0x100b2f6f
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 2
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.100d3120
test al, al
je 0x100b2f63
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.10004480
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10004480
inc edi
cmp edi, dword [ebp - 0x44]
jb 0x100b2ec2
mov ecx, esi
call fcn.100b26a0
test al, al
jne 0x100b2fee
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100b2f9d
mov eax, dword [esi]
push 0
push eax
call ebx
test eax, eax
jne 0x100b2fee
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 3
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.100d3120
test al, al
je 0x100b2fdf
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10004480
mov ecx, esi
call fcn.100b2870
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.1011730d
mov esp, ebp
pop ebp
ret
Function at 0x100b3750
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10128cb8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10182014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 8]
test edi, edi
jne 0x100b3793
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
lea ecx, [ebp - 0x10]
call sym.SoftNotify.dll_public:_void___thiscall_RC::RCSQLiteConnection::__autoclassinit2_unsigned_int_
lea eax, [edi + 0x20]
push eax
lea ecx, [ebp - 0x10]
call fcn.10025c90
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x100b380b
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea edi, [esi + 4]
push 1
push edi
call ebx
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x100b3320
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x100b3830
push 0xffffffffffffffff
push edi
call ebx
sub eax, 1
jne 0x100b3803
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.100b34b0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10025cc0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x100b3848
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x100b37f2
mov bl, 1
jmp 0x100b380d

Function at 0x100b3f20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x10182014]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, ecx
call fcn.10026ef0
push 0x412
lea eax, [esp + 8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x100b3f7c
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.1011730d
add esp, 0x418
ret
cmp eax, 0x208
jae 0x100b3f64
xor eax, eax
lea edx, [esp + 4]
mov word [esp + 0x414], ax
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100b3f94
sub edx, ecx
lea eax, [esp + 4]
sar edx, 1
mov ecx, esi
push edx
push eax
call fcn.100044e0
mov ecx, dword [esp + 0x418]
mov al, 1
pop esi
xor ecx, esp
call fcn.1011730d
add esp, 0x418
ret
Function at 0x100b8780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10134617
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x10182014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
push 4
call fcn.1011732c
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x50]
push 2
push 0
push 0x40000000
push esi
push eax
call fcn.100b9e50
test al, al
je 0x100b894b
lea eax, [ebp - 0x5c]
xorps xmm0, xmm0
push eax
lea ecx, [ebp - 0x50]
movlpd qword [ebp - 0x5c], xmm0
call fcn.100c1840
test al, al
je 0x100b8824
cmp dword [ebp - 0x58], 0
ja 0x100b881d
cmp dword [ebp - 0x5c], 0
jbe 0x100b8824
mov bl, 1
jmp 0x100b894d
push ecx
lea ecx, [ebp - 0x24]
call fcn.1002c3a0
call fcn.10007230
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.10007230
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.10007230
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.10007230
mov byte [ebp - 4], 5
mov dword [ebp - 0x28], 0xffffffff
mov byte [ebp - 4], 6
lea esi, [edi + 0x24]
mov ecx, esi
call fcn.10026f10
mov edx, eax
call fcn.1002cc60
mov ecx, dword [edx]
cmp ecx, dword [eax]
lea ecx, [ebp - 0x4c]
jne 0x100b8886
call fcn.100b78d0
jmp 0x100b888c
push esi
call fcn.100b9f90
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x4c]
call fcn.100b83e0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], 0
call fcn.10026f10
mov edx, dword [eax]
call fcn.1002c8e0
mov esi, dword [ebp - 0x50]
mov edi, eax
test esi, esi
jne 0x100b88ba
xor bl, bl
jmp 0x100b8902
test edx, edx
jne 0x100b88c2
xor bl, bl
jmp 0x100b88ea
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x100b88cd
xor bl, bl
jmp 0x100b88ea
push 0
lea ecx, [ebp - 0x18]
push ecx
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100b88e4
xor bl, bl
jmp 0x100b88ea
cmp edi, dword [ebp - 0x18]
sete bl
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x100b8902
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x100b8902
mov dword [esi], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.1002c8e0
cmp dword [ebp - 0x18], eax
jne 0x100b8917
test bl, bl
je 0x100b8917
mov bl, 1
jmp 0x100b8919
xor bl, bl
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x34]
call fcn.1002c8f0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x40]
call fcn.1002c8f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.1002c8f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.1002c8f0
jmp 0x100b8950
xor bl, bl
mov esi, dword [ebp - 0x50]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x100b8985
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x100b8973
test eax, eax
je 0x100b8973
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.101177a0
add esp, 8
mov dword [ebp - 0x50], 0
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 - 0x14]
xor ecx, ebp
call fcn.1011730d
mov esp, ebp
pop ebp
ret 4
Function at 0x100bf800
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x100bf816
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov eax, dword [esp + 8]
mov word [esi + 4], 0
cmp dword [eax + 0x10], 0
je 0x100bf830
cmp dword [eax + 0x14], 8
jb 0x100bf832
mov eax, dword [eax]
jmp 0x100bf832
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x100bf854
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100bf854
mov byte [esi + 5], 1
cmp dword [esi], 0
pop esi
setne al
ret 4

Function at 0x100bf860
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101355e8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10182014]
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 edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x100bf8a3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.100d2180
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x100bf8cc
lea eax, [esi + 8]
jmp 0x100bf8ce
xor eax, eax
cmp dword [ebx + 0x10], 0
je 0x100bf8de
cmp dword [ebx + 0x14], 8
jb 0x100bf8e0
mov ebx, dword [ebx]
jmp 0x100bf8e0
xor ebx, ebx
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x100bf901
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100bf901
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x100bf92a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x100bf93f
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.101177a0
add esp, 8
mov dword [ebp - 0x14], 0
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.1011730d
mov esp, ebp
pop ebp
ret 4
Function at 0x100bf980
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10135618
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x10182014]
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 edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x100bf9c3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.100d2260
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x100bf9ed
lea ecx, [esi + 8]
jmp 0x100bf9ef
xor ecx, ecx
cmp dword [ebx + 0x10], 0
mov dword [ebp - 0x18], ecx
je 0x100bfa04
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x100bfa06
mov eax, dword [ebx]
jmp 0x100bfa06
xor eax, eax
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
test eax, eax
jne 0x100bfa51
call ecx
cmp eax, 5
jne 0x100bfa4b
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebx + 0x10], 0
je 0x100bfa3b
cmp dword [ebx + 0x14], 8
jb 0x100bfa3d
mov ebx, dword [ebx]
jmp 0x100bfa3d
xor ebx, ebx
push ebx
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
test eax, eax
je 0x100bfa6f
call ecx
cmp eax, 0xb7
jne 0x100bfa64
mov byte [edi + 5], 1
mov ecx, dword [edi]
call fcn.100c9070
mov eax, dword [edi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x100bfa95
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x100bfaaa
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.101177a0
add esp, 8
mov dword [ebp - 0x14], 0
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.1011730d
mov esp, ebp
pop ebp
ret 4
Function at 0x100bff80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x10182014]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
push 0x110
lea eax, [esp + 0x18]
mov esi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x10], 0x114
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x100bfffe
cmp dword [esp + 0x14], 6
jb 0x100bfffe
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x207
push eax
push esi
push str.Progid
mov edx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
mov ecx, SysReAllocString
call fcn.100bfde0
add esp, 0xc
test al, al
je 0x100bfffe
cmp word [esi], 0
jne 0x100c0056
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.http_shellopencommand
mov ecx, SysReAllocString
call fcn.100bfde0
add esp, 0xc
test al, al
je 0x100c002a
cmp word [esi], 0
jne 0x100c0056
lea eax, [esp + 8]
mov dword [esp + 8], 0x207
push eax
push esi
push 0
mov edx, str.SoftwareClasses.html
mov ecx, SysReAllocString
call fcn.100bfde0
add esp, 0xc
test al, al
je 0x100c006b
cmp word [esi], 0
je 0x100c006b
mov al, 1
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.1011730d
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x12c]
xor al, al
pop esi
xor ecx, esp
call fcn.1011730d
mov esp, ebp
pop ebp
ret
Function at 0x100c0590
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x283c]
mov eax, 0x283c
call fcn.10118380
push 0xffffffffffffffff
push 0x10135708
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10182014]
xor eax, ebp
mov dword [ebp + 0x2838], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x2000
xor ebx, ebx
lea eax, [ebp + 0x630]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, 0x22
mov word [ebp + 0x630], ax
test esi, esi
je 0x100c0791
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 1
jl 0x100c0791
push esi
call edi
cmp eax, 0xffa
jge 0x100c0791
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp + 0x630]
push eax
call esi
push 0x1014a720
lea eax, [ebp + 0x630]
push eax
call esi
push str.Shell32.dll
lea ecx, [ebp - 0x2c]
call fcn.10004430
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x2c]
push eax
call fcn.100ca0b0
mov ecx, eax
call fcn.100ca170
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.10004480
test esi, esi
je 0x100c0791
push str.ShellExecuteW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100c0791
lea ecx, [ebp]
call fcn.100c0080
xor edi, edi
lea esi, [ebp]
cmp word [esi], 0
je 0x100c06b6
push 1
push 0
lea eax, [ebp + 0x630]
push eax
push esi
push str.open
push 0
call dword [ebp - 0x10]
cmp eax, 0x20
ja 0x100c06c4
inc edi
add esi, 0x210
cmp edi, 3
jl 0x100c0695
jmp 0x100c06e6
imul ebx, edi, 0x210
cmp dword [ebp + ebx + 0x208], 0
mov ebx, dword [ebp + ebx + 0x20c]
jne 0x100c06de
add ebx, 0x10
test ebx, ebx
jne 0x100c078d
mov edi, dword [ebp - 0x10]
lea eax, [ebp + 0x630]
push 1
push 0
push 0
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x100c0788
mov dword [ebp - 0x14], str._programfiles_x86__Internet_Exploreriexplore.exe
xor esi, esi
mov dword [ebp - 0x10], str._programfiles_Internet_Exploreriexplore.exe
nop dword [eax + eax]
push 0x208
lea eax, [ebp + 0x2630]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0x2630]
push 0x103
push eax
push dword [ebp + esi*4 - 0x14]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp + 0x2630]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100c077e
push 1
push 0
lea eax, [ebp + 0x630]
push eax
lea eax, [ebp + 0x2630]
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x100c0788
inc esi
cmp esi, 2
jb 0x100c0720
mov eax, ebx
jmp 0x100c0793
mov ebx, 0x10
mov eax, ebx
jmp 0x100c0793
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2838]
xor ecx, ebp
call fcn.1011730d
lea esp, [ebp + 0x283c]
pop ebp
ret
Function at 0x100c1100
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x101725e8
push 0x10117d26
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x10182014]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], 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 edi, ecx
mov dword [ebp - 0x438], edi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.10026ef0
mov ecx, edi
call fcn.100c1230
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x100c1193
test bl, bl
jne 0x100c120d
cmp edi, 0x1a
jne 0x100c120d
mov ecx, esi
call fcn.10026ef0
push 0x410
push 0
lea eax, [ebp - 0x430]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x430]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100c11e0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.100044e0
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 - 0x1c]
xor ecx, ebp
call fcn.1011730d
mov esp, ebp
pop ebp
ret

Function at 0x100c1750
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x100c1788
mov edx, dword [esp + 4]
test edx, edx
je 0x100c1788
cmp dword [eax], 0xffffffff
je 0x100c1788
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [ecx]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100c1788
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x100c1790
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x100c17ca
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x100c17ca
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x100c17ca
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push 0
push esi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100c17ca
cmp edi, dword [esi]
jne 0x100c17ca
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc