joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102b16b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x102b1c4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x102b1b6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x102b1b2
cmp esi, eax
jae 0x102b1b6
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x102b1a4
cmp esi, eax
jb 0x102b1ba
xor eax, eax
jmp 0x102b1c3
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x102b50c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp byte [0x104bb91], bl
jne 0x102b596
cmp byte [0x104bb90], bl
jne 0x102b596
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push 0x1004ab8
push 0x80000002
mov byte [0x104bb91], 1
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102b596
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x102b59c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102b587
cmp dword [ebp - 0xc], 4
jne 0x102b587
mov byte [0x104bb90], 1
cmp dword [ebp - 0x10], ebx
ja 0x102b58d
mov byte [0x104bb90], bl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret
Function at 0x102d99c
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
test esi, esi
jne 0x102d9b7
push 0x80004005
call fcn.01025b15
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x102d9b9
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x102e088
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x104a044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
mov ecx, dword [ebp + 8]
push 0x2001f
push ecx
push dword [eax]
xor esi, esi
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.0100484b
mov edi, eax
cmp edi, esi
je 0x102e0fa
lea ecx, [ebp - 0x214]
call fcn.01004887
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01002a8b
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x102e118
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.0102e088
cmp eax, esi
jne 0x102e163
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call edi
test eax, eax
je 0x102e102
lea ecx, [ebp - 0x214]
call fcn.01004887
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
call fcn.0102d82e
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.01004887
mov eax, esi
jmp 0x102e0ea
Function at 0x102fa46
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x10404e7
call fcn.01003649
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x102fa9f
call fcn.0100f56e
mov esi, eax
jmp 0x102fba8
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x102fab8
call fcn.0100f56e
jmp 0x102fb9a
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
cmp eax, esi
je 0x102faae
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x420], edi
cmp eax, edi
jae 0x102fb1e
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x102fb04
lea ecx, [ebp - 0x418]
call fcn.0102e027
mov esi, 0x8007000e
lea ecx, [ebp - 0x424]
call fcn.0102be1e
mov eax, esi
call fcn.01002fbc
ret 0x10
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0102e5d8
mov dword [ebp - 4], 1
jmp 0x102fb4c
cmp dword [ebp - 0x418], esi
jne 0x102fb5b
mov esi, 0x8007000e
jmp 0x102fb9c
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x428]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x102faae
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.0102f47d
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x102fb09
lea ecx, [ebp - 0x418]
call fcn.0102e027
jmp 0x102fb09

Function at 0x10314b6
Capabilities:
Create thread

Disassembly:
mov edi, edi
push esi
push 0
push 0
mov esi, ecx
push esi
push 0x1030fb2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, eax
xor eax, eax
mov dword [esi + 0x12c], ecx
pop esi
test ecx, ecx
je fcn.0100f56e
ret
Function at 0x10314e8
Capabilities:
Print debug messages

Disassembly:
push 0x13c
mov eax, 0x1040a06
call fcn.01002a3a
mov edi, ecx
sub esp, 0x94
lea eax, [ebp + 0x9c]
mov ecx, esp
mov dword [ebp - 0x148], esp
push eax
mov dword [ebp - 4], 1
call fcn.0100ea61
sub esp, 0x94
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x144], esp
push eax
mov byte [ebp - 4], 2
call fcn.0100ea61
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 1
call fcn.01031421
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 3
call fcn.010314b6
mov ebx, eax
test ebx, ebx
jl 0x103159c
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x1031638
call esi
mov ecx, dword [edi + 4]
push 2
call fcn.01009e64
push 0x7d0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x103155f
test eax, eax
jne 0x103158e
mov ebx, dword [ebp - 0x18]
jmp 0x1031595
call fcn.0100f56e
mov ebx, eax
push 0x10315c8
call esi
lea ecx, [ebp - 0x140]
call fcn.01031488
lea ecx, [ebp + 8]
call fcn.010084de
lea ecx, [ebp + 0x9c]
call fcn.010084de
mov eax, ebx
call fcn.01002a77
ret 0x128
Function at 0x10316a4
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x418
mov eax, 0x1040ada
call fcn.01002a3a
mov esi, ecx
lea eax, [ebp + 8]
xor edi, edi
push eax
lea ecx, [ebp - 0x1cc]
mov dword [ebp - 4], edi
call fcn.0100ea61
push esi
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 1
call fcn.0100ea61
push dword [ebp - 0x1c0]
mov eax, dword [ebp - 0x138]
push dword [ebp - 0x12c]
lea ecx, [ebp - 0x138]
push dword [ebp - 0x1c8]
mov byte [ebp - 4], 2
call dword [eax + 0x10]
mov eax, dword [ebp - 0x138]
push 0xffffffffffffffff
push dword [ebp - 0x12c]
lea ecx, [ebp - 0x138]
push 0x1007d24
call dword [eax + 0x10]
push edi
push edi
push edi
lea eax, [ebp - 0x41c]
push eax
push edi
push dword [ebp - 0x134]
mov dword [ebp - 0x420], edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov dword [ebp - 0x424], eax
cmp eax, 0xffffffff
je 0x103183d
test byte [ebp - 0x41c], 0x10
je 0x10317f5
cmp word [ebp - 0x3f0], 0x2e
je 0x1031801
lea eax, [esi + 0xa0]
add dword [eax], 1
lea ecx, [ebp - 0xa4]
adc dword [eax + 4], edi
lea eax, [ebp - 0x1cc]
push eax
call fcn.0100ea61
mov eax, dword [ebp - 0xa4]
push 0xffffffffffffffff
push dword [ebp - 0x98]
lea ecx, [ebp - 0xa4]
push 0x1003488
mov byte [ebp - 4], 3
call dword [eax + 0x10]
push 0xffffffffffffffff
push dword [ebp - 0x98]
lea eax, [ebp - 0x3f0]
push eax
mov eax, dword [ebp - 0xa4]
lea ecx, [ebp - 0xa4]
call dword [eax + 0x10]
sub esp, 0x94
lea eax, [ebp - 0xa4]
mov ecx, esp
mov dword [ebp - 0x420], esp
push eax
call fcn.0100ea61
mov ecx, esi
call fcn.010316a4
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x420], eax
mov byte [ebp - 4], 2
call fcn.010084de
jmp 0x1031801
lea eax, [esi + 0x98]
add dword [eax], 1
adc dword [eax + 4], edi
cmp dword [ebp - 0x420], edi
jl 0x103182f
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1031746
call fcn.0100f56e
mov dword [ebp - 0x420], eax
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1031848
call fcn.0100f56e
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0x80070012
jne 0x103185a
mov dword [ebp - 0x420], edi
lea ecx, [ebp - 0x138]
call fcn.010084de
lea ecx, [ebp - 0x1cc]
call fcn.010084de
lea ecx, [ebp + 8]
call fcn.010084de
mov eax, dword [ebp - 0x420]
call fcn.01002a77
ret 0x94
Function at 0x103362c
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x104a044]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x21c], ecx
mov ecx, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x210], 1
test ebx, ebx
jne 0x103367a
test eax, eax
je 0x103375e
push esi
mov esi, dword [ebp + 0x18]
test esi, esi
jne 0x1033687
mov esi, 0x104
push 2
xor ecx, ecx
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [0x104b7f4]
and dword [ebp - 0x218], 0
mov dword [ebp - 0x214], eax
push 0
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x214]
mov dword [ebp - 0x220], esi
push dword [ebp - 0x218]
mov dword [ebp - 0x22c], 0x104
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1033735
push dword [ebp + 0x20]
push dword [ebp - 0x224]
push esi
push dword [ebp - 0x21c]
push dword [ebp - 0x228]
push ebx
push dword [ebp - 0x214]
push edi
call fcn.0103389b
mov dword [ebp - 0x210], eax
test eax, eax
je 0x103374a
test ebx, ebx
je 0x103374a
cmp dword [ebp - 0x220], esi
jae 0x1033743
push dword [ebp - 0x21c]
push dword [ebp - 0x214]
push edi
call ebx
jmp 0x103374a
cmp eax, 0x103
je 0x103375d
cmp eax, 0xea
je 0x103374a
and dword [ebp - 0x210], 0
inc dword [ebp - 0x218]
cmp dword [ebp - 0x210], 0
jne 0x10336ab
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
xor ecx, ebp
pop ebx
call fcn.01002a8b
leave
ret 0x1c

Function at 0x1033bb3
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x9c], 0
jne 0x1033bd0
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1033c08
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0xc]
lea eax, [eax + eax + 2]
push eax
push 0
call fcn.0100fcfc
push eax
push 1
push 0
push dword [ebp + 8]
push dword [esi + 0x9c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1033bfd
push eax
jmp 0x1033bc6
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
inc eax
pop esi
pop ebp
ret 8
Function at 0x1033eb7
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x14
mov eax, 0x1041a51
call fcn.01001862
mov edi, ecx
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
push ebx
call esi
cmp dword [edi + 0x9c], ebx
jne 0x1033ee0
push 6
call esi
xor eax, eax
jmp 0x1033f4f
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x20]
push ecx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp + 8]
push dword [edi + 0x9c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0xea
jne 0x1033f35
mov eax, dword [ebp - 0x14]
add eax, eax
push eax
mov ecx, esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
call fcn.0100fcfc
or dword [ebp - 4], 0xffffffff
jmp 0x1033ee9
cmp eax, ebx
je 0x1033f42
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1033edc
push dword [ebp - 0x14]
mov ecx, esi
call fcn.0100a108
xor eax, eax
inc eax
call fcn.010015c0
ret 8

Function at 0x10341b0
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [ebp + 0xc]
test eax, eax
jne 0x1034202
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov dword [esi], eax
cmp eax, 0x50
je 0x10341e6
cmp eax, 0xb7
je 0x10341e6
xor eax, eax
jmp 0x1034220
test ebx, ebx
je 0x1034202
push dword [ebx + 4]
push 4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x1034202
call edi
mov dword [esi], eax
jmp 0x10341e2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or eax, 0x2000
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
and dword [esi], 0
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x1034259
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x104a044]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push esi
mov eax, 0x104
push eax
push dword [ebp + 8]
lea esi, [ebp - 0x20c]
push eax
mov eax, esi
push eax
call fcn.0100cd46
test eax, eax
jge 0x103429c
mov eax, 0x8000ffff
jmp 0x10343c0
lea eax, [ebp - 0x20c]
push eax
call fcn.01034102
test eax, eax
je 0x10342dc
cmp word [ebp - 0x208], 0x5c
je 0x10342c0
mov eax, 0x800700a1
jmp 0x10343c0
cmp word [ebp - 0x206], 0
lea esi, [ebp - 0x206]
je 0x10342b6
cmp word [ebp - 0x206], 0x5c
je 0x10342b6
jmp 0x1034330
lea eax, [ebp - 0x20c]
push eax
call fcn.01034140
test eax, eax
je 0x1034330
lea esi, [ebp - 0x208]
movzx eax, word [esi]
test ax, ax
je 0x1034309
cmp ax, 0x5c
je 0x1034309
inc esi
inc esi
lea eax, [ebp - 4]
cmp esi, eax
jb 0x10342f2
lea eax, [ebp - 4]
cmp esi, eax
jae 0x1034330
cmp word [esi], 0x5c
je 0x103431e
jmp 0x1034330
cmp ax, 0x5c
je 0x103432e
inc esi
inc esi
movzx eax, word [esi]
test ax, ax
jne 0x1034318
cmp word [esi], 0x5c
jne 0x1034330
inc esi
inc esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
jmp 0x1034354
lea eax, [ebp - 0x20c]
cmp esi, eax
jb 0x103435b
movzx eax, word [esi]
test ax, ax
je 0x103435b
cmp ax, 0x5c
je 0x103435b
inc esi
inc esi
lea eax, [ebp - 6]
cmp esi, eax
jb 0x103433a
xor eax, eax
cmp word [esi], 0x5c
sete al
mov edi, eax
xor eax, eax
push eax
mov word [esi], ax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x103439c
call ebx
cmp eax, 0xb7
je 0x103439c
call ebx
test eax, eax
jle 0x1034396
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x210], eax
test edi, edi
je 0x10343b8
push 0x5c
pop eax
mov word [esi], ax
lea eax, [ebp - 6]
cmp esi, eax
jae 0x10343b8
inc esi
inc esi
cmp dword [ebp - 0x210], 0
jge 0x1034354
mov eax, dword [ebp - 0x210]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01002a8b
leave
ret 4
Function at 0x10344cd
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x308
mov eax, 0x1041cd3
call fcn.01003649
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x310], edi
mov dword [ebp - 0x2fc], 1
cmp edi, esi
je 0x1034505
push 0x100348c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x103450b
mov dword [ebp - 0x2fc], esi
mov dword [ebp - 4], esi
cmp dword [ebp - 0x2fc], esi
je 0x10346d4
push edi
lea ecx, [ebp - 0xa8]
call fcn.01009d0d
lea eax, [ebp - 0xa8]
push eax
mov byte [ebp - 4], 1
call fcn.010333bd
mov eax, dword [ebp - 0xa8]
or edi, 0xffffffff
push edi
push dword [ebp - 0x9c]
lea ecx, [ebp - 0xa8]
push 0x1022780
call dword [eax + 0x10]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x304], esi
mov dword [ebp - 0x300], esi
cmp ebx, esi
je 0x1034589
lea eax, [ebp - 0x304]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, ebx
mov ecx, 0x989680
mul ecx
sub dword [ebp - 0x304], eax
sbb dword [ebp - 0x300], edx
mov esi, 0x1022774
mov dword [ebp - 0x30c], esi
mov dword [ebp - 0x308], edi
lea eax, [ebp - 0x2f8]
push eax
push dword [ebp - 0xa4]
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push eax
lea ecx, [ebp - 0x30c]
call fcn.0103422c
cmp dword [ebp - 0x308], edi
je 0x103469b
push 0x1004d80
lea eax, [ebp - 0x2cc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1034680
push 0x1022778
lea eax, [ebp - 0x2cc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1034680
mov eax, dword [ebp - 0xa8]
push edi
push 0
push dword [ebp - 0x310]
lea ecx, [ebp - 0xa8]
call dword [eax + 0x10]
lea eax, [ebp - 0xa8]
push eax
call fcn.010333bd
push edi
push dword [ebp - 0x9c]
lea eax, [ebp - 0x2cc]
push eax
mov eax, dword [ebp - 0xa8]
lea ecx, [ebp - 0xa8]
call dword [eax + 0x10]
test byte [ebp - 0x2f8], 0x10
je 0x1034658
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0xa4]
call fcn.010344cd
jmp 0x1034680
test ebx, ebx
je 0x1034674
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x2ec]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jg 0x1034680
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x2f8]
push eax
push dword [ebp - 0x308]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10345bd
push edi
lea ecx, [ebp - 0x30c]
mov dword [ebp - 0x30c], esi
call fcn.0103422c
cmp dword [ebp + 0xc], 0
je 0x10346c9
push dword [ebp - 0x310]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10346c9
and dword [ebp - 0x2fc], eax
lea ecx, [ebp - 0xa8]
call fcn.010084de
mov eax, dword [ebp - 0x2fc]
call fcn.01002fbc
ret 0xc
Function at 0x1034af4
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x104a044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.01034ae1
test al, al
je 0x1034c81
push dword [esi + 0x14]
lea ecx, [ebp - 0x16c]
call fcn.0100a134
push 0x100f298
lea ecx, [ebp - 0x16c]
call fcn.0100a366
test al, al
je 0x1034b6a
mov eax, dword [ebp - 0x16c]
cmp eax, dword [esi]
jne 0x1034b6a
mov eax, dword [ebp - 0x168]
cmp eax, dword [esi + 4]
jne 0x1034b6a
mov eax, dword [ebp - 0x164]
cmp eax, dword [esi + 8]
jne 0x1034b6a
mov eax, dword [ebp - 0x15c]
cmp eax, dword [esi + 0x10]
je 0x1034c81
push dword [esi + 0x14]
lea eax, [ebp - 0x24]
push 0x1034c90
push 0x10
push eax
call fcn.0100a257
add esp, 0x10
test eax, eax
jl 0x1034c81
push dword [esi + 0x10]
lea eax, [ebp - 0x44]
push 0x101742c
push 0x10
push eax
call fcn.0100a257
add esp, 0x10
test eax, eax
jl 0x1034c81
push edi
xor edi, edi
push edi
push 0x2710
push dword [esi + 8]
push dword [esi + 4]
call fcn.0101b38c
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x14c]
push eax
mov dword [ebp - 0x148], edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x1034c80
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x17c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
test eax, eax
je 0x1034c80
push 0x80
lea eax, [ebp - 0x144]
push eax
push edi
lea eax, [ebp - 0x164]
push eax
push edi
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
test eax, eax
jle 0x1034c80
lea eax, [ebp - 0x24]
mov dword [ebp - 0x150], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x14c], eax
push 0x100c2b4
lea eax, [ebp - 0x144]
push edi
mov dword [ebp - 0x154], 0x100348c
mov dword [ebp - 0x148], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, edi
je 0x1034c80
push edi
lea eax, [ebp - 0x154]
push eax
push edi
push 4
push edi
push 0x800003f7
push 1
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01002a8b
leave
ret
Function at 0x10360e1
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [ebp + 8], 2
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
je 0x1036105
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test byte [ebp + 8], 1
je 0x103614a
cmp dword [esi + 0x68], 0
je 0x103614a
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x103612b
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x103611d
sub eax, edx
sar eax, 1
lea edi, [eax + eax]
push edi
mov ecx, esi
call fcn.01036062
mov eax, dword [esi + 0x6c]
add eax, dword [esi + 0x68]
push edi
push ebx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
add dword [esi + 0x6c], edi
test byte [ebp + 8], 8
mov esi, dword [sym.imp.msvcrt.dll_fprintf]
mov edi, 0x1036194
je 0x103616b
mov eax, dword [sym.imp.msvcrt.dll__iob]
push ebx
add eax, 0x40
push edi
push eax
call esi
add esp, 0xc
test byte [ebp + 8], 4
je 0x1036181
mov eax, dword [sym.imp.msvcrt.dll__iob]
push ebx
add eax, 0x20
push edi
push eax
call esi
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebx
leave
ret 0xc