joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10017139
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x100cd130]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 2
mov esi, ecx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x10017163
push eax
jmp 0x100171b3
lea eax, [ebp - 0x230]
push eax
push edi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x100171aa
cmp dword [esi + 0x18], 8
jb 0x10017187
mov eax, dword [esi + 4]
jmp 0x1001718a
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10085e85
pop ecx
pop ecx
test eax, eax
je 0x100171c9
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1001717c
test edi, edi
je 0x100171b9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10084554
leave
ret
mov esi, dword [ebp - 0x228]
test edi, edi
je 0x100171da
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x100171bb

Function at 0x10017fd8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001803c
cmp dword [ebp + 0xc], 1
je 0x10018014
cmp dword [ebp + 0xc], 2
je 0x10018014
push 0xd
pop eax
jmp 0x1001803c
mov eax, dword [ebp - 4]
test edi, edi
je 0x10018036
test eax, eax
je 0x10018031
test al, 1
jne 0x1001800f
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x10018036
jmp 0x1001800f
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x1001af2a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea ebx, [edi + 0x50]
cmp dword [ebx], 0
push esi
je 0x1001af3c
xor eax, eax
jmp 0x1001af8a
mov esi, dword [ebp + 8]
mov eax, edi
mov dword [edi + 4], esi
call fcn.100161ef
test eax, eax
jne 0x1001af64
push ebx
push eax
push edi
push 0x100161cb
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x4c], eax
test eax, eax
je 0x1001af38
add esi, 0x24
call fcn.1002e000
mov eax, dword [ebx]
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
add ebx, 4
call fcn.1001b0fa
mov dword [eax], edi
call fcn.1002e00e
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret 4
Function at 0x10021566
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100a1a65
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x100cd130]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x100cd130]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x24], ebx
mov edi, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea esi, [esp + 0x3c]
mov dword [esp + 0x68], ebx
call fcn.1000199c
mov byte [esp + 0x68], 1
mov dword [esp + 0x2c], ebx
lea eax, [edi + 0x7c]
cmp byte [ebp + 0x14], bl
jne 0x100215e3
lea eax, [edi + 0x5c]
mov ecx, dword [eax]
push 0xffffffffffffffff
mov dword [esp + 0x3c], ecx
push ebx
add eax, 4
lea ecx, [esp + 0x44]
call fcn.10001a07
cmp dword [esp + 0x50], ebx
jne 0x1002161c
push dword [esp + 0x20]
mov esi, dword [esp + 0x18]
call fcn.10003c27
push ebx
push 1
lea esi, [esp + 0x44]
call fcn.10001b64
jmp 0x100216e4
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x1002162b
lea eax, [esp + 0x40]
push 0x20019
push eax
push dword [esp + 0x40]
lea eax, [esp + 0x24]
call fcn.10018040
test eax, eax
je 0x10021651
push dword [esp + 0x20]
mov esi, dword [esp + 0x18]
call fcn.10003c27
jmp 0x100216c8
lea eax, [esp + 0x2c]
push eax
push ebx
lea eax, [esp + 0x3c]
push eax
push ebx
push dword [esp + 0x38]
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10021642
mov esi, dword [esp + 0x2c]
shr esi, 1
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
mov dword [esp + 0x24], esi
neg ecx
or ecx, eax
push ecx
call fcn.1008356e
mov edi, eax
pop ecx
mov dword [esp + 0x30], edi
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
push eax
lea esi, [esp + 0x2c]
mov byte [esp + 0x70], 2
call fcn.10017fd8
mov esi, dword [esp + 0x14]
test eax, eax
je 0x100216bb
push dword [esp + 0x20]
jmp 0x100216bc
push edi
call fcn.10003c27
push edi
call fcn.10084549
pop ecx
push ebx
push 1
lea esi, [esp + 0x44]
call fcn.10001b64
cmp dword [esp + 0x18], ebx
je 0x100216e4
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.10084554
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10021708
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100a1a25
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x100cd130]
xor eax, esp
mov dword [esp + 0x2c], eax
push esi
push edi
mov eax, dword [0x100cd130]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
lea esi, [esp + 0x1c]
mov dword [esp + 0x48], edi
call fcn.1000199c
mov byte [esp + 0x48], 1
lea eax, [ebx + 0x7c]
mov ecx, dword [eax]
push 0xffffffffffffffff
mov dword [esp + 0x1c], ecx
push edi
add eax, 4
mov ecx, esi
call fcn.10001a07
cmp dword [esp + 0x30], edi
jne 0x1002178c
push edi
push 1
call fcn.10001b64
xor al, al
jmp 0x10021826
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
jae 0x1002179b
lea eax, [esp + 0x20]
push 0x20006
push eax
push dword [esp + 0x20]
lea eax, [esp + 0x18]
call fcn.10018040
test eax, eax
je 0x100217f1
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
jae 0x100217c1
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x14]
call fcn.10022cab
test eax, eax
je 0x100217f1
push edi
push 1
lea esi, [esp + 0x24]
call fcn.10001b64
cmp dword [esp + 0xc], edi
je 0x10021785
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10021785
push 0x100ace24
push dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
call fcn.10022c76
push edi
lea esi, [esp + 0x20]
push 1
test eax, eax
jne 0x100217da
call fcn.10001b64
cmp dword [esp + 0xc], edi
je 0x10021824
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10084554
mov esp, ebp
pop ebp
ret 4
Function at 0x100219d3
Capabilities:
Set registry value

Disassembly:
push 0x34
mov eax, 0x100a19b8
call fcn.10088636
mov eax, dword [ebp + 8]
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
lea esi, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.1000199c
mov byte [ebp - 4], 1
lea eax, [ebx + 0x7c]
mov ecx, dword [eax]
push 0xffffffffffffffff
mov dword [ebp - 0x30], ecx
push edi
add eax, 4
mov ecx, esi
call fcn.10001a07
cmp dword [ebp - 0x18], edi
jne 0x10021a27
push edi
push 1
call fcn.10001b64
xor al, al
jmp 0x10021ac7
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x10021a33
lea eax, [ebp - 0x28]
push 0x20006
push eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x38]
call fcn.10018040
test eax, eax
je 0x10021a7f
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x10021a54
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x38]
call fcn.10022cab
test eax, eax
je 0x10021a7f
push edi
push 1
lea esi, [ebp - 0x2c]
call fcn.10001b64
cmp dword [ebp - 0x38], edi
je 0x10021a20
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10021a20
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x38]
push 4
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
push 4
push edi
push dword [ebp - 0x3c]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
lea esi, [ebp - 0x2c]
push 1
test eax, eax
je 0x10021ab5
call fcn.10001b64
cmp ebx, edi
je 0x10021a20
push ebx
jmp 0x10021a77
call fcn.10001b64
cmp ebx, edi
je 0x10021ac5
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
call fcn.100886b9
ret 8
Function at 0x100226fc
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x68
mov eax, 0x100a190c
call fcn.10088636
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x64], ebx
mov edi, ecx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
lea esi, [ebp - 0x4c]
mov dword [ebp - 4], ebx
call fcn.1000199c
mov byte [ebp - 4], 1
lea eax, [ebp - 0x30]
mov dword [ebp - 0x6c], ebx
call fcn.1002e0f6
mov byte [ebp - 4], 2
mov eax, dword [edi + 0x5c]
push 0xffffffffffffffff
mov dword [ebp - 0x50], eax
push ebx
lea eax, [edi + 0x60]
mov ecx, esi
call fcn.10001a07
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x10022764
lea eax, [ebp - 0x2c]
push 0x20019
push eax
push dword [ebp - 0x50]
lea eax, [ebp - 0x5c]
call fcn.10018040
test eax, eax
je 0x10022786
push dword [ebp - 0x60]
mov esi, dword [ebp - 0x54]
call fcn.10003c27
jmp 0x100227f0
lea eax, [ebp - 0x6c]
push eax
push ebx
lea eax, [ebp - 0x74]
push eax
push ebx
push dword [ebp - 0x68]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10022779
mov esi, dword [ebp - 0x6c]
shr esi, 1
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
mov dword [ebp - 0x64], esi
neg ecx
or ecx, eax
push ecx
call fcn.1008356e
mov edi, eax
pop ecx
mov dword [ebp - 0x70], edi
push dword [ebp - 0x68]
lea eax, [ebp - 0x5c]
push eax
lea esi, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.10017fd8
mov esi, dword [ebp - 0x54]
test eax, eax
je 0x100227e3
push dword [ebp - 0x60]
jmp 0x100227e4
push edi
call fcn.10003c27
push edi
call fcn.10084549
pop ecx
push ebx
push 1
lea esi, [ebp - 0x30]
call fcn.10001b64
push ebx
push 1
lea esi, [ebp - 0x4c]
call fcn.10001b64
cmp dword [ebp - 0x5c], ebx
je 0x10022814
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x54]
call fcn.100886b9
ret 0xc
Function at 0x1002c212
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x100a0110
call fcn.100885cd
mov ebx, ecx
mov esi, edx
push 1
lea eax, [esi + 0x2c]
push eax
lea ecx, [ebp - 0x18]
call fcn.10001e2f
and dword [ebp - 4], 0
cmp dword [ebx + 0x18], 8
jb 0x1002c23f
mov eax, dword [ebx + 4]
jmp 0x1002c242
lea eax, [ebx + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002c25d
lea ecx, [ebp - 0x18]
call fcn.10001e58
xor al, al
call fcn.100886a5
ret
call fcn.1002c5b7
push 0xffffffffffffffff
lea edi, [esi + 0xc]
push 0
mov eax, ebx
mov ecx, edi
call fcn.10001a07
push 0x8007
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp dword [edi + 0x18], 8
jb 0x1002c288
mov edi, dword [edi + 4]
jmp 0x1002c28b
add edi, 4
push edi
call fcn.10017f51
mov dword [esi + 8], eax
test eax, eax
jne 0x1002c2a6
xor bl, bl
lea ecx, [ebp - 0x18]
call fcn.10001e58
mov al, bl
jmp 0x1002c257
mov byte [esi + 0x28], 0
mov bl, 1
jmp 0x1002c29a
Function at 0x1002da79
Capabilities:
Write file on windows

Disassembly:
push 0x54
mov eax, 0x1009f8a0
call fcn.10088636
mov ebx, ecx
cmp dword [ebx + 0x3c], 0
mov dword [ebp - 0x38], ebx
je 0x1002db8e
cmp byte [ebx + 0x41], 0
je 0x1002db8e
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x1002dab1
xor al, al
jmp 0x1002db90
push 0
push 8
pop edi
lea esi, [ebp - 0x30]
call fcn.1002d70d
and dword [ebp - 4], 0
lea eax, [ebx + 0x44]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x30]
call fcn.1002d794
mov esi, eax
call fcn.1002dbd5
mov edi, eax
add edi, dword [ebp - 0x40]
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x30]
call fcn.1002d794
mov esi, eax
call fcn.1002dbd5
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ecx]
lea esi, [ebp - 0x34]
push esi
push edi
push eax
push dword [ebp - 0x3c]
call dword [edx + 0x18]
sub eax, 0
je 0x1002db26
dec eax
je 0x1002db2a
dec eax
dec eax
je 0x1002db8a
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.10003f8e
mov al, bl
jmp 0x1002db90
mov byte [ebx + 0x41], 0
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x30]
call fcn.1002d794
mov esi, eax
call fcn.1002dbd5
mov edi, dword [ebp - 0x34]
sub edi, eax
je 0x1002db68
push dword [ebx + 0x4c]
lea eax, [ebp - 0x50]
push edi
push 1
lea ecx, [ebp - 0x30]
call fcn.1002d794
mov esi, eax
call fcn.1002dbd5
push eax
call fcn.10087509
add esp, 0x10
cmp edi, eax
jne 0x1002db14
cmp byte [ebx + 0x41], 0
je 0x1002db8a
test edi, edi
jne 0x1002dac8
push edi
push 8
pop ebx
lea edi, [ebp - 0x30]
call fcn.1002d750
mov ebx, dword [ebp - 0x38]
jmp 0x1002dac8
mov bl, 1
jmp 0x1002db16
mov al, 1
call fcn.100886b9
ret
Function at 0x1002e1d5
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x888
mov eax, 0x100a1570
call fcn.10088636
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x82c], eax
mov dword [ebp - 0x828], ebx
mov dword [ebp - 0x824], ebx
mov esi, 0x400
mov dword [ebp - 0x820], ebx
cmp esi, dword [ebp - 0x820]
je 0x1002e216
cmp dword [ebp - 0x820], ebx
jne 0x1002e25d
lea eax, [ebp - 0x834]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x81c]
push eax
push dword [ebp - 0x828]
mov eax, dword [ebp - 0x82c]
push dword [eax + 0x24]
mov dword [ebp - 0x820], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc dword [ebp - 0x828]
mov dword [ebp - 0x824], eax
add esi, 0x400
jmp 0x1002e206
cmp dword [ebp - 0x824], ebx
jne 0x1002e304
lea eax, [ebp - 0x81c]
push eax
lea esi, [ebp - 0x850]
call fcn.10003c27
mov dword [ebp - 4], ebx
mov esi, dword [edi + 0x14]
lea eax, [ebp - 0x850]
push eax
push dword [esi + 4]
push esi
call fcn.1001ae09
mov ecx, dword [edi + 0x18]
mov edx, 0x9249249
sub edx, ecx
cmp edx, 1
jb 0x1002e2c3
inc ecx
mov dword [edi + 0x18], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea esi, [ebp - 0x850]
mov dword [ecx], eax
call fcn.10001b64
jmp 0x1002e1fb
push 0x100b2d10
lea ecx, [ebp - 0x894]
call fcn.10003c46
lea eax, [ebp - 0x894]
push eax
lea ecx, [ebp - 0x878]
mov byte [ebp - 4], 1
call fcn.100023fb
push 0x100c02dc
lea eax, [ebp - 0x878]
push eax
mov dword [ebp - method.std::length_error.virtual_0], vtable.std::length_error.0
call fcn.1008819b
xor eax, eax
cmp dword [ebp - 0x824], 0x103
sete al
call fcn.100886b9
ret 4
Function at 0x1002e3dc
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x100a00ed
call fcn.100885cd
lea eax, [ebp - 0x14]
push eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp + 8]
mov esi, ecx
add esi, 0x24
push dword [esi]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1002e415
xor eax, eax
call fcn.100886a5
ret 8
mov eax, dword [ebp - 0x14]
shr eax, 1
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x10], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1008356e
mov edi, eax
pop ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], ebx
push dword [ebp + 8]
push esi
lea esi, [ebp - 0x10]
call fcn.10017fd8
test eax, eax
je 0x1002e453
push edi
call fcn.10084549
pop ecx
jmp 0x1002e40b
cmp dword [ebp - 0x18], 2
jne 0x1002e4b8
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
push ebx
push edi
call esi
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x10], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1008356e
pop ecx
mov dword [ebp + 8], eax
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
push eax
push edi
call esi
push dword [ebp + 8]
test eax, eax
je 0x1002e4a4
push dword [ebp + 0xc]
call fcn.10001a93
push dword [ebp + 8]
call fcn.10084549
pop ecx
jmp 0x1002e4c1
call fcn.10084549
pop ecx
push edi
call fcn.10084549
pop ecx
mov eax, ebx
jmp 0x1002e40d
push edi
push dword [ebp + 0xc]
call fcn.10001a93
xor ebx, ebx
inc ebx
jmp 0x1002e4aa
Function at 0x1002e547
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x100cd130]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
mov dword [ebp - 0x21c], eax
xor esi, esi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.10018040
mov ebx, eax
cmp ebx, esi
je 0x1002e5af
cmp dword [ebp - 0x214], esi
je 0x1002e5a8
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1002e64a
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1002e5d7
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.1002e547
mov dword [ebp - 0x220], eax
cmp eax, esi
jne 0x1002e65b
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call ebx
test eax, eax
je 0x1002e5b7
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], esi
je 0x1002e622
push dword [ebp - 0x214]
call ebx
mov dword [ebp - 0x214], esi
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 0x214], esi
je 0x1002e648
push dword [ebp - 0x214]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10084554
leave
ret 4
cmp dword [ebp - 0x214], esi
je 0x1002e66f
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x220]
jmp 0x1002e64a
Function at 0x10031949
Capabilities:
Create directory

Disassembly:
push 0x2c
mov eax, 0x100a59a5
call fcn.100885cd
cmp dword [ebx + 0x18], 8
jb 0x10031965
lea esi, [ebx + 4]
mov eax, dword [esi]
mov dword [ebp - 0x18], esi
jmp 0x1003196d
lea eax, [ebx + 4]
mov dword [ebp - 0x18], eax
mov esi, eax
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.1001542c
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebx + 0x14], edi
je 0x10031a83
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10031a83
push edi
push 0x100b373c
push ebx
call fcn.100019dd
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x10031a3c
push dword [ebp - 0x14]
lea esi, [ebp - 0x38]
push 0
push ebx
call fcn.10017661
mov byte [ebp - 4], 1
cmp dword [eax + 0x18], 8
jb 0x100319cb
mov eax, dword [eax + 4]
jmp 0x100319ce
add eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.1001542c
lea eax, [ebp - 0x1c]
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.1001ae63
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.100160c5
push 0
push 1
lea esi, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.10001b64
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10031a1d
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10031a96
mov eax, dword [ebp - 0x14]
inc eax
push eax
push 0x100b373c
push ebx
call fcn.100019dd
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x100319ae
mov esi, dword [ebp - 0x18]
cmp dword [ebx + 0x18], 8
jb 0x10031a44
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x1c]
push eax
call fcn.1001542c
lea eax, [ebp - 0x1c]
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.1001ae63
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.100160c5
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10031a83
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10031a96
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.100160c5
xor eax, eax
call fcn.100886a5
ret
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.100160c5
push 7
pop eax
jmp 0x10031a90

Function at 0x10031aa6
Capabilities:
Get file attributes
Set file attributes

Disassembly:
cmp dword [edi + 0x18], 8
push esi
lea esi, [edi + 4]
jb 0x10031ab4
mov eax, dword [esi]
jmp 0x10031ab6
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [edi + 0x18], 8
jb 0x10031ac5
mov esi, dword [esi]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
ret

Function at 0x10031ad2
Capabilities:
Delete file

Disassembly:
push edi
push 0x100ace24
mov edi, eax
call fcn.10004cb3
test eax, eax
jne 0x10031ae5
pop edi
ret
call fcn.10031aa6
cmp dword [edi + 0x18], 8
jb 0x10031af5
mov edi, dword [edi + 4]
jmp 0x10031af8
add edi, 4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
pop edi
ret
Function at 0x10031b6c
Capabilities:
Copy file

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 1
push edi
mov edi, eax
jb 0x10031bb1
cmp dword [edi + 0x14], 1
jb 0x10031bb1
call fcn.10031aa6
cmp dword [edi + 0x18], 8
jb 0x10031b8e
mov edi, dword [edi + 4]
jmp 0x10031b91
add edi, 4
cmp dword [esi + 0x18], 8
jb 0x10031b9c
mov esi, dword [esi + 4]
jmp 0x10031b9f
add esi, 4
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
neg eax
sbb eax, eax
neg eax
jmp 0x10031bb3
xor eax, eax
pop edi
pop esi
ret

Function at 0x10031bb6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x100cd130]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x100ace24
push edi
mov esi, ecx
call fcn.10001a93
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.10087ea0
add esp, 0xc
cmp dword [esi + 0x18], 8
jb 0x10031bf8
mov esi, dword [esi + 4]
jmp 0x10031bfb
add esi, 4
lea eax, [ebp - 0x804]
push eax
push 0
push 0x100b573c
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
pop esi
test eax, eax
je 0x10031c25
lea eax, [ebp - 0x804]
push eax
push edi
call fcn.10001a93
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10084554
leave
ret

Function at 0x10031c31
Capabilities:
Enumerate files on windows

Disassembly:
push 0x294
mov eax, 0x100a1407
call fcn.10088636
mov edi, edx
mov eax, edi
mov esi, ecx
mov dword [ebp - 0x268], edi
call fcn.10011410
cmp dword [esi + 0x18], 8
jb 0x10031c5c
mov esi, dword [esi + 4]
jmp 0x10031c5f
add esi, 4
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x264], eax
cmp eax, 0xffffffff
jne 0x10031c7f
xor eax, eax
jmp 0x10031d17
lea eax, [ebp - 0x234]
push eax
lea esi, [ebp - 0x284]
call fcn.10003c27
and dword [ebp - 4], 0
mov eax, esi
push eax
mov eax, edi
call fcn.10003da7
or dword [ebp - 4], 0xffffffff
push 0
push 1
call fcn.10001b64
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x10031ce8
lea eax, [ebp - 0x234]
push eax
lea esi, [ebp - 0x2a0]
call fcn.10003c27
mov eax, esi
push eax
mov eax, dword [ebp - 0x268]
mov dword [ebp - 4], 1
call fcn.10003da7
or dword [ebp - 4], 0xffffffff
push 0
push 1
call fcn.10001b64
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x264]
call edi
test eax, eax
jne 0x10031cb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x264]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
cmp esi, 0x12
sete al
call fcn.100886b9
ret