joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3001c119
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
je 0x3001c14f
jle 0x3001c1b0
and eax, 0xffff
or eax, 0x80070000
jmp 0x3001c1b0
cmp dword [ebp + 0x10], edi
push esi
je 0x3001c196
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x10]
push 1
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, edi
je 0x3001c196
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jle 0x3001c192
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
jmp 0x3001c1af
mov eax, dword [ebp + 0x14]
cmp eax, edi
jne 0x3001c1a8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x3001c1ad
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
xor eax, eax
pop esi
pop edi
leave
ret 0x10

Function at 0x3001c1f4
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x3001b290]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
lea edx, [ebp - 0x214]
push edx
push 0x2000e
xor esi, esi
push esi
push ecx
push eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
je 0x3001c24a
jle 0x3001c2e9
and eax, 0xffff
or eax, 0x80070000
jmp 0x3001c2e9
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push edi
jmp 0x3001c26c
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call fcn.3001c1f4
mov edi, eax
cmp edi, esi
jne 0x3001c2c9
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x105
call ebx
test eax, eax
je 0x3001c254
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x21c]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, esi
jle 0x3001c2e7
and eax, 0xffff
or eax, 0x80070000
jmp 0x3001c2e7
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jle 0x3001c2e5
and edi, 0xffff
or edi, 0x80070000
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.300305d2
leave
ret 8

Function at 0x3001ccbc
Capabilities:
Set thread local storage value

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
cmp ecx, edx
jb 0x3001ccdd
mov eax, dword [eax + 8]
cmp ecx, eax
jb 0x3001ccdd
cmp edx, eax
jb 0x3001ccdd
add eax, 0x10000
cmp eax, ecx
jae 0x3001cd08
mov eax, dword [0x30036574]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0
push 0x35636561
call fcn.3001d0f8
push 0
push 0
push 1
push 0xe0000001
call dword [sym.imp.KERNEL32.dll_RaiseException]
ret
Function at 0x3001ddcb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
cmp ebx, edi
jne 0x3001dde3
xor eax, eax
jmp 0x3001ded0
push esi
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x3001ddf3
cmp dword [0x300698c0], edi
je 0x3001de04
cmp dword [0x3006a8dc], edi
mov dword [ebp - 4], edi
je 0x3001de0b
test byte [ebx + 0xc], 0x10
jne 0x3001de0b
xor eax, eax
jmp 0x3001decf
lea ecx, [ebp + 0xb]
mov dword [ebp + 8], edi
mov dword [ebp - 8], edi
call fcn.3001d5d6
neg esi
sbb esi, esi
and esi, 2
push edi
mov dword [ebp - 0xc], esi
push esi
jmp 0x3001de89
mov eax, dword [ebx]
cmp eax, edi
je 0x3001de36
push eax
call fcn.3002767a
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
cmp eax, edi
jne 0x3001de42
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push edi
push edi
push edi
push edi
push dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], edi
mov esi, eax
je 0x3001de5f
push dword [ebp - 4]
call fcn.3001cd09
push esi
call fcn.3001d1f4
test eax, eax
pop ecx
je 0x3001dea4
push 0x796d7468
push edi
call fcn.3001d137
push dword [ebp + 8]
mov ecx, 0x300698d0
call fcn.3001d774
push edi
push dword [ebp - 0xc]
mov dword [ebp + 8], edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebx + 8]
call fcn.3001d836
mov esi, eax
add esp, 0x14
cmp esi, edi
je 0x3001de27
jmp 0x3001deb1
push dword [ebp + 8]
mov ecx, 0x300698d0
call fcn.3001d6f2
xor eax, eax
cmp esi, edi
sete al
cmp dword [0x300698c8], edi
mov esi, eax
je 0x3001decd
push 0x30069870
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop esi
pop edi
pop ebx
leave
ret
Function at 0x3001e272
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x3001e288
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push esi
lea ecx, [ebp + 0xc]
push ecx
push 0
push dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 2
pop ebx
cmp dword [ebp - 4], ebx
mov edi, eax
jae 0x3001e2ba
cmp dword [ebp + 0xc], 1
je 0x3001e2b8
cmp dword [ebp + 0xc], ebx
jne 0x3001e2ba
mov edi, ebx
push edi
call fcn.3001d1f4
test eax, eax
pop ecx
je 0x3001e2e0
push 0x796d746b
push 0
call fcn.3001d137
push dword [ebp + 8]
mov ecx, 0x300698d0
call fcn.3001d774
jmp 0x3001e33f
test edi, edi
jne 0x3001e332
cmp dword [ebp + 0xc], ebx
je 0x3001e2ef
cmp dword [ebp + 0xc], 1
jne 0x3001e2fa
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2 - 2], 0
cmp dword [ebp + 0xc], ebx
je 0x3001e304
cmp byte [ebp + 0x1c], bl
jne 0x3001e31d
mov eax, dword [ebp + 0x18]
shr eax, 1
push eax
push esi
call fcn.3001d24b
test eax, eax
pop ecx
pop ecx
jne 0x3001e31d
mov edi, 0xea
jmp 0x3001e332
movzx eax, byte [ebp + 0x1c]
push eax
push dword [ebp + 0xc]
call fcn.3001d221
test eax, eax
pop ecx
pop ecx
jne 0x3001e332
mov edi, ebx
push dword [ebp + 8]
mov ecx, 0x300698d0
call fcn.3001d6f2
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x3001e346
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
jne 0x3001e361
mov eax, 0xa0
jmp 0x3001e4ae
mov eax, dword [ebx]
cmp eax, esi
mov dword [ebp - 0xc], esi
je 0x3001e373
push eax
call fcn.3002767a
mov dword [ebp - 0xc], eax
mov dword [ebp + 8], esi
push edi
cmp dword [ebp + 8], esi
jne 0x3001e38d
cmp dword [0x300698c0], esi
je 0x3001e39b
mov dword [ebp - 0x10], 2
jmp 0x3001e3a8
cmp dword [ebp + 8], 1
jne 0x3001e39b
cmp dword [0x3006a8dc], esi
je 0x3001e3a5
test byte [ebx + 0xc], 0x10
je 0x3001e46d
mov dword [ebp - 0x10], esi
lea ecx, [ebp + 0x13]
call fcn.3001d5d6
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
push esi
jmp 0x3001e40d
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov esi, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x3001e3cd
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push ecx
push 0
push dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
push edi
call fcn.3001d1f4
test eax, eax
pop ecx
je 0x3001e429
push 0x796d746c
xor edi, edi
push edi
call fcn.3001d137
push esi
mov ecx, 0x300698d0
call fcn.3001d774
mov dword [ebp - 8], edi
push edi
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebx + 8]
call fcn.3001d836
add esp, 0x14
test eax, eax
je 0x3001e3b9
jmp 0x3001e458
push esi
mov ecx, 0x300698d0
call fcn.3001d6f2
test edi, edi
jne 0x3001e458
movzx eax, word [ebx + 0xc]
mov ecx, eax
and ecx, 0xf
cmp dword [ebp - 0x18], ecx
je 0x3001e4b4
cmp dword [ebp - 0x18], 3
jne 0x3001e458
cmp dword [ebp - 4], 4
jne 0x3001e458
and al, 0xf
cmp al, 4
je 0x3001e4b4
xor esi, esi
cmp dword [0x300698c8], esi
je 0x3001e46d
push 0x30069870
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
inc dword [ebp + 8]
cmp dword [ebp + 8], 2
jl 0x3001e377
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.3001d2e7
add esp, 0x10
mov edi, eax
cmp dword [ebp - 0xc], 0
je 0x3001e4a3
push dword [ebp - 0xc]
call fcn.3001cd09
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x300698c8], 0
je 0x3001e495
push 0x30069870
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x3001e495
Function at 0x3001e7c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
jne 0x3001e7d8
xor eax, eax
jmp 0x3001e94f
mov eax, dword [esi]
cmp eax, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
je 0x3001e7f0
push eax
call fcn.3002767a
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], ebx
push edi
or edi, 0xffffffff
cmp dword [ebp - 8], ebx
jne 0x3001e80d
cmp dword [0x300698c0], ebx
je 0x3001e81b
mov dword [ebp - 0x1c], 2
jmp 0x3001e828
cmp dword [ebp - 8], 1
jne 0x3001e81b
cmp dword [0x3006a8dc], ebx
je 0x3001e825
test byte [esi + 0xc], 0x10
je 0x3001e8e9
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp + 0xb]
mov dword [ebp - 0x10], ebx
call fcn.3001d5d6
push ebx
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [esi + 8]
jmp 0x3001e8b1
mov eax, dword [ebp - 0xc]
cmp eax, ebx
mov esi, dword [ebp - 0x10]
jne 0x3001e850
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push ebx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], 2
mov edi, eax
jae 0x3001e87b
cmp dword [ebp - 0x14], 1
je 0x3001e878
cmp dword [ebp - 0x14], 2
jne 0x3001e87b
push 2
pop edi
push edi
call fcn.3001d1f4
test eax, eax
pop ecx
je 0x3001e8c4
push 0x796d746f
push ebx
call fcn.3001d137
push esi
mov ecx, 0x300698d0
call fcn.3001d774
push ebx
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.3001d836
mov edi, eax
add esp, 0x14
cmp edi, ebx
je 0x3001e844
jmp 0x3001e8d3
push esi
mov ecx, 0x300698d0
call fcn.3001d6f2
cmp edi, ebx
je 0x3001e8f8
cmp dword [0x300698c8], ebx
je 0x3001e8e6
push 0x30069870
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp + 8]
inc dword [ebp - 8]
cmp dword [ebp - 8], 2
jl 0x3001e7f4
jmp 0x3001e90b
cmp dword [0x300698c8], ebx
je 0x3001e90f
push 0x30069870
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, ebx
jne 0x3001e92f
cmp dword [ebp - 0x14], 2
je 0x3001e921
mov eax, dword [ebp + 8]
mov al, byte [eax + 0xc]
and al, 0xf
cmp al, 2
jne 0x3001e92f
push dword [ebp - 4]
call fcn.3001d415
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 0x18], ebx
je 0x3001e93c
push dword [ebp - 0x18]
call fcn.3001cd09
cmp edi, ebx
pop edi
je 0x3001e94c
push dword [ebp + 8]
call fcn.3001d430
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 4
Function at 0x3001eae0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x3001b290]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x3001eb81
cmp dword [ebp - 0x90], 2
mov edx, dword [ebp - 0x98]
mov dword [0x30069890], edx
jne 0x3001eb75
mov eax, dword [ebp - 0x9c]
cmp eax, 5
mov cx, word [ebp - 0xc]
mov dword [0x3006988c], eax
mov word [0x30069894], cx
jne 0x3001eb5f
xor eax, eax
inc eax
cmp edx, eax
jb 0x3001eb81
test cx, cx
mov dword [0x30069898], eax
ja 0x3001eb53
cmp edx, eax
jbe 0x3001eb58
mov dword [0x3006989c], eax
cmp cx, ax
jbe 0x3001eb81
jmp 0x3001eb6e
jbe 0x3001eb81
xor eax, eax
inc eax
mov dword [0x30069898], eax
mov dword [0x3006989c], eax
mov dword [0x300698a0], eax
jmp 0x3001eb81
push 0
push 0x77617376
call fcn.3001d0f8
push 0x56
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
neg eax
xor ecx, ebp
mov dword [0x3003600c], eax
call fcn.300305d2
leave
ret

Function at 0x3001ed54
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x3001b290]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x30069b54], 0
je 0x3001ed77
mov eax, dword [0x30069b50]
jmp 0x3001edf6
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0xa0]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
je 0x3001edb3
test byte [ebp - 8], 0x10
je 0x3001edb3
xor eax, eax
inc eax
jmp 0x3001ede6
mov ecx, dword [0x3006988c]
xor eax, eax
cmp ecx, 5
mov dword [0x30069b50], eax
jg 0x3001edcf
jne 0x3001edeb
cmp dword [0x30069890], eax
jbe 0x3001edeb
lea eax, [ebp - 0xa0]
push eax
call esi
test eax, eax
je 0x3001ede4
test word [ebp - 8], 0x100
jne 0x3001edae
xor eax, eax
mov dword [0x30069b50], eax
mov dword [0x30069b54], 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.300305d2
leave
ret

Function at 0x3001f963
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x3001f9a9
push edi
push esi
push esi
push 0x80
push 2
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call fcn.3002ac95
mov edi, eax
cmp edi, 0xffffffff
je 0x3001f9a8
push esi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
ret
Function at 0x3001fcd1
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push edi
xor edi, edi
cmp ebx, edi
mov dword [ebp - 4], edi
jne 0x3001fcf3
push edi
push 0x36717370
call fcn.3001d0f8
jmp 0x3001fe30
push esi
mov esi, dword [ebp + 0x10]
cmp esi, edi
jne 0x3001fd06
push edi
push 0x36717371
jmp 0x3001fe05
cmp dword [ebp + 8], 2
je 0x3001fd23
cmp dword [ebp + 8], 8
je 0x3001fd23
cmp dword [ebp + 8], 3
je 0x3001fd23
push edi
push 0x36717372
jmp 0x3001fe05
cmp dword [ebx], edi
je 0x3001fd32
push edi
push 0x36717373
call fcn.3001d0f8
cmp dword [esi], edi
je 0x3001fd41
push edi
push 0x37667270
call fcn.3001d0f8
push esi
push edi
push dword [ebp + 8]
mov dword [esi], edi
call sub.Secur32.dll_GetUserNameExW
movzx edi, al
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x3001fe0c
cmp eax, 0xea
jne 0x3001fe0c
mov eax, dword [esi]
push 2
xor ecx, ecx
pop edx
mul edx
seto cl
neg ecx
or eax, ecx
push eax
call fcn.3001cb1f
test eax, eax
mov dword [ebx], eax
jne 0x3001fd90
push eax
push 0x36717375
jmp 0x3001fe13
mov ecx, dword [esi]
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
push ecx
push eax
push edi
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x3001fdb0
push 0
push 0x36717376
jmp 0x3001fe13
mov eax, dword [esi]
dec eax
cmp dword [ebp - 4], eax
je 0x3001fdc4
push 0
push 0x36717377
call fcn.3001d0f8
cmp edi, 2
jne 0x3001fde0
push dword [esi]
push dword [ebx]
call fcn.3001f5c8
test eax, eax
pop ecx
pop ecx
jne 0x3001fe2f
push eax
push 0x36717378
jmp 0x3001fe13
cmp edi, 8
jne 0x3001fdf9
push dword [ebx]
call fcn.3001f637
test eax, eax
pop ecx
jne 0x3001fe2f
push eax
push 0x36717379
jmp 0x3001fe13
cmp edi, 3
je 0x3001fe2f
push 0
push 0x3671737a
call fcn.3001d0f8
jmp 0x3001fe2f
push 0
push 0x36717374
call fcn.3001d0f8
mov eax, dword [ebx]
xor edi, edi
cmp eax, edi
je 0x3001fe29
push eax
call fcn.3001f708
pop ecx
mov dword [ebx], edi
cmp dword [esi], edi
je 0x3001fe2f
mov dword [esi], edi
pop esi
pop edi
pop ebx
leave
ret
Function at 0x300205a3
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1084
call fcn.30030e67
mov eax, dword [0x3001b290]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x107c], eax
mov ebx, 0x824
lea eax, [ebp - 0x106c]
push ebx
push eax
call fcn.300202ca
test eax, eax
pop ecx
pop ecx
jne 0x300205e4
or eax, 0xffffffff
jmp 0x30020775
cmp word [ebp - 0x106c], 0
push esi
lea esi, [ebp - 0x106c]
push edi
mov dword [ebp - 0x1078], esi
je 0x3002060a
inc esi
inc esi
cmp word [esi], 0
jne 0x300205fc
mov dword [ebp - 0x1078], esi
xor edi, edi
inc edi
push edi
call fcn.3001f3cc
pop ecx
call fcn.3001f560
push eax
call fcn.3001e993
cmp eax, 0x64
mov dword [ebp - 0x1070], eax
mov dword [ebp - 0x1084], eax
jbe 0x30020636
mov dword [ebp - 0x1070], edi
mov edi, dword [sym.imp.SHLWAPI.dll_wnsprintfA]
lea eax, [ebp - 0x106c]
sub esi, eax
sar esi, 1
mov dword [ebp - 0x1074], ebx
sub dword [ebp - 0x1074], esi
mov esi, 0x80
mov ebx, 0xc0000000
push dword [ebp - 0x1070]
lea eax, [ebp - 0x24]
push 0x300015fc
push 0x1f
push eax
call edi
add esp, 0x10
push dword [ebp - 0x1074]
lea eax, [ebp - 0x24]
push dword [ebp - 0x1078]
push eax
call fcn.30026146
xor eax, eax
push eax
push eax
push esi
push 1
push eax
push 1
push ebx
lea eax, [ebp - 0x106c]
push eax
call fcn.3002ac95
cmp eax, 0xffffffff
mov dword [ebp - 0x1080], eax
jne 0x30020720
cmp dword [ebp - 0x1070], 0x64
jb 0x300206b9
and dword [ebp - 0x1070], 0
inc dword [ebp - 0x1070]
mov eax, dword [ebp - 0x1070]
cmp eax, dword [ebp - 0x1084]
jne 0x3002065c
push eax
push 0x300015fc
lea eax, [ebp - 0x24]
push 0x1f
push eax
call edi
add esp, 0x10
push dword [ebp - 0x1074]
lea eax, [ebp - 0x24]
push dword [ebp - 0x1078]
push eax
call fcn.30026146
push esi
lea eax, [ebp - 0x106c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor edi, edi
push edi
push edi
push esi
push 2
push edi
push 1
push ebx
lea eax, [ebp - 0x106c]
push eax
call fcn.3002ac95
mov dword [ebp - 0x1080], eax
jmp 0x30020722
xor edi, edi
cmp dword [ebp - 0x1070], 0x64
jb 0x30020731
mov dword [ebp - 0x1070], edi
mov eax, dword [ebp - 0x1070]
inc eax
push eax
call fcn.3001f560
push eax
call fcn.3001e9bb
push dword [0x3003661c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0x107c], edi
pop edi
pop esi
je 0x3002076f
push dword [ebp + 0xc]
lea eax, [ebp - 0x106c]
push dword [ebp - 0x107c]
push eax
call fcn.30027350
mov eax, dword [ebp - 0x1080]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.300305d2
leave
ret
Function at 0x3002151b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0xffffffff
jne 0x3002152b
xor eax, eax
leave
ret
push esi
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
xor esi, esi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
inc edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call fcn.3001f9ac
add esp, 0x10
test eax, eax
je 0x30021662
cmp dword [ebp - 4], esi
je 0x30021662
push ebx
mov ebx, 0x30069870
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
call fcn.30020ea5
test eax, eax
pop ecx
jne 0x30021586
xor edi, edi
jmp 0x3002165a
cmp dword [0x3006b1cc], esi
je 0x30021599
push esi
push 0x72766c72
call fcn.3001d0f8
lea eax, [ebp - 0x14]
push eax
mov dword [0x3006b1cc], 1
mov dword [ebp - 0x14], esi
call fcn.3001f8cd
cmp eax, dword [ebp - 8]
pop ecx
jne 0x300215bd
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
je 0x300215f8
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.3001f9f8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.3001f9ac
add esp, 0x18
test eax, eax
je 0x300215e9
cmp dword [ebp - 4], esi
jne 0x300215f8
push esi
push 0x72766c73
call fcn.3001d0f8
xor edi, edi
jmp 0x3002160e
push dword [ebp + 0xc]
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.3002035d
add esp, 0x10
mov edi, eax
cmp edi, esi
mov dword [0x3006b1cc], esi
push esi
je 0x30021650
mov edi, dword [ebp - 8]
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x3002163b
cmp dword [ebp - 0x14], edi
jne 0x3002163b
xor edi, edi
inc edi
jmp 0x3002163d
xor edi, edi
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 0x10]
call fcn.3001f963
add esp, 0xc
jmp 0x3002165a
push 0x74697970
call fcn.3001d0f8
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], esi
je 0x30021686
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.3001f9f8
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x3002168c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2094
call fcn.30030e67
mov eax, dword [0x3001b290]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x824
lea eax, [ebp - 0x104c]
push esi
xor edi, edi
push eax
inc edi
call fcn.300202ca
test eax, eax
pop ecx
pop ecx
je 0x30021747
push ebx
push 0x3000160c
call fcn.3002767a
mov ebx, eax
test ebx, ebx
je 0x30021746
push esi
lea eax, [ebp - 0x104c]
push eax
push ebx
call fcn.300273d2
push ebx
call fcn.3001cd09
call fcn.30021508
test eax, eax
je 0x30021744
call fcn.30021461
test eax, eax
je 0x30021744
call fcn.30021420
lea eax, [ebp - 0x2094]
push esi
push eax
call fcn.300205a3
lea ecx, [ebp - 0x104c]
push ecx
push 1
push eax
call fcn.3002151b
mov edi, eax
add esp, 0x14
test edi, edi
lea eax, [ebp - 0x2094]
jne 0x30021734
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x30021744
push 0x104
push 0x3006afac
push eax
call fcn.30027350
mov eax, edi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.300305d2
leave
ret

Function at 0x300230d2
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x3006b220], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x30023116
call ebx
test eax, eax
jns 0x3002310c
push 0x3000d690
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x3000d684
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x3006b21c], eax
mov dword [0x3006b220], 1
mov eax, dword [0x3006b21c]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x30023132
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x30023162
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x30023158
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x3002314d
push dword [eax + 0xc]
call dword [eax + 8]
jmp 0x30023152
push dword [eax + 4]
call dword [eax]
test eax, eax
je 0x30023161
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc