joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10016500
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100f91f8
push 0x100d893f
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x100ff008]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
mov dword [ebp - 0x20], esi
mov ecx, 0x10103149
call fcn.100d96c4
xor bl, bl
mov ecx, esi
call fcn.100162b0
mov dword [ebp - 0x28], eax
test eax, eax
je 0x100165b9
push 0x100e849c
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
add esp, 8
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x100165ac
mov dword [ebp - 4], 0
push edi
mov ecx, esi
call fcn.100160b0
mov bl, al
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x100165a2
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test bl, bl
je 0x100165cd
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
test eax, eax
je 0x100165dd
push eax
lea ecx, [esi + 8]
call fcn.1000d010
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10016af0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100f9240
push 0x100d893f
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100ff008]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, ecx
mov ecx, 0x10103149
call fcn.100d96c4
mov ecx, ebx
call fcn.100162b0
mov edi, eax
mov dword [ebp - 0x20], edi
push 0x100e84cc
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
add esp, 8
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
je 0x10016bb4
mov dword [ebp - 4], 0
push esi
mov ecx, ebx
call fcn.10016600
mov bl, al
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x10016b8b
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test bl, bl
je 0x10016ba0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100171e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x100ff008]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [esp + 0x18], edi
call fcn.1000d440
push ecx
lea edx, [esp + 0x14]
mov dword [esp + 0x18], 0
mov ecx, edi
mov dword [esp + 0x14], 0
call fcn.1000f320
add esp, 4
test al, al
je 0x10017256
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jb 0x10017248
push ecx
lea edx, [esp + 0x18]
mov ecx, edi
call fcn.1000f3a0
add esp, 4
test al, al
je 0x10017256
mov eax, dword [esp + 0x14]
cmp eax, 0x24687531
je 0x1001726c
mov ecx, ebx
call fcn.1000d440
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.100d8362
mov esp, ebp
pop ebp
ret 8
lea edx, [ebx + 0xc]
mov ecx, edi
call fcn.1000f270
test al, al
je 0x10017256
lea edx, [ebx + 0x10]
mov ecx, edi
call fcn.1000f270
test al, al
je 0x10017256
push dword [ebx + 0xc]
mov ecx, ebx
call fcn.1000e2b0
mov esi, dword [ebx]
mov eax, dword [ebx + 4]
cmp esi, eax
je 0x100172fa
nop dword [eax + eax]
mov ecx, esi
call fcn.1000dd70
xor ecx, ecx
lea eax, [esi + 4]
mov dword [esi + 6], ecx
mov edx, eax
mov word [esi + 0xa], cx
mov word [eax], cx
push ecx
mov ecx, edi
call fcn.1000f420
add esp, 4
test al, al
je 0x10017256
push edi
push 1
lea eax, [esi + 6]
push 6
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x10017256
movzx eax, word [esi + 4]
push eax
call fcn.1000e5e0
mov dword [esi], eax
add esi, 0xc
mov eax, dword [ebx + 4]
cmp esi, eax
jne 0x100172a0
mov esi, dword [ebx]
xor edi, edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
cmp esi, eax
je 0x10017330
mov eax, dword [esi]
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x1c]
call fcn.1000d8d0
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
nop
mov ecx, dword [esp + 0x1c]
mov edx, dword [ebx + 4]
cmp ecx, dword [ebx]
jne 0x1001734b
cmp eax, edx
jne 0x1001734b
cmp esi, edx
jne 0x1001734b
cmp esi, eax
je 0x10017366
test edi, edi
je 0x10017366
push edi
push dword [esp + 0x1c]
call fcn.10015d00
test al, al
je 0x10017256
add edi, 0x1c
mov dword [esp + 0x28], edi
jmp 0x1001731a
mov ecx, dword [esp + 0x2c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100d8362
mov esp, ebp
pop ebp
ret 8
Function at 0x10019740
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dd1b8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100ff008]
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, dword [ebp + 8]
mov ecx, 0x10103149
call fcn.100d96c4
test esi, esi
je 0x1001988c
cmp word [esi], 0
je 0x1001988c
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100197b7
xor al, al
jmp 0x10019937
push esi
lea ecx, [ebp - 0x40]
call fcn.10004460
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x10019874
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
mov ecx, 0x10101274
mov edi, eax
call fcn.10034d10
mov esi, eax
test esi, esi
je 0x10019874
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
push edi
push str.RegDeleteValue_failed__error___d
push eax
call fcn.10035220
add esp, 0xc
lea eax, [ebp - 0x28]
mov ecx, 0x10101274
push 0x254
push str.RC::RCTrojaneOperator::RemoveStartUpReg
push str.f:_branches6.1.5_rhinoprotect_virusscan_srcgdoperate_rctrojaneoperator.cpp
push eax
push 2
call fcn.10034d60
cmp esi, 1
jbe 0x10019868
lea eax, [ebp - 0x28]
mov ecx, 0x10101274
push eax
call fcn.10035090
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.100044d0
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.100044d0
cmp dword [0x10101274], 0
je 0x10019935
push 0
mov ecx, 0x10101274
call fcn.100343e0
mov eax, dword [0x10101274]
cmp byte [eax + 0x54], 0
je 0x10019935
cmp dword [eax + 0x58], 4
jb 0x10019935
mov bl, byte [eax + 0x5c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x28]
push 0x2b
push str.RCAvOperatorQuarantineStartUp::OperatorImpl
call fcn.10004530
push 0x258
push str.RC::RCTrojaneOperator::RemoveStartUpReg
push str.f:_branches6.1.5_rhinoprotect_virusscan_srcgdoperate_rctrojaneoperator.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x10101274
push eax
push 4
call fcn.10034d60
test bl, bl
je 0x10019926
lea eax, [ebp - 0x28]
mov ecx, 0x10101274
push eax
call fcn.10035090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100044d0
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.100d8362
mov esp, ebp
pop ebp
ret 4
Function at 0x1001b050
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dc820
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x100ff008]
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 ecx, 0x10103149
call fcn.100d96c4
mov eax, dword [esi + 4]
test eax, eax
je 0x1001b1f8
cmp dword [0x10101274], 0
lea edi, [eax + 0x24]
je 0x1001b136
push 0
mov ecx, 0x10101274
call fcn.100343e0
mov eax, dword [0x10101274]
cmp byte [eax + 0x54], 0
je 0x1001b136
cmp dword [eax + 0x58], 4
jb 0x1001b136
mov bl, byte [eax + 0x5c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x28]
push 0x2a
push str.RCAvOperatorDeleteQuarantine::OperatorImpl
call fcn.10004530
push 0x3d5
push str.RC::RCTrojaneOperator::DeleteQuarantine
push str.f:_branches6.1.5_rhinoprotect_virusscan_srcgdoperate_rctrojaneoperator.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x10101274
push eax
push 4
call fcn.10034d60
test bl, bl
je 0x1001b127
lea eax, [ebp - 0x28]
mov ecx, 0x10101274
push eax
call fcn.10035090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100044d0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
push 1
push dword [ebp + 8]
mov ecx, edi
mov ebx, eax
call fcn.10007460
test al, al
je 0x1001b157
mov al, 1
jmp 0x1001b1fa
call esi
sub eax, ebx
cmp eax, 0x1388
jbe 0x1001b1f8
push 3
mov ecx, 0x10101274
call fcn.10034d10
mov esi, eax
test esi, esi
je 0x1001b1f1
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
push 0x1b
push str.rebuild_quarantine_database
call fcn.10004530
push 0x3de
push str.RC::RCTrojaneOperator::DeleteQuarantine
push str.f:_branches6.1.5_rhinoprotect_virusscan_srcgdoperate_rctrojaneoperator.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x10101274
push eax
push 3
call fcn.10034d60
cmp esi, 1
jbe 0x1001b1e2
lea eax, [ebp - 0x28]
mov ecx, 0x10101274
push eax
call fcn.10035090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100044d0
mov ecx, edi
call fcn.100068a0
xor al, al
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.100d8362
mov esp, ebp
pop ebp
ret 4
Function at 0x10024570
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100de7f9
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100ff008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.1000a9d0
mov edi, eax
mov dword [ebp - 0x14], edi
mov word [edi + 0xc], 0
mov dword [ebp - 4], 0
lea esi, [edi + 0x10]
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
push eax
mov ecx, esi
call fcn.100080a0
mov byte [ebp - 4], 1
add esi, 0x18
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 7
xor eax, eax
mov word [esi + 4], ax
mov byte [ebp - 4], 2
mov byte [ebp - 4], 3
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], 7
mov word [esi + 0x20], ax
mov byte [ebp - 4], 4
mov byte [ebp - 4], 5
mov byte [ebp - 4], 6
mov byte [ebp - 4], al
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100252f0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], edx
push edi
mov ecx, 0x10103149
call fcn.100d96c4
mov ebp, dword [esp + 0x18]
xor edi, edi
mov bh, byte [esi + 0x100]
mov cl, byte [esi + 0x101]
test ebp, ebp
je 0x10025358
nop dword [eax + eax]
inc bh
movzx edx, bh
mov bl, byte [edx + esi]
add cl, bl
mov byte [esp + 0x18], cl
movzx ecx, cl
movzx eax, byte [ecx + esi]
mov byte [edx + esi], al
mov byte [ecx + esi], bl
movzx eax, byte [edx + esi]
mov ecx, dword [esp + 0x10]
add al, bl
movzx eax, al
movzx eax, byte [eax + esi]
xor byte [edi + ecx], al
inc edi
mov cl, byte [esp + 0x18]
cmp edi, ebp
jb 0x10025320
pop edi
mov byte [esi + 0x101], bh
mov byte [esi + 0x100], bh
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10025410
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ebx
mov ebx, ecx
mov ecx, 0x10103149
mov dword [esp + 4], ebx
call fcn.100d96c4
cmp dword [esp + 0xc], 0
je 0x1002549c
push ebp
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x1002549b
push esi
push edi
mov edi, dword [ebx]
xor dl, dl
xor cl, cl
xor eax, eax
nop dword [eax]
mov byte [eax + edi], al
inc eax
cmp eax, 0x100
jb 0x10025440
mov word [edi + 0x100], 0
xor ebx, ebx
mov eax, dword [esp + 0x18]
movzx esi, dl
mov dl, byte [ebx + edi]
movzx eax, byte [esi + eax]
add al, dl
add cl, al
mov byte [esp + 0x1c], cl
movzx ecx, cl
add ecx, edi
movzx eax, byte [ecx]
mov byte [ebx + edi], al
lea eax, [esi + 1]
mov byte [ecx], dl
inc ebx
mov cl, byte [esp + 0x1c]
xor edx, edx
div ebp
cmp ebx, 0x100
jb 0x10025456
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov eax, dword [eax]
mov dword [eax + 0x104], ebp
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x100290d0
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xfffffffffffffffe
push 0x100fb288
push 0x100d893f
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x100ff008]
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, 0x10103149
call fcn.100d96c4
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x1002913b
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov edx, esi
call fcn.10029210
mov bl, al
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x1002916d
test bl, bl
jne 0x100291dd
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10029182
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 0x100ebd30
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 0x100291b3
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.10004530
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.100d8362
lea esp, [ebp + 0x414]
pop ebp
ret

Function at 0x10029f90
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x10103149
call fcn.100d96c4
mov eax, dword [esi]
test eax, eax
je 0x10029fb0
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 0x10029fca
cmp dword [eax + 0x14], 8
jb 0x10029fcc
mov eax, dword [eax]
jmp 0x10029fcc
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x10029fee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10029fee
mov byte [esi + 5], 1
cmp dword [esi], 0
pop esi
setne al
ret 4
Function at 0x1002a000
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100df1e8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x100ff008]
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, 0x10103149
call fcn.100d96c4
mov eax, dword [esi]
test eax, eax
je 0x1002a04d
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.10032f30
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x1002a076
add eax, 8
jmp 0x1002a078
xor eax, eax
cmp dword [edi + 0x10], 0
je 0x1002a088
cmp dword [edi + 0x14], 8
jb 0x1002a08a
mov edi, dword [edi]
jmp 0x1002a08a
xor edi, edi
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x1002a0ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1002a0ab
mov byte [esi + 5], 1
cmp dword [esi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.10033020
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.100d8362
mov esp, ebp
pop ebp
ret 4
Function at 0x1002f940
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x100ff008]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
mov ecx, 0x10103149
call fcn.100d96c4
push 0x118
lea eax, [esi + 4]
push 0
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 0x1002fa8c
cmp dword [esi + 4], 6
push edi
ja 0x1002f9a0
jne 0x1002fa28
cmp dword [esi + 8], 2
jb 0x1002fa28
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x1002fa28
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1002fa28
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1002fa28
movups xmm0, xmmword [0x100ec224]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x100ec234]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x1002fa28
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1002fa28
cmp word [edi + 2], ax
jbe 0x1002fa28
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 0x1002fa73
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 0x1002fa73
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.100d8362
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.100d8362
add esp, 0x140
ret

Function at 0x1002fc70
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x100ff008]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, ecx
mov ecx, 0x10103149
push edi
mov edi, dword [esp + 0x14]
call fcn.100d96c4
mov eax, dword [esi]
test eax, eax
je 0x1002fcdf
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1002fcdf
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1002fcba
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1002fcdf
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.100d8362
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.100d8362
add esp, 8
ret 4
Function at 0x100315d0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dc908
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x100ff008]
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, edx
mov edi, ecx
mov ecx, 0x10103149
call fcn.100d96c4
cmp esi, 0xffffffff
jne 0x10031612
xor al, al
jmp 0x10031691
and esi, 0xffffb1af
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x10031622
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push eax
call ebx
test eax, eax
je 0x10031634
mov al, 1
jmp 0x10031691
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.100320a0
test al, al
je 0x1003167e
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
je 0x1003167e
mov bl, 1
jmp 0x10031680
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100044d0
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.100d8362
mov esp, ebp
pop ebp
ret

Function at 0x100316b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dc908
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100ff008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, 0x10103149
call fcn.100d96c4
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x100316f0
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10031754
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.100320a0
test al, al
je 0x10031745
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100044d0
mov eax, esi
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.100d8362
mov esp, ebp
pop ebp
ret