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

Disassembly:
push 0xc
mov eax, 0x103eaac
call fcn.01001630
lea eax, [ebp - 0x10]
push eax
push 0xf003f
xor esi, esi
push esi
push 0x100a1b0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
call fcn.0100a2af
mov edi, eax
cmp edi, esi
jl 0x1026831
push 4
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x1020db0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push eax
call fcn.0100a2af
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jge 0x1026869
push esi
lea ecx, [ebp - 0x18]
call fcn.01025a37
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0xc]
push 0x7d0
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.01024d65
mov eax, dword [esi]
push 0xffffffffffffffff
push dword [esi + 0xc]
mov ecx, esi
push 0x1026874
call dword [eax + 0x10]
lea ecx, [ebp - 0x18]
call fcn.01024cb0
mov eax, edi
call fcn.01001600
ret 8

Function at 0x1026a0f
Capabilities:
Get common file path

Disassembly:
push 0x218
mov eax, 0x103ebb7
call fcn.01002325
mov eax, dword [ebp + 0x28]
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x218]
push eax
xor ebx, ebx
inc ebx
push ebx
push 0
push dword [ebp + 0x14]
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
jl 0x1026af3
push 0x1007db4
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.0100f54b
mov esi, eax
test esi, esi
jl 0x1026b51
push 0x1011ef0
lea ecx, [ebp - 0x21c]
call fcn.01008ac0
and dword [ebp - 4], 0
mov esi, dword [ebp - 0x21c]
neg esi
sbb esi, esi
and esi, 0x7ff8fff2
mov ebx, 0x8007000e
add esi, ebx
js 0x1026ae5
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.010255fe
mov esi, dword [ebp - 0x21c]
neg esi
sbb esi, esi
and esi, 0x7ff8fff2
add esi, ebx
js 0x1026ae5
push dword [ebp - 0x220]
push edi
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 0x21c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01025171
mov esi, eax
push dword [ebp - 0x21c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x1026b51
push 0
lea ecx, [ebp - 0x224]
call fcn.01025a37
push 0x7df
lea eax, [ebp - 0x224]
push eax
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.01024d65
push dword [edi + 8]
mov ecx, edi
call fcn.0100fa34
push dword [ebp + 0x14]
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 8]
push 0x1017564
sub edx, ecx
push edx
lea eax, [eax + ecx*2]
push eax
call fcn.0100a5fc
add esp, 0x10
push 0xffffffffffffffff
mov ecx, edi
call fcn.0101008f
lea ecx, [ebp - 0x224]
call fcn.01024cb0
mov eax, esi
call fcn.01002362
ret 0x24
Function at 0x1028435
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x104a044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp dword [0x104a04c], 0x7d6
push edi
mov dword [ebp - 0x218], eax
jl 0x1028491
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0xffffffffffffffff
push 0x4400
sub esp, 0x10
mov edi, esp
mov esi, 0x1028570
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.01024fd1
mov esi, eax
jmp 0x10284fe
call fcn.01024e6d
test eax, eax
je 0x10284f9
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x210], 0x104
call dword [sym.imp.USERENV.dll_GetAllUsersProfileDirectoryW]
test eax, eax
jne 0x10284d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10284d0
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jl 0x102852b
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x10284f2
xor ecx, ecx
mov word [eax], cx
jmp 0x10284fe
mov esi, 0x80070057
jmp 0x10284fe
mov esi, 0x80004001
test esi, esi
jl 0x102852b
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebx], eax
test eax, eax
jne 0x1028527
mov esi, 0x8007000e
test esi, esi
jge 0x102855a
push 0
lea ecx, [ebp - 0x214]
call fcn.01025a37
mov ecx, dword [ebp - 0x218]
push 0x7de
lea eax, [ebp - 0x214]
push eax
call fcn.01024d65
lea ecx, [ebp - 0x214]
call fcn.01024cb0
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01002376
leave
ret 8
Function at 0x1028585
Capabilities:
Get common file path

Disassembly:
push 0x228
mov eax, 0x103efa1
call fcn.01002325
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x224]
push eax
mov dword [ebp - 0x230], edi
call fcn.01025063
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x10287c6
lea eax, [ebp - 0x225]
push eax
mov byte [ebp - 0x225], bl
call fcn.010250bd
mov esi, eax
mov dword [ebp - 0x22c], ebx
cmp esi, ebx
mov dword [ebp - 4], ebx
jl 0x10287b8
cmp byte [ebp - 0x225], bl
je 0x1028617
mov eax, dword [0x1020de8]
mov dword [ebp - 0x18], eax
mov eax, dword [0x1020dec]
mov dword [ebp - 0x14], eax
mov ax, word [ebp - 0x224]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x22c]
call fcn.010255d8
jmp 0x1028624
push edi
lea eax, [ebp - 0x22c]
push eax
call fcn.01028435
mov esi, eax
cmp esi, ebx
jl 0x10287b8
push 0x1011ef0
lea ecx, [ebp - 0x224]
call fcn.01008ac0
mov esi, dword [ebp - 0x224]
neg esi
sbb esi, esi
mov ebx, 0x7ff8fff2
and esi, ebx
mov edi, 0x8007000e
add esi, edi
mov byte [ebp - 4], 1
js 0x1028696
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x224]
call fcn.01024c3d
mov esi, dword [ebp - 0x224]
neg esi
sbb esi, esi
and esi, ebx
add esi, edi
js 0x1028696
mov eax, dword [ebp - 0x234]
mov ecx, dword [eax]
push 0
push 1
push dword [ebp - 0x224]
push eax
call dword [ecx + 0xc]
mov esi, eax
push dword [ebp - 0x224]
mov byte [ebp - 4], 0
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
jl 0x10287b8
cmp dword [0x104a04c], 0x7d6
jl 0x10287b8
lea eax, [ebp - 0x220]
push eax
push 1
push 0
push 0x16
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
jl 0x102877b
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x230]
call fcn.01008ac0
mov esi, dword [ebp - 0x230]
neg esi
sbb esi, esi
and esi, ebx
add esi, edi
mov byte [ebp - 4], 2
js 0x102876d
push 0x1011ef0
lea ecx, [ebp - 0x224]
call fcn.01008ac0
mov esi, dword [ebp - 0x224]
neg esi
sbb esi, esi
and esi, ebx
add esi, edi
mov byte [ebp - 4], 3
js 0x1028761
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x224]
call fcn.010255fe
mov esi, dword [ebp - 0x224]
neg esi
sbb esi, esi
and esi, ebx
add esi, edi
js 0x1028761
mov eax, dword [ebp - 0x234]
mov ecx, dword [eax]
push 0
push 1
push dword [ebp - 0x224]
push eax
call dword [ecx + 0xc]
mov esi, eax
push dword [ebp - 0x224]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp - 0x230]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x10287b8
push 0
lea ecx, [ebp - 0x18]
call fcn.01025a37
mov edi, dword [ebp - 0x230]
push 0x7df
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.01024d65
mov eax, dword [edi]
push 0xffffffffffffffff
push dword [edi + 0xc]
mov ecx, edi
push 0x10287f4
call dword [eax + 0x10]
lea ecx, [ebp - 0x18]
call fcn.01024cb0
push dword [ebp - 0x22c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x10287e7
push ebx
lea ecx, [ebp - 0x18]
call fcn.01025a37
push 0x7e1
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.01024d65
lea ecx, [ebp - 0x18]
call fcn.01024cb0
mov eax, esi
call fcn.01002362
ret 0x10
Function at 0x1029c63
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 0x1029cbc
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1029cae
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 0x1029caa
cmp esi, eax
jae 0x1029cae
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x1029c9c
cmp esi, eax
jb 0x1029cb2
xor eax, eax
jmp 0x1029cbb
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x102a055
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 [0x104bb89], bl
jne 0x102a0df
cmp byte [0x104bb88], bl
jne 0x102a0df
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push 0x1007508
push 0x80000002
mov byte [0x104bb89], 1
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102a0df
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x102a0e4
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x102a0d0
cmp dword [ebp - 0xc], 4
jne 0x102a0d0
mov byte [0x104bb88], 1
cmp dword [ebp - 0x10], ebx
ja 0x102a0d6
mov byte [0x104bb88], bl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret
Function at 0x102c7b4
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 0x102c7cf
push 0x80004005
call fcn.010244b5
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 0x102c7d1
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 0x102cea0
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.01003c19
mov edi, eax
cmp edi, esi
je 0x102cf12
lea ecx, [ebp - 0x214]
call fcn.01003c55
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01002376
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x102cf30
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.0102cea0
cmp eax, esi
jne 0x102cf7b
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 0x102cf1a
lea ecx, [ebp - 0x214]
call fcn.01003c55
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
call fcn.0102c646
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.01003c55
mov eax, esi
jmp 0x102cf02
Function at 0x102e926
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x104005b
call fcn.010030e2
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 0x102e97f
call fcn.0100f26b
mov esi, eax
jmp 0x102ea88
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x102e998
call fcn.0100f26b
jmp 0x102ea7a
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
cmp eax, esi
je 0x102e98e
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 0x102e9fe
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x102e9e4
lea ecx, [ebp - 0x418]
call fcn.0102ce3f
mov esi, 0x8007000e
lea ecx, [ebp - 0x424]
call fcn.0102a9f6
mov eax, esi
call fcn.01003122
ret 0x10
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0102d3f0
mov dword [ebp - 4], 1
jmp 0x102ea2c
cmp dword [ebp - 0x418], esi
jne 0x102ea3b
mov esi, 0x8007000e
jmp 0x102ea7c
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 0x102e98e
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.0102e35d
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x102e9e9
lea ecx, [ebp - 0x418]
call fcn.0102ce3f
jmp 0x102e9e9

Function at 0x10304e6
Capabilities:
Create thread

Disassembly:
mov edi, edi
push esi
push 0
push 0
mov esi, ecx
push esi
push 0x102ffe2
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.0100f26b
ret
Function at 0x1030518
Capabilities:
Print debug messages

Disassembly:
push 0x13c
mov eax, 0x104057a
call fcn.01002325
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.0100ecc1
sub esp, 0x94
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x144], esp
push eax
mov byte [ebp - 4], 2
call fcn.0100ecc1
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 1
call fcn.01030451
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 3
call fcn.010304e6
mov ebx, eax
test ebx, ebx
jl 0x10305cc
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x1030668
call esi
mov ecx, dword [edi + 4]
push 2
call fcn.01011a52
push 0x7d0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x103058f
test eax, eax
jne 0x10305be
mov ebx, dword [ebp - 0x18]
jmp 0x10305c5
call fcn.0100f26b
mov ebx, eax
push 0x10305f8
call esi
lea ecx, [ebp - 0x140]
call fcn.010304b8
lea ecx, [ebp + 8]
call fcn.01007e75
lea ecx, [ebp + 0x9c]
call fcn.01007e75
mov eax, ebx
call fcn.01002362
ret 0x128
Function at 0x10306d4
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x418
mov eax, 0x104064e
call fcn.01002325
mov esi, ecx
lea eax, [ebp + 8]
xor edi, edi
push eax
lea ecx, [ebp - 0x1cc]
mov dword [ebp - 4], edi
call fcn.0100ecc1
push esi
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 1
call fcn.0100ecc1
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 0x1007db4
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 0x103086d
test byte [ebp - 0x41c], 0x10
je 0x1030825
cmp word [ebp - 0x3f0], 0x2e
je 0x1030831
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.0100ecc1
mov eax, dword [ebp - 0xa4]
push 0xffffffffffffffff
push dword [ebp - 0x98]
lea ecx, [ebp - 0xa4]
push 0x1002de8
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.0100ecc1
mov ecx, esi
call fcn.010306d4
lea ecx, [ebp - 0xa4]
mov dword [ebp - 0x420], eax
mov byte [ebp - 4], 2
call fcn.01007e75
jmp 0x1030831
lea eax, [esi + 0x98]
add dword [eax], 1
adc dword [eax + 4], edi
cmp dword [ebp - 0x420], edi
jl 0x103085f
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1030776
call fcn.0100f26b
mov dword [ebp - 0x420], eax
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1030878
call fcn.0100f26b
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0x80070012
jne 0x103088a
mov dword [ebp - 0x420], edi
lea ecx, [ebp - 0x138]
call fcn.01007e75
lea ecx, [ebp - 0x1cc]
call fcn.01007e75
lea ecx, [ebp + 8]
call fcn.01007e75
mov eax, dword [ebp - 0x420]
call fcn.01002362
ret 0x94
Function at 0x1032848
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 0x1032896
test eax, eax
je 0x103297a
push esi
mov esi, dword [ebp + 0x18]
test esi, esi
jne 0x10328a3
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 [0x104b7ec]
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 0x1032951
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.01032ab7
mov dword [ebp - 0x210], eax
test eax, eax
je 0x1032966
test ebx, ebx
je 0x1032966
cmp dword [ebp - 0x220], esi
jae 0x103295f
push dword [ebp - 0x21c]
push dword [ebp - 0x214]
push edi
call ebx
jmp 0x1032966
cmp eax, 0x103
je 0x1032979
cmp eax, 0xea
je 0x1032966
and dword [ebp - 0x210], 0
inc dword [ebp - 0x218]
cmp dword [ebp - 0x210], 0
jne 0x10328c7
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
xor ecx, ebp
pop ebx
call fcn.01002376
leave
ret 0x1c

Function at 0x1032dcf
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x9c], 0
jne 0x1032dec
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1032e24
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0xc]
lea eax, [eax + eax + 2]
push eax
push 0
call fcn.0100fa34
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 0x1032e19
push eax
jmp 0x1032de2
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
inc eax
pop esi
pop ebp
ret 8
Function at 0x10330d3
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x14
mov eax, 0x10415c1
call fcn.01001890
mov edi, ecx
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
push ebx
call esi
cmp dword [edi + 0x9c], ebx
jne 0x10330fc
push 6
call esi
xor eax, eax
jmp 0x103316b
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 0x1033151
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.0100fa34
or dword [ebp - 4], 0xffffffff
jmp 0x1033105
cmp eax, ebx
je 0x103315e
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10330f8
push dword [ebp - 0x14]
mov ecx, esi
call fcn.0100a325
xor eax, eax
inc eax
call fcn.01001600
ret 8

Function at 0x10333cc
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 0x103341e
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov dword [esi], eax
cmp eax, 0x50
je 0x1033402
cmp eax, 0xb7
je 0x1033402
xor eax, eax
jmp 0x103343c
test ebx, ebx
je 0x103341e
push dword [ebx + 4]
push 4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x103341e
call edi
mov dword [esi], eax
jmp 0x10333fe
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 0x1033475
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.0100c8eb
test eax, eax
jge 0x10334b8
mov eax, 0x8000ffff
jmp 0x10335dc
lea eax, [ebp - 0x20c]
push eax
call fcn.0103331e
test eax, eax
je 0x10334f8
cmp word [ebp - 0x208], 0x5c
je 0x10334dc
mov eax, 0x800700a1
jmp 0x10335dc
cmp word [ebp - 0x206], 0
lea esi, [ebp - 0x206]
je 0x10334d2
cmp word [ebp - 0x206], 0x5c
je 0x10334d2
jmp 0x103354c
lea eax, [ebp - 0x20c]
push eax
call fcn.0103335c
test eax, eax
je 0x103354c
lea esi, [ebp - 0x208]
movzx eax, word [esi]
test ax, ax
je 0x1033525
cmp ax, 0x5c
je 0x1033525
inc esi
inc esi
lea eax, [ebp - 4]
cmp esi, eax
jb 0x103350e
lea eax, [ebp - 4]
cmp esi, eax
jae 0x103354c
cmp word [esi], 0x5c
je 0x103353a
jmp 0x103354c
cmp ax, 0x5c
je 0x103354a
inc esi
inc esi
movzx eax, word [esi]
test ax, ax
jne 0x1033534
cmp word [esi], 0x5c
jne 0x103354c
inc esi
inc esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
jmp 0x1033570
lea eax, [ebp - 0x20c]
cmp esi, eax
jb 0x1033577
movzx eax, word [esi]
test ax, ax
je 0x1033577
cmp ax, 0x5c
je 0x1033577
inc esi
inc esi
lea eax, [ebp - 6]
cmp esi, eax
jb 0x1033556
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 0x10335b8
call ebx
cmp eax, 0xb7
je 0x10335b8
call ebx
test eax, eax
jle 0x10335b2
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x210], eax
test edi, edi
je 0x10335d4
push 0x5c
pop eax
mov word [esi], ax
lea eax, [ebp - 6]
cmp esi, eax
jae 0x10335d4
inc esi
inc esi
cmp dword [ebp - 0x210], 0
jge 0x1033570
mov eax, dword [ebp - 0x210]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01002376
leave
ret 4